Page 1 of 1
fill chests with specific nodes

Posted:
Thu Oct 15, 2015 14:54
by minetestcr
Hello!
How can I fill chests with a large number of nodes (glass, chairs, dyes, etc.)?
I know I can get in creative mode and fill them, but that is slow. Is there a file in the world folder where you can type the chest contents?
thanks!
Re: fill chests with specific nodes

Posted:
Thu Oct 15, 2015 17:04
by Ferk
I guess the metadata is stored in the database, not a text file (which would be slower to access/update for the engine).
If you really don't want to do it manually you would probably be better off writing a mod for that. Also depending on what you want, you might be able to automate it further this way.
Re: fill chests with specific nodes

Posted:
Thu Oct 15, 2015 19:06
by rubenwardy
do:
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
/grant singleplayer all
/giveme mod:name 1000
where mod:name is an
Itemstring.
Re: fill chests with specific nodes

Posted:
Thu Oct 15, 2015 20:02
by minetestcr
Thanks for the answers. The situation is that I have 20 students playing, so I wanted to put chests with some nodes for them to pick up and use. I am going to try the /give command.
Re: fill chests with specific nodes

Posted:
Thu Oct 15, 2015 22:04
by Don
This is not an actual chest but my mod called myitemchest drops items when it is opened. You can edit the mod to give whatever items you want.
viewtopic.php?f=9&t=13375&p=194798#p194798
Re: fill chests with specific nodes

Posted:
Thu Oct 15, 2015 23:08
by minetestcr
great, thanks, I will try it
Re: fill chests with specific nodes

Posted:
Thu Oct 15, 2015 23:40
by Don
I also made a mod for my game that is a chest. It opens just like myitemchest does. If you want I can merge the two. That way the students have a place to store the items.
Re: fill chests with specific nodes

Posted:
Fri Oct 16, 2015 01:23
by Sokomine
minetestcr wrote:Thanks for the answers. The situation is that I have 20 students playing, so I wanted to put chests with some nodes for them to pick up and use. I am going to try the /give command.
Do you wish to give all of the 20 studens a personal chest each with the same content? Or just put some unlocked chests somewhere with enough materials for all? The content of chests is stored in the metadata. It can be accessed and changed by mods.
Re: fill chests with specific nodes

Posted:
Fri Oct 16, 2015 14:31
by minetestcr
Sokomine wrote:minetestcr wrote:Thanks for the answers. The situation is that I have 20 students playing, so I wanted to put chests with some nodes for them to pick up and use. I am going to try the /give command.
Do you wish to give all of the 20 studens a personal chest each with the same content? Or just put some unlocked chests somewhere with enough materials for all? The content of chests is stored in the metadata. It can be accessed and changed by mods.
Thanks Sokomine... both options sound good to me, if you can please give some directions to start I will try. thanks.