Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
Fix #2 - Item frames can turn invisible again (without smoke particle)
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Sep 5, 2020
1 parent e3c583b commit 88ec3ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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}]}
#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

0 comments on commit 88ec3ec

Please sign in to comment.