Started by
ShadowPlayer51
on
Topic category: Help with MCreator software
This is the code I've been using to restore 1 durability every 6 seconds on entity tick update. The particles and reset work, but no matter what I do, it will not decrease the damage the item has taken. I've even tried just setting the damage of the item in slot 0 of the entity's inventory but it won't update.
The mob has a single slot inventory that the player cannot take the item out of. Everything else works fine with the item being put in.
Edited by ShadowPlayer51 on Fri, 07/23/2021 - 05:08
In each time for the loop is active you have a copy of the item in your local variable, but I think you need to replace the item in the corresponding slot.
I copy your Code and I tried the solution I explained above, and this works.
Try the same, bro.
I tired out your solution and it works now, thank you so much!