Problem with ranged items

Started by BananaHeadBoi on

Topic category: Help with modding (Java Edition)

Last seen on 15:21, 12. Mar 2023
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problem with ranged items

When i make it so that when the bullet hits, it applies slowness to both players and entities

the problem is that it always affects me too, how do i fix this?

Did you use "when bullet…
Wed, 03/31/2021 - 22:00

Did you use "when bullet hits player" event? If so, then I recommend you to change for "living entity" only - not sure if it works for players after that, but it should (they are living entities, in the end). And I get rid of this problem with my grenades after doing that.

You can alternatively use command after projectile hits the block, like "effect give @a[distance=..1] minecraft:slowness {duration + amplifier there}". This would work like splash potions in some way, at least with radius 1-2.

Last seen on 15:21, 12. Mar 2023
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, thanks for the help…
Thu, 04/01/2021 - 09:50

Alright, thanks for the help dude.