Add initial content
This commit is contained in:
parent
52c9513447
commit
f9ab8cd018
105 changed files with 2409 additions and 0 deletions
2
mods/give_initial_stuff/depends.txt
Normal file
2
mods/give_initial_stuff/depends.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
|
12
mods/give_initial_stuff/init.lua
Normal file
12
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:get_inventory():add_item('main', 'default:pick_steel')
|
||||
player:get_inventory():add_item('main', 'default:torch 99')
|
||||
player:get_inventory():add_item('main', 'default:axe_steel')
|
||||
player:get_inventory():add_item('main', 'default:shovel_steel')
|
||||
player:get_inventory():add_item('main', 'default:cobble 99')
|
||||
end
|
||||
end)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue