my block

it dont activate the funtions execute as @e[type=minecraft:item_frame,tag=enderite,tag=!placed] at @s run function template:placeenderite execute as @e[type=minecraft:item_frame,tag=enderite,tag=placed] at @s unless ~ ~ ~ minecraft:glass run function template:removeenderite thats in the tick-function say hi setblock ~ ~ ~ minecraft:glass tag @s add placed thats in the placeenderite-function summon item ~ ~0.5 ~ {Item:{id:"minecraft:item_frame",Count:1b,tag:{display:{Name:'{"text":"Enderite"}'},CustomModelData:99,EntityTag:{Fixed:1b,Invisible:1b,Silent:1b,Tags:["enderite"],Invulnerable:1b}}}} kill @e[type=item,nbt={Item:{id:"minecraft:glass"}},distance=0..2,sort=nearest,limit=1] kill @s say hi thats in the removeenderite-fnction me{display:{Name:'{"text":"enderite"}'},CustomModelData:99,EntityTag:{Silent:1b,Tags:["enderite"],Item:{id:"minecraft:item_frame",Count:1b,tag:{CustomModelData:99}},Fixed:1b,Invisible:1b,Invulnerable:1b}} 1 and thats in the load-function
Continue to help post