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

Started by FireWorks_CreepeR on

Topic category: Help with MCreator software

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an itemthat can be damaged when you do a specific thing with it?

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?

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.