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

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

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

by duane » Sat Jan 21, 2017 01:47

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


Recipes
+ Spoiler



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: 1274
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

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

by duane » Sat Jan 21, 2017 01:47

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

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

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

by azekill_DIABLO » Sun Jan 22, 2017 18:44

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.
 

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

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

by duane » Sun Jan 22, 2017 23:01

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: 1066
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

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

by texmex » Mon Jan 23, 2017 09:49

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
Location: New Hampshire U.S.A
In-game: ExeterDad

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

by ExeterDad » Mon Jan 23, 2017 10:44

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

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

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

by trainwrecktony » Mon Jan 23, 2017 17:50

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
Server Specs: i5-3570, 16gb, 1tb 7200rpm 64mb cache, Win 2012 r2 x64, Dev mingw x64 minetest build, redis db
Gaming: Clevo W150HNQ, i7-2820, 16gb 1866 hyperx, 256gb Samsung 840 PRO SSD, Nvidia GT 540M, Win 7 Pro x64, Dev mingw x64 minetest build
 

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

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

by azekill_DIABLO » Mon Jan 23, 2017 18:08

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


٩(̾●̮̮̃̾•̃̾)۶
 

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

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

by duane » Mon Jan 23, 2017 23:49

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: 1066
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

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

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

by TumeniNodes » Tue Jan 24, 2017 13:41

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 your buddy, guy...
 

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

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

by duane » Wed Jan 25, 2017 02:38

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: 1608
Joined: Fri Apr 10, 2015 13:18

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

by burli » Fri Mar 24, 2017 17:29

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: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

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

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

by duane » Fri Mar 31, 2017 00:51

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: 1608
Joined: Fri Apr 10, 2015 13:18

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

by burli » Fri Mar 31, 2017 04:42

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: 1274
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

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

by duane » Thu Jun 08, 2017 15:25

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: 1274
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

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

by duane » Fri Jun 30, 2017 09:21

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
(413.35 KiB) Not downloaded yet
Believe in people and you don't need to believe anything else.
 

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

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

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

by duane » Sat Jul 01, 2017 00:49

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: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

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

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

by duane » Fri Nov 03, 2017 05:21

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: 1274
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

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

by duane » Mon Nov 06, 2017 02:57

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: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

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

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

by duane » Tue Nov 07, 2017 05:48

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.
 

Next

Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 4 guests