fill chests with specific nodes

minetestcr
Member
 
Posts: 57
Joined: Fri Feb 13, 2015 21:31

fill chests with specific nodes

by minetestcr » Thu Oct 15, 2015 14:54

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!
 

User avatar
Ferk
Member
 
Posts: 330
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: fill chests with specific nodes

by Ferk » Thu Oct 15, 2015 17:04

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.
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: fill chests with specific nodes

by rubenwardy » Thu Oct 15, 2015 19:06

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.
 

minetestcr
Member
 
Posts: 57
Joined: Fri Feb 13, 2015 21:31

Re: fill chests with specific nodes

by minetestcr » Thu Oct 15, 2015 20:02

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.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: fill chests with specific nodes

by Don » Thu Oct 15, 2015 22:04

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
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

minetestcr
Member
 
Posts: 57
Joined: Fri Feb 13, 2015 21:31

Re: fill chests with specific nodes

by minetestcr » Thu Oct 15, 2015 23:08

Don wrote: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



great, thanks, I will try it
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: fill chests with specific nodes

by Don » Thu Oct 15, 2015 23:40

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.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: fill chests with specific nodes

by Sokomine » Fri Oct 16, 2015 01:23

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.
A list of my mods can be found here.
 

minetestcr
Member
 
Posts: 57
Joined: Fri Feb 13, 2015 21:31

Re: fill chests with specific nodes

by minetestcr » Fri Oct 16, 2015 14:31

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.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 12 guests