Started by
tzaxp
on
Topic category: Help with Minecraft modding (Java Edition)
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.
It is because key bind is "client-side" , but you need add the effect on "server-side".
@#1 thank you
@#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
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
i am trying to do something similar but potion effects on armor