Page 1 of 1

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

PostPosted: Sat Jan 21, 2017 01:47
by duane
This mod adds treasure chests randomly to the landscape and underground. Their contents can vary wildly. It's necessary to right-click them twice to open, as the contents are generated by the first click.

Chests will show up on any ground surface with air, water, or snow above it. By default, there's about a 10% chance of one in each chunk of terrain (either above or below ground). I've tried to add these reliably, but due to issues with the game itself, about half never show up in the world. So, I doubled the spawn rate. An ABM would be more reliable, but that's not how I want them to work.

Chests 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. I'm working on having them spawn monsters in some fashion.

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

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

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

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

PostPosted: 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]

PostPosted: 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]

PostPosted: 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]

PostPosted: 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]

PostPosted: 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]

PostPosted: 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]

PostPosted: 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]

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

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

PostPosted: 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]

PostPosted: 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]

PostPosted: 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]

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

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

PostPosted: 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]

PostPosted: 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