Kbryce14
Terrarian
http://prntscr.com/ja7abbWeird. Which line is the error on?
http://prntscr.com/ja7abbWeird. Which line is the error on?
okOh wow. That's... the weirdest error I've ever seen.
I have no idea. Try the tmodloader discord.
This is wrong. For Vanilla items and tiles, you would use:ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ID.3467,99);
recipe.AddTile(mod, "Workbench");
recipe.SetResult(this);
recipe.AddRecipe();
recipe.AddIngredient(3467, 99);
//or
recipe.AddIngredient(ItemID.LunarBar, 99);
recipe.AddTile(TileID.WorkBenches);
//or
recipe.AddTile(18);
tyThis is wrong. For Vanilla items and tiles, you would use:
and for the tile:Code:recipe.AddIngredient(3467, 99); //or recipe.AddIngredient(ItemID.LunarBar, 99);
Code:recipe.AddTile(TileID.WorkBenches); //or recipe.AddTile(18);
From this guide I made:How do i make a weapon Fire like starwrath most like Blizzard Staff because im making a magic weapon
int numberProjectiles = 6; // shoots 6 projectiles
for (int index = 0; index < numberProjectiles; ++index)
{
Vector2 vector2_1 = new Vector2((float)((double)player.position.X + (double)player.width * 0.5 + (double)(Main.rand.Next(201) * -player.direction) + ((double)Main.mouseX + (double)Main.screenPosition.X - (double)player.position.X)), (float)((double)player.position.Y + (double)player.height * 0.5 - 600.0)); //this defines the projectile width, direction and position
vector2_1.X = (float)(((double)vector2_1.X + (double)player.Center.X) / 2.0) + (float)Main.rand.Next(-200, 201); //change the Main.rand.Next here to, for example, (-10, 11) to reduce the spread. Change this to 0 to remove it altogether
vector2_1.Y -= (float)(100 * index);
float num12 = (float)Main.mouseX + Main.screenPosition.X - vector2_1.X;
float num13 = (float)Main.mouseY + Main.screenPosition.Y - vector2_1.Y;
if ((double)num13 < 0.0) num13 *= -1f;
if ((double)num13 < 20.0) num13 = 20f;
float num14 = (float)Math.Sqrt((double)num12 * (double)num12 + (double)num13 * (double)num13);
float num15 = item.shootSpeed / num14;
float num16 = num12 * num15;
float num17 = num13 * num15;
float SpeedX = num16 + (float)Main.rand.Next(-40, 41) * 0.02f; //change the Main.rand.Next here to, for example, (-10, 11) to reduce the spread. Change this to 0 to remove it altogether
float SpeedY = num17 + (float)Main.rand.Next(-40, 41) * 0.02f;
Projectile.NewProjectile(vector2_1.X, vector2_1.Y, SpeedX, SpeedY, type, damage, knockBack, Main.myPlayer, 0.0f, (float)Main.rand.Next(5));
}
return false;
Use GlobalNPC instead of NPCInfo.I found the answer to my old question but unfortunately I have new one. Basically I was creating a debuff for my mod and when I tried to compile it, it gave me this error.
error:
c:\Users\acer\Documents\My Games\Terraria\ModLoader\Mod Sources\something\NPCs\NPCsINFO.cs(5,29) : error CS0246: The type or namespace name 'NPCInfo' could not be found (are you missing a using directive or an assembly reference?)
code:
using Terraria.ModLoader;
namespace something.NPCs
{
public class NPCsINFO : NPCInfo
{
public bool customdebuff = false;
}
}
Please help and thanks in advance.
public override void ResetEffects(NPC npc)
{
customdebuff = false;
}
Are you trying to make it exactly like Ninja/Fossil Armor with a 33% / 50% chance to not consume items or a different percent?What can you put into ModItem.UpdateAccessory() to add a chance not to consume thrown items, like the set bonuses for fossil and ninja armor?
I would like it to be 33% like the ninja armor.Are you trying to make it exactly like Ninja/Fossil Armor with a 33% / 50% chance to not consume items or a different percent?
I believe you would add player.thrownChance33; to UpdateAccessory (or whatever updating the player is). It might be a a bit different, but I don’t know for sure.I would like it to be 33% like the ninja armor.
It actually turned out to be "player.thrownCost33", but it worked! Thank you!I believe you would add player.thrownChance33; to UpdateAccessory (or whatever updating the player is). It might be a a bit different, but I don’t know for sure.
Post the error?Tmod is giving me an unknown error when I try to download mods. I check the logs and... Nothing. Does anyone know why this is happening?
I knew I couldn't have gotten it right from mobile. Either way, you're welcome.It actually turned out to be "player.thrownCost33", but it worked! Thank you!
Post the error?
Try reinstalling tModLoader? What mod are you trying to install?"Unknown Mod Browser Error. Try again later."
That's literally all it says.