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

Started by StrawS on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item give a potion effect when in hand?

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.

Joined Jan 2018
Points:

User statistics:

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

Joined Jan 2017
Points:

User statistics:

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

Joined Jan 2018
Points:

User statistics:

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

Try setting it to 1 second instead of 200.

Joined Jan 2017
Points:

User statistics:

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

Joined Jan 2018
Points:

User statistics:

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

Joined Aug 2020
Points:

User statistics:

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