Started by
HazyDaze93
on
Topic category: Help with MCreator software
I tried this in a different spot with no luck so maybe I will try here, I’m trying to add a percentage to my tools and weapons that give it the random chance to break even without running out of durability, I’m not looking to make it common, I’m looking to make it a low percentage so not to deter the player from mining the ores to create it, but to be more wary that every hit you take or every swing you make with you tools could be your last, I see it better in my head.
I will eventually add an enchantment that gets rid of the breaking chance, but for now I’m still learning everything and not sure what to search for to find the answers.
Thanks guys!
Probably for a weapon, use entity attacked global trigger and replace all references of event/target entity with sourceentity.
For a tool use on blocks broken global trigger
if item in main hand of event/target entity = your tool
do, if random number between 0 and 100 > chance to break(probably set this to something like 0.2)
do, deal 99999 damage to item main hand in event/target entity
This is made by swapping out parts of procedure blocks and changing some numbers, also remember that for using a weapon, you need to change the global trigger and swap event/target entity for soureentity.