How do i make an item lose durability AND give a potion effect when right clicked?

Started by proxerater on

Topic category: Help with MCreator software

Last seen on 08:33, 15. Jul 2021
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make an item lose durability AND give a potion effect when right clicked?
Sat, 10/27/2018 - 09:35 (edited)

I can't figure it out. Maybe i'm just stupid? help please!

The problem is is that i don't what to put in "while" because i only want it to do these two events. Help!

Here's the picture....

https://imgur.com/a/QtwOYAy

Edited by proxerater on Sat, 10/27/2018 - 09:35
Last seen on 08:33, 15. Jul 2021
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks bro, you saved me.
Wed, 11/07/2018 - 06:05

Thanks bro, you saved me.

Last seen on 08:33, 15. Jul 2021
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@xDovah When i right click…
Wed, 11/07/2018 - 06:19

@xDovah When i right click my item and it gives me my potion effects and all.. i can only do it once. It wont let me right click and get the effects again. plz help.

Last seen on 22:48, 26. May 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want a little more…
Wed, 11/07/2018 - 06:28

If you want a little more freedom with using custom potion effects, you can substitute the [Add potion with level (x) and duration (x) to provided player] block with the [execute command] block shown here:
d

 

As for the effects only working once, make sure the item is in your main hand (or off hand, depending on how you want to set it up), and/or set the procedure to fire if the Tool is right-clicked in the air. I'll give an example straight from my Ender Sword:

proc

e