/summon reports the entities that take their id when first tracked

Primed TNT (and falling blocks, projectiles) spawned from /summon get
their entity id only when first tracked, so the summon found no new id
and answered "Unable to summon entity" though the entity was there and
went off. The summon now also counts those lists, and names the type:
"Summoned new Primed TNT", as vanilla.

Test: a TNT summon in the command execution corpus (world group:
125/126 match vanilla; the one left, /waypoint list, was there before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit dd733684bc8a2efca2b2fa76fc54d6eb48608103)
This commit is contained in:
Ludovic Marie
2026-10-21 04:21:48 +02:00
parent b31cb42242
commit 02ba66b721
2 changed files with 30 additions and 7 deletions
+3
View File
@@ -568,6 +568,9 @@ def world_misc():
cmd('/summon minecraft:armor_stand 4.5 210 4.5 {NoGravity:1b,Tags:["w"],CustomName:{text:"Stand",color:"blue"}}'),
cmd('/swing @e[tag=w]'),
cmd('/summon minecraft:lightning_bolt 4.5 300 4.5'),
# Primed TNT is no command target in Horizon: still "Summoned new
# Primed TNT" (it explodes high in the air, far from the rest).
cmd('/summon minecraft:tnt 60.5 300 60.5 {fuse:1s}'),
cmd('/summon minecraft:pig 4.5 210 4.5 {NoAI:1b,Invulnerable:1b,Tags:["w"],Passengers:[{id:"minecraft:chicken",NoAI:1b,Tags:["w"]}]}'),
cmd('/summon minecraft:pig 4.5 400 4.5'),
cmd('/summon minecraft:pig 30000000 210 4.5'),