Advertisement
Jragon014

1.10 Dynamic Light

Aug 10th, 2016
2,410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. ###First Module###
  2.  
  3. Impulse Commands:
  4. /give @p armor_stand 1 0 {EntityTag:{CustomName:"dynamicLight",Tags:["dynamicLight1","mechanic"],Invisible:1,NoGravity:1,Marker:1b},ench:[],display:{Name:"Dynamic Light Bright"}}
  5. /give @p armor_stand 1 0 {EntityTag:{CustomName:"dynamicLight",Tags:["dynamicLight2","mechanic"],Invisible:1,NoGravity:1,Marker:1b},ench:[],display:{Name:"Dynamic Light Dim"}}
  6.  
  7. Repeating Chain:
  8. /execute @a ~ ~ ~ /execute @e[tag=dynamicLight1,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ glowstone 0 keep
  9. /execute @a ~ ~ ~ /execute @e[tag=dynamicLight1,rm=11,r=12] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace glowstone
  10.  
  11. /execute @a ~ ~ ~ /execute @e[tag=dynamicLight2,r=7] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ redstone_torch 0 keep
  12. /execute @a ~ ~ ~ /execute @e[tag=dynamicLight2,rm=8,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace redstone_torch
  13.  
  14.  
  15. ###Second Module###
  16.  
  17. Impulse Commands:
  18. /give @p armor_stand 1 0 {EntityTag:{CustomName:"dynamicLight",Tags:["dynamicLight3","mechanic"],Invisible:1,NoGravity:1,Marker:1b},ench:[],display:{Name:"Dynamic Light General"}}
  19.  
  20. Repeating Chain:
  21. /scoreboard players tag @a[tag=bright] remove bright
  22. /scoreboard players tag @a[tag=dim] remove dim
  23.  
  24. /scoreboard players tag @a add bright {SelectedItem:{id:minecraft:torch}}
  25. /scoreboard players tag @a add dim {SelectedItem:{id:minecraft:redstone_torch}}
  26. /scoreboard players tag @a add bright {Inventory:[{Slot:-106b,id:minecraft:torch}]}
  27. /scoreboard players tag @a add dim {Inventory:[{Slot:-106b,id:minecraft:redstone_torch}]}
  28.  
  29. /execute @a[tag=!bright] ~ ~ ~ /execute @e[tag=dynamicLight3,r=12] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace glowstone
  30. /execute @a[tag=!dim] ~ ~ ~ /execute @e[tag=dynamicLight3] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace redstone_torch
  31.  
  32. /execute @a ~ ~ ~ /execute @e[tag=dynamicLight3,rm=8,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace redstone_torch
  33. /execute @a[tag=dim] ~ ~ ~ /execute @e[tag=dynamicLight3,r=7] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ redstone_torch 0 keep
  34.  
  35. /execute @a ~ ~ ~ /execute @e[tag=dynamicLight3,rm=11,r=12] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ air 0 replace glowstone
  36. /execute @a[tag=bright] ~ ~ ~ /execute @e[tag=dynamicLight3,r=10] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ glowstone 0 keep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement