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

Add shift-click and middle click interactions to [item image] buttons #14640

Open
bramaudi opened this issue May 11, 2024 · 4 comments
Open

Add shift-click and middle click interactions to [item image] buttons #14640

bramaudi opened this issue May 11, 2024 · 4 comments
Labels
@ Client / Controls / Input Feature request Issues that request the addition or enhancement of a feature Formspec @ Script API

Comments

@bramaudi
Copy link

Problem

Can't craft a stack of stairs in Stonecutter with shift click like in the Crafting table.

simplescreenrecorder-2024-05-11_15.45.23.mp4

Solutions

Allow shift-clicking like in crafting table to craft a stack of item in Stonecutter

Alternatives

Alternatively add manual button to able bulk craft item

Additional context

No response

@bramaudi bramaudi added the Feature request Issues that request the addition or enhancement of a feature label May 11, 2024
@SwissalpS
Copy link

Isn't this an issue with the mod? Maybe open an issue there.

@bramaudi
Copy link
Author

Isn't this an issue with the mod? Maybe open an issue there.

Already submit an issue in mod repo, the author said they have no control in this.

The crafting/inventory mouse interactions is implemented in the engine and there is no way for Mineclonia to change it.

https://codeberg.org/mineclonia/mineclonia/issues/1392

@SmallJoker
Copy link
Member

SmallJoker commented May 11, 2024

I assume you'd like to detect shift-clicked [item image] buttons. As of now, only simple clicks can be registered though formspec callbacks. ObjectRef:get_player_control is likely not updated in formspecs, thus that cannot be used as a workaround.

Possible solution:

  1. make the stone cutter show the total sum of craftable items in the output slot (depends on the input item stack size and last selected output type)
  2. use shift-click or middle click to move or pick up as many stacks from that output you want
  3. use the on_take callback to reduce the input stack based on the taken items.

@SmallJoker SmallJoker changed the title Add shift click to Stonecutter to craft a stack of item Add shift-click and middle click interactions to [item image] buttons May 11, 2024
@SwissalpS
Copy link

  1. Use standard inventory list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Client / Controls / Input Feature request Issues that request the addition or enhancement of a feature Formspec @ Script API
Projects
None yet
Development

No branches or pull requests

4 participants