From 93e06594bdb7098c392e981b0670b495b44cac13 Mon Sep 17 00:00:00 2001 From: Tnze Date: Sun, 23 Apr 2023 01:17:51 +0800 Subject: [PATCH] Add entity struct for /save --- save/chunk.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/save/chunk.go b/save/chunk.go index e4f40aa..cba0e0e 100644 --- a/save/chunk.go +++ b/save/chunk.go @@ -94,3 +94,24 @@ func (c *Chunk) Data(compressingType byte) ([]byte, error) { err := nbt.NewEncoder(w).Encode(c, "") return buff.Bytes(), err } + +type Entities struct { + Pos, Motion [3]float64 + Rotation [3]float32 + FallDistance float32 + Fire, Air int16 + + OnGround bool + Invulnerable bool + PortalCooldown int32 + UUID [4]int32 + + CustomName string + CustomNameVisible bool + Silent bool + NoGravity bool + Glowing bool + TicksFrozen int32 + HasVisualFire bool + Tags []string +}