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

Started by StrawS on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Jan 2017
Points:
741

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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.

Active 6 months ago
Joined Jan 2018
Points:
772

User statistics:

  • Modifications: 4
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 47
 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).

Active 5 years ago
Joined Jan 2017
Points:
741

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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?

Active 6 months ago
Joined Jan 2018
Points:
772

User statistics:

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

Try setting it to 1 second instead of 200.

Active 5 years ago
Joined Jan 2017
Points:
741

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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

Active 6 months ago
Joined Jan 2018
Points:
772

User statistics:

  • Modifications: 4
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 47
 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

Active 10 months ago
Joined Aug 2020
Points:
719

User statistics:

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

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

Active 10 months ago
Joined Aug 2020
Points:
719

User statistics:

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

Nevermind