Ranged Items Trigger Bug

Published by skyman478 on
Status
Works as designed
Issue description

On the ranged items, the trigger 'When bullet hits player' it's not working properly.

Example:

A procedure is created to apply Slowness for 15 seconds to the player that has been shot

when the gun is shot, it apply the effect to the player that shooted and to the player that has been shot.

could it be fixed to the procedure be applied only to the player that has been shot?

Issue comments

This is in fact normal. If you shoot an arrow in the direction that touches a part of the shooter, it collides with the shooter too.

You will be able to make delay yourself in MCreator 1.8.3 using global variables. Some users might want this feature for example on close shots as it is hard to determine proper delay or close shots might not trigger too.

wouldn't it be great if this was fixed, so that way literally ANYONES mods with ranged items work

ahahahahaha that would be crazy

idek how to use global variables

You can also use when bullet hits entity and check if entity is player type to avoid this issue