How can I give a buff/debuff to a player while he is holding a specific weapon?

Started by cal3393 on Thu, 09/01/2016 - 23:23

Topic category: Advanced modding

Last seen on 13:38, 28. Oct 2016
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How can I give a buff/debuff to a player while he is holding a specific weapon?
Thu, 09/01/2016 - 23:23
Last seen on 20:03, 30. Apr 2019
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
@#1 There should be an option
Tue, 09/06/2016 - 22:33

@#1 There should be an option for adding events when item in player's hand. When you get to the part of creating the tool with all the white boxes and circumstances, there should be a when item in player's hand circumstance that you can add "Effect ID = [look it up with the link next to that part in MCreator]" and you can just put the time that it lasts for as one because it will constantly refresh while it's in their hand. You can also put the multiplier, so for example Poison 3 for one tick.