How to make an item useable (+ animation)

Started by Ceeser on

Topic category: Help with modding (Java Edition)

Last seen on 15:57, 26. Sep 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item useable (+ animation)

So i wanna create an item called "Bandage" - The name says what it does basically.. and im struggling with creating it.

The complete thing I wanna do: (For first impressions, ignore the animations facts in [ ] brackets.. idk if thats even possible with MCreator):
"If you use the item (right-click, hold for 3 seconds) it plays an animation [moving the bandage down and then wiggling up and down a bit, like applying the bandage].
When it's "done" (or applied, after 3s) you gain a regeneration effect for one minute (or until you're at max health).

My problem: "Triggers: On Player stopped using".. has "time" as dependency - what I want:
When you "finished" using the items (hold right-click) for 3 seconds it gives you the regeneration effect.

How do I access it (the time value) and how do I work with it?

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe make 3 different…
Wed, 02/17/2021 - 22:17

maybe make 3 different banages only the last one healing, and every second you replace it with the next stage?