I am at a loss for words here because all I wanted to do was make the player spawn with a modded gun and an infinite ammo pouch. The first problem I had was the game saying something along the lines of IList not being recognized, even though every tutorial and piece of reference code I see uses that.
Now I don't get that error, but now the script won't run at all. What do I do here? NOTE: I have tried looking at examplemod and the tmodloader documentation. It did not help at all.
Code:
using Microsoft.Xna.Framework;
using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
using System.Collections.Generic;
namespace GodofGlocks.Content.Inventory
{
public class InventorySetup : ModPlayer
{
public override void SetupStartInventory(IList<Item> items)
{
Item item = new Item();
Item item2 = new item();
item.SetDefaults(ItemID.Glock17000);
item2.SetDefaults(ItemID.EndlessMusketPouch);
items.Add(item);
items.Add(item2)
}
}
}
Now I don't get that error, but now the script won't run at all. What do I do here? NOTE: I have tried looking at examplemod and the tmodloader documentation. It did not help at all.
Code:
using Microsoft.Xna.Framework;
using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
using System.Collections.Generic;
namespace GodofGlocks.Content.Inventory
{
public class InventorySetup : ModPlayer
{
public override void SetupStartInventory(IList<Item> items)
{
Item item = new Item();
Item item2 = new item();
item.SetDefaults(ItemID.Glock17000);
item2.SetDefaults(ItemID.EndlessMusketPouch);
items.Add(item);
items.Add(item2)
}
}
}