Added Trowel
Fixed issue with wrench Organised tools into folders
This commit is contained in:
19
data/lzstools_wrench/function/wrench/offhand.mcfunction
Normal file
19
data/lzstools_wrench/function/wrench/offhand.mcfunction
Normal file
@@ -0,0 +1,19 @@
|
||||
# Reset scores
|
||||
scoreboard players set @s lz_wrench_success 0
|
||||
|
||||
# Change wrench mode
|
||||
execute as @s[scores={lz_wrench_success=0},nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Default"]}}}}] store result score @s lz_wrench_success run item modify entity @s weapon.offhand lzstools_wrench:flip
|
||||
execute as @s[scores={lz_wrench_success=0},nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Flip"]}}}}] store result score @s lz_wrench_success run item modify entity @s weapon.offhand lzstools_wrench:face_player
|
||||
execute as @s[scores={lz_wrench_success=0},nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Face Player"]}}}}] store result score @s lz_wrench_success run item modify entity @s weapon.offhand lzstools_wrench:face_click
|
||||
execute as @s[scores={lz_wrench_success=0},nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Face Click"]}}}}] store result score @s lz_wrench_success run item modify entity @s weapon.offhand lzstools_wrench:terracotta_north
|
||||
|
||||
# Return to Default
|
||||
execute as @s[scores={lz_wrench_success=0},nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Terracotta"]}}}}] store result score @s lz_wrench_success run item modify entity @s weapon.offhand lzstools_wrench:default
|
||||
|
||||
|
||||
# Confirm with action bar
|
||||
title @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Default"]}}}}] actionbar [{"text":"Mode: ","color":"red"},{"text":"Default","color":"white"}]
|
||||
title @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Flip"]}}}}] actionbar [{"text":"Mode: ","color":"red"},{"text":"Flip","color":"white"}]
|
||||
title @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Face Player"]}}}}] actionbar [{"text":"Mode: ","color":"red"},{"text":"Face Player","color":"white"}]
|
||||
title @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Face Click"]}}}}] actionbar [{"text":"Mode: ","color":"red"},{"text":"Face Click","color":"white"}]
|
||||
title @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{"lzstools":["wrench"]},"minecraft:lore":["Terracotta"]}}}}] actionbar [{"text":"Mode: ","color":"red"},{"text":"Terracotta","color":"white"}]
|
6
data/lzstools_wrench/function/wrench/rotate.mcfunction
Normal file
6
data/lzstools_wrench/function/wrench/rotate.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
#Reset scores
|
||||
scoreboard players set @s lz_wrench_success 0
|
||||
scoreboard players set @s lz_wrench_raycast 0
|
||||
|
||||
#Raycast from player's position
|
||||
function lzstools_wrench:raycast/start
|
@@ -0,0 +1,9 @@
|
||||
#Advance terracotta mode rotation, show title
|
||||
item modify entity @s[tag=TerracottaNORTH] weapon.mainhand lzstools_wrench:terracotta_east
|
||||
item modify entity @s[tag=TerracottaEAST] weapon.mainhand lzstools_wrench:terracotta_south
|
||||
item modify entity @s[tag=TerracottaSOUTH] weapon.mainhand lzstools_wrench:terracotta_west
|
||||
item modify entity @s[tag=TerracottaWEST] weapon.mainhand lzstools_wrench:terracotta_north
|
||||
title @s[tag=TerracottaNORTH] actionbar [{"text":"Terracotta Mode: ","color":"green"},{"text":"East","color":"white"}]
|
||||
title @s[tag=TerracottaEAST] actionbar [{"text":"Terracotta Mode: ","color":"green"},{"text":"South","color":"white"}]
|
||||
title @s[tag=TerracottaSOUTH] actionbar [{"text":"Terracotta Mode: ","color":"green"},{"text":"West","color":"white"}]
|
||||
title @s[tag=TerracottaWEST] actionbar [{"text":"Terracotta Mode: ","color":"green"},{"text":"North","color":"white"}]
|
Reference in New Issue
Block a user