Files
Pumpkin/pumpkin
Dark Star b7ccef5b2f feat: add item frame entity and real comparator analog output (#2461)
* 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.
2026-08-02 00:26:17 -04:00
..
2026-08-01 12:33:02 +02:00