Option to check if a player is in a Structure.

Published by Trolmaso on
Status
Resolved
Issue description

Can you a procedure block to check if an entity/player is in a structure?

It would be something like this: [is (source entity/event entity) in a(n) {structure}] 

It would be like a drop down menu that you can choose which structure you want it to detect for.  It would also work with custom structures.

This shouldn't be too hard, as this is something vanilla Minecraft has. (As an advancement trigger for the advancement: "The City at the End of the Game" which detects if you go into an end city)

(If you can't do this as a procedure block, can you just add it as an advancement trigger?)

Thanks!

-Trolmaso

Issue comments

 this is to support getting coordinates of structure in procedures

I am probably not thinking, but doesn't this mean that I will have to detect is an entity/player is in every single one of the structure coordinates? 

You can calculate the distance between coordinate of the structure and coordinate of player and request it to be smaller than the given value.