Skip to content

Commit

Permalink
Add item NBT to ArrowBase, block_state NBT to TNT for 23w43a (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Calverin authored Nov 1, 2023
1 parent 4415c6b commit b84b632
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion minecraft/entity/mod.nbtdoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ compound EntityBase {
UUID: int[] @ 4,
/// The JSON text component name
CustomName: string,
/// Whether the custom name should be visible always
/// Whether the custom name should be visible always or only when looked at
CustomNameVisible: boolean,
/// Whether the entity should make any sound
Silent: boolean,
Expand Down
6 changes: 3 additions & 3 deletions minecraft/entity/projectile/arrow.nbtdoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ compound ArrowBase extends super::ProjectileBase {
/// Whether the projectile was shot from a crossbow
ShotFromCrossbow: boolean,
/// The sound event to play when the projectile hits something
SoundEvent: string
SoundEvent: string,
/// The item that will be picked up when collecting the projectile
item: InventoryItem
}

enum(byte) Pickup {
Expand Down Expand Up @@ -51,8 +53,6 @@ compound SpectralArrow extends ArrowBase {
}

compound Trident extends ArrowBase {
/// The trident that was thrown
Trident: InventoryItem,
/// Whether the trident has damaged an entity already
DealtDamage: boolean
}
Expand Down
8 changes: 7 additions & 1 deletion minecraft/entity/tnt.nbtdoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
use ::minecraft::util::BlockState;

compound Tnt extends super::EntityBase {
/// The number of ticks until this tnt explodes
Fuse: short
fuse: short,
// The block model this entity will be rendered with
/// Does display most block entities (eg. Chests, Beds, Furnaces, etc).
/// Does not display specially rendered block entities (eg. The bell in a bell block, an end gateway, the book on an enchantment table, a banner, a sign, etc).
block_state: BlockState
}

Tnt describes minecraft:entity[minecraft:tnt];

0 comments on commit b84b632

Please sign in to comment.