tr7zw / ItemSwapper

Tweaks to the inventory system based on Xisumavoid's video.
Other
100 stars 27 forks source link

[Suggestion] Automatic tool selection based on the block you are looking at #58

Open DemiWrath opened 1 year ago

DemiWrath commented 1 year ago

I have two ideas for how this could work:

1.) Automatically, if you try to mine grass with a pickaxe, it will swap to a shovel without you doing anything, only works if you're holding a tool.

2.) (My favorite) Semi-Auto, while hovering over a block with a tool, if you press "R" it will hover over the ideal tool for the block, from here you can either release R or keep scrolling to select a different tool. This way would be better for finer control, for example if you wanted to silk touch instead of fortune, or actually want to pickaxe grass. Has the benefit that quickly pressing and releasing R does all the thinking for you, so it's still pretty useful.

AdvancedWipe commented 1 year ago

For your first idea, there are already mods out there which implement such a functionality. Most of them call it Auto Tool Swaping. I don't think that this makes a lot of sense to implement due to other mods already having such a functionality.

The other one sounds kind of interesting, but let other people respond what they think about that.

tr7zw commented 1 year ago

100% what @AdvancedWipe said. The first one won't happen, and there are mods for it. The second one might be ok, maybe in a slightly changed version. I will have to discuss it.

SebSemos commented 1 year ago

+1 for the semi auto. I've tried autmatic mods in the past, I didn't liked it when I build. I often destroyed two or three block I didn't wanted ^^

Other ideas to implement the semi auto: bind to the pick block key. One press = pick block, two press = chose the best tool. The tool should be replacing any tool we have in the hotbar if we do, to prevent the hotbar filling up with tools.

AstudilloMarillo commented 4 months ago

Other ideas to implement the semi auto: bind to the pick block key. One press = pick block, two press = chose the best tool. The tool should be replacing any tool we have in the hotbar if we do, to prevent the hotbar filling up with tools.

Or maybe keeping the pick block key pressed (for 500ms?) will pop up a menu similar to the 'Switch Item' menu for tools, then you can move the mouse up and down to cycle through different tools if multiple suitable options are available, let go of the key to select.

I like the idea of utilising the pick block key though, seems intuitive.