Procedure for Washing machine that repairs armor

Started by MDK on

Topic category: Help with modding (Java Edition)

Last seen on 12:11, 28. Jul 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure for Washing machine that repairs armor
Fri, 07/14/2023 - 17:25 (edited)

Picture

 

Hi, i have a problem. Im trying to make a Washing Machine, that repairs armor. But i cant make it so that it repairs any piece of armor. I have to do the armor pieces Manually which would take forever. Is there a way for the procedure to recognize any type of armor and repair it/put the exact armor in slot 2 which i put in slot 0? (also in the picture you see soap which is just a feature i added)

 

Edited by MDK on Fri, 07/14/2023 - 17:25
Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just check if its in the…
Fri, 07/14/2023 - 17:35

just check if its in the armor tag, and if so just deal -1 damage if damage != 0