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

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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
Last edited by duane on Fri Nov 03, 2017 05:12, edited 3 times in total.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

Problems: None so far
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

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.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

azekill_DIABLO wrote:i could have said the very stupid joke "hey shake your booty"; but i would have been fired.
/facepalm
Believe in people and you don't need to believe anything else.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

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

by texmex » Post

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

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Nice! This may just be the first Booty mod with Booby traps.
Only you duane... only you. :)

trainwrecktony
Member
Posts: 67
Joined: Sun Jun 08, 2014 05:24
In-game: trainwrecktony
Location: NJ USA

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

by trainwrecktony » Post

How can i limit treasures only appearing underground?
Tried setting local max_depth = 31000 to negative number chests still spawned above
Server Owner trainwrecktony.serveminecraft.net:30000 irc.freenode.net ##minetest-trainwrecktony

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

ExeterDad wrote:Nice! This may just be the first Booty mod with Booby traps.
Only you duane... only you. :)
٩(̾●̮̮̃̾•̃̾)۶
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

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

by texmex » Post

Could you add a min_depth as well? :)

User avatar
TumeniNodes
Member
Posts: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

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

by TumeniNodes » Post

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
A Wonderful World

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

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

by burli » Post

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

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

uh. uh. how deh? dimond stuff?!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

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

by burli » Post

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

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Attachments
t01.jpg
t01.jpg (413.35 KiB) Viewed 1354 times
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

nice. but why did you craft this with light bulbs?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

azekill_DIABLO wrote:nice. but why did you craft this with light bulbs?
Because the fluorescent tubes contain toxic mercury.
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

okay then... looks maybe a bit Highres for the game!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

Seems like this thread is a bit too empty of feedback for what it does :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

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

by duane » Post

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.
Believe in people and you don't need to believe anything else.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests