How to make stun enchantment?

Started by Ivan original on Sat, 05/29/2021 - 12:27

Topic category: Help with modding (Java Edition)

Last seen on 06:25, 6. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make stun enchantment?
Sat, 05/29/2021 - 12:27

That is, when you hit the enemy, there is a chance to immobilize him.I tried to do it without potions but failed.

Sorry for my english.

Last seen on 18:12, 29. Jul 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ah I made one recently…
Fri, 06/04/2021 - 04:15

ah I made one recently actually if you would like I can tell you how to do it

 

Last seen on 18:12, 29. Jul 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
also you need potions, first…
Fri, 06/04/2021 - 04:19

also you need potions, first make a stun potion effect that gives slowness 100, and weakness 100, I used an enchantment for this, make another procedure that applies the potion effect to the target entity (what you're attacking) if the source entity (you attacking) has the enchantment stun in his main hand while attacking, that's it. 

 

though I hope you are able to use this mess of words if not I don't have Mcreater installed so I cant give you screenshots so I can't help more then this, good luck!