Started by
ilpro
on
Topic category: Help with Minecraft modding (Java Edition)
the other day I wanted to create a sword that if I right-clicked it would have the effect of a taser (that would paralyze and drop the thing you were holding in your hand at that moment), but unfortunately I'm new to modding and so I don't know how to do it, can anyone tell me how to do it?
The only way I could think of doing this would be to create a ranged item, and make an electricity projectile that the ranged item shoots, then make a procedure that says when projectile hits entity, set entity in cobweb for x number of ticks, check what the entity is holding, spawn dropped item at the entities xyz and then remove the item from the entity's hand.
Try this.
https://paste.pics/SQUDL
Did that help at all?
i got a better method
make the sword give slowness 99 and jump boost -99 (or just use the "attempt to stop movement" something along those lines) stops them from moving at all cant even jump to negate it
I tried to override movement, but it didn't work. The negative jump boost and slowness is smart though.