How do I make sure that after I hit the mob with a custom sword, any effect is superimposed on me?

Started by Ball-van on

Topic category: Help with modding (Java Edition)

Last seen on 18:29, 16. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make sure that after I hit the mob with a custom sword, any effect is superimposed on me?

Hello everyone!
I want to know if it is possible to make it so that after I hit the mob with a custom sword, any effect is superimposed on me? (for example: I hit the mob with a custom sword and the speed effect is superimposed on me)

Last seen on 19:45, 31. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do you mean with…
Wed, 04/28/2021 - 12:39

What do you mean with superimposed?

Last seen on 18:29, 16. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  I mean, when I hit the mob…
Wed, 04/28/2021 - 13:42

 
I mean, when I hit the mob with the sword, the player will get a certain effect.

(Sorry, I use google translator as I don't know English very well.)

Last seen on 19:45, 31. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With which kinda sword? If…
Thu, 04/29/2021 - 10:57

With which kinda sword? If you have created a custom sword and want it to effect you, when you are in the element of the sword you want to do it on, you want to go to triggers and then, when living entity hit with tool. In there you want to create a procedure and in the procedure, you will just drag in a "add potion with level" block and then you can choose for how long and what effect, hopefully this is what you are looking for! Hit me up if theres something wrong! If you dont understand, feel free to add me on discord: FluffigBoll#3084

Last seen on 18:29, 16. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Like this ?
Thu, 04/29/2021 - 13:52

Like this ?

https://sun9-40.userapi.com/impg/c0fdkvcW-eE80fU3zD62hCf1VQL281XYz3uPQQ/-xotlO-317Q.jpg?size=1920x1080&quality=96&sign=4e7e1dbe50852ea49fcc58ed552171db&type=album

Last seen on 18:29, 16. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry if I don't understand…
Thu, 04/29/2021 - 13:53

Sorry if I don't understand something, I just started working with MCreator not long ago.