How to make an itemthat can be damaged when you do a specific thing with it?

Started by FireWorks_CreepeR on Sun, 12/23/2018 - 11:53

Topic category: Help with MCreator software

Last seen on 11:58, 19. Oct 2020
Joined Jun 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make an itemthat can be damaged when you do a specific thing with it?
Sun, 12/23/2018 - 11:53

I want to make some "tools" but not to break anything... For example when I right click on a block, get an item from this block and after right click on 64 blocks (for example) the item breaks! How can I do it?

Last seen on 01:04, 20. Oct 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could make a regular…
Sun, 07/19/2020 - 17:30

You could make a regular item, and set it's duribility (Item Damage Count) to what you want. Then, make a procedure for the "When Item Right Clicked on Block." Then, make a procedure using the "player right clicks on block" trigger. Make it so that it is only when you right click with that item, using an "if" block. Then, make the outcome be "spawn gem" (in this case, spawn your item you want) and also put a "Deal 1 damage to [provided itemstack]" block underneath the spawn gem block. 

That... at least works for me.