How to make an item give a potion effect when in hand?

Started by StrawS on Fri, 06/08/2018 - 09:36

Topic category: Help with modding (Java Edition)

Last seen on 21:41, 4. Jun 2020
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make an item give a potion effect when in hand?
Fri, 06/08/2018 - 09:36

I want to make an item, where if you're holding it, it will give you a permanent potion effect until you switch to a different item. Please help me.

Last seen on 00:14, 4. Oct 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
 Go to the 'when item in use…
Fri, 06/08/2018 - 20:35

 Go to the 'when item in use tick' event, find the 'add potion effect' and pick your potion effect. That's pretty much it (I've done it before).

Last seen on 21:41, 4. Jun 2020
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Doesn't work. Is there…
Sat, 06/09/2018 - 15:41

Doesn't work. Is there something i'm missing? I made a procedure that just says "add potion with level etc" and I made it 200 seconds, then I made a test item, and under "when item in use tick" I put the procedure. I go in game, i hold the item and I don't get any potion effect. Can you send an mcr file if it worked for you?

Last seen on 00:14, 4. Oct 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Try setting it to 1 second…
Sat, 06/09/2018 - 16:27

Try setting it to 1 second instead of 200.

Last seen on 21:41, 4. Jun 2020
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Still did not work, I assume…
Sat, 06/09/2018 - 17:34

Still did not work, I assume theres something wrong with the when item in use tick

Last seen on 00:14, 4. Oct 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
 I actually have the same…
Sat, 06/09/2018 - 21:46

 I actually have the same problem too, I think it is because of the new version of Mcreator

Last seen on 13:27, 19. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Where is the 'add potion…
Mon, 08/03/2020 - 02:13

Where is the 'add potion effect' procedure? I can't find it.

Last seen on 13:27, 19. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nevermind
Thu, 08/06/2020 - 18:13

Nevermind