Updated Namespace
Integrated Resourcepack
This commit is contained in:
1
data/lzstools/function/give/wrench.mcfunction
Normal file
1
data/lzstools/function/give/wrench.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:carrot_on_a_stick[minecraft:custom_name={"text":"Rotator Wrench","color":"aqua"},minecraft:lore=["Default"],minecraft:custom_model_data={strings:["lzstools:wrench","lzstools:wrench_default"]},minecraft:custom_data={lzstools:"wrench"},minecraft:unbreakable={},minecraft:enchantment_glint_override=false,minecraft:tooltip_display={hidden_components:["minecraft:unbreakable"]}]
|
6
data/lzstools/function/load.mcfunction
Normal file
6
data/lzstools/function/load.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
# Click Check
|
||||
scoreboard objectives add lz_click_check minecraft.used:minecraft.carrot_on_a_stick
|
||||
|
||||
# Wrench
|
||||
scoreboard objectives add lz_wrench_success dummy
|
||||
scoreboard objectives add lz_wrench_raycast dummy
|
6
data/lzstools/function/player.mcfunction
Normal file
6
data/lzstools/function/player.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
scoreboard players set @s lz_click_check 0
|
||||
|
||||
|
||||
# Wrench
|
||||
execute if predicate lzstools:wrench/mainhand run function wrench:wrench/rotate
|
||||
execute if predicate lzstools:wrench/offhand run function wrench:wrench/offhand
|
1
data/lzstools/function/recipes.mcfunction
Normal file
1
data/lzstools/function/recipes.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
recipe give @s wrench:wrench
|
2
data/lzstools/function/tick.mcfunction
Normal file
2
data/lzstools/function/tick.mcfunction
Normal file
@@ -0,0 +1,2 @@
|
||||
# Click Check
|
||||
execute as @a if score @s lz_click_check matches 1.. run function lzstools:player
|
4
data/lzstools/function/uninstall.mcfunction
Normal file
4
data/lzstools/function/uninstall.mcfunction
Normal file
@@ -0,0 +1,4 @@
|
||||
# Uninstall
|
||||
scoreboard objectives remove lz_click_check
|
||||
scoreboard objectives remove lz_wrench_success
|
||||
scoreboard objectives remove lz_wrench_raycast
|
Reference in New Issue
Block a user