Started by
Shminecrafter
on
Topic category: Help with modding (Java Edition)
So in my mod I want to make some enchantments, but can’t figure out how. These are some of the ones I want:
Smithing- Edits loot tables for specific blocks when broken with a tool that has this enchantment (Ex. Breaking Iron Ore gives you an Iron Ingot instead)
Bludgeoning- Sharpness, but for hammers.
Cleaving- Zombies, Skeletons, Creepers, and Players have a 2.5% per level of dropping their head when killed. Wither Skeletons have an additional 2.5% per level. Players will drop a head based on their skin. (/give @p minecraft:player_head{SkullOwner:PlayerNameHere} ) Looting increases chance by 1% for every level
Lightweight- Increases attack speed by 25% per level
you need to make a enchant then make a procedure to check for enchantment on the held item and can call on procedure on as example on block break for smithing