A single-use item NEED HELP

Started by Shamichto on Sat, 01/11/2020 - 23:15

Topic category: Help with modding (Java Edition)

Last seen on 20:56, 9. Feb 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
A single-use item NEED HELP
Sat, 01/11/2020 - 23:15

Hi everybody, I just need help to do a sinlg_use item, the others topics are from 2-3 years ago ! I want to create a bandage that when you right click in the air (or on a block) one of the stack is use, can't find how to do this.

 

Thx for the help, have a great moding day.

Last seen on 14:57, 26. Sep 2020
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ok first set its max stack…
Sun, 01/12/2020 - 01:16

ok first set its max stack size to 64. then put item usage count to 1.

Last seen on 14:57, 26. Sep 2020
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i meant set to 1 not put to…
Sun, 01/12/2020 - 01:16

i meant set to 1 not put to 1.

 

Last seen on 20:56, 9. Feb 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok after ?
Sun, 01/12/2020 - 01:59

Ok after ?

Last seen on 18:42, 21. Jun 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I would suggest this…
Sun, 01/12/2020 - 13:52

I would suggest this solution because I think it's more easy to understand:

Step 1: Add a "Item right-clicked " procedure

Step 2: Code as follow: https://i.imgur.com/UgEUp9y.jpg (p/s: I would recommend you to add cool down for your item)

Step 3: Done

Its pretty easy and simple, hope this helps! :)

Last seen on 18:42, 21. Jun 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh and replace the iron…
Sun, 01/12/2020 - 13:53

Oh and replace the iron ingot to your custom item