forked from Mirrorlandia_minetest/minetest
Re-implement give_initial_stuff
This commit is contained in:
parent
57a2bd056c
commit
08c9b6037d
12
data/mods/give_initial_stuff/init.lua
Normal file
12
data/mods/give_initial_stuff/init.lua
Normal file
@ -0,0 +1,12 @@
|
||||
minetest.register_on_newplayer(function(player)
|
||||
print("on_newplayer")
|
||||
if minetest.setting_getbool("give_initial_stuff") then
|
||||
print("giving give_initial_stuff to player")
|
||||
player:add_to_inventory('ToolItem "SteelPick" 0')
|
||||
player:add_to_inventory('NodeItem "torch" 99')
|
||||
player:add_to_inventory('ToolItem "SteelAxe" 0')
|
||||
player:add_to_inventory('ToolItem "SteelShovel" 0')
|
||||
player:add_to_inventory('NodeItem "cobble" 99')
|
||||
end
|
||||
end)
|
||||
|
@ -89,6 +89,7 @@ void set_default_settings(Settings *settings)
|
||||
settings->setDefault("enable_damage", "true");
|
||||
settings->setDefault("only_peaceful_mobs", "false");
|
||||
settings->setDefault("fixed_map_seed", "");
|
||||
settings->setDefault("give_initial_stuff", "false");
|
||||
settings->setDefault("default_password", "");
|
||||
settings->setDefault("default_privs", "build, shout");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user