# 导包
import mods.armoreablemobs.ArmorHandler;
import mods.armoreablemobs.ArmorEntity;
import mods.armoreablemobs.ArmorSlot;
import mods.armoreablemobs.ArmorGroup;
var group = ArmorHandler.createArmorGroup("IronZombie", 0.05); // 自定义怪物和刷出率
var entity = ArmorHandler.createArmorEntity("minecraft:zombie").withNBTCheck("Health", 10.0, "GREATER");
// "Health", 10.0 (血量?,没测试也不知对不对)
// 模型:可选 ["LESS", "EQUAL", "GREATER", "CONTAINS", "TAG_EXISTS", "TAG_MISSING"]
group.addEntity(entity);
group.addArmor(ArmorHandler.createArmorSlot("head", <minecraft:iron_helmet>, 1, 0.1));
// 部位 , 装备 , 权重 , 掉落率
group.addArmor(ArmorHandler.createArmorSlot("chest", <minecraft:iron_chestplate>, 1, 0.1));
group.addArmor(ArmorHandler.createArmorSlot("legs", <minecraft:iron_leggings>, 1, 0.1));
group.addArmor(ArmorHandler.createArmorSlot("feet", <minecraft:iron_boots>, 1, 0.1));
group.addArmor(ArmorHandler.createArmorSlot("mainhand",<minecraft:iron_sword>, 1, 0.1));
group.addGameStage("testStage");
//添加游戏阶段
Copyright © 2018-2023 PHP源码网 版权所有
PHP源码网 »
我的世界怪物装备自定义脚本添加