A single-use item NEED HELP

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

Topic category: Help with modding

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

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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.

0Upvote this forum topic
Last seen on 23:27, 18. Feb 2020
Joined Apr 2019
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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.

1Upvote this forum topic
Last seen on 23:27, 18. Feb 2020
Joined Apr 2019
User points:

User statistics:

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

i meant set to 1 not put to 1.

 

1Upvote this forum topic
Last seen on 20:56, 9. Feb 2020
Joined Jan 2020
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
Ok after ?
Sun, 01/12/2020 - 01:59

Ok after ?

0Upvote this forum topic
Last seen on 12:40, 19. Feb 2020
Joined May 2019
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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! :)

0Upvote this forum topic
Last seen on 12:40, 19. Feb 2020
Joined May 2019
User points:

User statistics:

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

Oh and replace the iron ingot to your custom item

0Upvote this forum topic