how to add potion effect properly

Started by tzaxp on Fri, 03/25/2016 - 21:55
Last seen on 22:20, 8. Feb 2018
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
how to add potion effect properly
Fri, 03/25/2016 - 21:55

I try to make a sword with potion effect. I created a "key bind" with "add potion effect even" in the condition of "itemInPlayersHand[] == mysword". When I hold the sword and press specific buttion it give me potion effect. I found the potion effects it given to me only have iron and show remain time but dont have any actual effect (such as Regeneration II do not recover my health).   I also used "special feature" to check my sword, but it have same result.Is anyone could help me deal with this situation?

I am sorry for my English . I am not English speaker.

Last seen on 21:19, 17. Oct 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
It is because key bind is
Fri, 03/25/2016 - 22:21

It is because key bind is "client-side" , but you need add the effect on "server-side".

Last seen on 22:20, 8. Feb 2018
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:It is because key bind is
Sat, 03/26/2016 - 09:35

@#1 thank you

Last seen on 19:55, 9. Sep 2017
Joined Jun 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:It is because key bind is
Sun, 03/27/2016 - 04:18

@#1 since you seemingly  know what you are doing, how come when i have a potion effect "on shooting gun" and i do regeneration or id number 10, it doesnt work, so i messed around with the amplifier and duration and it made no difference, i guess what im asking is 

1.how do i make it work (lol)

2.what do amplifier and duration do/mean

thanks

Last seen on 03:50, 12. Aug 2018
Joined Aug 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
MLGopposite, I was having
Sun, 03/27/2016 - 16:10

MLGopposite, I was having trouble assigning specific potions/potion effects as well, and found I had to go into the mods source to edit the event in which the potion was added and add my potion dec value to the end of the string because mcreator was just trying to give me regular water bottles lol

Last seen on 20:05, 21. Sep 2017
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i am trying to do something
Mon, 05/16/2016 - 18:59

i am trying to do something similar but potion effects on armor