NinjaBunny1 / More-Enchantments

GitHub page for my mod "More Enchantments"
0 stars 0 forks source link

Reparation #4

Closed Enrico9431 closed 1 year ago

Enrico9431 commented 2 years ago

How exactly does it work, like how often and how much does it repair and also does it work outside a player's inventory?

NinjaBunny1 commented 1 year ago

On any player tick (20 times a second) there is a procedure being called. This procedure has a 1% Chance of repairing all items with the entchantemnt in both hands and all armor slots by one. It doesn't work with items in any other slot may it be in the players inventory or in that of an entity or block. Ideally it would, but I decided against that for sake of simplicity and performance.