Started by
Dudu_sama1
on
Topic category: Help with MCreator software
i was searching how to make a procedure that detects if the portal frame blocks are in the right position to spawn the portal in the middle (in a horizontal portal like the end or twilight zone)
i tryed to search everywhere but i cant find a good tutorial that shows how to create and make the procedure work
pls help ):
Use a procedure template, portal, might help you.
Otherwise, because your portal is horizontal, think of the world and portal as a grid/graph on the x and z. On any of your portal blocks you need to check around them for other portal blocks of the same type. If the portal blocks exist in the correct places then place the portal portal.
Depending on your portal, you could make another block to do the checking of the other portal blocks, in the center for example, and to place the portal.
You could also use a specific portal block with an nbt which causes it to check for and place the portal. This makes it easier to check one single set of coordinates rather than all possible from every portal blocks location or from a separate block.