Infection Immunity Wearables 1.5.0 - SmileycorpMC/The-Hordes GitHub Wiki

New to 1.5.0 is the Infection Immunity Wearables List, this list replaces the infection_immune_wearables tag from previous versions.

When an entity tries to infect another entity there is a configured infection chance.

The infection chance is multiplied one by one by the multiplier of each piece of equipped armour the entity is wearing to get the final value which is used for determining whether the entity gets infected.

For example using default values, a player in iron armour would have their infection chance multiplied by 0.9 for each piece of armour they are wearing.

For one piece of iron armour their infection chance drops from 0.75 (75%) to 0.675 (67.5%). For wearing more armour it then multiplies again dropping to 0.6075, 0.54675 then 0.492075 for two, three and four pieces respectively.

Immunity wearables are configured via datapack, and have two properties item this is the registry name of the item you wish to give give protection from infection, and multiplier, this is the percentage it reduces the infection chance by.

The default file can be found at data/<identifier>/horde_data/immune_wearables.json in your datapack.

Below are the settings for the default datapack:

Default Immunity Items
[
	{
		"item": "minecraft:leather_boots",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:leather_leggings",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:leather_chestplate",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:leather_helmet",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:chainmail_boots",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:chainmail_leggings",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:chainmail_chestplate",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:chainmail_helmet",
		"multiplier": 0.95
	},
	{
		"item": "minecraft:iron_boots",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:iron_leggings",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:iron_chestplate",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:iron_helmet",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:golden_boots",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:golden_leggings",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:golden_chestplate",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:golden_helmet",
		"multiplier": 0.9
	},
	{
		"item": "minecraft:diamond_boots",
		"multiplier": 0.86
	},
	{
		"item": "minecraft:diamond_leggings",
		"multiplier": 0.86
	},
	{
		"item": "minecraft:diamond_chestplate",
		"multiplier": 0.86
	},
	{
		"item": "minecraft:diamond_helmet",
		"multiplier": 0.86
	},
	{
		"item": "minecraft:netherite_boots",
		"multiplier": 0.82
	},
	{
		"item": "minecraft:netherite_leggings",
		"multiplier": 0.82
	},
	{
		"item": "minecraft:netherite_chestplate",
		"multiplier": 0.82
	},
	{
		"item": "minecraft:netherite_helmet",
		"multiplier": 0.82
	},
	{
		"item": "minecraft:turtle_helmet",
		"multiplier": 0.75
	}
]
⚠️ **GitHub.com Fallback** ⚠️