Page 1 of 2

[Mod] Booty (Another Treasure Chest) [booty]

Posted: Sat Jan 21, 2017 01:47
by duane
This mod adds treasure chests randomly to the landscape and underground. Their contents can vary wildly. This mod requires minetest version 0.5 or later.

Chests will show up on any ground surface with air, water, or snow above it. By default, there's about a 1/30 chance of one in each chunk of terrain (either above or below ground). Their contents are determined in much the same way dungeon chests are filled, and use the same loot table. (See the minetest_game documentation.)

Chests will summon monsters to defend them, if you're using the nmobs or mobs_redo mods. They also have a chance of poisoning you (if my status mod is in use), turning into a lit TNT block (if tnt is in use), or dropping you into a deep pit.

NOTE: This mod requires my status mod to poison anyone. It can be downloaded here: https://github.com/duane-r/status/archive/master.zip

Screenshots
Spoiler
Image
Image
Image
Recipes
Spoiler
Combine the following to produce Treasure Chest:
Inspiration, Inspiration, Inspiration
Inspiration, Chest, Inspiration
Inspiration, Inspiration, Inspiration

The source is available on github.

Code: LGPL2

Mod dependencies: default

Download: https://github.com/duane-r/booty/archive/master.zip

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Sat Jan 21, 2017 01:47
by duane
Problems: None so far

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Sun Jan 22, 2017 18:44
by azekill_DIABLO
i could have said the very stupid joke "hey shake your booty"; but i would have been fired. So i will only say that it will be added to voxellar. goodbye.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Sun Jan 22, 2017 23:01
by duane
azekill_DIABLO wrote:i could have said the very stupid joke "hey shake your booty"; but i would have been fired.
/facepalm

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Jan 23, 2017 09:49
by texmex
Been looking for a simple treasure mod. Thank you for writing this, I'll try it!

If you're looking for a texture to differentiate these chests from regular ones there's a good scruffy old chest in the MT-TNG game Image Image Image

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Jan 23, 2017 10:44
by ExeterDad
Nice! This may just be the first Booty mod with Booby traps.
Only you duane... only you. :)

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Jan 23, 2017 17:50
by trainwrecktony
How can i limit treasures only appearing underground?
Tried setting local max_depth = 31000 to negative number chests still spawned above

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Jan 23, 2017 18:08
by azekill_DIABLO
ExeterDad wrote:Nice! This may just be the first Booty mod with Booby traps.
Only you duane... only you. :)
٩(̾●̮̮̃̾•̃̾)۶

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Jan 23, 2017 23:49
by duane
ExeterDad wrote:Nice! This may just be the first Booty mod with Booby traps.
Only you duane... only you. :)
Heh, heh, heh.
How can i limit treasures only appearing underground?
Tried setting local max_depth = 31000 to negative number chests still spawned above
I added a working max_depth in the init.lua.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Tue Jan 24, 2017 07:42
by texmex
Could you add a min_depth as well? :)

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Tue Jan 24, 2017 13:41
by TumeniNodes
duane, are you interested in integrating the animated chest Nathan and I put together?
My thoughts are, right click to open, then if a good surprise a "ta-da" sound effect

If a bad surprise, the "wah wah wah wah wahhhhhh" sound effect?

And, if the treasure is good, the player can then also keep the chest to use wherever they like?

IDK, just some random ideas which popped into my head looking at this.

Either way, just let me know. thanks

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Wed Jan 25, 2017 02:38
by duane
TumeniNodes wrote:duane, are you interested in integrating the animated chest Nathan and I put together?
My thoughts are, right click to open, then if a good surprise a "ta-da" sound effect

If a bad surprise, the "wah wah wah wah wahhhhhh" sound effect?

And, if the treasure is good, the player can then also keep the chest to use wherever they like?

IDK, just some random ideas which popped into my head looking at this.

Either way, just let me know. thanks
I'm not really interested in that, but if you want to add the options, I'll try to fit them in.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Mar 24, 2017 17:29
by burli
duane wrote:Problems: None so far
Well, it's easy to find them if you found one. Just walk straight north, south... and you find the next. And I think it is a little bit to much loot. I found a diamond sword, a diamond picaxe, lots ot seeds, wood, flor and other stuff in just 2 or 3 ingame days

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Mar 24, 2017 17:39
by azekill_DIABLO
uh. uh. how deh? dimond stuff?!

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Mar 31, 2017 00:51
by duane
burli wrote:
duane wrote:Problems: None so far
Well, it's easy to find them if you found one. Just walk straight north, south... and you find the next.
It doesn't work that way on my system. Here's a sample of coffer placement. It's pretty random:

coffer at 304,-43,948
coffer at 300,-97,1078
coffer at 407,2,1008
coffer at 451,1,1063
coffer at 498,-5,1149
coffer at 385,-45,1093
coffer at 476,-11,874
coffer at 423,-75,876
coffer at 385,9,1180
coffer at 299,49,1247
coffer at 376,-54,1240
coffer at 472,-56,1245
coffer at 448,8,1296
coffer at 425,-33,1249
coffer at 339,-110,1381
coffer at 510,-62,1472
coffer at 448,24,1540
coffer at 440,22,1620
coffer at 453,22,1614
coffer at 472,-52,1617
coffer at 485,29,1751
coffer at 389,49,1807
coffer at 444,53,1820
coffer at 298,32,1856
coffer at 490,-2,1887
coffer at 451,44,1829
coffer at 481,72,1929
coffer at 459,-11,2021
coffer at 308,69,1993
coffer at 352,14,2092
coffer at 503,22,2255
coffer at 464,-27,2340
And I think it is a little bit to much loot. I found a diamond sword, a diamond picaxe, lots ot seeds, wood, flor and other stuff in just 2 or 3 ingame days
Everyone's going to have different opinions about that. Just monkey with the loot table until you get something you like. You could even remove anything valuable if you want.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Mar 31, 2017 04:42
by burli
Hm, strange. I really had the situation that I just need to walk straight in one direction to find the next chest. And sometimes the chests are full. There where stacks of 90 cotton seeds or wood, wool in different colours...

I'll try to reproduce that

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Thu Jun 08, 2017 15:25
by duane
Booty chests will now attract guardian monsters fairly rapidly. These are selected from any mobs_redo mobs you have available and need not be appropriate for the area. However underwater chests will only spawn water-dwellers and chests in bright light will not summon anything that's allergic to sunlight.

The guardians will usually be appropriate to the chest's contents' value. However, occasionally something will be chosen completely at random.

I've also added a way to increase the number of chests spawning in any chunk and reduced the maximum amount of goods that will show up.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Jun 30, 2017 09:21
by duane
Added a treasure finding mirror. (This is loads of fun.) Punch with it and you'll get a chat message about the nearest treasure chest, if any. If you have inspire installed, you can make one, otherwise you'll have to find it in an chest.

Image

While I was at it, I updated the chest placement so that you don't have to double-click to open.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Jun 30, 2017 17:35
by azekill_DIABLO
nice. but why did you craft this with light bulbs?

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Sat Jul 01, 2017 00:49
by duane
azekill_DIABLO wrote:nice. but why did you craft this with light bulbs?
Because the fluorescent tubes contain toxic mercury.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Jul 07, 2017 12:40
by azekill_DIABLO
okay then... looks maybe a bit Highres for the game!

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Fri Nov 03, 2017 05:21
by duane
I've modified booty to use the same loot table as the dungeon_loot mod in the latest minetest_game code. This means the most recent version of booty requires minetest and minetest_game v0.5. This also means that booty loot will show up in standard dungeon chests.

At some point, I may try to replace standard dungeon chests with booty coffers, but the only advantage to that would be summoning monsters.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Nov 06, 2017 02:57
by duane
I've managed to patch a long-standing gennotify issue which prevented booty from placing coffers when the new dungeon_loot mod is running. Now both mods seem happy. Since the dungeon_loot loot table is a bit chincy, I've also increased the coffer spawn rate.

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Mon Nov 06, 2017 15:37
by azekill_DIABLO
Seems like this thread is a bit too empty of feedback for what it does :D

Re: [Mod] Booty (Another Treasure Chest) [booty]

Posted: Tue Nov 07, 2017 05:48
by duane
azekill_DIABLO wrote:Seems like this thread is a bit too empty of feedback for what it does :D
It's kind of superfluous now that we have dungeon_loot. However, my coffers summon monsters. I could do that with ordinary chests, but people might not appreciate it.