
BreezerTwo
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by BreezerTwo
-
GUI Error (Custom Furnace) - Updating screen events
BreezerTwo replied to BreezerTwo's topic in Modder Support
thanks for the quick reply. I did it in the ContainerClass but same error: @Override public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) { Slot slot = (Slot)this.inventorySlots.get(index); return slot != null ? slot.getStack() : null; } @Abastro To no one. I can't move the items with the opened GUI. But with shift-clicking minecraft crashes -
Hello everyone. I have a problem with my GUI. I can right-click my furnace and the GUI opens. In the GUI i cannot move an Item. In addtion to that if it try to put iron inside the cutting unit minecraft crashes. (Chrash log below) I think it has something to do with the GuiCuttingUnit.class because of: Details: Screen name: breezertwo.morerecipes.src.gui.GuiCuttingUnit But I'm not sure. Has anyone her an idea whats wrong? Thanks for all your help Andy ------------ Crash-Log: CuttingUnit.class: GuiCuttingUnit.class: ContainerCuttingUnit.class: TileEntityCuttingUnit.class:
-
[1.7.2] Make a block drop metadata items
BreezerTwo replied to PeterRDevries's topic in Modder Support
thanks for your solution. I'm glad you posted this here! -
[1.7.2| SOLVED] GUI won't open - custom furnace
BreezerTwo replied to BreezerTwo's topic in Modder Support
Thanks! Now everything works fine! You're great! -
Hey everybody, I have a problem I can't solve. If I rightclick on my furnace it doesn't open. Nothing happens and there is nothing showed in the console. I looked for the error for quite a long time now and have no idea whats wrong. If anybody has the idea whats wrong, PLEASE help me... Thanks Andy The Source Code of the Custom Furnace and my MainClass can be found here: https://github.com/breezertwo/FurnaceFiles
-
i have the same error. Please send me the fixes, too. Thx
-
[1.7.2] Opening Creative Tab causes crash (Texture?)
BreezerTwo replied to BreezerTwo's topic in Modder Support
Thanks it worked! I deleted all the other numbers end left only the 1! Thanks again! -
Hello eveybody, I have a problem with my creative tab. I try to open it and than minecraft crashes. I think it might be the MapleLeaf texture or the getIcon() Method but I have no idea whats wrong. If there is more information you need, please contact me. I'm searching for the error two days now an I hope somebody here has a idea... Thanks! BlockMapleLeaf.class ErrorReport:
-
[1.7.2] openGui Problem (onBlockActivated)
BreezerTwo replied to BreezerTwo's topic in Modder Support
i see .... ok ! -
[1.7.2] openGui Problem (onBlockActivated)
BreezerTwo replied to BreezerTwo's topic in Modder Support
before you juge ---> read all, not only the first lines! @Mod(modid="MODID", version="VERSION", name="MoreReipesMod") public class recipesmod { public static final String MODID = "recipesmod"; public static final String VERSION = "2.0"; it exactly the same like the "example mod" of the forge developers! -.- -
[1.7.2] openGui Problem (onBlockActivated)
BreezerTwo replied to BreezerTwo's topic in Modder Support
why i am a "bad modder"? -
[1.7.2] openGui Problem (onBlockActivated)
BreezerTwo replied to BreezerTwo's topic in Modder Support
what does "no" mean? -
[1.7.2] openGui Problem (onBlockActivated)
BreezerTwo replied to BreezerTwo's topic in Modder Support
Ok thanks for your help: Here is the GuiHandler.class package breezertwo.morerecipes.src.grinder; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import cpw.mods.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler{ @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile_entity = world.getTileEntity(x, y, z); if(tile_entity instanceof TileEntityGrinder){ return new ContainerGrinder(player.inventory, (TileEntityGrinder) tile_entity); } return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile_entity = world.getTileEntity(x, y, z); if(tile_entity instanceof TileEntityGrinder){ return new GuiGrinder(player.inventory, (TileEntityGrinder) tile_entity); } return null; } } -
Hello everybody.... I have a small problem.... evertime if I try to open the GUI of my custum furnace minecraft crashes! I have been searching for the error for hours now and I decided to ask the people here If they have an idea what's wrong! I think it has something to do with the openGui at onBlockActivated in the CustumFurnace class (here: Grinder.java) Thanks for your help! The Console Error Log: The CustumFurnace Class (here: Grinder.java): Extract form the CustumFurnaceClass (player.openGui) Main Class: Thanks agian for your help...
-
I think it's the correct path! That is my texture location! Minecraft/src/main/resources/assets/tutorialmod/textures/items/food.png Here is the structure:
-
Thanks for your help but it still doesn't work: My structure is the same as yours! Here is the code of the Item: package breezertwo.tutorialmod; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.ItemFood; public class ItemFoodTut extends ItemFood{ public ItemFoodTut(int id) { super(1001, 6, false); this.setMaxStackSize(10); this.setTextureName("tutorialmod:food"); } } And this is the code of my main class: package breezertwo.tutorialmod; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.biome.BiomeGenBase; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="tutorialmod", name="TutorialMod", version="0.1.0") //@NetworkMod(clientSideRequired=true, serverSideRequired=false) public class tutorialmod { @Instance("tutorialmod") public static tutorialmod instance; // @SidedProxy(clientSide="breezertwo.tutorialmod.client.ClientProxy", serverSide="breezertwo.tutorialmod.CommonProxy") // public static CommonProxy proxy; public BiomeGenBase TutorialBiom; public static Block Transparent; public int transparentID = 202; public static Block TransparentGreen; public int transparentgreenID = 203; public static Item food; public int foodID = 1001; public static Item TutErz; public int tuterzID = 1000; public static Block TutBlock; public int tutblockID = 200; public static Block TutorialErz; public int tutorialerzID = 201; public static Item StrucTool; public int toolID = 1002; @EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println("TutorialMod v0.1.0 loading in progress"); } @EventHandler public void load(FMLInitializationEvent event) { //TutorialBiom = new BiomTutorial(33); food = new ItemFoodTut(foodID).setUnlocalizedName("Food").setCreativeTab(CreativeTabs.tabMaterials); TutErz = new ItemTutErz(tuterzID).setUnlocalizedName("TutErz").setCreativeTab(CreativeTabs.tabMaterials); TutBlock = new BlockTutBlock(tutblockID, Material.field_151576_e).func_149663_c("TutBlock").func_149647_a(CreativeTabs.tabBlock).func_149711_c(3.0F).func_149752_b(10.0F); TutorialErz = new BlockTutorialErz(tutorialerzID, Material.field_151576_e).func_149663_c("TutorialErz").func_149647_a(CreativeTabs.tabBlock).func_149711_c(3.0F).func_149752_b(10.0F); Transparent = new BlockTransparent(transparentID, Material.field_151592_s).func_149663_c("Transparent").func_149647_a(CreativeTabs.tabBlock).func_149711_c(0.1F); //TransparentGreen = new BlockTransparentGreen(transparentgreenID, Material.field_151592_s).setUnlocalizedName("TransparentGreen").setCreativeTab(CreativeTabs.tabBlock).setHardness(0.1F); //StrucTool = new ItemStrucTool(toolID).setUnlocalizedName("Tool").setCreativeTab(CreativeTabs.tabTools); loadCraftingRecipes(); loadSmeltingRecipes(); register(); updateLanguage(); GameRegistry.registerWorldGenerator(new WorldGeneratorTutorialMod(), 0); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("TutorialMod v0.1.0 loading succeed"); } private void loadCraftingRecipes() { //Normale Rezepte GameRegistry.addRecipe(new ItemStack(Item.func_150899_d(337), 3), "XGX", "XGX", "XGX", 'G', Blocks.gravel); GameRegistry.addRecipe(new ItemStack(tutorialmod.TutBlock, 1), "XXX", "XXX", "XXX", 'X', tutorialmod.TutErz); //Shapeless Rezepte //GameRegistry.addShapelessRecipe(new ItemStack(Item.appleGold, 5), Item.appleRed, Item.emerald); } private void loadSmeltingRecipes() { GameRegistry.addSmelting(TutErz, new ItemStack(Item.func_150899_d(322)), 0.8F); } private void updateLanguage() { LanguageRegistry.addName(TutErz, "TutorialErz"); LanguageRegistry.addName(TutBlock, "TutorialBlock"); LanguageRegistry.addName(TutorialErz, "RotErz"); LanguageRegistry.addName(food, "Food"); LanguageRegistry.addName(Transparent, "TransparenterGlasBlock"); //LanguageRegistry.addName(TransparentGreen, "GrünerTransparenterGlasBlock"); //LanguageRegistry.addName(StrucTool, "StruckturenTool"); } private void register() { GameRegistry.registerItem(TutErz, "TutErz"); GameRegistry.registerBlock(TutBlock, "TutBlock"); GameRegistry.registerBlock(TutorialErz, "TutorialErz"); GameRegistry.registerItem(food, "Food"); GameRegistry.registerBlock(Transparent, "Transpsrent"); //GameRegistry.registerBlock(TransparentGreen, "TransparentGreen"); //GameRegistry.registerItem(StrucTool, "Tool"); } } Hope you have an onther idea.... but thanks anyway! Andy
-
Hello everybody, Im so glad that Forge1.7.2 is out now and I figured out now how to start a project with it! I started updating all my mods today(as far as possible) but I have still two problems: where I have to place the textures? Is this the right methode for it? public void func_149651_a(IIconRegister p_149651_1_) { this.field_149761_L = p_149651_1_.registerIcon("me:transparent.png"); } Thanks for all of your help! Andy