1
0
Fork 0
Gen2/datapacks/timber/data/timber/function/main.mcfunction
2025-08-27 20:49:18 -05:00

11 lines
No EOL
415 B
MCFunction
Executable file

# loop (not in minecraft:tick in order to stop it after uninstall)
schedule function timber:main 1t
# if any kind of axe is used
execute as @a[predicate=timber:used_axe,tag=!global.ignore] at @s run function timber:used_axe
# toggle timber datapack per player
execute as @a[scores={TimberToggle=1..},tag=!global.ignore] run function timber:settings/toggle/timber
# reset
scoreboard players enable @a TimberToggle