#(26.1.2) Running summon function on spawn

1 messages · Page 1 of 1 (latest)

granite baneBOT
#

Im trying to make a spawn egg that will spawn a marker and immediately run a function that spawns an interaction and a block display, but I can't figure out how to get the syntax to work.

summon.mcfunction:

summon interaction ~ ~ ~ {response:1b,Tags:["cutboard"]}
summon block_display ~ ~ ~ {Tags:["cutboarddisp"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,-0.5f],scale:[1f,0.2f,1f]},block_state:{Name:"minecraft:oak_planks"}}
execute as @n[tag=cutboard,limit=1] at @s align xz run tp @s ~0.5 ~ ~0.5
execute as @n[tag=cutboarddisp,limit=1] at @n[tag=cutboard,limit=1] run tp @s ~ ~ ~

tick.mcfunction:

execute as @e[type=armor_stand,tag=cutspawn] run function sizzle:blocks/cutboard/summon

and the command for the item is summon item ~ ~ ~ {Item:{id:"minecraft:cat_spawn_egg",count:1,components:{"minecraft:entity_data":{id:"minecraft:marker",Tags:["cutspawn"]}}}}

pearl dragon
#

o h wiat

plush ledge
#

Is the issue that once you spawn it it doesnt appear?

#

and is it appearing at 0 0 0

pearl dragon
#

holdon ignore the fact the tick says armor_stand i was trying with armor stands and forgot to change it back but it didnt work with marker either

pearl dragon
pearl dragon
#

marker appears but not the cutting board

pearl dragon
#

quite a lot actually

plush ledge
pearl dragon
#

oh my god

#

thank you

#

its such a simple solution how did i not figure this out in 2 days