Merge branch 'master' into 1.15
# Conflicts: # src/main/java/carpet/mixins/ServerPlayNetworkHandler_scarpetEventsMixin.java # src/main/java/carpet/script/CarpetExpression.java # src/main/java/carpet/script/bundled/BundledModule.java # src/main/resources/assets/carpet/scripts/camera.sc # src/main/resources/assets/carpet/scripts/event_test.sc
This commit is contained in:
commit
f32a353655
4 files changed
+31
-41
No files matched your search
@@ -1141,6 +1141,13 @@ public class CarpetExpression
|
||||
return (_c, _t) -> res;
|
||||
});
|
||||
|
||||
this.expr.addLazyFunction("item_category", 1, (c, t, lv) ->
|
||||
{
|
||||
ItemStackArgument item = NBTSerializableValue.parseItem(lv.get(0).evalValue(c).getString());
|
||||
Value res = new StringValue(item.getItem().getGroup().getName());
|
||||
return (_c, _t) -> res;
|
||||
});
|
||||
|
||||
|
||||
|
||||
this.expr.addLazyFunction("inventory_size", -1, (c, t, lv) ->
|
||||
|
||||
Reference in new issue
Block a user