Standalone [1.3] tModLoader - A Modding API

How many downloads does the exampleMod have?
 
How many downloads does the exampleMod have?
For the most current version (v0.7.1.1), 635 from Mediafire and 304 from the mod browser.
 
How would I make a consumable potion/food? There is no example in the example mod. Or at least I don't think there is.
 
The total on the mod browser?
Well, if you really want the total across all versions...
10,576 from Mediafire and 4,012 from the mod browser.

How would I make a consumable potion/food? There is no example in the example mod. Or at least I don't think there is.
To make food, you would set item.consumable to true and set item.buffType to the buff ID of well-fed.
To make a potion, you would set item.consumable to true, item.potion to true for the potion sickness debuff, and item.healLife to whatever you want.
 
For some reason a lot of mods on the mod browser link me here. This happens when I click visit this mod's homepage for more information.
 
For some reason a lot of mods on the mod browser link me here. This happens when I click visit this mod's homepage for more information.
If I had to take a guess, most of the "build.txt" files in those mods are copied/pasted and edited from the Example Mod and left the website link to the tModLoader page.
 
You'll need to connect via IP. And you'll need to know what IP address to connect to. If you are on the same PC as your server, use 127.0.0.1. If you are on the same local area network, type in the IP address of the PC running the server. If you don't know what that is, open command prompt and type 'ipconfig'. it will be listed after 'IPv4 Address...'. If you are connecting through the internet, use an online tool to find out what your external IP address is and give it to your friends. They can use this same tool to check if your port is open.
You are a true hero
 
Hi how do i do that when i kill boss monster new enemies ill apear? And how to make that enemies will spawn only in caverns??? I will be really happy IF someone tell me this :D
 
i could really use help because there are some cool mods that use the mod browser to install however when i use the bod browser i comes up with nothing i have tried reloading it and restarting terraria but it does not help do you know any fixes
 
So i tried to join my friends server like i was told and we used an ip address using hamachi but it still wont work, we have the tmodloader server program opened and everything
 
How do you add a drop to a specific vanilla mob? For example, gastropod.
 
Apologies if this has already been asked. I've done a search on this thread and did not find anything.

Current version: v0.7.1.1
Compatible with Terraria 1.3.0.8
Requires Steam
Platforms: Windows, Mac, Linux
Servers currently only work on Windows
Does this tool (and mods for it) work with the GOG version of Terraria?
 
So i tried to join my friends server like i was told and we used an ip address using hamachi but it still wont work, we have the tmodloader server program opened and everything
Hmm, maybe the port hasn't been forwarded on the computer that's hosting the server. You could use the port-forwarding tool that I linked you to, to check if port 7777 (or which ever port you chose) is open on the IP address of the computer hosting the server. If it isn't, you will need to find a port forwarding guide specific to the router of the computer that is hosting the server.

Somebody correct me if I'm wrong, but you shouldn't need Hamachi.

Apologies if this has already been asked. I've done a search on this thread and did not find anything.

Does this tool (and mods for it) work with the GOG version of Terraria?
Sadly, no. Nobody on the tModLoader team has the GOG version, so they can't make tModLoader work for GOG.
 
Last edited:
How do you add a drop to a specific vanilla mob? For example, gastropod.
You'll want to create a class that derives from GlobalNPC. Inside that class, override the NPCLoot function, check the type of the NPC and drop the item if necessary:
Code:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MyMod.NPCs
{
    public class MyModNPC : GlobalNPC
    {
        public override void NPCLoot(NPC npc)
        {
            if(npc.type == NPCID.Gastropod)
            {
                // Drop your item.
            }
        }
    }
}
 
Can I ask that for 0.7.1.2, that you can specify a release time in UNIX time in build.txt, which will publish itself at that time. i.e. When I release an April fools version of my mod I do not want to be awake at midnight but that is when I want it to be released.
 
Thanks for your help since the start of porting my mod. I successfully made my own Ui and it works. Even tho the old ui still draw. I got one last question: How can we surpass max mana and max health in tmodloader. As I saw the max health can go beyond but does save at 500. So when you load again you lost the over health. The mana can't go over 400 as far as I tried. If someone got an answer I would be happy to work with it. Thank you.


And so far the mod is coming great togheter. Had to change a good part of it to port it to tModLoader.
 
Back
Top Bottom