#Detect when a player entres a structure

1 messages · Page 1 of 1 (latest)

plush dome
#

Hello, i want to make a custom kind of raid that activates when you enter a structure, is there any way like an advancement or execute if player type of way to detect and also to summon the mobs inside the structure without suffocating them?

south valeBOT
#

<@&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:1730077069: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

random drum
#

there should be an advancement trigger for entering structures

rich temple
#

There is an advancement for entering a structure, it's a location trigger

#

Getting mobs to spawn in the structure and also not in walls would be a little more challenging

random drum
#

so you'd make an advancement that rewards you by running a script that revokes the advancement and then runs code

plush dome
#

okay, and for the part of summoning the mobs without suffocating and that?

random drum
random drum
#

....kind of silly idea, probably not a good one, but you could potentially drop them into an end gateway that leads to the location of the player
that would cause them to appear at the highest unobstructed location in an 11x11 range

plush dome
#

wow that kind of a good idea but its for a multiplayer world, it would work with that?

#

also in the nether?

random drum
#

would not work in the nether no matter what

#

the roof will always be the highest unobstructed location

plush dome
#

oohhh okay

random drum
#

you might be able to do something similar to raycasting but in a radius? not entirely sure how that would work though

plush dome
#

wait

#

What if I use the nether wart

random drum
#

like make it check all the positions a certain distance away from the player in a circle for a block tag with air and grass and such

plush dome
#

From the fortress like a spawn method

#

is there any way ?

random drum
#

uh
i do not know

plush dome
#

Okay

#

let me try something

#

thank youuu

south valeBOT
#
Question Closed

Your question, #1300254658568261643 (Detect when a player entres a structure), was resolved!

Original Message

#1300254658568261643 message

Duration open

10m

south valeBOT
#

Re-opened the channel. Make sure to close it again once you're done.

sick ridge
#

you can create a predicate and have it be linked to the structures id under the /locate command so minecraft:fortress for detecting inside a nether fortress, unless you meant just for buildings in general then IDK W_W