Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing end automata to teleport into unloaded chunks #110

Open
tiggerbiggo opened this issue Mar 5, 2025 · 0 comments
Open

Allowing end automata to teleport into unloaded chunks #110

tiggerbiggo opened this issue Mar 5, 2025 · 0 comments
Labels
area-Automata Automata cores / turtle relatives

Comments

@tiggerbiggo
Copy link

Describe your idea (If you have more than one idea, please open the rest in other issues)

Hi,

With the presence of the chunky upgrade and the limitations on having to visit each point to save it, I think that at least when a chunky upgrade is equipped, that the end automata should allow teleporting into unloaded chunks.

For example i'm trying to make an automated digital miner setup where the turtle can teleport to various areas and place a miner, but being unable to teleport into unloaded chunks is what appears to be stopping me. I took a look at the code and it's one of these conditions giving me the error "Move forbidden":

if (level.isOutsideBuildHeight(pos)) return false; <-- The turtle couldn't have saved it above max world height
if (!level.isInWorldBounds(pos)) return false; <-- The points are well within the world border
if (!level.isAreaLoaded(pos, 0)) return false; <-- Likely culprit, the chunks are very far away
return level.getWorldBorder().isWithinBounds(pos); <-- The points are well within the world border

Describe alternatives you've considered if any

No response

Additional context

No response

Linked Issues

No response

@zyxkad zyxkad added the area-Automata Automata cores / turtle relatives label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Automata Automata cores / turtle relatives
Projects
None yet
Development

No branches or pull requests

2 participants