Move give initial stuff to _misc
parent
f1556c0107
commit
f6e255dc00
|
@ -1,7 +1,7 @@
|
|||
minetest.register_on_newplayer(function(player)
|
||||
print("on_newplayer")
|
||||
print("New player just joined!")
|
||||
if minetest.setting_getbool("give_initial_stuff") then
|
||||
print("giving give_initial_stuff to player")
|
||||
print("Giving initial stuff to the player.")
|
||||
player:get_inventory():add_item('main', 'default:pick_stone')
|
||||
player:get_inventory():add_item('main', 'default:torch 20')
|
||||
player:get_inventory():add_item('main', 'default:axe_stone')
|
|
@ -2,6 +2,9 @@
|
|||
-- Server Misc Mod --
|
||||
---------------------
|
||||
|
||||
-- Give initial stuff
|
||||
dofile(minetest.get_modpath("_misc").."/give_intial_stuff.lua")
|
||||
|
||||
-- Chat Commands
|
||||
dofile(minetest.get_modpath("_misc").."/chatcommands.lua")
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
default
|
||||
|
Loading…
Reference in New Issue