Chests in dungeons?

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02

Chests in dungeons?

by mcfan » Sat Mar 29, 2014 01:21

I was looking for the code for the dungeon spawning so I could make a chest with random stuff spawn in it? Can someone help me?
Love MINECRAFT... will settle for Minetest
 

User avatar
minermoder27
Member
 
Posts: 127
Joined: Wed Nov 20, 2013 23:24
GitHub: ZNixian
In-game: minermoder27

by minermoder27 » Sat Mar 29, 2014 01:36

The mapgen code, including dungeons, is in C / C++ and hard to change

EDIT:
The code that generates dungeons is in C++ / C, but you could make a mod that added a different type of dungeon
Last edited by minermoder27 on Sun Mar 30, 2014 07:44, edited 1 time in total.
My best mods:
Buildtest
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Sat Mar 29, 2014 09:35

celeron55 made a dungeon mod. This is the link to the most recent version (11 months old)

https://github.com/celeron55/dungeon


This is the original release (in one of his blogs):

http://c55.me/blog/?m=201207
 

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02

by mcfan » Sat Mar 29, 2014 11:57

So if I want to add Chests, I would make another lua and place it in that folder?
Love MINECRAFT... will settle for Minetest
 

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

by Sokomine » Sat Mar 29, 2014 13:13

Topywo wrote:celeron55 made a dungeon mod. This is the link to the most recent version (11 months old)

Seems that's an extract of mobf, with more place for the dungeon masters. The relevant code for the vaults the DMs love to live in can be found in mobf.

My random_buildings mod also has a routine for filling a chest with random items. There's also a tresture chest in either gloopores or glooptest that adds random treasure chests to the map.

Having something inside those dungeons created by mapgen might be nice. Looking for cobble and mossy cobble at mapgen time and placing a chest would not be very difficult to do - but what else could be found inside those dungeons?
A list of my mods can be found here.
 

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02

by mcfan » Sat Mar 29, 2014 13:55

So are you saying that this is possible?
Love MINECRAFT... will settle for Minetest
 

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

by Sokomine » Sat Mar 29, 2014 14:33

mcfan wrote:So are you saying that this is possible?

There are already several mods that do something similar. It's certainly possible.

How about if you think about what else might fit into a dungeon to make them more intresting? Perhaps you might build a few sample ones. Just chests sounds boring.
A list of my mods can be found here.
 

User avatar
CraigyDavi
Member
 
Posts: 565
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio or CraigyDavi
In-game: davisonio or CraigyDavi

by CraigyDavi » Sat Mar 29, 2014 14:35

mcfan wrote:So are you saying that this is possible?


The "hungry games" game has what you are looking for. https://github.com/Splizard/hungry_games/blob/master/mods/random_chests/init.lua
 

User avatar
Linxx
Member
 
Posts: 401
Joined: Wed May 16, 2012 00:37

by Linxx » Sat Mar 29, 2014 15:44

Hybrid Dog wrote:http://en.wikipedia.org/wiki/Dungeon
I think wooden chests in dungeons would be unrealistic.
Why should anyone had given items stored in a chest to the people jailed there?

they could have suplies for the guards
 

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02

by mcfan » Sat Mar 29, 2014 17:08

CraigyDavi wrote:
mcfan wrote:So are you saying that this is possible?


The "hungry games" game has what you are looking for. https://github.com/Splizard/hungry_games/blob/master/mods/random_chests/init.lua




I could use that for a minez like game. Nice. But I'm still looking to make chests spawn in dungeons.
Love MINECRAFT... will settle for Minetest
 

User avatar
mcfan
Member
 
Posts: 120
Joined: Wed Mar 26, 2014 15:02

by mcfan » Tue Apr 01, 2014 12:00

CraigyDavi wrote:
mcfan wrote:So are you saying that this is possible?


The "hungry games" game has what you are looking for. https://github.com/Splizard/hungry_games/blob/master/mods/random_chests/init.lua



Can I take this and place a special type of chest that will refill periodically and won't refill other chests that people might have placed? And is there a way I can prevent chests from spawning randomly?
Love MINECRAFT... will settle for Minetest
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron