how to?[SOLVED]

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

how to?[SOLVED]

by azekill_DIABLO » Thu Mar 03, 2016 17:11

How to use give_initial_stuff please?
Last edited by azekill_DIABLO on Sun Apr 03, 2016 13:13, edited 1 time in total.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
oleastre
Member
 
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: how to?

by oleastre » Thu Mar 03, 2016 17:20

If you just want to get the default items in your inventory while using minetes game, you just need to add the following line in your`minetest.conf file:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
give_initial_stuff = true
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: how to?

by azekill_DIABLO » Fri Mar 04, 2016 11:47

ah, it's so simple? thanks!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: how to?

by azekill_DIABLO » Fri Mar 04, 2016 17:31

I don't have that in my folder i have
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_newplayer(function(player)
   --print("on_newplayer")
   if minetest.setting_getbool("give_initial_stuff") then
      minetest.log("action", "Giving initial stuff to player "..player:get_player_name())
      player:get_inventory():add_item('main', 'default:pick_mese')
      player:get_inventory():add_item('main', 'default:torch 99')
      player:get_inventory():add_item('main', 'default:axe_mese')
      player:get_inventory():add_item('main', 'default:shovel_mese')
      player:get_inventory():add_item('main', 'default:cobble 99')
   end
end)



i already modified 1 or 2 things :) like the items name
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
Gael de Sailly
Member
 
Posts: 475
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Re: how to?

by Gael de Sailly » Fri Mar 04, 2016 18:21

No, do not modify here. You should have a file called "minetest.conf" in the main folder of Minetest, not in the mod. And that's in this file that you should add "give_initial_stuff = true".

If you want to restore the initial code in init.lua, it's here.
Very busy this year too, so do not expect me to be very active on the forum or in game. But I'm not about to drop Minetest forever :)
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: how to?

by azekill_DIABLO » Sat Mar 05, 2016 11:15

thanks
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 


Return to Minetest General

Who is online

Users browsing this forum: Bing [Bot] and 21 guests

cron