
someonewithpc
Forge Modder-
Posts
18 -
Joined
-
Last visited
Converted
-
Gender
Male
someonewithpc's Achievements

Tree Puncher (2/8)
0
Reputation
-
Thank you for the tip Got help from a friend and he pointed that out as well. I was overcomplicating things, inside the class that extends ItemArmor you @Override getArmorModel, and just return a class that extends ModelBase, inside which you render the model. You @Override getArmorTexture to give it it's texture. Like so: With the necessary package declaration and proper imports, this should render the "armor", in this case it's a copy of model biped. In this case it will render it 3 times, one for the vanilla code, that renders the player itself, and for the super call in the render method, and again for what's inside the render method. Of course, it's possible for you to replace what's inside there.
-
Would adding a chat message do?
-
[1.6.4] Item.registery error (Continued from previous post)
someonewithpc replied to kenny2810's topic in Modder Support
This isnt registering a single item, it is going to be used to read names from a config file (rather complicated, see my old post). Still you could, probably use a List and a for loop; And I'm not gonna search for your old post, if you want, send a link... -
It happened to me when I opened the game with debug mode, after creating a RenderTickHandler. If you are in debbug mode, just run it normally and should work. As far as I know it is caused by the client thread just being tooo slow, compared to the server thread; So the problem might come from any code that is running every single tick, and is rather intensive.
-
Custom Mob Texture Issue when in minecraft client
someonewithpc replied to majesticmadman98's topic in Modder Support
Do you even Java?!? Do you actuall define "entityClass", "name" or "entityId"? And yes, you need your mod's instance, wich is defined as follows: @Instance(MODID) public static YourMod instance; Where MODID is your mod's id, and YourMod is the class with the @Mod annotation; Pretty straight forward... -
[1.6.4] Item.registery error (Continued from previous post)
someonewithpc replied to kenny2810's topic in Modder Support
From my understanding, you're trying to register a item, and then get it's object for some popuse, however, what you should do is: public static Item item = new YourItem(2000); GameRegistry.registerItem(item); Where YourItem is a class that extends Item, or extends another class that extends Item, and 2000 is the id; This way you keep the reference to your object, and can later refer to it, without using "GameData.itemRegistry.getObjectByName(String)" (Which I had never heard of). Besides, this is basic Java logic, if you need a object for later use, keep it in a variable. -
I think you're not reading the TileEntity's inventory, when you open the container.
-
I'm having problems with Rendering a Wavefront Object as Armor. So, I've been looking around 'da webs' and didn't find anything usefull. I tried using the 'getArmorModel' method in the ItemArmor class (overriding it in my Item class), but it doesn't get called. Do I need to make anything else so it does get called? As that didn't work I tried to setup a RenderTickHandler, however, now the game runs really slowly, and fails to open the world, because of that slowness. I'm using TickEvents.RenderTickEvent, and I've tried registering my handler in both FMLCommonHandler and MinecraftForge.EVENT_BUS. here is my code: RenderTickHandler: ClientProxy: Additionally, I'm running the game on debug mode, in eclipse, which ran just fine using the RenderPlayerEvent, however it didn't get called (that might be why... </sarcasm>), and other models work just fine.
-
The problem was I wasn't registering the tileentity properly
-
They are. Is there any known bug for this whit version .1047? [Edit]drawGuiContainerBackgroundLayer is not called
-
I know it's a bad modding practice to register blocks inside a static block, but when I tried to do it properly textures didn't work. Besides, it wasn't me who wrote this code. package com.echo.darksouls; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.oredict.ShapedOreRecipe; import com.echo.darksouls.blocks.BlockBonfire; import com.echo.darksouls.blocks.BlockBrickPillar; import com.echo.darksouls.blocks.BlockDecayedBrickPillar; import com.echo.darksouls.blocks.BlockDecayedCarbedStoneBrick; import com.echo.darksouls.blocks.BlockDecayedCrackedStoneBrick; import com.echo.darksouls.blocks.BlockDecayedMossyStoneBrick; import com.echo.darksouls.blocks.BlockDecayedStoneBrick; import com.echo.darksouls.blocks.BlockDecayedVines; import com.echo.darksouls.blocks.BlockForge; import com.echo.darksouls.blocks.BlockTitaniteOre; import com.echo.darksouls.creativetab.DarkSoulsTab; import com.echo.darksouls.creativetabs.placeholder.DarkSoulsTabPlaceHolder; import com.echo.darksouls.gui.GuiHandler; import com.echo.darksouls.gui.GuiManaBar; import com.echo.darksouls.item.ItemBlockBonfire; import com.echo.darksouls.item.ItemBrokenSword; import com.echo.darksouls.item.ItemEskusSword; import com.echo.darksouls.item.ItemTitaniteShard; import com.echo.darksouls.proxy.CommonProxy; import com.echo.darksouls.tileentity.TileEntityBonfire; import com.echo.darksouls.tileentity.TileEntityForge; import cpw.mods.fml.common.FMLCommonHandler; 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.event.FMLServerStartingEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = DarkSouls.MODID, version = DarkSouls.VERSION) public class DarkSouls { public static final String MODID = "The Official Dark Souls Mod"; public static final String VERSION = "Alpha 0.1"; @Instance(MODID) public static DarkSouls instance; @SidedProxy(clientSide = "com.echo.darksouls.proxy.ClientProxy", serverSide = "com.echo.darksouls.proxy.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void load(FMLInitializationEvent event) { proxy.initRenderes(); proxy.initSounds(); new GuiHandler(); MinecraftForge.EVENT_BUS.register(new TutEventHandler()); FMLCommonHandler.instance().bus().register(new TutEventHandler()); } @EventHandler public void postInit(FMLPostInitializationEvent event) { if (FMLCommonHandler.instance().getEffectiveSide().isClient()) MinecraftForge.EVENT_BUS.register(new GuiManaBar(Minecraft .getMinecraft())); } //Register commands @EventHandler public void serverLoad(FMLServerStartingEvent event){ //Register model update command event.registerServerCommand(new CommandUpdate()); } // creative Tabs public static CreativeTabs DarkSoulsTab = new DarkSoulsTab( CreativeTabs.getNextID(), "DarkSoulsTab"); public static Item DarkSoulsTabPlaceHolder = new DarkSoulsTabPlaceHolder( 5501).setUnlocalizedName("DarkSoulsTabPlaceHolder").setTextureName( "DarkSouls:DarkSoulsTabPlaceHolder"); // tool Materials public static ToolMaterial Broken = EnumHelper.addToolMaterial("Broken", 5, 478, 2F, 1F, 35); public static ToolMaterial Eskus = EnumHelper.addToolMaterial("Eskus", 5, 1272, 3F, 3F, 25); // items and Blocks public static Item BrokenSword = new ItemBrokenSword(5500, Broken) .setUnlocalizedName("BrokenSword").setTextureName( "DarkSouls:BrokenSword"); public static Block TitaniteOre = new BlockTitaniteOre(5502, Material.rock) .setHardness(4F).setStepSound(Block.soundTypeStone) .setBlockName("TitaniteOre") .setBlockTextureName("DarkSouls:TitaniteOre"); public static Item EskusSword = new ItemEskusSword(5503, Eskus) .setUnlocalizedName("EskusSword").setTextureName( "DarkSouls:EskusSword"); public static Block Forge = new BlockForge(5504, Material.anvil) .setHardness(8F).setStepSound(Block.soundTypeAnvil) .setBlockName("Forge").setBlockTextureName("DarkSouls:Forge"); public static Item TitaniteShard = new ItemTitaniteShard(5505) .setUnlocalizedName("TitaniteShard").setTextureName( "DarkSouls:TitaniteShard"); public static Block BrickPillar = new BlockBrickPillar(5506, Material.rock) .setHardness(5F).setStepSound(Block.soundTypeStone) .setBlockName("BrickPillar") .setBlockTextureName("DarkSouls:BrickPillar"); public static Block DecayedVines = new BlockDecayedVines(5507, Material.vine).setHardness(1F).setStepSound(Block.soundTypeGrass) .setBlockName("DecayedVines") .setBlockTextureName("DarkSouls:DecayedVines"); public static Block DecayedStoneBrick = new BlockDecayedStoneBrick(5508, Material.iron).setHardness(8F).setStepSound(Block.soundTypeStone) .setBlockName("DecayedStoneBrick") .setBlockTextureName("DarkSouls:DecayedStoneBrick"); public static Block DecayedCrackedStoneBrick = new BlockDecayedCrackedStoneBrick( 5509, Material.iron).setHardness(6F) .setStepSound(Block.soundTypeStone) .setBlockName("DecayedCrackedStoneBrick") .setBlockTextureName("DarkSouls:DecayedCrackedStoneBrick"); public static Block DecayedMossyStoneBrick = new BlockDecayedMossyStoneBrick( 5510, Material.iron).setHardness(8.5F) .setStepSound(Block.soundTypeStone) .setBlockName("DecayedMossyStoneBrick") .setBlockTextureName("DarkSouls:DecayedMossyStoneBrick"); public static Block DecayedCarvedStoneBrick = new BlockDecayedCarbedStoneBrick( 5511, Material.iron).setHardness(8F) .setStepSound(Block.soundTypeStone) .setBlockName("DecayedCarvedStoneBrick") .setBlockTextureName("DarkSouls:DecayedCarvedStoneBrick"); public static Block DecayedBrickPillar = new BlockDecayedBrickPillar(5512, Material.iron).setHardness(8F).setStepSound(Block.soundTypeStone) .setBlockName("DecayedBrickPillar") .setBlockTextureName("DarkSouls:DecayedBrickPillar"); public static Block Bonfire = new BlockBonfire( Material.iron).setBlockUnbreakable().setStepSound(Block.soundTypeStone) .setBlockName("Bonfire"); { GameRegistry.registerBlock(DecayedBrickPillar, "Decayed Brick Pillar"); GameRegistry.registerBlock(DecayedVines, "Decayed Vines"); GameRegistry.registerItem(EskusSword, "Eskus Sword"); GameRegistry.registerBlock(TitaniteOre, "Titanite Ore"); GameRegistry.registerItem(BrokenSword, "Broken Sword"); GameRegistry.registerItem(DarkSoulsTabPlaceHolder, "DarkSoulsTabPlaceHolder"); GameRegistry.registerBlock(Forge, "Forge"); GameRegistry.registerTileEntity(TileEntityForge.class, "forgeTE"); GameRegistry.registerItem(TitaniteShard, "Titanite Shard"); GameRegistry.registerBlock(BrickPillar, "Brick Pillar"); GameRegistry.registerBlock(DecayedStoneBrick, "Decayed Stone Brick"); GameRegistry.registerBlock(DecayedCarvedStoneBrick, "Decayed Carved Stone Brick"); GameRegistry.registerBlock(DecayedMossyStoneBrick, "Decayed Mossy Stone Brick"); GameRegistry.registerBlock(DecayedCrackedStoneBrick, "Decayed Cracked Stone Brick"); GameRegistry.registerBlock(Bonfire, ItemBlockBonfire.class, "Bonfire"); GameRegistry.registerTileEntity(TileEntityBonfire.class, "bonfireTE"); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(DarkSouls.Forge), new Object[] { "WAW", "ILI", "OOO", 'A', Blocks.anvil, 'O', Blocks.obsidian, 'L', Items.lava_bucket, 'I', Blocks.iron_block, 'W', "logWood" // Blocks.log })); LanguageRegistry.addName(DecayedBrickPillar, "Decayed Brick Pillar"); LanguageRegistry.addName(DecayedVines, "Decayed Vines"); LanguageRegistry.addName(EskusSword, "Eskus Sword"); LanguageRegistry.addName(TitaniteOre, "Titanite Ore"); LanguageRegistry.addName(BrokenSword, "Broken Sword"); LanguageRegistry.addName(DarkSoulsTabPlaceHolder, "DarkSoulsTabPlaceHolder"); LanguageRegistry.addName(Forge, "Forge"); LanguageRegistry.addName(TitaniteShard, "Titanite Shard"); LanguageRegistry.addName(BrickPillar, "Brick Pillar"); LanguageRegistry.addName(DecayedStoneBrick, "Decayed Stone Brick"); LanguageRegistry.addName(DecayedCarvedStoneBrick, "Decayed Carved Stone Brick"); LanguageRegistry.addName(DecayedMossyStoneBrick, "Decayed Mossy Stone Brick"); LanguageRegistry.addName(DecayedCrackedStoneBrick, "Decayed Cracked Stone Brick"); LanguageRegistry.addName(Bonfire, "Bonfire"); } }
-
I have followed Vswe's summer courses, and tried to make a gui, however it doesn't open... The problem migth be some little thing I overlooked, thougth. Code: All classes have propper imports, but just to save some space... I create a instance of the GuiHandler on load (new GuiHandler())