"Before Entity is Hurt" Trigger Generates Faulty Code

Published by rmsandegs on
Status
Fixed
Issue description

Picture of Procedure Used

Using this trigger in the procedure above results in build errors. According to the console, the 3 lines of code are:

int i = (int) entity.getPosX();
int j = (int) entity.getPosY();
int k = (int) entity.getPosZ();

I'm guessing these are meant to be entity.posX/Y/Z or entity.getPosition().getX/Y/Z(). I would probably suggest using the former because it passes the entity's position with floating-point accuracy.

Imgur link for if the image doesn't load: https://imgur.com/a/G538RYy

Issue comments