ambienlight: type: command name: ambientlight usage: /ambientlight script: - if { - light reset - flag player ambientlightoff:! - narrate "<&o>Ambient Lighting has been Enabled. Use this command again to disable Ambient Lighting.<&r>" - queue clear } - flag player ambientlightoff - narrate "<&o>Ambient Lighting has been Disabled. Use this command again to Enable Ambient Lighting.<&r>" ambient: type: world debug: false events: on player steps on block: - if { - light reset - flag player ambientlight:! } - if { - queue clear } - if == torch || == torch { - light 10 - flag player ambientlight } - if == glowstone || == glowstone { - light 14 - flag player ambientlight } - if == sea_lantern || == sea_lantern { - light 14 - flag player ambientlight } - if == redstone_torch_on || == redstone_torch_on { - light 7 - flag player ambientlight } on player quits: - if { - light reset - flag player ambientlight:! }