此模组允许你让任意你喜欢的生物破坏任意你喜欢的方块。
该模组的工作原理是允许玩家通过前置 ID 来配置特定的生物。例如,如果你想使用原版生物,你可以输入 "minecraft:zombie"。你还可以配置它们能够破坏的方块,以及启用或禁用掉落物。
默认配置与说明如下
剧透
["General Settings"]
#启用或完全禁用此模组。
enabled = true
#当实体破坏方块时,是否掉落物品?(true/false)
dropItems = true
#可以破坏方块的实体列表(例如 'minecraft:zombie')
allowedEntities = ["minecraft:zombie", "minecraft:skeleton"]
#可以被破坏的方块列表(例如 'minecraft:oak_log')
allowedBlocks = ["minecraft:oak_log", "minecraft:oak_leaves"]
#如果为 true,生物在路径中将忽略 ALLOWED_BLOCKS 列表中的方块并尝试穿过它们。如果为 false,生物将尝试绕开这些方块行走。
pathingOverrideEnabled = true
默认情况下,生物会尝试强行穿过它们能够破坏的方块,而不是寻找绕行路线。若要更改此行为,可以将 "pathingOverrideEnabled" 改为 false。
如果你担心物品掉落的性能问题,可以通过将 "dropItems" 改为 false 来禁用掉落。(注:原文此处描述有误,根据代码注释 dropItems = true 表示开启掉落,故改为 false 以禁用)。
如果你想更改使用的生物,可以替换并添加更多生物。
例如,假设你想让村民能够拆毁他们的门,你可以在 allowedEntities 部分添加 "minecraft:villager",并在 allowedBlocks 部分添加 "minecraft:oak_door"(或其他类型的门,具体取决于村庄类型)。
本模组专为我的整合包制作,该整合包即将发布。
你可以将其用于任何整合包中,无需署名。
This mod lets you allow any mob you'd like to break any block you'd like.
The way this mod works is by allowing the player to configure a mob with an ID preceding it, as an example, if you wanted to use a vanilla mob you would put "minecraft:zombie", you can also configure the blocks they are capable of breaking, alongside enabling or disabling drops.
Default Config & Explanation Below
Spoiler
["General Settings"]
#Enable or disable the mod entirely.
enabled = true
#Should blocks drop items when broken by entities? (true/false)
dropItems = true
#List of Entities that can break blocks (e.g., 'minecraft:zombie')
allowedEntities = ["minecraft:zombie", "minecraft:skeleton"]
#List of Blocks that can be broken (e.g., 'minecraft:oak_log')
allowedBlocks = ["minecraft:oak_log", "minecraft:oak_leaves"]
#If true, mobs will ignore blocks on the ALLOWED_BLOCKS list in their path and attempt to walk through them. If false, mobs will try to path around the blocks.
pathingOverrideEnabled = true
By default the mobs will try to force their way through blocks they are capable of breaking, instead of finding their way around. To change this, you can change "pathingOverrideEnabled" to false.
If you have performance concerns regarding items, you can disable their dropping by changing "dropItems" to true.
If you want to change the mob, you can replace & add more mobs.
For example, say you want to make it so villagers can break down their doors, you would add "minecraft:villager" in the allowedEntities section, and add "minecraft:oak_door" (or any other type of door, depending on the village) in the allowedBlocks section.
Made for use with my modpack, which will be releasing soon.
You're allowed to use it in any modpack, no credit needed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧