How can i make an upgrading effect

Started by xiomin on Mon, 09/09/2019 - 17:49

Topic category: Help with MCreator's application

Last seen on 14:08, 14. Sep 2019
Joined Jul 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How can i make an upgrading effect
Mon, 09/09/2019 - 17:49

Hi, i want to know how to make an item that when you eat it 1 time you get like jumpboost 1 and when you eat another the effect becomes jumpboost 2

Last seen on 11:49, 18. Oct 2019
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Create a procedure in event …
Wed, 09/11/2019 - 00:24

Create a procedure in event « When food is eaten. ». After, do this :

If Get NBT Tag (Number + Entity) NAME OF YOUR NBT TAG < 1

Do Set YourNBTTag to Get NBT Tag + 1 AND Give your effect

Else if Get NBT Tag Name Of Your NBT Tag > 0

Do Set NBT tag to Get NBT Tag + 1 AND Give your effect.