-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.mcfunction
More file actions
18 lines (12 loc) · 1 KB
/
main.mcfunction
File metadata and controls
18 lines (12 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
##by Tschipcraft
# Schedule for next tick
schedule function dynamiclights:internal/main 1t
# Tag old lights
tag @e[type=minecraft:marker,tag=ts.dl.light] add ts.dl.remove
# Detect explosions
execute as @e[type=minecraft:tnt,limit=10] at @s run function dynamiclights:internal/explosion_detection/tnt
# Core
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @a[gamemode=!spectator,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore] at @s run function dynamiclights:internal/main_exec_pass
execute if score $enable ts.dl.settings matches 1..2 unless score $global ts.dl.tnt.fuse matches 1 as @e[type=!minecraft:player,type=!#dynamiclights:dyn_ignore,tag=!smithed.strict,tag=!global.ignore,tag=!global.ignore.gui,tag=!ts.dl.ignore,tag=!ts.sa.hidden,limit=750] at @s run function dynamiclights:internal/main_exec
# Clear old lights
execute as @e[type=minecraft:marker,tag=ts.dl.remove] at @s run function dynamiclights:internal/remove_light