Skip to content

Suppress axle rotating items in builders when holding aux1 - #134

Merged
SmallJoker merged 2 commits into
minetest-mods:masterfrom
j-r:no_rotate_build_items
Aug 28, 2026
Merged

Suppress axle rotating items in builders when holding aux1#134
SmallJoker merged 2 commits into
minetest-mods:masterfrom
j-r:no_rotate_build_items

Conversation

@j-r

@j-r j-r commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

When the axle rotates the digger, param2 of builders is also rotated accordingly. This is a cool feature, but sometimes it is not the right thing to do, e.g. when building a large platform spiraling out with a small digtron, or when building with column like nodes (e.g. tree trunks) that should only be placed in 6 (or even only 3 in mineclone2 derived games) directions.

This PR changes the axle to not rotate builder param2 when aux1 is held when triggering the axle.

@SmallJoker

Copy link
Copy Markdown
Member

Usually Sneak/Shift bypasses callbacks --> https://github.com/luanti-org/luanti/blob/ecda1027f3c501eb9c2274a1815e1997831300af/builtin/game/item.lua#L338-L341

Is that key already bound to another functionality? If not - then I would suggest to use Sneak/Shift instead.

@j-r

j-r commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

I actually tried sneak first, because I forgot it prevents the whole on_rightclick (which obviously is fine). So aux remains the only option, I guess.

@SmallJoker

Copy link
Copy Markdown
Member

Ah yes, of course. Would you please be so nice to document this behaviour somewhere (doc, node description, ..?), such that players get to know about this feature?

@j-r

j-r commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Would you please be so nice to document this behaviour somewhere (doc, node description, ..?)

Of course, I added it to the doc entry, because the description currently has just the name without any further information.

@SmallJoker
SmallJoker merged commit a7d890c into minetest-mods:master Aug 28, 2026
1 check passed
@j-r
j-r deleted the no_rotate_build_items branch August 28, 2026 15:26
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.

2 participants