
需要库模组 Collective (Fabric) 以及 Fabric API。
本模组是 The Vanilla Experience 的一部分。
Nether portals spread(下界传送门扩散)会将下界方块以可配置的半径从传送门周围扩散至主世界。默认情况下,你可以在传送门的扩散范围内放置四个煤炭块来阻止扩散。但这可以在配置文件中更改。当扩散效果开始或被阻止时,位于传送门附近的玩家会收到一条消息。
该模组将所有传送门的位置保存到 '../world-folder/data/netherportalspread/portals/'。当新传送门被创建,或者玩家从下界进入主世界时会检测到新传送门。因此,对于旧的世界存档,你需要进出一次以启动扩散效果,或者重新激活传送门。这比检查世界中每个方块是否存在传送门要高效得多。
可配置项: ( 如何配置? )
sendMessageOnPortalCreation (默认 = true):启用后,向传送门附近的玩家发送下界正在扩散的消息,并告知你可以使用 'preventSpreadBlockString' 方块的 'preventSpreadBlockAmountNeeded' 数量来阻止扩散。
messageOnPortalCreation (默认 = "你感觉到一股来自传送门的腐败能量。除非在传送门周围 %portalSpreadRadius% 格半径内放置 %preventSpreadBlockAmountNeeded% 个 %preventSpreadBlockString%,否则下界将缓慢扩散至主世界。"):创建传送门时发送的消息。
sendMessageOnPreventSpreadBlocksFound (默认 = true):启用后,当传送门检测到新的 'preventSpreadBlockString' 方块时,向传送门附近的玩家发送下界扩散已停止的消息。
messageOnPreventSpreadBlocksFound (默认 = "随着足够数量的 %preventSpreadBlockString% 被放置,你感到腐败的能量逐渐消退。"):找到阻止扩散方块时发送的消息。
sendMessageOnPortalBroken (默认 = true):启用后,当传送门被破坏时向玩家发送消息。
messageOnPortalBroken (默认 = "由于下界传送门已被破坏,腐败能量不再能够进入主世界。"):传送门被破坏时发送的消息。
prefixPortalCoordsInMessage (默认 = true):启用后,在传送门消息中显示传送门坐标。
portalSpreadRadius (默认 = 15,最小值 1,最大值 100):下界方块可以扩散的传送门周围半径。
spreadDelayTicks (默认 = 40,最小值 1,最大值 72000):下界传送门周围扩散之间的延迟刻度数。20 刻 = 1 秒。
instantConvertAmount (默认 = 50,最小值 0,最大值 1000):检测到传送门时,立即转换为下界方块的方块数量。如果半径内已存在下界方块,其数量将从此数值中扣除。
preventSpreadWithBlock (默认 = true):启用后,当半径内有 n(定义)个阻止扩散方块(定义)时,阻止扩散效果。
preventSpreadBlockAmountNeeded (默认 = 4):在下界传送门半径内防止扩散所需的阻止扩散方块(定义)数量。
preventSpreadBlockString (默认 = "minecraft:coal_block"):用于阻止下界传送门扩散的方块。默认为煤炭块(minecraft:coal_block 为命名空间 ID)。
默认情况下,当满足以下条件时,模组会向传送门周围的玩家发送消息:
创建传送门并扩散开始:

使用 preventspread 方块(在配置文件中定义)停止传送门扩散:

破坏传送门时的提示消息:

可配置的扩散方块
您可以在位于 "./config/netherportalspread/" 目录下的 "spreadsettings.txt" 文件中定义哪些方块应扩散为何种方块以及发生的概率。默认内容如下:
stone; [netherrack>10 + magma_block>2 + nether_quartz_ore>1],
grass_block; [netherrack>1],
dirt; [netherrack>1],
sand; [soul_sand>1],
gravel; [soul_sand>1],
stone_bricks; [nether_bricks>2 + red_nether_bricks>1],
sea_lantern; [glowstone>1],
farmland; [soul_sand>1],
wheat; [nether_wart>1]
如果名称值中不包含冒号“:”,模组会自动在名称前添加 "minecraft:"。
格式为: FROMBLOCK; [TOBLOCK>WEIGHT (+ TOBLOCK>WEIGHT + TOBLOCK>WEIGHT) ]
权重会自动转换为概率值。计算方式为:(1/总权重)*权重。
因此,默认配置文件意味着:
将石头转换为 76.92% 的下界岩、15.38% 的岩浆块和 7.7% 的石英矿石。
将草方块转换为 100% 的下界岩。
将泥土转换为 100% 的下界岩。
将沙子转换为 100% 灵魂沙。
将砾石转换为 100% 灵魂沙。
将石砖转换为 66.67% 的下界砖和 33.3% 的红下界砖。
将海晶灯转换为 100% 荧石。
将耕地转换为 100% 灵魂沙。
将小麦转换为 100% 下界疣。
Minecraft 1.16 及以上版本使用不同的默认配置,采用新的方块:
stone; [netherrack>10 + magma_block>2 + nether_quartz_ore>1],
grass; [nether_sprouts>1],
cobblestone; [blackstone>1],
grass_block; [crimson_nylium>1],
dirt; [netherrack>1],
coarse_dirt; [soul_soil>1],
sand; [soul_sand>1 + soul_soil>1],
red_sand; [soul_soil>1 + soul_sand>1],
sandstone; [blackstone>1],
cut_sandstone; [polished_blackstone>1],
chiseled_sandstone; [chiseled_polished_blackstone>1],
smooth_sandstone; [basalt>1],
smooth_red_sandstone; [basalt>1],
gravel; [soul_soil>1],
stone_bricks; [nether_bricks>2 + red_nether_bricks>1],
sea_lantern; [glowstone>1],
farmland; [soul_sand>1],
wheat; [nether_wart>1],
gold_ore; [nether_gold_ore>1],
fern; [nether_sprouts>1],
oak_leaves; [nether_wart_block>1],
spruce_leaves; [nether_wart_block>1],
birch_leaves; [warped_wart_block>1],
jungle_leaves; [warped_wart_block>1],
acacia_leaves; [nether_wart_block>1],
dark_oak_leaves; [warped_wart_block>1],
oak_log; [crimson_stem>1],
spruce_log; [crimson_stem>1],
birch_log; [warped_stem>1],
jungle_log; [warped_stem>1],
acacia_log; [crimson_stem>1],
dark_oak_log; [warped_stem>1],
您也可以配置来自其他模组的方块扩散:
例如 Mystical Agriculture 模组中的 Soulstone:


对于模组方块的格式为 [MODID:Blockname>weight]
效果演示(使用旧的扩散设置):





------------------
只要下载仍托管在 CurseForge 生态系统中,您可以自由在任何整合包中使用此模组。
Serilum.com 提供了所有可用模组的概览及更多信息。
由于我无法跟踪各个模组的不同页面,评论功能已禁用。
如有问题、想法、建议或其他任何内容,请访问 Github 仓库。谢谢!

Requires the library mod Collective (Fabric) and the Fabric API.
This mod is part of The Vanilla Experience.
Nether portals spread (nether) blocks to the overworld around the portal in a configurable radius. By default you can stop the spread by placing four coal blocks within the portal's radius. This can however be changed in the config. Players around the portal will receive a message when the spread effect begins and when it is prevented.
The mod saves all portal locations to '../world-folder/data/netherportalspread/portals/'. A new portal is detected when it's created or when a player goes from the nether to the overworld. So for old worlds you'll have to go through it and back once to start the spread effect, or re-fire the portal. This makes it a lot more efficient than checking every block in the world for a portal.
Configurable: ( how do I configure? )
sendMessageOnPortalCreation (default = true): When enabled, sends a message to players around the portal that the nether is spreading and that you can stop the spread with 'preventSpreadBlockAmountNeeded' of the 'preventSpreadBlockString' block.
messageOnPortalCreation (default = "You feel a corrupt energy coming from the portal. The nether will slowly spread into the overworld unless %preventSpreadBlockAmountNeeded% %preventSpreadBlockString% are placed within a %portalSpreadRadius% block radius around the portal."): The message sent on portal creation.
sendMessageOnPreventSpreadBlocksFound (default = true): When enabled, sends a message to players around the portal that the nether spread has stopped when the portal detects new 'preventSpreadBlockString' blocks.
messageOnPreventSpreadBlocksFound (default = "With enough %preventSpreadBlockString% placed, you feel the corrupted energy fade."): The message sent on preventspread blocks found.
sendMessageOnPortalBroken (default = true): When enabled, sends a message to players when a portal is broken.
messageOnPortalBroken (default = "With the nether portal broken, the corrupted energy is no longer able to enter the overworld."): The message sent when a portal is broken.
prefixPortalCoordsInMessage (default = true): When enabled, shows the portal coordinates in portal messages.
portalSpreadRadius (default = 15, min 1, max 100): The radius around the portal to which the nether blocks can spread.
spreadDelayTicks (default = 40, min 1, max 72000): The delay in ticks in between the spread around the nether portal. 20 ticks = 1 second.
instantConvertAmount (default = 50, min 0, max 1000): The amount of blocks that are instantly converted to a nether block around a portal when it is detected. If there are existing nether blocks within the radius, their count is subtracted from this number.
preventSpreadWithBlock (default = true): When enabled, blocks the spread effect when there are n (defined) prevent-spread-blocks (defined) within the radius.
preventSpreadBlockAmountNeeded (default = 4): The amount of prevent-spread-blocks (defined) needed within the radius of the nether portal to prevent spread.
preventSpreadBlockString (default = "minecraft:coal_block"): The block which prevents the nether portal from spreading. By default a coal block (minecraft:coal_block is the namespace ID).
By default, the mod will send a message to players around the portal when:
A portal is created, and the spread starts:

Portal spread is stopped with the preventspread blocks (defined in config):

The message when a portal is broken:

Configurable spread blocks
You can define which blocks should spread to what and the chance of it happening in the "spreadsettings.txt" file located in "./config/netherportalspread/". By default it contains the following:
stone; [netherrack>10 + magma_block>2 + nether_quartz_ore>1],
grass_block; [netherrack>1],
dirt; [netherrack>1],
sand; [soul_sand>1],
gravel; [soul_sand>1],
stone_bricks; [nether_bricks>2 + red_nether_bricks>1],
sea_lantern; [glowstone>1],
farmland; [soul_sand>1],
wheat; [nether_wart>1]
The mod automatically adds "minecraft:" in front of the name values if it contains no ":" (colon).
The format is: FROMBLOCK; [TOBLOCK>WEIGHT (+ TOBLOCK>WEIGHT + TOBLOCK>WEIGHT) ]
The weight is automatically converted to chance values. This is calculated by: (1/total_weight)*weight.
So the default config file means:
Convert stone into 76.92% netherrack. 15.38% magma blocks and 7.7% quartz ore.
Convert grass blocks into 100% netherrack.
Convert dirt into 100% netherrack.
Convert sand into 100% soul sand.
Convert gravel into 100% soul sand.
Convert stone bricks into 66.67% nether bricks and 33.3% red nether bricks.
Convert sea lanterns into 100% glowstone.
Convert farmland into 100% soul sand.
Convert wheat into 100% netherwart.
Minecraft 1.16 and up has a different default config, using the new blocks:
stone; [netherrack>10 + magma_block>2 + nether_quartz_ore>1],
grass; [nether_sprouts>1],
cobblestone; [blackstone>1],
grass_block; [crimson_nylium>1],
dirt; [netherrack>1],
coarse_dirt; [soul_soil>1],
sand; [soul_sand>1 + soul_soil>1],
red_sand; [soul_soil>1 + soul_sand>1],
sandstone; [blackstone>1],
cut_sandstone; [polished_blackstone>1],
chiseled_sandstone; [chiseled_polished_blackstone>1],
smooth_sandstone; [basalt>1],
smooth_red_sandstone; [basalt>1],
gravel; [soul_soil>1],
stone_bricks; [nether_bricks>2 + red_nether_bricks>1],
sea_lantern; [glowstone>1],
farmland; [soul_sand>1],
wheat; [nether_wart>1],
gold_ore; [nether_gold_ore>1],
fern; [nether_sprouts>1],
oak_leaves; [nether_wart_block>1],
spruce_leaves; [nether_wart_block>1],
birch_leaves; [warped_wart_block>1],
jungle_leaves; [warped_wart_block>1],
acacia_leaves; [nether_wart_block>1],
dark_oak_leaves; [warped_wart_block>1],
oak_log; [crimson_stem>1],
spruce_log; [crimson_stem>1],
birch_log; [warped_stem>1],
jungle_log; [warped_stem>1],
acacia_log; [crimson_stem>1],
dark_oak_log; [warped_stem>1],
You can also spread blocks from other mods:
Example with Soulstone from Mystical Agriculture:


For modded blocks the format is [MODID:Blockname>weight]
The effect in action (with old spread settings):





------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧