I've been doing that, but it didn't fix anything. Can you tell me if adding 'using Terraria.ModLoader;' to the top of any class is still a thing? Or is it something entirely else now?
Hi there, after tModLoader became an official Terraria mod on Steam, my Visual Studio mod project seems to have broken and not recognize any tModLoader specific methods and namespaces. Before I had to add a reference to the old tModLoader file and it would work when I added 'using...
Hi, I'm trying to make an enemy that only spawns in lava in the underworld. I know that there are ways to make enemies spawn in water using spawncondition, but I can't find any way to make enemies spawn in lava. Any help is appreciated :)
You don’t have to delete any files. When you install TModLoader, you’ll get a new .exe file that you open when you want to play with mods. I don’t know if you did this but you should have renamed the vanilla Terraria .exe file to something else, because if you want to play vanilla again you have...
You didn’t add the reference for the TModLoader Terraria.exe file, you have to do that before you can start.
You are all using an old way of naming the stuff you’re trying to make. This guy literally just said the correct way to do it:
I don't know if this would work, but maybe you could make a GlobalNPC class which then has an AI() method that makes your cultist clone spawn whenever the vanilla cultist is spawned.
ModLoader.GetMod("YourModeName").NPCType.("NPCName")
Does anyone know why my invasion music is playing infinitely? Even when the invasion has already ended. It's just a normal Terraria theme not a custom one.
Hi there, I'm trying to make a NPC which works exactly like a Goblin Archer, except it shoots carrots instead of arrows. I had to rewrite the code for the movement and shooting, and it turned out good so far, but I'm still having a bit of a problem with the correct arrow velocity. My current...
Thanks for the reply, but I don't seem to get this to work. When I implement the code and change the 'canAttack' to something like this: (npc.position.X - player.position.X < 50f && npc.position.X - player.position.X > 0) || (player.position.X - npc.position.X > -50f && player.position.X -...
Hi there, I just recently got into Terraria modding and programming in general, so I'm not the best at it. I am trying to make an NPC called a Carrot Archer, which is supposed to work exactly like a Goblin Archer, except it shoots carrots instead of arrows, so that means I'd have to manually...
Hey uhh this might sound stupid... but I'm making my own NPC for Terraria and I wanted to know how I make my NPC attack at day if it's AI type is 3, so the fighter AI. This AI makes it so the NPC only attacks you at night, but I want it to attack at day. I've searched all over the internet and I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.