From 9bc8030f20c63a976c7be1e3054287bb07f9f300 Mon Sep 17 00:00:00 2001 From: Misode Date: Fri, 15 Nov 2024 15:13:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20#50=20spawner=5Fminecart?= =?UTF-8?q?=20SpawnData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/server/world/entity/minecart.mcdoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/server/world/entity/minecart.mcdoc b/java/server/world/entity/minecart.mcdoc index c6a110d..cd55cbf 100644 --- a/java/server/world/entity/minecart.mcdoc +++ b/java/server/world/entity/minecart.mcdoc @@ -1,4 +1,5 @@ use super::super::block::spawner::SpawnPotential +use super::super::block::spawner::SpawnerEntry use super::super::entity::AnyEntity use ::java::server::util::BlockState use ::java::server::util::SlottedItem @@ -66,7 +67,10 @@ dispatch minecraft:entity[spawner_minecart] to struct SpawnerMinecart { SpawnPotentials?: [SpawnPotential], /// Data for the next mob to place. /// Will be overwritten by `SpawnPotentials`. - SpawnData?: AnyEntity, + SpawnData?: ( + #[until="1.18"] AnyEntity | + #[since="1.18"] SpawnerEntry | + ), /// Number of entities that will be placed. SpawnCount: short, /// Range that the spawned entities will be placed in.