A single-use item NEED HELP

Started by Shamichto on

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A single-use item NEED HELP

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:18, 16. Apr 2024
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:18, 16. Apr 2024
Joined Apr 2019
Points:

User statistics:

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

User statistics:

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

Ok after ?

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

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

Oh and replace the iron ingot to your custom item