mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-11-13 05:20:16 +01:00
parent
b5c7fbaa38
commit
3a9a985cfc
4
init.lua
4
init.lua
|
@ -15,10 +15,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") ~= false
|
||||
"item_drop.pickup_keyinvert") or false
|
||||
local keytype
|
||||
if key_triggered then
|
||||
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Sneak"
|
||||
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Use"
|
||||
end
|
||||
|
||||
local magnet_mode = magnet_radius > pickup_radius
|
||||
|
|
|
@ -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 true
|
||||
item_drop.pickup_keyinvert (Invert pickup key) bool false
|
||||
|
||||
#What keytype to use as pickup key
|
||||
item_drop.pickup_keytype (Pickup keytype) enum Sneak Use,Sneak,LeftAndRight,RMB,SneakAndRMB
|
||||
item_drop.pickup_keytype (Pickup keytype) enum Use 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