diff --git a/data/origami-games/functions/invisible_item_frames/item_frame/item_check.mcfunction b/data/origami-games/functions/invisible_item_frames/item_frame/item_check.mcfunction index dd3386d..a8364b5 100644 --- a/data/origami-games/functions/invisible_item_frames/item_frame/item_check.mcfunction +++ b/data/origami-games/functions/invisible_item_frames/item_frame/item_check.mcfunction @@ -1,9 +1,9 @@ -#called by item_frame/glass_check - -execute unless block ~ ~ ~ #origami-games:invisible_item_frames/air unless block ~ ~ ~ #origami-games:invisible_item_frames/glass run function origami-games:invisible_item_frames/item_frame/remove_invisibility - -execute if block ~ ~ ~ #origami-games:invisible_item_frames/glass run function origami-games:invisible_item_frames/item_frame/remove_block - -execute if data entity @s Item.id run data modify entity @s Invisible set value 1b -execute unless data entity @s Item.id run data modify entity @s Invisible set value 0b -execute unless data entity @s Item.id run particle dust 0.341 0.341 0.341 .5 ~ ~ ~ 0 0 0 0 1 force @a +#called by item_frame/glass_check + +execute if data entity @s Item.id run data modify entity @s Invisible set value 1b +execute unless data entity @s Item.id run data modify entity @s Invisible set value 0b +execute unless data entity @s Item.id run particle dust 0.341 0.341 0.341 .5 ~ ~ ~ 0 0 0 0 1 force @a + +execute unless block ~ ~ ~ #origami-games:invisible_item_frames/air unless block ~ ~ ~ #origami-games:invisible_item_frames/glass run function origami-games:invisible_item_frames/item_frame/remove_invisibility + +execute if block ~ ~ ~ #origami-games:invisible_item_frames/glass run function origami-games:invisible_item_frames/item_frame/remove_block diff --git a/data/origami-games/functions/invisible_item_frames/item_frame/remove_block.mcfunction b/data/origami-games/functions/invisible_item_frames/item_frame/remove_block.mcfunction index 0f9d805..187d236 100644 --- a/data/origami-games/functions/invisible_item_frames/item_frame/remove_block.mcfunction +++ b/data/origami-games/functions/invisible_item_frames/item_frame/remove_block.mcfunction @@ -1,4 +1,4 @@ -#called by item_frame/item_check - -setblock ~ ~ ~ air destroy -execute align xyz unless entity @e[type=item,dx=0,dy=0,dz=0] run loot spawn ~ ~ ~ mine ~ ~ ~ diamond_pickaxe{Enchantments:[{id:silk_touch,lvl:1s}]} \ No newline at end of file +#called by item_frame/item_check + +execute align xyz run loot spawn ~ ~ ~ mine ~.5 ~.5 ~.5 diamond_pickaxe{Enchantments:[{id:silk_touch,lvl:1s}]} +setblock ~ ~ ~ air