Skip to content

Commit 7eb7f74

Browse files
committed
🐛 Fix entity UUID lookup on 1.21.2 to 1.21.4
- fast path needs uuid() and NBT text components, both 1.21.5+ - those versions fall back to the 1.21.0 global
1 parent d387a2d commit 7eb7f74

2 files changed

Lines changed: 5 additions & 367 deletions

File tree

‎src/systems/datapackCompiler/1.21.2/global.mcb‎

Lines changed: 0 additions & 366 deletions
This file was deleted.

‎src/systems/datapackCompiler/1.21.5/global.mcb‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
# dispatch, the entity-UUID helper (gu), the storage-backed per-entity data manager,
33
# and the interaction/attack advancement plumbing.
44
#
5-
# Changes from 1.21.2/global.mcb:
5+
# Changes from 1.21.0/global.mcb:
66
# - The outdated-rig text display's `text` is written as an NBT text component
77
# instead of a quoted JSON string.
8+
# - gu/get_entity_uuid_string: fast path for non-player entities that reads a
9+
# summoned item_display's item_name (via the `entity_uuid` item modifier) instead
10+
# of the scoreboard bit-twiddle. Needs the SNBT `uuid()` function and NBT text
11+
# components, both new in 1.21.5.
812

913
import ./global.mcbt
1014

0 commit comments

Comments
 (0)