mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-08-20 13:14:09 +02:00
Adjust default key settings
This commit is contained in:
parent
9de8d39af6
commit
c21158ffab
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(
|
||||
"item_drop.enable_pickup_key") ~= false
|
||||
local key_invert = minetest.settings:get_bool(
|
||||
"item_drop.pickup_keyinvert") or false
|
||||
"item_drop.pickup_keyinvert") ~= false
|
||||
local keytype
|
||||
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
|
||||
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
|
||||
|
||||
#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
|
||||
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
|
||||
item_drop.pickup_sound_gain (Pickup sound gain) float 0.4
|
||||
|
Loading…
Reference in New Issue
Block a user