added 'on_ground' and clarifications around motion.

This commit is contained in:
gnembon committed 2020-07-27 02:11:05 -03:00
1 parent 3f593943c9
commit 2c0ed7bf69
3 files changed
+15 -2

No files matched your search

@@ -277,6 +277,7 @@ public class EntityValue extends Value
put("motion_x", (e, a) -> new NumericValue(e.getVelocity().x));
put("motion_y", (e, a) -> new NumericValue(e.getVelocity().y));
put("motion_z", (e, a) -> new NumericValue(e.getVelocity().z));
put("on_ground", (e, a) -> new NumericValue(e.onGround));
put("name", (e, a) -> new StringValue(e.getName().getString()));
put("display_name", (e, a) -> new StringValue(e.getDisplayName().getString()));
put("command_name", (e, a) -> new StringValue(e.getEntityName()));