ExampleBullet does.Anyone know how to make a projectile ricochet of walls
ExampleBullet does.Anyone know how to make a projectile ricochet of walls
Could you specify 'doesn't work'? Are you getting an error? Is the recipe not showing up?why this doesn't work:
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.SlimeCrown);
recipe.AddTile(TileID.DemonAltar);
recipe.SetResult(this);
recipe.AddRecipe();
}
?
That's just a problem with slow WiFi, just leave it to load for a while. That's what I do.Still can't access the browser, it's just an empty list. Running Windows 7 btw. Moreover earlier this year I had access to it just fine, but it wasn't on this Terraria version.
the recipe is not showing upCould you specify 'doesn't work'? Are you getting an error? Is the recipe not showing up?
Do you have a class that derives from mod? And does this class set Autoload to true?the recipe is not showing up
Do you have a class that derives from mod? And does this class set Autoload to true?
Yes, ammo changed in the vanilla code: Read this: https://docs.google.com/document/d/...f6E3hncExL8Mf9OJ8/edit#heading=h.mb4xr9zg05rlWell, just wanted to say that my whole mod is pretty much broken. I used to work on it till november 2016 or so, and now I've got huge amounts of problems. First of all my Item.useSound thing didn't worked, but I fixed it with item.UseSound = SoundID.Item like a member (thx again to the person who showed me this). Sadly, after manually renaming everything a new problem occured. This time tho it isn't an error like the previous problem, my mod compiles without any problem. But sadly all of my guns won't fire bullets anymore. It doesn't care if bullet, silver bullet, chlorophite etc. And I bet this is just one of alot of problems I am about to face... Atleast my auto miner works (An object you can place that will automatically dig and store blocks underneath it). Melee and magic weapons also worked fine (well the ones I tested atleast). Does anybody have a list of big changes and whatsoever (in tmodloader/Terraria) that I need to do so I can use my mod proberly again? And btw, item.useAmmo = ProjectileID.Bullet; is the line I used previously (worked fine with every bullet back then)
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
public class FireBolt : ModItem
{
public override void SetDefaults()
{
item.name = "Fire Bolt";
item.damage = 33;
item.magic = true; //this make the item do magic damage
item.width = 24;
item.height = 28;
item.toolTip = "Water Bolt's Brother";
item.useTime = 36;
item.useAnimation = 36;
item.useStyle = 5; //this is how the item is holded
item.noMelee = true;
item.knockBack = 6;
item.value = 1000;
item.rare = 3;
item.mana = 20; //mana use
item.UseSound = SoundID.Item14; //this is the sound when you use the item
item.autoReuse = true;
item.shoot = mod.ProjectileType ("FireBoltProjectile"); //this make the item shoot your projectile
item.shootSpeed = 10f; //projectile speed when shoot
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(165, 1);
recipe.AddIngredient(207, 4);
recipe.AddIngredient(41, 400);
recipe.AddTile(TileID.WorkBenches");
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Im not shure, but you may have to use ItemID.nameoftheIDCan someone help me im really confused
the error has something to do with public override void add recipe
error CS1010: Newline in constant
Code:using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace NicksMod.Items { public class FireBolt : ModItem { public override void SetDefaults() { item.name = "Fire Bolt"; item.damage = 33; item.magic = true; //this make the item do magic damage item.width = 24; item.height = 28; item.toolTip = "Water Bolt's Brother"; item.useTime = 36; item.useAnimation = 36; item.useStyle = 5; //this is how the item is holded item.noMelee = true; item.knockBack = 6; item.value = 1000; item.rare = 3; item.mana = 20; //mana use item.UseSound = SoundID.Item14; //this is the sound when you use the item item.autoReuse = true; item.shoot = mod.ProjectileType ("FireBoltProjectile"); //this make the item shoot your projectile item.shootSpeed = 10f; //projectile speed when shoot } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(165, 1); recipe.AddIngredient(207, 4); recipe.AddIngredient(41, 400); recipe.AddTile(TileID.WorkBenches"); recipe.SetResult(this); recipe.AddRecipe(); } } }
has the sprite got the same name as the item in the code?Im not shure, but you may have to use ItemID.nameoftheID
You are talking to me or...?has the sprite got the same name as the item in the code?
The recipe code is all messed upCan someone help me im really confused
the error has something to do with public override void add recipe
error CS1010: Newline in constant
Code:using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace NicksMod.Items { public class FireBolt : ModItem { public override void SetDefaults() { item.name = "Fire Bolt"; item.damage = 33; item.magic = true; //this make the item do magic damage item.width = 24; item.height = 28; item.toolTip = "Water Bolt's Brother"; item.useTime = 36; item.useAnimation = 36; item.useStyle = 5; //this is how the item is holded item.noMelee = true; item.knockBack = 6; item.value = 1000; item.rare = 3; item.mana = 20; //mana use item.UseSound = SoundID.Item14; //this is the sound when you use the item item.autoReuse = true; item.shoot = mod.ProjectileType ("FireBoltProjectile"); //this make the item shoot your projectile item.shootSpeed = 10f; //projectile speed when shoot } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); /fix recipe.AddIngredient(165, 1); recipe.AddIngredient(207, 4); recipe.AddIngredient(41, 400); recipe.AddTile(TileID.WorkBenches"); recipe.SetResult(this); recipe.AddRecipe(); } } }
yesYou are talking to me or...?
you can not have a space in the sprite name (sorry for the slow responce) also, nice spritesi can send you my csproj , i'm shure that the code is right!
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
public class FireBolt : ModItem
{
public override void SetDefaults()
{
item.name = "Fire Bolt";
item.damage = 33;
item.magic = true; //this make the item do magic damage
item.width = 24;
item.height = 28;
item.toolTip = "Water Bolt's Brother";
item.useTime = 36;
item.useAnimation = 36;
item.useStyle = 5; //this is how the item is holded
item.noMelee = true;
item.knockBack = 6;
item.value = 1000;
item.rare = 3;
item.mana = 20; //mana use
item.UseSound = SoundID.Item14; //this is the sound when you use the item
item.autoReuse = true;
item.shoot = mod.ProjectileType ("FireBoltProjectile"); //this make the item shoot your projectile
item.shootSpeed = 10f; //projectile speed when shoot
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(165, 1);
recipe.AddIngredient(207, 4);
recipe.AddIngredient(41, 400);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}