Added Trowel
Fixed issue with wrench Organised tools into folders
This commit is contained in:
1
data/lzstools/function/give/trowel_diamond.mcfunction
Normal file
1
data/lzstools/function/give/trowel_diamond.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:carrot_on_a_stick[minecraft:custom_name={"text":"Diamond Trowel","color":"aqua"},minecraft:custom_model_data={strings:["lzstools:trowel_diamond"]},minecraft:custom_data={"lzstools":["trowel","trowel_diamond"]}]
|
1
data/lzstools/function/give/trowel_iron.mcfunction
Normal file
1
data/lzstools/function/give/trowel_iron.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:carrot_on_a_stick[minecraft:custom_name={"text":"Iron Trowel","color":"aqua"},minecraft:custom_model_data={strings:["lzstools:trowel_iron"]},minecraft:custom_data={"lzstools":["trowel","trowel_iron"]}]
|
@@ -1 +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_default"]},minecraft:custom_data={lzstools:"wrench"},minecraft:unbreakable={},minecraft:enchantment_glint_override=false,minecraft:tooltip_display={hidden_components:["minecraft:unbreakable"]}]
|
||||
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_default"]},minecraft:custom_data={"lzstools":["wrench"]},minecraft:unbreakable={},minecraft:enchantment_glint_override=false,minecraft:tooltip_display={hidden_components:["minecraft:unbreakable"]}]
|
@@ -3,4 +3,15 @@ scoreboard objectives add lz_click_check minecraft.used:minecraft.carrot_on_a_st
|
||||
|
||||
# Wrench
|
||||
scoreboard objectives add lz_wrench_success dummy
|
||||
scoreboard objectives add lz_wrench_raycast dummy
|
||||
scoreboard objectives add lz_wrench_raycast dummy
|
||||
|
||||
# Trowel
|
||||
scoreboard objectives add lz_trowel_success dummy
|
||||
scoreboard objectives add lz_trowel_raycast dummy
|
||||
scoreboard objectives add lz_trowel_raycast_hit dummy
|
||||
scoreboard objectives add lz_trowel_block_length dummy
|
||||
scoreboard objectives add lz_chosen_block_check dummy
|
||||
scoreboard objectives add lz_trowel_unbreaking_check dummy
|
||||
scoreboard objectives add lz_trowel_unbreaking_chance dummy
|
||||
scoreboard objectives add lz_trowel_damage dummy
|
||||
scoreboard objectives add lz_trowel_max_damage dummy
|
@@ -2,5 +2,9 @@ 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
|
||||
execute if predicate lzstools:wrench/mainhand run function lzstools_wrench:wrench/rotate
|
||||
execute if predicate lzstools:wrench/offhand run function lzstools_wrench:wrench/offhand
|
||||
|
||||
# Trowel
|
||||
execute if predicate lzstools:trowel/mainhand run function lzstools_trowel:mainhand
|
||||
execute if predicate lzstools:trowel/offhand run function lzstools_trowel:offhand
|
@@ -1 +1,3 @@
|
||||
recipe give @s wrench:wrench
|
||||
recipe give @s lzstools_wrench:wrench
|
||||
recipe give @s lzstools_trowel:iron
|
||||
recipe give @s lzstools_trowel:diamond
|
Reference in New Issue
Block a user