Started by
Sir_sassypants
on
Topic category: Help with MCreator software
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?
This is how vanilla portals do it. You will need to scan in the y-axis to find a good place for the portal.
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
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);
I also forgot to mention, the procedure is activated by gui button press, if that is useful