Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###First Module###
- Impulse Commands:
- /give @p armor_stand 1 0 {EntityTag:{CustomName:"dynamicLight",Tags:["dynamicLight1","mechanic"],Invisible:1,NoGravity:1,Marker:1b},ench:[],display:{Name:"Dynamic Light Bright"}}
- /give @p armor_stand 1 0 {EntityTag:{CustomName:"dynamicLight",Tags:["dynamicLight2","mechanic"],Invisible:1,NoGravity:1,Marker:1b},ench:[],display:{Name:"Dynamic Light Dim"}}
- Repeating Chain:
- /execute @a ~ ~ ~ /execute @e[tag=dynamicLight1,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ glowstone 0 keep
- /execute @a ~ ~ ~ /execute @e[tag=dynamicLight1,rm=11,r=12] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace glowstone
- /execute @a ~ ~ ~ /execute @e[tag=dynamicLight2,r=7] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ redstone_torch 0 keep
- /execute @a ~ ~ ~ /execute @e[tag=dynamicLight2,rm=8,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace redstone_torch
- ###Second Module###
- Impulse Commands:
- /give @p armor_stand 1 0 {EntityTag:{CustomName:"dynamicLight",Tags:["dynamicLight3","mechanic"],Invisible:1,NoGravity:1,Marker:1b},ench:[],display:{Name:"Dynamic Light General"}}
- Repeating Chain:
- /scoreboard players tag @a[tag=bright] remove bright
- /scoreboard players tag @a[tag=dim] remove dim
- /scoreboard players tag @a add bright {SelectedItem:{id:minecraft:torch}}
- /scoreboard players tag @a add dim {SelectedItem:{id:minecraft:redstone_torch}}
- /scoreboard players tag @a add bright {Inventory:[{Slot:-106b,id:minecraft:torch}]}
- /scoreboard players tag @a add dim {Inventory:[{Slot:-106b,id:minecraft:redstone_torch}]}
- /execute @a[tag=!bright] ~ ~ ~ /execute @e[tag=dynamicLight3,r=12] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace glowstone
- /execute @a[tag=!dim] ~ ~ ~ /execute @e[tag=dynamicLight3] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace redstone_torch
- /execute @a ~ ~ ~ /execute @e[tag=dynamicLight3,rm=8,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace redstone_torch
- /execute @a[tag=dim] ~ ~ ~ /execute @e[tag=dynamicLight3,r=7] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ redstone_torch 0 keep
- /execute @a ~ ~ ~ /execute @e[tag=dynamicLight3,rm=11,r=12] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace glowstone
- /execute @a[tag=bright] ~ ~ ~ /execute @e[tag=dynamicLight3,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ glowstone 0 keep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement