Option to check if a player is in a Structure.

Published by Trolmaso on Tue, 06/09/2020 - 13:36
Status
Resolved
Product/platform
Not applicable
Priority
Normal
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.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.