Custom Portal teleportation method with new 2020.5 procedures

Started by Sir_sassypants on Wed, 11/18/2020 - 04:32

Topic category: Help with MCreator software

Last seen on 22:29, 12. Jan 2021
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Portal teleportation method with new 2020.5 procedures
Wed, 11/18/2020 - 04:32

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?

Last seen on 11:04, 22. Jan 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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.

Last seen on 21:29, 19. Jan 2021
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 22:29, 12. Jan 2021
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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);

Last seen on 22:29, 12. Jan 2021
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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