How to make a procedure that detects if a portal structure is made

Started by Dudu_sama1 on

Topic category: Help with MCreator software

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a procedure that detects if a portal structure is made

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 ):

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use a procedure template,…
Tue, 05/12/2026 - 14:01

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.