Skip to content

Conversation

tildejustin
Copy link
Member

this needs a lot of testing, and the person who requested the feature doesn't have the seeds, so that's cool!
I was not given some crucial information, which is that you also need a grass block under the obstructed spawn. I fixed this, it's not a parity concern but it would silently fail to use the set spawn instead of giving an error message. Additionally, since we're at the end of the loop p * n gets added to o, so that needs to be reversed to actually set the spawn we want. Also not a parity concern but makes 4.2.0 not particularly useful for runners since it's still essentially random to what spawn you get vs what you put in, just deterministic randomness.
1.18+ has different spawning criteria but I think the mixins should still work, I tested 1.21.6 pretty well on the new ssg seed and I think it's right. I'm more scared of crashes than the code being wrong but both are always a possibility :).
took the opportunity to clean up some metadata, the icon wasn't a square or a power of 2 resolution, there was no links, and I set setspawn-common as a library and a child mod for modmenu b/c why not. I should do the same for state output at some point.
I think I'm going to go insane if I have to look at setspawn code again for a while so if this doesn't work, idk, I give up.

… all modifications to the random call, formatting
I should change this injector, but I don't trust that first BlockPos local to stay around
8 1.21 subversions already??? where did the time go
@tildejustin tildejustin merged commit 1ca1f7e into Minecraft-Java-Edition-Speedrunning:main Jul 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant