New enchantment 1.21 that makes end mobs recieve more damage
Im trying to make a datapack that adds an enchantment that works like smite but with end mobs, how can I make my enchantment only work on an specific type of mobs
Here is all the code i got:
{
"description": "Ender Slayer",
"supported_items": "#minecraft:swords",
"slots": ["mainhand"],
"weight": 1,
"anvil_cost": 0,
"min_cost": {
"base": 1,
"per_level_above_first": 0
},
"max_cost": {
"base": 10,
"per_level_above_first": 0
},
"max_level": 5,
"effects": {
"minecraft:damage": [{
"effect": {
"type": "minecraft:add",
"value": {
"type": "linear",
"base": 2,
"per_level_above_first": 2
}
}
}]
} }
Continue to help post} }