Page 1 of 1

Eat/drink with rightclick

PostPosted: Thu Jun 09, 2016 07:28
by burli
Eating/drinking should be activated by rightclick, not leftclick. It happens to often, that I accidently eat something if I don't need it

Re: Eat/drink with rightclick

PostPosted: Thu Jun 09, 2016 10:25
by azekill_DIABLO
yes i think it's an engine limitation....remember we can place the apples!

Re: Eat/drink with rightclick

PostPosted: Thu Jun 09, 2016 10:47
by rubenwardy
Items currently use on_use. You could use on_rightclick or whatever the callback is called. But what if the food is a node that the user wants to place?

Re: Eat/drink with rightclick

PostPosted: Thu Jun 09, 2016 12:04
by burli
azekill_DIABLO wrote:remember we can place the apples!

You are right, forgot this. Then something like shift (sneak) rightclick (or left)

Re: Eat/drink with rightclick

PostPosted: Thu Jun 09, 2016 12:30
by everamzah
Apples (default:apple) can be placed, but bread (farming:bread) can not. I think both should use on_rightclick() to eat, and both be able to place while sneaking.

OT but related: Sneaking shouldn't be equal to crouching. Walking speed is not related to direction - and they ought to be separate - meaning a new key would be needed for descend. I'm aware AUX1 ('Use', default [E]) can be used to descend, with the use of a setting, but that's the key to run.

Anyway a mod could be made to override the items and make them require right-clicking to eat.

Re: Eat/drink with rightclick

PostPosted: Thu Jun 09, 2016 13:25
by TenPlus1
Certain foods need right-click to plant in soil for crops, if you re-purpose right click then it stops you growing them... Stick with the on_use to eat, if you use a food item you eat a food item... simple.

Re: Eat/drink with rightclick

PostPosted: Mon Jun 13, 2016 16:56
by Ambistic
It's easy to accidentely eat one if we don't need because they're consumed even if our health is max and it's instantaneous, there is no animation that could warn you're eating the apple and not breaking a node