#How to load a location

1 messages · Page 1 of 1 (latest)

kind tuskBOT
#

I have this code ```ansi
tag @a add countdown
say The chest has been placed!
$execute positioned 0 0 0 run summon armor_stand $(varX) $(varY) $(varZ) {Invisible:1b,Marker:1b,Tags:["chest"]}
$setblock $(varX) $(varY) $(varZ) chest
function helpful:countdown {length:420}
say Your time starts now >:)

And I want place a chest in a random spot with i have the variables for but how do i load the spot so i can use it?
pulsar swanBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

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

twin hornet
#

Ayy the bots working again 🙂

#

So I have coords and want to place a chest at varXYZ and have the setblock but it dont work I think it has to do with loading chunks idk

#

When i run it in a command block it runs fine

#

I mean when i call this function in a command block it runs fine but if i call it from another function it just dont place

#

it summons the stand but the chest dont place :/

pulsar swanBOT
# pulsar swan <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

mossy plinth
#

It probably is a chunk loading issue

twin hornet
#

how can i load the coords?

mossy plinth
#

Well in theory you could forceload them, but I think it takes a tick for forceloaded chunks to actually become loaded, so it may not be very convenient. The alternative would be to just summon the armor stand, and then have a ticking function running as that armor stand only if the chunks are loaded, and have that place the block and give the armor stand a tag so that the function doesn't run again

#

You can do this with the if loaded subcommand of execute

pulsar swanBOT
#
Question Closed

Your question, #1356784278842904827 (How to load a location), was resolved!

Original Message

#1356784278842904827 message

Duration open

2h43m

pulsar swanBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.