Procedure for Washing machine that repairs armor

Started by MDK on

Topic category: Help with Minecraft modding (Java Edition)

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
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