Merge branch 'master' into 1.16

This commit is contained in:
gnembon committed 2020-04-08 01:29:08 -03:00
commit 7369f39f06
4 files changed
+12 -3

No files matched your search

@@ -1280,6 +1280,15 @@ public class CarpetExpression
return (_c, _t) -> result[0];
});
this.expr.addLazyFunction("inhabited_time", -1, (c, t, lv) ->
{
CarpetContext cc = (CarpetContext)c;
BlockValue.LocatorResult locator = BlockValue.fromParams(cc, lv, 0);
BlockPos pos = locator.block.getPos();
Value ret = new NumericValue(cc.s.getWorld().getChunk(pos).getInhabitedTime());
return (_c, _t) -> ret;
});
}
private void API_Scoreboard()