i wrote these scripts:
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace Crimson Chaos.Items
{
public class CustomYoyo : ModItem
{
public override void SetDefaults()
{
item.name = "Crimson Yoyo";
item.damage = 26;
item.melee = true;
item.toolTip = "Its a yoyo, what else could it be?";
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 5;
item.channel = true;
item.knockBack = 2f;
item.value = Item.buyPrice(0, 10, 0, 0);
item.rare = 3;
item.autoReuse = false;
item.shoot = mod.ProjectileType("CustomYoyoProjectile");
item.noUseGraphic = true;
item.noMelee = true;
item.UseSound = SoundID.Item1;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
}
2nd one:
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace TutorialMOD.Projectiles
{
public class CustomYoyoProjectile : ModProjectile
{
public override void SetDefaults()
{
projectile.extraUpdates = 0;
projectile.name = "Crimson Yoyo Projectile";
projectile.width = 16;
projectile.height = 16;
projectile.aiStyle = 99;
projectile.friendly = true;
projectile.penetrate = -1;
projectile.melee = true;
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 10f;
}
public override void AI()
{
if (Main.rand.Next(2) == 0)
{
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, DustID.Fire, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
}
}
}
}
3rd one:
using Terraria.ModLoader;
namespace Crimson Chaos
{
class Crimson Chaos : Mod
{
public Crimson Chaos()
{
Properties = new ModProperties()
{
Autoload = true,
AutoloadGores = true,
AutoloadSounds = true,
};
}
}
}
}
4th..:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<propertygroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug
<Platform Condition=" '$(Platform)' == '' ">AnyCPU
<projectguid>{8298EAB6-0586-4BDA-9483-83624B66B13A}
<outputtype>Library
<appdesignerfolder>Properties
<rootnamespace>Crimson Chaos
<assemblyname>Crimson Chaos
<targetframeworkversion>v4.5.2
<filealignment>512
<autogeneratebindingredirects>true
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<platformtarget>AnyCPU
<debugsymbols>true
<debugtype>full
<optimize>false
<outputpath>bin\Debug\
<defineconstants>DEBUG;TRACE
<errorreport>prompt
<warninglevel>4
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<platformtarget>AnyCPU
<debugtype>pdbonly
<optimize>true
<outputpath>bin\Release\
<defineconstants>TRACE
<errorreport>prompt
<warninglevel>4
<itemgroup>
<Compile Include="**\*.cs" />
<itemgroup>
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86">
<specificversion>False
<hintpath>C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll
<Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86">
<specificversion>False
<hintpath>C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll
<Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86">
<specificversion>False
<hintpath>C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll
<Reference Include="Microsoft.Xna.Framework.Xact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86">
<specificversion>False
<hintpath>C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Xact\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Xact.dll
<Reference Include="System" />
<Reference Include="Terraria">
<hintpath>C:\Program Files (x86)\Steam\steamapps\common\terraria\Terraria.exe
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<propertygroup>
<postbuildevent>"C:\Program Files (x86)\Steam\steamapps\common\terraria\Terraria.exe" -build "$(ProjectDir)\" -eac "$(TargetPath)"
5th:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<startaction>Program
<startprogram>C:\Program Files %28x86%29\Steam\steamapps\common\Terraria\Terraria.exe
<startworkingdirectory>C:\Program Files %28x86%29\Steam\steamapps\common\Terraria\
What I have tried:
Asked google, others that i cant even remeber.
Asked people on youtube