minetest / minetest

Luanti (formerly Minetest) is an open source voxel game-creation platform with easy modding and game creation
https://www.minetest.net/
Other
10.76k stars 2.03k forks source link

Disable pointing for tools #6651

Open Wuzzy2 opened 6 years ago

Wuzzy2 commented 6 years ago

I request to be able to completely disable pointing for tools (including the hand).

To implement this, I request to simply interpret the value range=0 as a special value which disables pointing. Currently, this almost works, but when you are inside a node, you still point it. It seems to be impossible to force the player to be completely unable to point something. There are certain uses for this (see below). There's also a bug: If you set range=0 for the hand, it does not work at all. The range remains at the default 4 if you have the hand selected, but the range is 0 if you have an item on hand (e.g. cobblestone).

Rationale: This is an easy and reliable way to completely disable rightclicking, mining and punching any nodes, entities or whatever.

Use cases:

paramat commented 5 years ago

Any core dev support? (i'm neutral).

paramat commented 4 years ago

Reopen. I realised i support this as a duplicate issue was opened which i support #10355

Zughy commented 4 months ago

As suggested in #14742, I'd like a solution like range = -1