Theo
Official Terrarian
I'll look it up. Thanks in advance!You mean like splash potions? I left that code on one of the pages of Everybody's mod somewhere
I'll look it up. Thanks in advance!You mean like splash potions? I left that code on one of the pages of Everybody's mod somewhere
Are you talking about a summoned minion? Yes, but then minion projectiles are way more complicated than other projectiles (not to mentioned that you'd have to program your own AI for it). I've made a tutorial on summon weapons somewhere, and also another one on AI (although it's for NPCs).Is there a way to make a tiny plantera that fights for you?
what?Code:"shoot": "MPT:Bubble",
I think the problem is that you did not adjust the "MPT" part to your mod's internal name.
He means that you must replace "MPT" with your mod's internal name.what?
help when i load a world this error shows upHe means that you must replace "MPT" with your mod's internal name.
Yes! More stuff! Also, make sure you add a thrown projectile (grenade, etc) tutorial.Later on this week, gonna add more stuff to the tutorial! Maybe even today, who knows?
- Animated Projectiles!
- Custom Heat Ray!
- Powder?
EDIT: Possibly change the layout of the Tutorial...
Hey, can you tell me how to create a basic thrown weapon with animation?(or even without)Later on this week, gonna add more stuff to the tutorial! Maybe even today, who knows?
- Animated Projectiles!
- Custom Heat Ray!
- Powder?
EDIT: Possibly change the layout of the Tutorial...
I'm not sure how to add a cool-down to my projectile, is there anyway to do that?
"reuseDelay": 10, //10 ticks until you can use any item again
using System;
using Microsoft.Xna.Framework;
using TAPI;
using Terraria;
namespace InternalModName.Items
{
public class ModItemName : ModItem
{
public override bool CanUse(Player player)
{
if (player.HasBuff(BuffDef.byName["InternalModName:CoolDownBuff"]) //If the player has the cooldown buff, the item won't be used.
{
return false;
}
else //If player doesn't, item is used.
{
return true;
}
}
public override bool? UseItem(Player player)
{
if(!player.HasBuff(BuffDef.byName["InternalModName:CoolDownBuff"]) //If player doesn't have cooldown buff, add the cooldown buff for 5 seconds
{
player.AddBuff(BuffDef.byName["InternalModName:CoolDownBuff"], 300, false);
}
return true;
}
}
}
ModInfo Error
{Can you post the contents of your ModInfo.json file? This is saying you have a random capital F in there.
{
"internalName": "WM",
"displayName": " Wepon Mod",
"author: "Felix",
"info": "This mod adds Random Weapons like mage weapons, ranged weapons, melee weapons and even summoner stuff!!",
"version": "0.0.0"
}
OhOn the line "author: "Felix", you missed the speech mark after author. It should be "author": "Felix",