#Detect when a player entres a structure
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
there should be an advancement trigger for entering structures
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
so you'd make an advancement that rewards you by running a script that revokes the advancement and then runs code
okay, and for the part of summoning the mobs without suffocating and that?
probably storing whether one is currently going on with a scoreboard i'd imagine
that's the tricky part yeah
....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
wow that kind of a good idea but its for a multiplayer world, it would work with that?
also in the nether?
would not work in the nether no matter what
the roof will always be the highest unobstructed location
oohhh okay
you might be able to do something similar to raycasting but in a radius? not entirely sure how that would work though
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
uh
i do not know
Your question, #1300254658568261643 (Detect when a player entres a structure), was resolved!
#1300254658568261643 message
10m
Re-opened the channel. Make sure to close it again once you're done.
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