Giving A Certain Potion Effect While Holding a specific item

Started by congueror on

Topic category: Advanced modding

Last seen on 12:37, 17. Nov 2019
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Giving A Certain Potion Effect While Holding a specific item

So I am trying to make a mod like everyone here right? So I have a question.

How can I make it so when I hold a specific item it gives the player a potion effect. The Item is a custom tool (Sword to be exact). I am using MCreator 1.8.1 So i can only use procedures. Please if possible don't give me Custom Coding as the last time I tried doing that it broke my whole mod, So yea. Thanks in Advance to everyone who helps me

Last seen on 03:03, 6. Feb 2024
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make procedure that will be…
Sun, 12/02/2018 - 15:57

Make procedure that will be checking if this item is in Main Hand and if yes than give potion effect
than assign it to On Item In Inventory Tick Update Event for your item

Last seen on 12:37, 17. Nov 2019
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll try that thx
Wed, 12/19/2018 - 16:49

I'll try that thx