TheOrangeNinja2245
Terrarian
Can someone help me make a custom pet plz. The ONLY tutorial is 2 years old and every time i try to compile it will come up with an error. I am using terraria v1.3.5.2 and tModLoader v0.10.1.5
the guide doesn't work for mac, and the linked guide to code without tmodloader is VERY unclear.I make them on linux, you should be able to on mac. I think there is a link to the instructions on the tmodloader github
Though I guess it wouldn’t hurt to know a bit...I make them on linux, you should be able to on mac. I think there is a link to the instructions on the tmodloader github
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace pataponEquipment.Items
{
public class SleepySword : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sleepy Sword");
Tooltip.SetDefault("One nasty slice and it's night-night");
}
public override void SetDefaults()
{
item.damage = 24;
item.melee = true;
item.width = 38;
item.height = 38;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 1;
item.knockBack = 6;
item.value = 10000;
item.rare = 3;
item.UseSound = SoundID.Item1;
item.autoReuse = false;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
{
target.AddBuff(BuffID.Slow, 60);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.GoldBar, 8);
recipe.AddIngredient(ItemID.Amethyst, 10);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.PlatinumBar, 8);
recipe.AddIngredient(ItemID.Amethyst, 10);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
public override void MeleeEffects(Player player, Rectangle hitbox) {
if (Main.rand.NextBool(3)) {
//Emit dusts when swing the sword
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, mod.DustType("Sleep"));
}
}
}
}
I think that may be true, some interactions have probably never been recorded for NPCs. The only real think you could do, is make a custom debuff. Then, if applied, reduce the npc.velocity in the PostAI hook. But it may or may not work, probably volatile.I'm trying to make a sword that slows the target upon hitting it, but I don't really know how. My guess is that the "Slow" debuff only works with the player and not enemies. If that's correct, is there any other debuff that could work? This is my code, if there's anything wrong with it:
Definitely possible. You can have an array or list of npc type (int), then check against it in the ModifyHitNPC hookI've also been trying to make a sword that does double damage to only certain types of enemies. Is there a way to check for a certain enemy and then make the sword do double damage? Or better, if instead of checking for Enemy A, B, C, and D, there was a way of putting those enemies into a category, so I could just check for Category ABCD? I don't know if I'm explaining myself correctly, but any help is greatly appreciated.
Hello everyone!
I was hoping someone would be able to help, I have tried searching around for an answer but I couldn't find anything. It's likely user-error but here goes.
I am using a Mac, Mojave 10.14.2 with Terraria installed via Steam.
I've tried loading tmodloader several times but get the same issue - Terraria itself runs fine, however when I install tmodloader it will open to the logo screen then stall on the black screen, not moving any further.
I've tried uninstalling, deleting, and re-installing everything, same issue.
Is there a known issue with the Mac version of tmodloader or did I do something wrong?
Thank you in advance!![]()
Yeah, you just click build. If you have problems come to the discord chat for tmodloaderhow does one compile the csproj included in mod skeleton generators? is that even possible?