mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Adjust default key settings
This commit is contained in:
parent
55e89d3710
commit
3bc3a4bd25
4
init.lua
4
init.lua
@ -10,10 +10,10 @@ if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false then
|
|||||||
local key_triggered = minetest.settings:get_bool(
|
local key_triggered = minetest.settings:get_bool(
|
||||||
"item_drop.enable_pickup_key") ~= false
|
"item_drop.enable_pickup_key") ~= false
|
||||||
local key_invert = minetest.settings:get_bool(
|
local key_invert = minetest.settings:get_bool(
|
||||||
"item_drop.pickup_keyinvert") or false
|
"item_drop.pickup_keyinvert") ~= false
|
||||||
local keytype
|
local keytype
|
||||||
if key_triggered then
|
if key_triggered then
|
||||||
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Use"
|
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Sneak"
|
||||||
end
|
end
|
||||||
local damage_enabled = minetest.settings:get_bool("enable_damage")
|
local damage_enabled = minetest.settings:get_bool("enable_damage")
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@ item_drop.enable_item_drop (Enable item drops) bool true
|
|||||||
item_drop.enable_pickup_key (Use pickup key) bool true
|
item_drop.enable_pickup_key (Use pickup key) bool true
|
||||||
|
|
||||||
#Collect items when the key is not pressed instead of when it is pressed
|
#Collect items when the key is not pressed instead of when it is pressed
|
||||||
item_drop.pickup_keyinvert (Invert pickup key) bool false
|
item_drop.pickup_keyinvert (Invert pickup key) bool true
|
||||||
|
|
||||||
#What keytype to use as pickup key
|
#What keytype to use as pickup key
|
||||||
item_drop.pickup_keytype (Pickup keytype) enum Use Use,Sneak,LeftAndRight,RMB,SneakAndRMB
|
item_drop.pickup_keytype (Pickup keytype) enum Sneak Use,Sneak,LeftAndRight,RMB,SneakAndRMB
|
||||||
|
|
||||||
#The volume of the pickup sound
|
#The volume of the pickup sound
|
||||||
item_drop.pickup_sound_gain (Pickup sound gain) float 0.4
|
item_drop.pickup_sound_gain (Pickup sound gain) float 0.4
|
||||||
|
Loading…
Reference in New Issue
Block a user