= 创作分享 =
你问我答
佬们,如何禁用僵尸穿特定护甲
三星肉人

佬们,如何禁用僵尸穿特定护甲

三星肉人 于 2024-5-5 15:31 ( 14天前 ) [复制链接] [只看楼主] [打印]
316 8
5RF

发表于 2024-5-5 15:31:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

回复 | 举报

该帖共收到 8 条回复!
狗驴的蹄子
试试armoreablemobs
发表于 2024-5-5 16:38:32 | 只看该作者

回复 | 举报

三星肉人

怎么弄啊,Wiki没看懂
发表于 2024-5-5 21:41:24 | 只看该作者

回复 | 举报

狗驴的蹄子
import mods.armoreablemobs.ArmorEntity;
import mods.armoreablemobs.ArmorSlot;
import mods.armoreablemobs.ArmorGroup;
var group = ArmorHandler.createArmorGroup("crash", 1.0);
var zs as string[]= ["minecraft:zombie","minecraft:skeleton","minecraft:husk","cyberware:cyberzombie"];
for mobs in zs {
    var v_mobs = ArmorHandler.createArmorEntity(mobs);
    group.addEntity(v_mobs);
var zsgw_head as IItemStack[] = [
<derelict:hunter_armorhelmet>,
<hbm:nossy_hat>,
<hbm:mask_of_infamy>
];
for vhead in zsgw_head {
    var v_head = ArmorHandler.createArmorSlot("head", vhead, 1, 0);
    group.addArmor(v_head);
}
}
发表于 2024-5-5 22:48:42 | 只看该作者

回复 | 举报

狗驴的蹄子
1417009211 发表于 2024-5-5 21:41
怎么弄啊,Wiki没看懂

例子解析,僵尸、尸壳、骷髅、赛博格僵尸头部装备nossy_hat、mask_of_infamy、hunter_armorhelmet的概率为100%,你可以试试把装备换成想BAN的,把概率改成0
发表于 2024-5-5 22:52:02 | 只看该作者

回复 | 举报

三星肉人
为啥会报错啊?我的版本是1.18.2
发表于 2024-5-6 11:53:24 | 只看该作者

回复 | 举报

三星肉人
QQ酱418908 发表于 2024-5-5 22:52
例子解析,僵尸、尸壳、骷髅、赛博格僵尸头部装备nossy_hat、mask_of_infamy、hunter_armorhelmet的概率 ...

为啥会报错啊?我的版本是1.18.2
发表于 2024-5-6 11:55:28 | 只看该作者

回复 | 举报

狗驴的蹄子
1417009211 发表于 2024-5-6 11:55
为啥会报错啊?我的版本是1.18.2

我这1.12.2的,当个参考,1.18.2当然不能照抄
发表于 2024-5-6 17:31:44 | 只看该作者

回复 | 举报

bluelaser
你可以试试怪物增强,有1.18.2版本,config\improvedmobs\文件夹下有个main.cfg
里面有个
equipment{
……

找到
S:"Item Blacklist" <
>
可以按MOD ID来添加你要禁用的MOD装备
同文件夹里还会生成一个equipment.json
里面是
{
  "MAINHAND": {
    "avaritia:infinity_axe": 0,
    "avaritia:infinity_sword": 0,
    "avaritia:skullfire_sword": 0,
    "bloodmagic:sentient_axe": 856,
    "bloodmagic:sentient_bow": 850,
    "bloodmagic:sentient_sword": 676,
    "botania:crystalbow": 0,
    "botania:elementiumaxe": 0,
    "botania:elementiumsword": 0,
    "cyclicmagic:crystal_axe": 676,
    "cyclicmagic:crystal_sword": 744,
    "minecraft:bow": 850,
    "minecraft:diamond_axe": 600,
    "minecraft:diamond_sword": 831,
    "minecraft:enchanted_book": 800,
    "minecraft:golden_axe": 676,
    "minecraft:golden_sword": 900,
    "minecraft:iron_axe": 600,
    "minecraft:iron_sword": 856,
    "minecraft:lingering_potion": 750,
    "minecraft:snowball": 900,
    "minecraft:splash_potion{Potion:\"minecraft:harming\"}": 750,
    "minecraft:stone_axe": 600,
    "minecraft:stone_sword": 879,
    "minecraft:tnt": 600,
    "minecraft:wooden_axe": 676,
    "minecraft:wooden_sword": 900,
  },
  "OFFHAND": {
    "mets:electric_shield": 0,
    "minecraft:ender_pearl": 600,
    "minecraft:flint_and_steel": 700,
    "minecraft:lava_bucket": 400,
    "minecraft:shield": 850,
  },
  "FEET": {
    "avaritia:infinity_boots": 0,
    "bloodmagic:living_armour_boots": 839,
    "bloodmagic:sentient_armour_boots": 839,
    "botania:elementiumboots": 737,
    "botania:manasteelboots": 758,
    "botania:manaweaveboots": 908,
    "botania:terrasteelboots": 538,
    "conarm:boots": 0,
    "cyclicmagic:emerald_boots": 223,
    "cyclicmagic:purple_boots": 197,
    "draconicevolution:draconic_boots": 0,
    "draconicevolution:wyvern_boots": 0,
  },
  "LEGS": {
    "avaritia:infinity_pants": 0,
    "bloodmagic:living_armour_leggings": 839,
    "bloodmagic:sentient_armour_leggings": 839,
    "botania:elementiumlegs": 737,
    "botania:manasteellegs": 758,
    "botania:manaweavelegs": 908,
    "botania:terrasteellegs": 538,
    "conarm:leggings": 0,
    "cyclicmagic:emerald_leggings": 223,
    "cyclicmagic:purple_leggings": 197,
    "draconicevolution:draconic_legs": 0,
    "draconicevolution:wyvern_legs": 0,
  },
  "CHEST": {
    "astralsorcery:itemcape": 664,
    "avaritia:infinity_chestplate": 0,
    "bloodmagic:living_armour_chest": 839,
    "bloodmagic:pack_sacrifice": 844,
    "bloodmagic:pack_self_sacrifice": 844,
    "bloodmagic:sentient_armour_chest": 839,
    "botania:elementiumchest": 737,
    "botania:manasteelchest": 758,
    "botania:manaweavechest": 908,
    "botania:terrasteelchest": 538,
    "conarm:chestplate": 0,
    "cyclicmagic:emerald_chestplate": 223,
    "cyclicmagic:purple_chestplate": 197,
  },
  "HEAD": {
    "avaritia:infinity_helmet": 0,
    "bloodmagic:living_armour_helmet": 839,
    "bloodmagic:sentient_armour_helmet": 839,
    "botania:elementiumhelm": 737,
    "botania:elementiumhelmreveal": 737,
    "botania:manasteelhelm": 758,
    "botania:manasteelhelmreveal": 758,
    "botania:manaweavehelm": 908,
    "botania:terrasteelhelm": 538,
    "botania:terrasteelhelmreveal": 538,
    "conarm:helmet": 0,
    "cyclicmagic:emerald_helmet": 223,
    "cyclicmagic:glowing_helmet": 777,
    "cyclicmagic:purple_helmet": 197,
    "draconicevolution:draconic_helm": 0,
    "draconicevolution:wyvern_helm": 0,
  }
}
这样的类似格式,是游戏自动扫出来的你的所有原版+MOD的装备,你不要直接删,把后面的数字权重改为0,怪物就不会装备了。
发表于 7 天前 | 只看该作者

回复 | 举报

百科目前不允许匿名发帖哦~ 请先 [ 登陆 ][ 注册 ] 吧~

本版积分规则

发新帖
  • 回复
  • 点评
  • 评分

[ MC百科(mcmod.cn) 除另有声明,所有开放公共编辑的内容均使用 BY-NC-SA 3.0 协议 ]

Minecraft百科CC协议
快速回复 返回顶部 返回列表