不计划移植到 Forge! (但欢迎你自己进行移植并链接)
描述
此模组允许你更改世界出生点的设定方式!无论是玩家首次加入旧服务器,还是玩家在未设置出生点的情况下死亡,该玩家都将掷骰子以设定新的世界出生点位置。随机位置将在在线玩家周围的可自定义区域内选取。
为了获得更好的模组体验,其配置可以通过新命令直接在游戏内更改!
这是一个简短的描述,完整描述见下文。
常见问题解答
-
我的服务器需要安装它吗? 是的。此模组为服务端模组,因此你的客户端无需安装。
-
我可以将它包含在我的整合包中吗? 可以,你可以自由地将此模组包含在你的整合包中。
-
其他任何问题: 欢迎在 Discord 服务器中分享你的体验、问题或改进建议,或者直接创建 GitHub Issue。
完整描述
如果启用了更改区域(模组的主要目的),当玩家首次加入服务器或未设置出生点而死亡时,一个新的世界出生点将在 Overworld(主世界) 中 存活且在线 的玩家周围随机设定。
请注意,如果未发现 任何其他 玩家,将使用上一次的世界出生点。
区域形状
选取随机位置的区域形状不一定包含所有玩家。仅 BOX 形状才可能包含所有玩家。如果玩家影响力不为 NONE,即使是 BOX 形状也可能不包含所有玩家。
如果只发现 一个其他 玩家,则该形状必然是一个 点。因此,除非设置了扩展值,否则世界出生点将设定在该其他玩家的位置。
- BOX(矩形框): 包含所有玩家的矩形框
- CIRCLE(圆形): 以矩形框为中心的圆,半径等于矩形框的 最长 边。如果玩家在某一方向上相距较远,此形状将包含更多的“空白空间”。注意,这还 不是 目前 最小的包围圆。
玩家影响力
为了避免区域过大(带有过多“空白空间”)或离玩家太远,可以设置玩家影响力。这意味着如果形状的一侧有更多玩家,世界出生点更有可能出现在这一侧。
- NONE(无): 对形状没有玩家影响力
- AREA OFFSET(区域偏移): 计算加权中心,并将形状移向这个新的中心
- AREA SHRINK(区域收缩): 计算加权中心,并以使形状的中心与计算出的中心匹配的方式收缩形状
扩展
无论形状或玩家影响力如何,如果你想鼓励一定的奔跑距离(尽管本模组旨在避免过长的奔跑),区域可能会太小。因此,你可以设置一个 扩展值,该值将使形状在每个方向上扩展相应的方块数。
出生点区块
在 Minecraft 中,世界出生点所在的区块始终处于加载状态。如果你的计划是设置始终加载的机器,那么可改变的世界出生点可能会带来麻烦。此外,如果你的服务器效率不高 并且 你的世界出生点区块半径(未来的游戏规则)过大,可能 会导致卡顿。
为了避免这种情况,你可以通过模组的选项将 (0,0,0) 设置为用于世界出生点区块的位置。你随时可以使用命令更新此行为,但请注意,更改仅在有人加入或死亡后才会生效。
命令
命令需要 2 级的权限等级。
/worldspawn-modded
打印世界出生点更改区域是否启用
/worldspawn-modded <enabled>
启用/禁用世界出生点更改区域
/worldspawn
打印所有自定义世界出生点参数
/worldspawn (box|circle) <expand> (none|area_offset|area_shrink)
设置所有自定义世界出生点参数
/worldspawn-areashape
打印世界出生点区域形状
/worldspawn-areashape (box|circle)
设置世界出生点区域形状
/worldspawn-playerinfluence
打印世界出生点玩家影响力
/worldspawn-playerinfluence (none|area_offset|area_shrink)
设置世界出生点玩家影响力
/worldspawn-expand
打印世界出生点扩展值
/worldspawn-expand <expand>
设置世界出生点扩展值
/spawnchunks
打印世界出生点区块是使用 (0,0,0) 还是上次世界出生点位置
/spawnchunks (fixed|worldspawn)
设置我们希望世界出生点区块使用 (0,0,0) 还是上次世界出生点位置
<enabled> 是一个布尔值,而 <expand> 是一个正整数。
NO PORT TO FORGE PLANNED! (but feel free to port it by yourself and link it)
Description
This mod allows you to change the way the worldspawn is set! Whether a player is joining an old server for the first time or a player died with no spawn point set, this player will roll the dice to set a new world spawn location. The random location is chosen in an area around the online players that you can customize.
For a better experience with the mod, its configuration can be changed directly in-game
through new commands!
This is a short description, full description below.
FAQ
-
Do I need it on my server? Yes. This mod is server side, so you don't need it on your client
-
Can I include it in my modpack? Yes, you are free to include this mod into your modpack
-
For any other things: Feel free to share your experience, problems, enhancement ideas in the Discord server, or directly creating issues on the GitHub
Full description
If the changing area is enabled (the main purpose of the mod), when a player joins a server for the first time or dies without a spawn point set, a new worldspawn is randomly set around alive and online players from the Overworld.
Note that if no other player is found, last worldspawn will be used.
Area Shape
The shape of the area from which a random position is chosen may not necessarily contains every player. This is only the case for the BOX shape. If the player influence is different from NONE, even the BOX may not contain every player.
If only only one other player is found, the shape is necessarily a point. So, unless an expand is set, the worldspawn will be set to the other player's position.
- BOX: A box containing every player
- CIRCLE: A circle centered on the box, with a radius equals to the longest side of the box. If players are far from each other in one direction, this shape will contain a lot more of "empty space". Note than this is not yet the smallest bounding circle.
Player Influence
To avoid the area being too big (with too much "empty space") or too far from players, a player influence can be set. This means if there are more players in one side of the shape, the world spawn will be more likely on this side.
- NONE: No player influence on the shape
- AREA OFFSET: A weighted center is computed and the shape is moved toward this new center
- AREA SHRINK: A weighted center is computed and the shape is shrink in a way that makes the shape's center match the computed one
Expand
The area, no matter the shape or the player influence, may be too small if you want to encourage a bit of running, even though this mod aims to avoid loooong runs. So, you can set an expand value that will expand the shape of this number of blocks in every direction.
Spawn Chunks
In Minecraft, worldspawn chunks are always loaded. Having a worldspawn that can change might be annoying if you plan to setup always loaded machines. Also, it could possibly create lags if your server is not very efficient and your worldspawn chunk radius (future gamerule) is too big.
To avoid this, you can set the (0,0,0) to be the position used for the worldspawn chunks with an option of the mod. You can always update this behavior with the command, but note that the change will be effective only after someone joins or dies.
Commands
Commands require level 2 of permission.
/worldspawn-modded
Print whether the worldspawn changing area is enabled
/worldspawn-modded <enabled>
Enable/Disable the worldspawn changing area
/worldspawn
Print every custom worldspawn parameters
/worldspawn (box|circle) <expand> (none|area_offset|area_shrink)
Set every custom worldspawn parameters
/worldspawn-areashape
Print worldspawn area shape
/worldspawn-areashape (box|circle)
Set worldspawn area shape
/worldspawn-playerinfluence
Print worldspawn player influence
/worldspawn-playerinfluence (none|area_offset|area_shrink)
Set worldspawn player influence
/worldspawn-expand
Print worldspawn expand value
/worldspawn-expand <expand>
Set worldspawn expand value
/spawnchunks
Print whether the worldspawn chunks use the (0,0,0) or the last worlspawn position
/spawnchunks (fixed|worldspawn)
Set whether we want the worldspawn chunks to use the (0,0,0) or the last worlspawn position
<enabled> is a boolean value, and <expand> is a positive integer.
评论 0
登录后参与评分
还没有评论,来抢沙发吧