light?
This commit is contained in:
1 parent
4a5fe26136
commit
e2e5bb2242
1 file changed
+3
@@ -517,6 +517,9 @@ public class WorldAccess {
|
||||
expression.addContextFunction("sky_light", -1, (c, t, lv) ->
|
||||
genericStateTest(c, "sky_light", lv, (s, p, w) -> new NumericValue(w.getBrightness(LightLayer.SKY, p))));
|
||||
|
||||
expression.addContextFunction("real_light", -1, (c, t, lv) ->
|
||||
genericStateTest(c, "real_light", lv, (s, p, w) -> new NumericValue(w.getMaxLocalRawBrightness(p))));
|
||||
|
||||
expression.addContextFunction("see_sky", -1, (c, t, lv) ->
|
||||
genericStateTest(c, "see_sky", lv, (s, p, w) -> BooleanValue.of(w.canSeeSky(p))));
|
||||
|
||||
|
||||
Reference in new issue
Block a user