#how could i store the coordinates of a chunk

1 messages · Page 1 of 1 (latest)

woven vine
#

followup question to my previous one, how could i store the coordinates of a chunk loaded with /forceload

quaint solsticeBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1741471184:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

cosmic stirrup
#

Store the xz (y is not important) position of the entity running the command in a storage

woven vine
#

the command doesnt seem to use actual coordinates

#

but rather the chunk grid

cosmic stirrup
#

oh, right

#

you have to divide the coordinates by 16 to get the chunk coodinates

woven vine
#

god that feels so obvious

#

ill keep this open in case more questions come up

woven vine
#

im having issues with syntax

#

im trying to append a value to a item model but cant seem to figure out how to add it without deleting everything else

#

this is what i was trying to do data modify entity @s item.components."minecraft:custom_data".data append value {test:{}}

cosmic stirrup
#

you have to use merge

#

it merges the two data sets together

#

(unless you use the same key, then it overwrites)

limpid kelp
#

what are you deleting?