它们正在蔓延……
⚠️ 切勿在你珍视的世界中使用此模组!它会自动破坏方块!!
此模组会将“后室(backrooms)”引入原版 Minecraft,并缓慢蔓延吞噬你的世界!
由于该模组不会添加任何新方块、物品等,因此仅需在服务器上安装即可。
本模组高度可定制,允许你更改房间蔓延的方式及其使用的方块。
信息
目前,当运行 /spreadrooms start 命令的玩家为中心时,该模组会创建一个大小为 200(可配置)的世界边界。你 无法 关闭此功能!
如果配置不当,房间的蔓延可能会导致严重的卡顿。此外,建议在开始游玩前让其生成一段时间,因为初始生成速度可能较慢。
指令
/spreadrooms start
⮡ 开始蔓延
/spreadrooms stop
⮡ 停止蔓延
/spreadrooms reset
⮡ 从内存中移除所有房间并将世界边界重置为原版状态
/spreadrooms reload
⮡ 重新加载配置文件
/spreadrooms debug rooms_count
⮡ 列出每种类型房间的数量
/spreadrooms debug rooms_ticking
⮡ 返回所有活跃房间的列表
配置
位于 /config/spreadrooms.json
areaFromCenter: 100
⮡ 世界边界大小及 SpreadRooms 的起源点,从东南角开始
timeToSpread : 20
⮡ 蔓延之间的间隔刻数
timeToSpreadVariation : 0
⮡ timeToSpread 的随机波动值 +/-,设为 0 则禁用
timedSpread : true
⮡ ⚠️ 若设为 false 将严重影响性能! 切换为每刻都进行蔓延或使用 timeToSpread 和 timeToSpreadVariation
strictGeneration : true
⮡ 可能影响性能!为 true 时强制将房间内的方块设置为空气。
generateOnPlane : true
⮡ 尝试在同一 Y 轴层级生成房间
connectRooms : true
⮡ 相邻的房间在生成时会移除接触的墙壁
maxGenRooms : 5
⮡ ⚠️ 影响性能! 同时生成的房间数量上限
defaultRoomSize : Size of [ x : 6, y : 4, z : 6]
⮡ x、y 和 z 的值定义默认房间的大小
sizeVariation : Size of [ x : 7, y : 1, z : 7]
⮡ 获取 0 到该值之间的随机数
sizeVariationShift : Size of [ x : 1, y : 0, z : 1]
⮡ 从随机化的 sizeVariation 数值中减去
sizeVariationFactor : Size of [ x : 2, y : 2, z : 2]
⮡ 乘以 sizeVariationShift 数值并加到房间大小的相应值上
roomBlocking : true
⮡ ⚠️ 影响性能! 将大型房间切割为小型房间以加快大房间生成速度
maxRoomSize : Size of [ x : 8, y : 6, z : 8]
⮡ 如果 roomBlocking 为 true,则超过任一轴尺寸的房间将被切割
featureStates : Map of [ RoomFeature, BlockID ]
⮡ 允许用户定义大部分外观特征
⮡ 特性 GREEN、CARPET、E_PIPES 和 E_CHAINS 不可更改
工作原理
创建一个名为“房间(room)”的新记录对象,包含起源点、大小和房间特征属性。房间有一个名为 search 的方法,用于检查相邻方块是否已设置为正确的方块;如果不是,则设置该方块。此过程递归执行,直到房间完成。此外,如果 search 返回的位置超出房间范围,它会生成一组新的随机房间属性,检查将该房间放置在该位置是否合适,如果合适则放置房间。新房间会被加入队列等待处理,因为同一时间只能处理最大数量的房间。每当放置一个方块时,房间会检查其房间特征和邻居。这使得不同房间能够连接,而房间特征则允许产生大量的变化。房间特征易于定制和编辑,允许在房间中出现独特的墙壁、地板、图案、结构以及其他元素。基本上就是这样!如果你仍然好奇,可以自行查看 GitHub 仓库!
计划中的内容
- 支持简单的用户自定义特征,如自定义地板、墙壁等
- 添加更多“房间特征(RoomFeatures)”以增加变化,并提供进入房间的理由
They are spreading...
⚠️ DO NOT USE THIS MOD IN A WORLD YOU CARE ABOUT!!! IT WILL DESTROY BLOCKS AUTOMATICALLY!!
This mod adds the 'backrooms' into vanilla minecraft that will slowly spread and consume your world!
This mod is only required to be on the SERVER since it doesnt add any new blocks, items, etc.
The mod is very customizable and allows you to change everything about how to rooms spread and what blocks they use.
Information
Currently, the mod creates a worldborder of size 200 (configurable) centered on the player that runs the
/spreadrooms start command. You CANNOT turn this off yet!
The spreading of the rooms can get VERY laggy if you dont configure it right, also, it may be a good idea to let it generate for a bit before you start playing since it can be slow.
Commands
/spreadrooms start
⮡ starts the spread
/spreadrooms stop
⮡ stops the spread
/spreadrooms reset
⮡ removes all rooms from memory and resets the worldboard to vanilla
/spreadrooms reload
⮡ reloads the config
/spreadrooms debug rooms_count
⮡ lists how much of each room type exists
/spreadrooms debug rooms_ticking
⮡ returns list of all active rooms
Configuration
located at /config/spreadrooms.json
areaFromCenter: 100
⮡ Worldborder size and spreadrooms origin, starts in southeast corner
timeToSpread : 20
⮡ Ticks inbetween spread
timeToSpreadVariation : 0
⮡ Random variation +/- for timeToSpread, disabled with 0
timedSpread : true
⮡ ⚠️ HEAVY PERFORMANCE IMPACT IF FALSE! Toggles between spreading every tick and using timeToSpread and timeToSpreadVariation
strictGeneration : true
⮡ May impact performance! When true forces rooms to set blocks to air.
generateOnPlane : true
⮡ Attempts to get rooms on a similar y-level
connectRooms : true
⮡ Rooms next to eachother will remove touching walls when generating
maxGenRooms : 5
⮡ ⚠️ PERFORMANCE IMPACT! Numbers of rooms generating at once
defaultRoomSize : Size of [ x : 6, y : 4, z : 6]
⮡ Values x, y, and z define the default room size
sizeVariation : Size of [ x : 7, y : 1, z : 7]
⮡ Gets a random number between 0 and the value
sizeVariationShift : Size of [ x : 1, y : 0, z : 1]
⮡ Subtracts from the randomized sizeVariation number
sizeVariationFactor : Size of [ x : 2, y : 2, z : 2]
⮡ Multiplies by the sizeVariationShift number and adds to the respective value of the rooms size
roomBlocking : true
⮡ ⚠️ PERFORMANCE IMPACT! Cuts bigger rooms into smaller ones to make big room generation faster
maxRoomSize : Size of [ x : 8, y : 6, z : 8]
⮡ Rooms bigger than any of these axis will but cut if roomBlocking is true
featureStates : Map of [ RoomFeature, BlockID ]
⮡ Allows users to define what most of the features look like
⮡ The features GREEN, CARPET, E_PIPES, and E_CHAINS cant be changed
How it works
Creates a new record object called a 'room' with origin, size, and room features properties. Rooms have a method called search which checks if adjacent blocks are already set to the correct block, and if not it sets the block. It repeats this recursivley until the room is completed. Additionally, if a search returns a position outside the room, it generates a new set of random room properties, checks if that room will fit if places in the position, and if so, places the room. New rooms are added to the queue to be ticked, since only a maximum amount of rooms can be ticked at once. When where a block is placed, a room checks its room features and neighbors. This allows different rooms to connects, and room features allow a large variation of rooms. Room features are easily customizable and editable, and allow for unique walls, floors, patterns, structures, and other things to appear in rooms. Thats basically it so far! if your still curious, you can check out the github repo for youself!
Whats planned
- Ability to have simple user created features like custom floors, walls, etc
- Many more "RoomFeatures" to add variation to the rooms, and a reason for entering
评论 0
登录后参与评分
还没有评论,来抢沙发吧