fix harvest

This commit is contained in:
gnembon committed 2019-07-21 16:55:30 -03:00
1 parent f6546dba51
commit 8e369c2549
7 files changed
+204 -54

No files matched your search

@@ -193,6 +193,10 @@ public class EntityValue extends Value
put("has_tag", (e, a) -> new NumericValue(e.getScoreboardTags().contains(a.getString())));
put("yaw", (e, a)-> new NumericValue(e.yaw));
put("pitch", (e, a)-> new NumericValue(e.pitch));
put("look", (e, a) -> {
Vec3d look = e.getRotationVector();
return ListValue.of(new NumericValue(look.x),new NumericValue(look.y),new NumericValue(look.z));
});
put("is_burning", (e, a) -> new NumericValue(e.isOnFire()));
//put("fire", (e, a) -> new NumericValue(e.getFire())); needs mixing
put("silent", (e, a)-> new NumericValue(e.isSilent()));
@@ -28,6 +28,6 @@ public class StringValue extends Value
@Override
public String getTypeString()
{
return "number";
return "string";
}
}