HUPacks: Suit - Heroes-United/HeroesUnited GitHub Wiki

Suits are the most useful thing in hupacks.

In order to create your suit you must go to the folder data/yourpackname/husuits, and in this folder u should create json file.

In your json file, you should write this:

{
	"type": "heroesunited:default"
}

This sets the type of your costume to the usual one, and type of suit can be changed to the one that adds the mod, for example, the generator rex adds hugeneratorrex:white_knight, and with the help of this type, new json settings are added for this suit. If you want a custom model for your suit use heroesunited:gecko, and put in assets/<name_of_addon>/geo/ your generated model (with name <name_of_suit>.geo.json)

Then you can choose the material of your suit (iron by default):

{
	"type": "heroesunited:default",
	"armor_material": "diamond" //chain, netherite, turtle and etc.
}

For your own armor material u can write this:

	"armor_material": {
		"max_damage_factor": 33,
		"damage_reduction": [3, 7, 8, 3], //For helmet, chestplate, leggings, boots
		"enchantibility": 15,
		"equip_sound": "minecraft:item.armor.equip_elytra", //Sound when u equip using RCM
		"toughness": 0,
		"knockback_resistance": 0,
		"repair_item": "minecraft:iron_block", //Put any Item
		"name": "name" //Not needed, but why not
	}

Then you can choose how your armor will be called, and how many armor items will be:

	"slots": {
		"head": "helmet",
		"chest": "chestplate",
		"legs": "leggings",
		"feet": "boots"
	}

Well, if you want to hide some part of the player's model, , write:

	"visibility_parts": {
		"head": false,
		"body": false,
		"right_arm": false,
		"left_arm": false,
		"right_leg": false,
		"left_leg": false,
		"head_wear": false,
		"body_wear": false,
		"right_arm_wear": false,
		"left_arm_wear": false,
		"right_leg_wear": false,
		"left_leg_wear": false
	}

You can also add a body part to hide if you wear a specific part of your suit like boots or the like.

		"head": {
			"show": false,
			"slot": "feet" 
		}

And some options that u can use in Suits: "equip": true <- can player equip suit or not

"itemGroup": "combat" <- itemgroup for this armor

"scale": 0.1 <- Scale of armor

"combine": true <- Can armor be combined with abilities