ArmoreableMobs Mod (1.19.2, 1.18.2) – Give Armor and Items to Mobs
ArmoreableMobs Mod (1.19.2, 1.18.2) allows you to give armor and items to an entity when it spawns using Craftweaker with game stages support!
How to use:
You need CraftTweaker to use the mod and use it with a script. First of all import:
import mods.armoreablemobs.ArmorHandler;
import mods.armoreablemobs.ArmorEntity;
import mods.armoreablemobs.ArmorSlot;
import mods.armoreablemobs.ArmorGroup;
ArmorGroup
After that create an ArmorGroup with:var group = ArmorHandler.createArmorGroup("draconic", 0.5);
. The group arguments are: (String name, double chanceToGetUsed)
To an ArmorGroup you can add any amount of ArmorEntity you want with group.addEntity(entity);
To an ArmorGroup you can add any amount of ArmorSlot you want with group.addArmor(armorSlot);
ArmorSlot
An ArmorSlot defines an item in a slot and can be created with ArmorHandler.createArmorSlot("head", <draconicevolution:draconic_helm>.withTag({Energy: 16000000}), 1, 0.5)
. The arguments are: (String slotName, IItemStack stack, int itemWeight, double chanceToDropOnDeath)
The possible slots are: ["head", "chest", "legs", "feet", "feet", "mainhand", "offhand"]
. You can add multiple ArmorSlots to each slot and it will randomly be choosen depending on the itemWeight
, the bigger the number the bigger the chance. chanceToDropOnDeath
is a number between 0 and 1 that defines the chance that the item has to drop on death.
ArmorEntity
An ArmorEntity defines information that an Entity needs to have to be given in the items defined with ArmorSlots. It can be created with var entity = ArmorHandler.createArmorEntity("minecraft:zombie");
where the argument is the Entity ID. You can add NBT checks to filter the entity with entity.withNBTCheck("Health", 10.0, "GREATER");
with arguments (String nbtId, Object value, String checkingMode)
, The checking modes can be ["LESS", "EQUAL", "GREATER", "CONTAINS", "TAG_EXISTS", "TAG_MISSING"]
.
GameStages Support
This mod provides GameStages to groups with group.addGameStage("testStage");
. Nearby players need to have all the stages added to the group to be able to get used.
PackMode Support
Adding a pack mode to an ArmorGroup it will allow you to filter groups without the need of restarting the game. group.setPackMode("packMode");
Full Example
import mods.armoreablemobs.ArmorHandler;
import mods.armoreablemobs.ArmorEntity;
import mods.armoreablemobs.ArmorSlot;
import mods.armoreablemobs.ArmorGroup;
var group = ArmorHandler.createArmorGroup("draconic", 0.5);
var entity = ArmorHandler.createArmorEntity("minecraft:zombie").withNBTCheck("Health", 10.0, "GREATER");
group.addEntity(entity);
group.addArmor(ArmorHandler.createArmorSlot("head", <draconicevolution:draconic_helm>.withTag({Energy: 16000000}), 1, 0.5));
group.addArmor(ArmorHandler.createArmorSlot("chest", <draconicevolution:draconic_chest>.withTag({Energy: 16000000}), 1, 0.5));
group.addArmor(ArmorHandler.createArmorSlot("legs", <draconicevolution:draconic_legs>.withTag({Energy: 16000000}), 1, 0.5));
group.addArmor(ArmorHandler.createArmorSlot("feet", <draconicevolution:draconic_boots>.withTag({Energy: 16000000}), 1, 0.5));
group.addArmor(ArmorHandler.createArmorSlot("mainhand", <draconicevolution:draconic_sword>.withTag({Energy: 16000000}), 1, 0.5));
group.addGameStage("testStage");
Screenshots:
Requires:
How to install:
How To Download & Install Mods with Minecraft Forge
How To Download & Install Fabric Mods
Don’t miss out today’s latest Minecraft Mods
ArmoreableMobs Mod (1.19.2, 1.18.2) Download Links
For Minecraft 1.12.2
Forge version: Download from Server 1
For Minecraft 1.16.5
Forge version: Download from Server 1
For Minecraft 1.18.2
Forge version: Download from Server 1
Fabric version: Download from Server 1
For Minecraft 1.19.2
Forge version: Download from Server 1
Fabric version: Download from Server 1