-
Notifications
You must be signed in to change notification settings - Fork 164
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
LockRotation app #376
base: master
Are you sure you want to change the base?
LockRotation app #376
Conversation
Added entry for lockrotation.sc
New program added to programs/utilities
- Updated orientation calculation to better reflect actual Minecraft placement behavior. - Fixed major bug in reorientation function
Fixed a typo in _getIdealState()
Other than that it certainly functions as expected. Your I was a bit confused on how to get the "half" part of the lock to activate and I had to read through the code to find it, so an explanation of how to use the script could be added to the readme entry. My last major note is that there are a lot of lines that could be optimized with scarpet-specific features (lines 109-117 could become |
Usage instructions added to lockrotation.sc entry
- Holographic indicator added when running the command, to better indicate block halves - When locking rotation and immediately placing a block, some blocks would be placed opposite to how one would expect. This has been largely corrected.
Cleaned up errant print statement. Whoops
I've added a short description to the readme, as well as a holographic indicator when running the command, which should make it a little more obvious how to use it. |
Not an ideal solution, but one that works without meaningful side effects.
Alright, I have something working. It's not ideal, but it does work and doesn't seem to have any adverse effects apart from an errant sfx. |
Made the stairs fix less overzealous
Added missing grindstone exception detection.
- Cleaned up and quickened stair correction code - Fixed minor bug in hologram rendering
An app that recreates the behavior of the "lock rotation" tweak from the Quark mod.
This app adds a command, /lockrotation, which saves the player's current orientation for block placement (or an approximation), and applies it to all future blocks placed.
The lock can be disabled by running the command /lockrotation clear or setting the same rotation twice in a row.
Your current saved rotation can be displayed by running the command /lockrotation show.
I am not positive how this app will interact with any modded blocks, although I imagine not well. That's something that can be improved perhaps.
For vanilla blocks, though, I've accounted for as many edge cases as I could think of. Hopefully, I've not missed anything glaringly obvious.