add item_display_name
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user