Download ArmoreableMobs — Minecraft Mods — MetaMods

ArmoreableMobs

Active

Downloads

21

Last update

1 year ago
Client
Weapons and armor

ArmoreableMobs

Customizing Creature Equipment with CraftTweaker

The ArmoreableMobs mod opens up endless possibilities for Minecraft customization, allowing you to assign any items to various creatures when they spawn in the world. Thanks to integration with CraftTweaker, you gain complete control over what mobs wear.

Support for Additional Systems

The mod is compatible with popular GameStages and PackMode systems (in relevant versions), enabling you to create complex equipment distribution scenarios based on player progress or pack settings.

Usage in Versions 1.18-1.19

This version of the mod is built on the MultiLoader template. Versions without special forge or fabric labels in their names are intended for Forge by default.

Complete documentation for version 1.18 is available at: https://docs.blamejared.com/1.18/en/mods/armoreablemobs/ArmorGroup

Documentation for version 1.19 can be found here: https://docs.blamejared.com/1.19/en/mods/ArmoreableMobs/ArmorGroup

Working with Version 1.16

The syntax for version 1.16 can be found on the CraftTweaker documentation page: https://docs.blamejared.com/1.16/en/mods/ArmoreableMobs/ArmoreableMobs

Usage Example for Version 1.12

To work with the mod, you need CraftTweaker and script writing. Start by importing the necessary modules:

import mods.armoreablemobs.ArmorHandler;
import mods.armoreablemobs.ArmorEntity;
import mods.armoreablemobs.ArmorSlot;
import mods.armoreablemobs.ArmorGroup;

Creating Equipment Groups

Create an ArmorGroup using the command: var group = ArmorHandler.createArmorGroup("draconic", 0.5);. Group parameters: (String name, double chanceToGetUsed). You can add any number of ArmorEntity to the group using group.addEntity(entity); and any number of ArmorSlot via group.addArmor(armorSlot);.

Configuring Item Slots

ArmorSlot defines an item in a specific slot and is created with the command: ArmorHandler.createArmorSlot("head", <draconicevolution:draconic_helm>.withTag({Energy: 16000000}), 1, 0.5). Available parameters: (String slotName, IItemStack stack, int itemWeight, double chanceToDropOnDeath). Possible slots: ["head", "chest", "legs", "feet", "feet", "mainhand", "offhand"]. You can add multiple ArmorSlots for one slot - selection will be random depending on the itemWeight value (the higher the number, the greater the chance). The chanceToDropOnDeath parameter determines the probability of the item dropping upon death (from 0 to 1).

Setting Conditions for Creatures

ArmorEntity defines conditions that a creature must meet to receive items. Created with the command: var entity = ArmorHandler.createArmorEntity("minecraft:zombie");, where the argument is the creature ID. You can add NBT checks for filtering: entity.withNBTCheck("Health", 10.0, "GREATER"); with parameters (String nbtId, Object value, String checkingMode). Available checking modes: ["LESS", "EQUAL", "GREATER", "CONTAINS", "TAG_EXISTS", "TAG_MISSING"].

GameStages Integration

The mod supports GameStages for groups via the command group.addGameStage("testStage");. To activate a group, nearby players must have all specified stages.

PackMode Support

Adding a pack mode to an ArmorGroup allows filtering groups without restarting the game: group.setPackMode("packMode");

Project members
Witixin

Witixin

buuz135

buuz135

Created: 9 Aug 2024

ID: 51515