From 91f483d6f4e28da5efd56f61a59a1de1cb71c15e Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 9 Oct 2024 04:37:29 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20ender=5Fpearls=20tag=20to=20p?= =?UTF-8?q?layers=20from=2024w37a=20+=20make=20entity=20id=20required?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/server/world/entity/mob/player.mcdoc | 8 ++++++++ java/server/world/entity/mod.mcdoc | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/java/server/world/entity/mob/player.mcdoc b/java/server/world/entity/mob/player.mcdoc index cda54e4..b2a98ea 100644 --- a/java/server/world/entity/mob/player.mcdoc +++ b/java/server/world/entity/mob/player.mcdoc @@ -76,6 +76,9 @@ dispatch minecraft:entity[player] to struct Player { /// Tracking the warden spawning process for this player. #[since="1.19"] warden_spawn_tracker?: WardenSpawnTracker, + /// Ender pearls thrown by this player. + #[since="1.21.2"] + ender_pearls?: [EnderPearl], // these are not included id?: (), CustomName?: (), @@ -159,3 +162,8 @@ struct WardenSpawnTracker { /// The warden will spawn at level 3. warning_level?: int @ 0..3, } + +struct EnderPearl { + ender_pearl_dimension: #[id="dimension"] string, + ...AnyEntity, +} diff --git a/java/server/world/entity/mod.mcdoc b/java/server/world/entity/mod.mcdoc index 7db055a..3e7b908 100644 --- a/java/server/world/entity/mod.mcdoc +++ b/java/server/world/entity/mod.mcdoc @@ -49,6 +49,6 @@ struct EntityBase { } struct AnyEntity { - id?: #[id="entity_type"] string, + id: #[id="entity_type"] string, ...minecraft:entity[[id]], }