ArmoreableMobs Mod – 1.18.2, 1.16.5 – Give Armor and Items to Mobs

Author: FixEye
0
160
armoreablemobs mod 1 18 2 1 16 5 give armor and items to mobs

ArmoreableMobs Mod (1.18.2, 1.1.5) allows you to give armor or items to an entity that spawns with Craftweaker. Craftweaker supports game stages!

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:

armoreablemobs mod 1 18 2 1 16 5 image 1
armoreablemobs mod 1 18 2 1 16 5 image 2
armoreablemobs mod 1 18 2 1 16 5 image 3
armoreablemobs mod 1 18 2 1 16 5 image 4
armoreablemobs mod 1 18 2 1 16 5 image 5
armoreablemobs mod 1 18 2 1 16 5 image 6
armoreablemobs mod 1 18 2 1 16 5 image 7
armoreablemobs mod 1 18 2 1 16 5 image 8
armoreablemobs mod 1 18 2 1 16 5 image 9
armoreablemobs mod 1 18 2 1 16 5 image 10
armoreablemobs mod 1 18 2 1 16 5 image 11

Requires:

( Rating: 00 votes)

Comments

Your email address will not be published. Required fields are marked *

  • There are no comments yet. But yours could become the first one!