mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
* feat: add item frame entity and real comparator analog output Item frames had no entity implementation, so frames loaded from vanilla worlds fell into the generic entity fallback and lost their Item, ItemRotation and Facing NBT on the next save. The comparator also returned a hardcoded 1 for any attached frame. Adds ItemFrameEntity (item frame + glow item frame) with vanilla NBT round-trip, and makes the comparator return the vanilla signal: 0 when the frame is empty, otherwise rotation % 8 + 1. The frame lookup now also includes glow item frames and matches on the frame's stored facing instead of the yaw-derived horizontal facing. * fix: mirror the default item frame facing into the entity data field A frame created without NBT set facing to south but left the entity data field at 0, which the spawn packet reads as down, so the frame spawned facing the wrong way. Store the default in both places.