Edit Mob Drops

模组

· 作者 Powerthegreat

Edit Mob Drops 是一款易于配置的模组,允许你编辑生物掉落的物品。

0 本站下载 0 关注 更新于 2 年前

最新 1.4.4a · 1.16.5 · Forge

一键开服(送7天)

Edit Mob Drops

Edit Mob Drops 是一款易于配置的模组,允许你编辑生物掉落物,包括向特定生物组添加物品、增加额外物品,甚至清除现有掉落物!

支持所有原版和模组物品,包括 NBT 数据。支持所有生物,包括原版和模组生物。

编辑生物掉落物就像编辑模组的配置文件一样简单:config\editmobdrops\editmobdrops.cfg(适用于 1.7.10 和 1.12.2),或者 config\editmobdrops\editmobdrops.toml(适用于 1.14+)。

示例配置 (1.7.10)

# Configuration file

general {
    # If debug mode is active, the mod will log when items are dropped. It will also print entity IDs (usable in /summon, and in this mod) to console [default: false]
    B:"Debug Mode"=true

    # Items to add, in the form modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:universalChance:[monsterChance]:[bossChance]:[group1Chance]:[group2Chance]...
    # Chances are %
    # NBT File is a json file in the "editmobdrops" folder here in config (leave blank for none) [default: ]
    S:"Items To Add" <
        minecraft:diamond_sword:0:sword:1:1:100
        minecraft:diamond:0::1:1:0:0:0:100
     >

    # Mob groups, in the form [EntityModid]:[EntityName]:[EntityModid]:[EntityName]... [default: ]
    S:"Mob Groups" <
        minecraft:Creeper:minecraft:Witch
     >

    # Mobs to clear existing drops from [default: ]
    S:"Mobs to Clear" <
        minecraft:Skeleton
     >

    # Single mob items, in the form EntityModid:EntityName:modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:chance [default: ]
    S:"Single Mob Items" <
        minecraft:Chicken:minecraft:diamond_pickaxe:0::1:1:100
        minecraft:Chicken:minecraft:diamond_axe:0::1:1:100
     >
}

示例配置 (1.12.2)

# Configuration file

general {
    # If debug mode is active, the mod will log when items are dropped [default: false]
    B:"Debug Mode"=true

    # Items to add, in the form modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:universalChance:[monsterChance]:[bossChance]:[group1Chance]:[group2Chance]...
    # Chances are %
    # NBT File is a json file in the "editmobdrops" folder here in config (leave blank for none) [default: ]
    S:"Items To Add" <
        minecraft:diamond_sword:0:sword:1:1:100
        minecraft:diamond:0::1:1:0:0:0:100
     >

    # Mob groups, in the form [EntityModid]:[EntityName]:[EntityModid]:[EntityName]... [default: ]
    S:"Mob Groups" <
        minecraft:creeper:minecraft:witch
     >

    # Mobs to clear existing drops from [default: ]
    S:"Mobs to Clear" <
        minecraft:skeleton
     >

    # Single mob items, in the form EntityModid:EntityName:modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:chance [default: ]
    S:"Single Mob Items" <
        minecraft:chicken:minecraft:diamond_pickaxe:0::1:1:100
        minecraft:chicken:minecraft:diamond_axe:0::1:1:100
     >
}

示例配置 (1.14+, eg 1.16.5 and latest)

#If debug mode is active, the mod will log when items are dropped
debugMode = true
#Items to add, in the form modid:itemName:[nbtfile]:minStackSize:maxStackSize:universalChance:[monsterChance]:[bossChance]:[group1Chance]:[group2Chance]...
#Chances are %
#NBT File is a json file in the "editmobdrops" folder here in config (leave blank for none)
itemsToAdd = ["minecraft:diamond_sword:sword:1:1:100", "minecraft:diamond::1:1:0:0:0:100"]
#Mob groups, in the form [EntityModid]:[EntityName]:[EntityModid]:[EntityName]...
mobGroups = ["minecraft:creeper:minecraft:witch"]
#Mobs to clear existing drops from
mobsToClear = ["minecraft:skeleton"]
#Single mob items, in the form EntityModid:EntityName:modid:itemName:[nbtfile]:minStackSize:maxStackSize:chance
singleMobItems = ["minecraft:chicken:minecraft:diamond_pickaxe::1:1:100", "minecraft:chicken:minecraft:diamond_axe::1:1:100"]

这些配置在不同版本的 Minecraft 中实现相同的功能。 此配置添加了以一定概率掉落一组 minecraft:diamond_sword 的机会,数量为 1 到 1(即 1 把剑),元数据为 0(普通钻石剑),使用文件 “sword.json” 作为 NBT 数据,对所有生物生效,掉落率为 100%。

“sword.json” 在 1.7.10 中包含以下内容: {display:{Name:"A sword"}}

它在 1.12.2 中包含以下内容: {"display": {"Name": "A sword"}}

在 1.16.5 及最新版本中,它包含以下内容: {"display":{"Name":"[{\"text\":\"A sword\"}]}}

该 NBT 数据赋予剑名称 “A sword”。 .json 文件可以包含任何有效的 JSON 格式的 NBT 数据。如果你不确定语法是否正确,可以使用 /give 命令进行检查。

在剑之后,此配置添加了以一定概率掉落一组 minecraft:diamond 的机会,数量为 1 个元数据为 0 的钻石,不使用 NBT 文件(因为该部分为空)。 钻石对任何生物、怪物、Boss 的掉落率均为 0%,但对第 1 组(在配置下方定义为苦力怕和女巫)的掉落率为 100%。

在配置的下部,骷髅被列为“要清除的生物”。这意味着默认掉落物将被清除,但这发生在额外物品添加之前,因此骷髅仍会掉落一把名为 “A sword” 的钻石剑。

最后,“单一生物物品”部分向单一类型的生物添加物品——在这种情况下,向鸡添加一把钻石镐(元数据 0,无 NBT),掉落率为 100%,同理也添加了一把钻石斧。

在 1.7.10 中,可以通过开启调试模式来查找实体名称。 1.12.2 之后,元数据被完全移除,因此 1.14+ 版本的配置文件不再包含元数据字段。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源