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

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
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. 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
Last edited by duane on Fri Jan 27, 2017 08:43, edited 1 time in total.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

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

by duane » Sat Jan 21, 2017 01:47

Problems: None so far
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
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
 

User avatar
texmex
Member
 
Posts: 226
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
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
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. :)
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

trainwrecktony
Member
 
Posts: 44
Joined: Sun Jun 08, 2014 05:24
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: 3458
Joined: Wed Oct 29, 2014 20:05
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. :)


٩(̾●̮̮̃̾•̃̾)۶
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
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.
 

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

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

by texmex » Tue Jan 24, 2017 07:42

Could you add a min_depth as well? :)
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: 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
Flick?... Flick who?
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
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.
 

User avatar
burli
Member
 
Posts: 1313
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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

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

by azekill_DIABLO » Fri Mar 24, 2017 17:39

uh. uh. how deh? dimond stuff?!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
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.
 

User avatar
burli
Member
 
Posts: 1313
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
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 14 guests

cron