tModLoader

tModLoader

Not enough ratings
Raccoon Box
   
Award
Favorite
Favorited
Unfavorite
Mod Features: New Content
Mod Side: Both
tModLoader Version: 1.4.4
Language: English
File Size
Posted
Updated
74.279 KB
Aug 30, 2024 @ 12:02pm
Jan 17 @ 4:23pm
3 Change Notes ( view )

Subscribe to download
Raccoon Box

In 1 collection by なかの31
Nak's Server Stuffs
11 items
Description
This mod adds the Raccoon Box to the game.
Raccoon Box was a kind of loot box you could get from killing monsters in
N Terraria, and it can offer useless items, or items you shouldn't be getting
at your current moment of gameplay.

Just like in N Terraria, they will drop randomly from killing monsters.
Obviously, this mod might break game balancing.

Modders can add or remove loot from the Raccoon Box.
Use the following mod calls to do that.

"addloot",[itemid],[chance],[minstack = 1],[maxstack = 1],[requirement(player, returns bool) = null]
The call above adds a loot to the table. Only [itemid] and [chance] are necessary to have a loot added,
since not filling the rest will make the new loot drop in stack of one, and come from anywhere.

The [chance] must be a number from 1 or above (or else the item will not drop). The lower the chance is,
the lower the chance the item will appear when opening a raccoon box.

[requirement] needs a Func<Player, bool> to set a custom requirement for the item to drop.
Supply it a method that has a Player argument, and returns a bool value, like the one bellow:
public bool CanLoot(Player player)
{
return true;
}
Simply place the method name without the () and arguments as the argument for [requirement].

"removeloot", [itemid]

Removes the item of the supplied id from the loot list of the mod.

If you need a discord server for questions regarding the mod, here it goes:
https://discord.gg/Bz6vwUa7X3

And you can also join the Steam Group chat, if you want to find updates on your activities feed
when I launch an update, or to join the group chat:
https://steamcommunity.com/groups/Nakano15-Modding

If you like what I do, check my game projects:
https://nakano15.itch.io

Have fun :)
Originally posted by tModLoader RaccoonBoxMod:
Developed By Nakano15
1 Comments
Bog Bog. Sep 1, 2024 @ 9:00am 
I remember these :]