From ce728ebd2bc9f6bb664003c724e3623534e6fa37 Mon Sep 17 00:00:00 2001 From: Mark Rapson Date: Thu, 22 May 2025 21:26:34 +0100 Subject: [PATCH] Do nothing is empty slot --- data/lzstools_chisel/function/raycast/start.mcfunction | 5 ++++- data/lzstools_chisel/function/select/check_block.mcfunction | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/lzstools_chisel/function/raycast/start.mcfunction b/data/lzstools_chisel/function/raycast/start.mcfunction index a588610..c9b4704 100644 --- a/data/lzstools_chisel/function/raycast/start.mcfunction +++ b/data/lzstools_chisel/function/raycast/start.mcfunction @@ -7,5 +7,8 @@ execute as @s at @s anchored eyes positioned ^ ^ ^ anchored feet run function lz # Clean Data data remove storage lzstools:chisel inventory data remove storage lzstools:chisel damage +data remove storage lzstools:chisel components data remove storage lzstools:chisel chosen_block -data remove storage lzstools:chisel chosen_slot \ No newline at end of file +data remove storage lzstools:chisel chosen_slot +scoreboard players set @s lzt_chisel_damage 0 +scoreboard players set @s lzt_chisel_max_damage 1 \ No newline at end of file diff --git a/data/lzstools_chisel/function/select/check_block.mcfunction b/data/lzstools_chisel/function/select/check_block.mcfunction index 78ce3f9..8c15349 100644 --- a/data/lzstools_chisel/function/select/check_block.mcfunction +++ b/data/lzstools_chisel/function/select/check_block.mcfunction @@ -1,5 +1,6 @@ # No Shulkers $execute if items entity @s hotbar.$(chosen_slot) #minecraft:shulker_boxes run return fail +$execute if items entity @s hotbar.$(chosen_slot) #minecraft:air run return fail $setblock ~ -64 ~ $(chosen_block) setblock ~ -64 ~ bedrock \ No newline at end of file