How make a Taser

Started by ilpro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How make a Taser
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?
Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only way I could think…
Tue, 01/28/2025 - 17:43

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.

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you send me a photo of…
Wed, 01/29/2025 - 15:28
could you send me a photo of the procedure?
Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did that help at all?
Sun, 02/02/2025 - 00:42

Did that help at all?

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i got a better method make…
Sun, 02/02/2025 - 05:47

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

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried to override movement…
Sun, 02/02/2025 - 15:31

I tried to override movement, but it didn't work. The negative jump boost and slowness is smart though.