add item_display_name

This commit is contained in:
ch-yx authored and gnembon committed 2022-08-28 18:59:11 +02:00
1 parent e2e5bb2242
commit 0b49f54946
1 file changed
+4
@@ -258,6 +258,10 @@ public class Auxiliary {
));
});
expression.addContextFunction("item_display_name", 1, (c, t, lv)->{
return new FormattedTextValue(EntityValue.getItemStackFromValue(lv.get(0)).getDisplayName());
});
expression.addContextFunction("particle_box", -1, (c, t, lv) ->
{
CarpetContext cc = (CarpetContext)c;