Skip to content

Commit

Permalink
✨ Add ender_pearls tag to players from 24w37a + make entity id required
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Oct 9, 2024
1 parent a96770c commit 91f483d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions java/server/world/entity/mob/player.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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?: (),
Expand Down Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion java/server/world/entity/mod.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ struct EntityBase {
}

struct AnyEntity {
id?: #[id="entity_type"] string,
id: #[id="entity_type"] string,
...minecraft:entity[[id]],
}

0 comments on commit 91f483d

Please sign in to comment.