Hello i need help for make mod

Started by ErnBEY on

Topic category: Help with modding (Java Edition)

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello i need help for make mod

How can I make it so that when we hit an object or a person, it gives an effect, and then when we hit it again, it deletes the effect?

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try something like this:…
Thu, 10/19/2023 - 14:28

Try something like this:

Replace the spear with your custom item, and the potion effect with the potion effect you want. (You can also change the potion particles to true, if you want bubbles around the target.) This procedure will trigger when an entity attacks, check if the item in their main hand is your custom item, then check if they already have a potion effect. If they already have the effect, it removes the effect. If they don't already have the effect, it adds the effect.

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
dont work :(
Thu, 10/19/2023 - 16:25

dont work :(

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you set the global…
Thu, 10/19/2023 - 16:29

Did you set the global trigger to "Entity Attacked?" Also make sure you're using 'source entity' for the first part, not 'event/target entity.' I have tested this on my end. I recommend checking again.

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All is correct, but I set…
Thu, 10/19/2023 - 16:34

All is correct, but I set the procedure as when living entity is hit with tool in my item, and it does not work.

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So it gives an error.
Thu, 10/19/2023 - 16:39

So it gives an error.

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When I select source entity…
Thu, 10/19/2023 - 16:39

When I select source entity it gives an error.

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're running the…
Thu, 10/19/2023 - 16:46

If you're running the procedure using "when living entity is hit with item," you could try doing it like this instead:

I do not know why you are getting an error, as the first example should still work if you are running it through "when living entity is hit with item," but this version should be simpler, if you want to do it this way.

 

 

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bu sefer effect bana geliyo
Thu, 10/19/2023 - 16:47

bu sefer effect bana geliyo

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This time the effect is…
Thu, 10/19/2023 - 16:47

This time the effect is coming to me.

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Weird. Try replacing "event…
Thu, 10/19/2023 - 16:50

Weird. Try replacing "event/target entity" with "source entity." It is possible they are switched for this trigger. (If this is true, then 'source entity' is the entity the item is hitting, and 'event/target entity' is still the entity holding the item.)

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Once I solved it, I need to…
Thu, 10/19/2023 - 16:57

Once I solved it, I need to transfer it to MOB, how do I do it? So effects should go to moba.

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And I do this with the…
Thu, 10/19/2023 - 16:59

And I do this with the execute command. Is it valid? I have to do it that way.

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
‘Entity’ includes mobs,…
Thu, 10/19/2023 - 17:03

‘Entity’ includes mobs, animals, and players, so it should work for mobs. If you want to this with a command, instead of with the item, you would need to be more specific about which entity you are targeting.

Last seen on 19:54, 21. Jun 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't understand anything,…
Thu, 10/19/2023 - 17:15

I don't understand anything, what can I do?