mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-15 02:36:48 -04:00
Add tools, bread, give_initial_stuff
Tools don't have recipes yet; they're just registered now and given by default. Bread had to be adapted to default since farming is useless.
This commit is contained in:
parent
70cf5f78bb
commit
e359719d7b
6 changed files with 356 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
|
||||
|
15
mods/give_initial_stuff/init.lua
Normal file
15
mods/give_initial_stuff/init.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
minetest.register_on_newplayer(function(player)
|
||||
--print("on_newplayer")
|
||||
|
||||
minetest.log("action", "Giving initial stuff to player "..player:get_player_name())
|
||||
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:wood 99')
|
||||
player:get_inventory():add_item('main', 'default:wood 99')
|
||||
player:get_inventory():add_item('main', 'default:sword_steel')
|
||||
player:get_inventory():add_item('main', 'default:bread 50')
|
||||
player:get_inventory():add_item('main', 'moontest:spacesuit')
|
||||
end)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue