How to make item/tool that get dmg over time

Started by Szokalek on Fri, 12/18/2020 - 17:05

Topic category: Help with MCreator software

Last seen on 19:32, 18. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make item/tool that get dmg over time
Fri, 12/18/2020 - 17:05

How to make item/tool that get dmg over time, and after it breaks it changes to other item (for example discharged sword)

Last seen on 23:56, 6. Feb 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Maybe in the item tick…
Fri, 12/18/2020 - 17:23

Maybe in the item tick trigger of your item you can check to see what your items damage is and once it's down to like 10 or something low you can then remove it and replace it with another item.

You'd need the procedure blocks:

get damage of provide itemstack

remove <#> <item> from <player> inventory

add <#> <item> from <player> inventory

 

I don't think there's a way to call a procedure once an item breaks though.

Last seen on 09:30, 6. Mar 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
to test for an item that…
Fri, 01/08/2021 - 22:41

to test for an item that breaks, make it test if it has 1 durability (max damage - 1) and if so, damage the item AND give you the new item