updated tags and scoreboards
added sound to action fixed damage when in offhand
This commit is contained in:
@@ -5,12 +5,15 @@ execute if entity @n[distance=..1] run return fail
|
||||
function lzstools_trowel:random/start
|
||||
|
||||
# No block, don't place and end
|
||||
execute store result score @s lz_chosen_block_check run data get storage lzstools:trowel chosen_block
|
||||
execute if score @s lz_chosen_block_check matches 0 run return fail
|
||||
execute store result score @s lzt_chosen_block_check run data get storage lzstools:trowel chosen_block
|
||||
execute if score @s lzt_chosen_block_check matches 0 run return fail
|
||||
|
||||
execute at @s run playsound minecraft:block.stone.place master @a ~ ~ ~ 1 1.2
|
||||
execute at @s run playsound minecraft:block.azalea_leaves.place master @a ~ ~ ~ 0.3 1
|
||||
|
||||
# Place block
|
||||
function lzstools_trowel:block/place
|
||||
|
||||
# Durability
|
||||
execute if entity @s[tag=lztools_trowel_mainhand,gamemode=!creative] run function lzstools_trowel:durability/mainhand/handle
|
||||
execute if entity @s[tag=lztools_trowel_offhand,gamemode=!creative] run function lzstools_trowel:durability/offhand/handle
|
||||
execute if entity @s[tag=lzstools_trowel_mainhand,gamemode=!creative] run function lzstools_trowel:durability/mainhand/handle
|
||||
execute if entity @s[tag=lzstools_trowel_offhand,gamemode=!creative] run function lzstools_trowel:durability/offhand/handle
|
Reference in New Issue
Block a user