[Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

Post Reply
isaiah658
Member
Posts: 172
Joined: Sun Jan 24, 2016 14:58
Contact:

[Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by isaiah658 » Post

FF Goodie Bags

Description:
This mod adds 4 goodie bags that give random items. Now I know what you're thinking. "How is this any different from the lucky blocks mod?" Well the answer is that this mod is not really meant for your average user. It's meant for server admins, sub games, or players looking to create their own Minetest experience by adding items to the bags and choosing how the goodie bags can be obtained, such as killing hostile mobs. I created this mod out of necessity for my sub game I'm working on, Floating Factories.

Just like how Minecraft has a lucky block mod, it also has a loot bag mod. The purpose is that the goodie bags can be given as rewards for tasks, quests, etc. There are no negatives when opening a goodie bag except for getting unwanted items. The lucky block mod on the other hand is meant to be more of a gamble and for entertainment purposes.

Goodie Bags:

Image

There are 4 goodie bag colors and 5 item pools. 1 pool is a general pool that all bags can select items from. It's generally the largest. The 4 other pools are exclusive to each goodie bag color. The general pool must always have minimum 1 item or the bags will not open. This is to ensure each bag has at least 1 item to give. The other pools have no minimum.

Each bag randomly picks 1 - 3 items from the item pools. Each of those items randomly picks 1 - 10 items for each stack. There is a 1 in 15 chance that the item selected will be from the bag's exclusive item pool otherwise the item will be from the general pool.

By default, I've created a few item pools for some of the common mods in the Minetest the Game sub game. Entire mods can be toggled on or off via the ff_goodie_bags.conf file. They are useful for testing the mod and as an example for making your own lists.

More Screenshots:
Example of the HUD that shows after opening a bag. The HUD stays on screen for 4 seconds before disappearing.
Image
Crafting Recipes:
There are no crafting recipes as there's no real way to balance goodie bags for everyone. Each server, sub game, or player has their own way of knowing what would be balanced and fun. However, the bags can be obtained in creative mode for testing purposes.

Dependencies:
  • none
Optional Dependencies:
  • beds
  • boats
  • bucket
  • carts
  • default
  • doors
  • dye
  • fire
  • flowers
  • tnt
  • vessels
  • wool
The optional dependencies are only because I've added in some default item pool lists. If you make your own lists, the optional dependencies can be changed.

Supported Minetest Versions:
0.4.16 and up

Download:
GitHub Download: https://github.com/isaiah658/ff_goodie_ ... master.zip
GitHub Source Code: https://github.com/isaiah658/ff_goodie_bags

Rename the folder to ff_goodie_bags after downloading.

Licensing:
The pixel font used in the "Goodie Bag Contents" texture is called Battlenet. The battlenet font is made by Tom Israels. It's posted on http://www.pentacom.jp/pentacom/bitfont ... ry/?id=125 which is a website where you can make pixel fonts. It's licensed as public domain. The font itself is not distributed with this mod, but some people may want to know what font was used and any licensing restrictions it may have.

The sound named "ff_goodie_bags_Coin01.ogg" is licensed as CC0 by wobbleboxx (wobbleboxx.com) on opengamart.org. https://opengameart.org/content/level-u ... -13-sounds

All other code and textures are created by isaiah658.The code is licensed as WTFPL or MIT. You may choose either license that fits best when adapting code into your project.The textures are licensed as Creative Commons Zero (CC0).

Changelog:
Spoiler
Version 1.0.0
  • Initial release.
Attachments
opening_a_bag.jpg
opening_a_bag.jpg (78.47 KiB) Viewed 626 times
screenshot.png
screenshot.png (1.63 KiB) Viewed 626 times

R-One
Member
Posts: 160
Joined: Wed Dec 20, 2017 23:06
Location: Nice, France

Re: [Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by R-One » Post

Very good mod ... obviously we are working on the same kind of project ;-)

User avatar
TenPlus1
Member
Posts: 3728
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by TenPlus1 » Post

*finds kitkat and juice box inside his*

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by FreeGamers » Post

I'm planning to use this system as a way to add christmas gifts this month.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by FreeGamers » Post

https://github.com/isaiah658/ff_goodie_ ... s.lua#L125

has

Code: Select all

minetest.sound_play("ff_goodie_bags_Coin01", {pos, max_hear_distance = 2, gain = 1.0,})
but should have

Code: Select all

minetest.sound_play("ff_goodie_bags_Coin01", {pos=pos, max_hear_distance = 2, gain = 1.0,})
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

isaiah658
Member
Posts: 172
Joined: Sun Jan 24, 2016 14:58
Contact:

Re: [Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by isaiah658 » Post

Thank you for pointing this out FreeGamers. I know it's 6 months late, but I've made the fix to the project.

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] FF Goodie Bags [1.0.0] [ff_goodie_bags]

by FreeGamers » Post

Yep, I used this as a major part for a christmas modpack that used presents as the goodie bags and replaced the sound effect with a sleigh-bell jingle. It worked out very nicely. So, thanks.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests