Give using and building two different key bindings

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Give using and building two different key bindings

by Wuzzy » Wed Oct 30, 2013 18:44

TL;DR: Using (stuff like opening chests) and building are two seperate actions which are clumsily bound to the same key. This results in some annoyances and I suggest to change this.


You can both use a block and build with the right mouse button.

This results in a problem: It it not possible to directly build next to a block which is usable.

Example: Imagine you point a chest on its top and you wield dirt.
Click with the right mouse button. The chest menu opens.
Now what can you to to place the dirt on top of the chest directly?
Well, it seems this is simply not possible.

Yes, I know, it is possible to work around this by placing other nodes as a support but this approach is annoying and hacky.

Therefore, I suggest to split using and building to two key bindings.
Right click should mean building. Ideally, it means always building; if possible the meaning of this key binding should not be overwritten by anything.
And [E] (or whatever key the player chose) should mean using and only using.

“Using” here means “do something with the pointed node, I don’t know exactly what, it depends on the node type what I do here”.
Using is used (haha!) in the default subgame / game for opening doors, chests, furnaces, changing sign texts and so on. Most nodes can not be used. In this case, the use key should do nothing here when pressed.

Example under my proposal: Imagine you point a chest on its top and you wield dirt. This shall happen:
  • You press E (=the use key). The chest menu opens.
  • You press the right mouse button (=the build button). The dirt gets built on the chest.

I also suggest the node callback “on_use”. It shall get called when a player presses the use key while pointing the node. It shall do nothing by default.

The callback “on_rightclick” could probably stay for a while but I think it should be dropped in the future because it’s just clumsy in my opinion. Right click is already used for building stuff, letting nodes override this breaks stuff (see 1st example).

Strangely, I saw a key binding for “use” in the config menu but it does mean something different. The only thing this key does is letting you walk faster in fast mode and as an alternative key binding for climbing down. This is not what I mean with “use”.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Wed Oct 30, 2013 18:51

Wuzzy wrote:Example: Imagine you point a chest on its top and you wield dirt.
Click with the right mouse button. The chest menu opens.
Now what can you to to place the dirt on top of the chest directly?
Well, it seems this is simply not possible.

Just hold shift while rightclicking.
Last edited by PilzAdam on Wed Oct 30, 2013 18:51, edited 1 time in total.
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

by Wuzzy » Wed Oct 30, 2013 19:23

WTF? Oh my dawg, this actually works. I wasn’t aware of this. Thanks. I’ll update the wiki accordingly.

This makes the situation even stranger:

You press the sneak and build key simutanously to build.
And you press the build key alone to use.
Oh dawg, why? This does not make any sense but it works at least. But it’s still slightly clumsy in my opinion.

Well, it works at least. Better than nothing.

Edit: I updated the wiki page. :-)
Last edited by Wuzzy on Wed Oct 30, 2013 19:31, edited 1 time in total.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
LionsDen
Member
 
Posts: 525
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Wed Oct 30, 2013 19:54

I did not know this about the shift and right mouse key to build on a usable node. That's cool and something I will have to try and remember.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Oct 30, 2013 19:59

Some mods such as homedecor, moreblocks, and perhaps others use 'sneak' while placing some blocks to force a certain orientation of the block (e.g. a wall-oriented slab placed on the ground, a door forced to hinge/open to the right, etc).
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests