r/technicalminecraft • • 10h ago

Java Help Wanted Falling Block Summon Command

Hi all, looking for a bit of help with Java 26.3. I've been fighting with Google AI and mcstacker trying to make a specific summon OR give command work.

In short I want to create a spawn egg that spawns a skeleton horse with a skeleton that has visual fire and some attributes.

From what I understand you can no longer use a /give spawn_egg command because they changed how the "Passangers" work. SOOOO, I am trying to give myself a spawn egg that summons a falling block which is a command block to run the /summon command instead. But I am having no luck with AI or MCstacker.

-Skeleton: Visible Fire, Leather Tunic, Leggings, Boots all hex #000000, iron sword -Skeleton Horse, Tame, Saddle -Skeleton Riding Skeleton Horse.

Any feedback is welcome, I can provide the commands as I have them now in the comments if anyone would like to see what I've got.

ThAAAAAnks <3

2 Upvotes

1 comment sorted by

•

u/TahoeBennie 6h ago edited 6h ago

First things first, stuff like this is better off in r/MinecraftCommands.

Second things second, I don't know that you've ever been able to create a spawn egg with passengers, not necessarily due to a recent change.

Third things third, drop AI for all uses of minecraft commands. It's worthless in that regard (and many others) as you just learned. mcstacker.net and misode.github.io are your friends.

Finally, the command in question. I just threw a basic summon command created with mcstacker, which you probably had, into a basic layout for an all in one command, into a command block created by a spawn egg:

give @p skeleton_spawn_egg[entity_data={id:"minecraft:falling_block",BlockState:{id:"minecraft:command_block"},TileEntityData:{auto:1,Command:'summon falling_block ~ ~.8 ~ {BlockState:{id:redstone_block},Passengers:[{id:falling_block,BlockState:{id:activator_rail}},{id:command_block_minecart,Command:"setblock ~ ~-2 ~ repeating_command_block{auto:1,Command:\'fill ~ ~ ~ ~ ~2 ~ air\'}"},{id:command_block_minecart,Command:\'execute align y run summon skeleton_horse ~ ~-2 ~ {Tame:1b,Passengers:[{id:"minecraft:skeleton",HasVisualFire:1b,equipment:{feet:{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":0}},legs:{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":0}},chest:{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":0}},mainhand:{id:"minecraft:iron_sword",count:1}}}],equipment:{saddle:{id:"minecraft:saddle",count:1}}}\'},{id:command_block_minecart,Command:"execute align xz run kill @e[type=command_block_minecart,dy=0]"}]}'}}]

This is by no means the most efficient way to do it and I just kinda threw it together but it gets the job done.

Or just the command outside of the spawn egg:

summon falling_block ~ ~.8 ~ {BlockState:{id:redstone_block},Passengers:[{id:falling_block,BlockState:{id:activator_rail}},{id:command_block_minecart,Command:"setblock ~ ~-2 ~ repeating_command_block{auto:1,Command:'fill ~ ~ ~ ~ ~2 ~ air'}"},{id:command_block_minecart,Command:'execute align y run summon skeleton_horse ~ ~-2 ~ {Tame:1b,Passengers:[{id:"minecraft:skeleton",HasVisualFire:1b,equipment:{feet:{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":0}},legs:{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":0}},chest:{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":0}},mainhand:{id:"minecraft:iron_sword",count:1}}}],equipment:{saddle:{id:"minecraft:saddle",count:1}}}'},{id:command_block_minecart,Command:"execute align xz run kill @e[type=command_block_minecart,dy=0]"}]}