Add files via upload
parent
240c5a9ada
commit
0951e73d3c
|
@ -47,7 +47,7 @@ public final class BagMod
|
|||
|
||||
@Instance(MODID)
|
||||
public static BagMod instance;
|
||||
public static final String MODVERSION = "1.0.0.0";
|
||||
public static final String MODVERSION = "1.0.0.1";
|
||||
public static final String MODNAME = "jtrent238's Bag Mod";
|
||||
public static final String MODAUTHOR = "jtrent238";
|
||||
public static final String MC = "1.7.10";
|
||||
|
@ -98,6 +98,7 @@ public final class BagMod
|
|||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
ModRegistry.registerMods();
|
||||
ItemLoader.LoadItems();
|
||||
//BlockLoader.loadBlocks();
|
||||
Recipes.registerRecpies();
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package com.jtrent238.jtrent238bags;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
public class LogHelper {
|
||||
|
||||
public static void log(Level info, String string) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.jtrent238.jtrent238bags;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
public class ModRegistry {
|
||||
|
||||
public static boolean isjtrent238youtubersLoaded;
|
||||
|
||||
public static void registerMods() {
|
||||
|
||||
isjtrent238youtubersLoaded = Loader.isModLoaded("jtrent238youtubers");
|
||||
|
||||
if (isjtrent238youtubersLoaded) {
|
||||
|
||||
System.out.println("jtrent238's YouTuber Mod Loaded");
|
||||
try {
|
||||
LogHelper.log(Level.INFO, "Loaded jtrent238's YouTuber Mod");
|
||||
}
|
||||
catch (Exception e) {
|
||||
LogHelper.log(Level.SEVERE, "Could not load jtrent238's YouTuber Mod");
|
||||
e.printStackTrace(System.err);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -36,8 +36,7 @@ public class OreDict {
|
|||
OreDictionary.registerOre("bag" + ItemBag.field_150923_a[14].toUpperCase(), new ItemStack(ItemLoader.ItemBag, 14));
|
||||
OreDictionary.registerOre("bag" + ItemBag.field_150923_a[15].toUpperCase(), new ItemStack(ItemLoader.ItemBag, 15));
|
||||
OreDictionary.registerOre("bag" + ItemBag.field_150923_a[16].toUpperCase(), new ItemStack(ItemLoader.ItemBag, 16));
|
||||
//OreDictionary.registerOre("bag" + ItemBag.field_150923_a[17], ItemLoader.ItemBag.getItemById(17));
|
||||
|
||||
OreDictionary.registerOre("bag" + ItemBag.field_150923_a[17].toUpperCase(), new ItemStack(ItemLoader.ItemBag, 18));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,7 +35,11 @@ public class Recipes {
|
|||
GameRegistry.addShapedRecipe(new ItemStack(ItemLoader.ItemBag, 1, 11), "XXX", "XBX", "XXX", 'X', new ItemStack(Items.dye, 1, 14), 'B', ItemLoader.ItemBag);
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemLoader.ItemBag, 1, 12), "XXX", "XBX", "XXX", 'X', new ItemStack(Items.dye, 1, 15), 'B', ItemLoader.ItemBag);
|
||||
|
||||
|
||||
if(ModRegistry.isjtrent238youtubersLoaded == true){
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemLoader.ItemBag, 1, 16), "XXX", "XBX", "XXX", 'X', new ItemStack(com.jtrent238.youtubers.ItemLoader.Itemjtrent238Ingot), 'B', ItemLoader.ItemBag);
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemLoader.ItemBag, 1, 15), "XXX", "XBX", "XXX", 'X', new ItemStack(com.jtrent238.youtubers.ItemLoader.Item_MrGregor_Ingot), 'B', ItemLoader.ItemBag);
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemLoader.ItemBag, 1, 14), "XXX", "XBX", "XXX", 'X', new ItemStack(com.jtrent238.youtubers.ItemLoader.ItemxJSQIngot), 'B', ItemLoader.ItemBag);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,8 +21,8 @@ import net.minecraft.world.World;
|
|||
|
||||
public class ItemBag extends Item
|
||||
{
|
||||
public static final String[] field_150923_a = new String[] {"Plain", "red", "green","blue", "purple", "cyan", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white", "Cow", "JSQ", "_MrGregor_", "jtrent238"};
|
||||
public static final String[] field_150921_b = new String[] {"Plain", "red", "green","blue", "purple", "cyan", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white", "Cow", "JSQ", "_MrGregor_", "jtrent238"};
|
||||
public static final String[] field_150923_a = new String[] {"Plain", "red", "green","blue", "purple", "cyan", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white", "Cow", "JSQ", "_MrGregor_", "jtrent238", "banana"};
|
||||
public static final String[] field_150921_b = new String[] {"Plain", "red", "green","blue", "purple", "cyan", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white", "Cow", "JSQ", "_MrGregor_", "jtrent238", "banana"};
|
||||
public static final int[] field_150922_c = new int[] {1973019, 11743532, 3887386, 5320730, 2437522, 8073150, 2651799, 11250603, 4408131, 14188952, 4312372, 14602026, 6719955, 12801229, 15435844, 15790320};
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] field_150920_d;
|
||||
|
@ -48,7 +48,7 @@ public class ItemBag extends Item
|
|||
public void getSubItems(Item p_150895_1_, CreativeTabs p_150895_2_, List p_150895_3_)
|
||||
{
|
||||
//for (int i = 0; i < [AmountOfBags]; ++i)
|
||||
for (int i = 0; i < 17; ++i)
|
||||
for (int i = 0; i < 18; ++i)
|
||||
{
|
||||
p_150895_3_.add(new ItemStack(p_150895_1_, 1, i));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ public class ItemBag extends Item
|
|||
*/
|
||||
public String getUnlocalizedName(ItemStack p_77667_1_)
|
||||
{
|
||||
int i = MathHelper.clamp_int(p_77667_1_.getItemDamage(), 0, 17);
|
||||
int i = MathHelper.clamp_int(p_77667_1_.getItemDamage(), 0, 18);
|
||||
return super.getUnlocalizedName() + "." + field_150923_a[i];
|
||||
}
|
||||
|
||||
|
|
|
@ -15,4 +15,5 @@ item.ItemBag.white.name=White Bag
|
|||
item.ItemBag.Cow.name=Cow Bag
|
||||
item.ItemBag.JSQ.name=xJSQ Bag
|
||||
item.ItemBag._MrGregor_.name=_MrGregor_ Bag
|
||||
item.ItemBag.jtrent238.name=jtrent238 Bag
|
||||
item.ItemBag.jtrent238.name=jtrent238 Bag
|
||||
item.ItemBag.banana.name=Banana Bag
|
|
@ -0,0 +1,18 @@
|
|||
itemGroup.BagTab=jtrent238's Bag Mod
|
||||
item.ItemBag.Plain.name=Plain Bag
|
||||
item.ItemBag.red.name=Red Bag
|
||||
item.ItemBag.green.name=Green Bag
|
||||
item.ItemBag.blue.name=Blue Bag
|
||||
item.ItemBag.purple.name=Purple Bag
|
||||
item.ItemBag.cyan.name=Cyan Bag
|
||||
item.ItemBag.pink.name=Pink Bag
|
||||
item.ItemBag.lime.name=Lime Bag
|
||||
item.ItemBag.yellow.name=Yellow Bag
|
||||
item.ItemBag.lightBlue.name=Light Blue Bag
|
||||
item.ItemBag.magenta.name=Magenta Bag
|
||||
item.ItemBag.orange.name=Orange Bag
|
||||
item.ItemBag.white.name=White Bag
|
||||
item.ItemBag.Cow.name=Cow Bag
|
||||
item.ItemBag.JSQ.name=xJSQ Bag
|
||||
item.ItemBag._MrGregor_.name=_MrGregor_ Bag
|
||||
item.ItemBag.jtrent238.name=jtrent238 Bag
|
|
@ -0,0 +1,19 @@
|
|||
itemGroup.BagTab=jtrent238's Bag Mod
|
||||
item.ItemBag.Plain.name=Plain Bag
|
||||
item.ItemBag.red.name=Red Bag
|
||||
item.ItemBag.green.name=Green Bag
|
||||
item.ItemBag.blue.name=Blue Bag
|
||||
item.ItemBag.purple.name=Purple Bag
|
||||
item.ItemBag.cyan.name=Cyan Bag
|
||||
item.ItemBag.pink.name=Pink Bag
|
||||
item.ItemBag.lime.name=Lime Bag
|
||||
item.ItemBag.yellow.name=Yellow Bag
|
||||
item.ItemBag.lightBlue.name=Light Blue Bag
|
||||
item.ItemBag.magenta.name=Magenta Bag
|
||||
item.ItemBag.orange.name=Orange Bag
|
||||
item.ItemBag.white.name=White Bag
|
||||
item.ItemBag.Cow.name=Cow Bag
|
||||
item.ItemBag.JSQ.name=xJSQ Bag
|
||||
item.ItemBag._MrGregor_.name=_MrGregor_ Bag
|
||||
item.ItemBag.jtrent238.name=jtrent238 Bag
|
||||
item.ItemBag.bannana.name=Bannana Bag
|
|
@ -0,0 +1,19 @@
|
|||
itemGroup.BagTab=jtrent238's Bag Mod
|
||||
item.ItemBag.Plain.name=Plain Bag
|
||||
item.ItemBag.red.name=Red Bag
|
||||
item.ItemBag.green.name=Green Bag
|
||||
item.ItemBag.blue.name=Blue Bag
|
||||
item.ItemBag.purple.name=Purple Bag
|
||||
item.ItemBag.cyan.name=Cyan Bag
|
||||
item.ItemBag.pink.name=Pink Bag
|
||||
item.ItemBag.lime.name=Lime Bag
|
||||
item.ItemBag.yellow.name=Yellow Bag
|
||||
item.ItemBag.lightBlue.name=Light Blue Bag
|
||||
item.ItemBag.magenta.name=Magenta Bag
|
||||
item.ItemBag.orange.name=Orange Bag
|
||||
item.ItemBag.white.name=White Bag
|
||||
item.ItemBag.Cow.name=Cow Bag
|
||||
item.ItemBag.JSQ.name=xJSQ Bag
|
||||
item.ItemBag._MrGregor_.name=_MrGregor_ Bag
|
||||
item.ItemBag.jtrent238.name=jtrent238 Bag
|
||||
item.ItemBag.bananna.name=Bananna Bag
|
Binary file not shown.
After Width: | Height: | Size: 411 B |
Binary file not shown.
Loading…
Reference in New Issue