Resolve nbt text components, other dimensions and vanilla's own data as vanilla

/tellraw resolves nbt components; execute in another dimension sees its
chunks unloaded; the built-in pack's predicates load; holders stay
tracked after their objective is removed; new worlds use the offline
profile id of the player.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-11 16:34:17 +02:00
parent 2faf5520b3
commit 8490e19ec0
10 changed files with 175 additions and 19 deletions
+6 -1
View File
@@ -346,6 +346,9 @@ def execute():
cmd('/execute facing 0 230 0 run tp @s ~ ~ ~ ~ ~'),
cmd('/execute facing entity @e[tag=ex,limit=1] feet run tp @s ~ ~ ~ ~ ~'),
cmd('/execute in minecraft:the_nether run setblock 0 200 0 minecraft:stone'),
cmd('/execute in minecraft:the_end if block 0 64 0 minecraft:air'),
cmd('/execute in minecraft:the_end run say elsewhere'),
cmd('/execute in minecraft:nowhere run say nowhere'),
cmd('/execute in minecraft:overworld run setblock 5 210 5 minecraft:dirt'),
cmd('/execute if dimension minecraft:overworld'),
cmd('/execute if dimension minecraft:the_end'),
@@ -820,7 +823,9 @@ def social():
cmd('/tellraw @s {"selector":"@s"}'),
cmd('/tellraw @s {"score":{"name":"@s","objective":"trig"}}'),
cmd('/tellraw @s {"nbt":"SelectedItemSlot","entity":"@s"}'),
cmd('/tellraw @s {"keybind":"key.jump"}'),
cmd('/tellraw @s {"nbt":"Inventory","entity":"@s","plain":true}'),
cmd('/tellraw @s {"nbt":"value","storage":"harness:s","color":"red"}'),
cmd('/tellraw @s {"nbt":"nothing","entity":"@s"}'),
cmd('/tellraw @s {"text":"click","click_event":{"action":"run_command","command":"/say x"},"underlined":true}'),
cmd('/title @s title {"selector":"@s"}'),
cmd('/list uuids'),