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

Started by StrawS on

Topic category: Help with modding (Java Edition)

Last seen on 21:41, 4. Jun 2020
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.

Last seen on 13:25, 19. Sep 2023
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).

Last seen on 21:41, 4. Jun 2020
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?

Last seen on 13:25, 19. Sep 2023
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.

Last seen on 21:41, 4. Jun 2020
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

Last seen on 13:25, 19. Sep 2023
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

Last seen on 16:55, 21. Nov 2023
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.

Last seen on 16:55, 21. Nov 2023
Joined Aug 2020
Points:

User statistics:

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

Nevermind