Custom Portal teleportation method with new 2020.5 procedures

Started by Sir_sassypants on

Topic category: Help with MCreator software

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Portal teleportation method with new 2020.5 procedures

Regarding the new "Execute in dimension" procedure, how would I go about making a custom portal method?

My idea was to create some form of machine, that when activated and entered will teleport you to the dimension surface. I know how to do everything except one thing. How do I find the surface? Currently I'm pretty sure the switch dimension just teleports you to the dimensions equivalent co-ords. So I need the procedure to locate the surface (take co-ords and see if it needs to go up or down) in an efficient manner so it doesn't scan every single block every single time you tp.

Any ideas or help?

in an efficient manner so it…
Wed, 11/18/2020 - 10:49

in an efficient manner so it doesn't scan every single block every single time you tp.

This is how vanilla portals do it. You will need to scan in the y-axis to find a good place for the portal.

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If your dimension is an…
Wed, 11/18/2020 - 23:26

If your dimension is an Overworld gen having as the minimum number a 60 could be a good idea. Thats where most caves start generating

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have been working on the…
Fri, 12/18/2020 - 02:09

I have been working on the procedure, and there is an error that I don't really understand what to do. Here is a link to a copy of the procedure, there are comments to help

Link

Error message: 

C:\Users\*me*\MCreatorWorkspaces\wanderers\src\main\java\net\sir_sassypants\wanderers\procedures\SATIRETeleportProcedure.java:335: error: local variables referenced from an inner class must be final or effectively final

BlockState _bs = world.getBlockState(pos);

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also forgot to mention,…
Fri, 12/18/2020 - 02:33

I also forgot to mention, the procedure is activated by gui button press, if that is useful