Everything posted by jibbity
-
Custom tool that will drop a different items when mining.
What i want to do is when Iron ore is mined instead of dropping it'self I want it to drop another item ie Iron fragments, is this possible and does anyone have any information on how to do this. I also want to implement this with ores from the ore dictionary. Stone Sledge Hammer
-
Need some help with block names
Thanks, I missed that the correction is public class Blocks { public static Block block; public static Block mixer; public static void init() { block = new TutBlock(Ids.tutBlock_actual); GameRegistry.registerBlock(block, Names.tutBlock_name); mixer = new MixerBlock(Ids.mixerBlock_actual); GameRegistry.registerBlock(mixer, Names.mixerBlock_name); } public static void addNames() { LanguageRegistry.addName(block, Names.tutBlock_name); LanguageRegistry.addName(mixer, Names.mixerBlock_name); } }
-
Need some help with block names
I followed this tutorial in order to make a block http://www.minecraftforum.net/topic/1896697-162-minecraft-modding-6a-a-basic-custom-block/ However when I follow it to make a second block the original block name changes to tile.tutorialBlock.name I have put the project up on github rather then adding all of the code, if that makes it easier. https://github.com/PandaTeamProject/HydroBlocks
-
I need some help with item id's
Thanks again everyone
-
I need some help with item id's
How would you suggest to best set up the item id?
-
I need some help with item id's
I will have a play with that as well
-
I need some help with item id's
Thank you very much, and to everyone who replied.
-
I need some help with item id's
package hydroblocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class Itemhydronutrients extends Item { public Itemhydronutrients(int id) { super(id); this.setCreativeTab(CreativeTabs.tabMaterials); } @SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister) { this.itemIcon = par1IconRegister.registerIcon(HydroBlocks.modid + ":" + (this.getUnlocalizedName().substring(5))); } }
-
I need some help with item id's
I have tried changing the itemID like you suggested, however it just generated another random number.
-
I need some help with item id's
Im having an issue were I set the item id for a it in the game, however changes to a different number when I run the client. package hydroblocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = HydroBlocks.modid, name = "HydroBlocks Mod", version ="1.0" ) @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class HydroBlocks { public static final String modid = "pandateam_HydroBlocks"; public static Block hydromixerBlock; public static Item hydronutrientsItem; @EventHandler public void load(FMLPreInitializationEvent event) { //2620 is working hydromixerBlock = new BlockHydroMixerBlock(2620, Material.rock).setUnlocalizedName("hydromixerBlock"); GameRegistry.registerBlock(hydromixerBlock, modid + hydromixerBlock.getUnlocalizedName().substring(5)); LanguageRegistry.addName(hydromixerBlock, "Hydro Mixer"); //26201 is meant to be the block ID however it seems to be randomly set hydronutrientsItem = new Itemhydronutrients(26201).setUnlocalizedName("hydroponicnutrientsItem"); LanguageRegistry.addName(hydronutrientsItem, "Hydroponic Nutrients"); } } The item in question that I am having an issue with is the hydronutrientsItem the block id I want to set it to is 26201, however this wont work. When I run the client it sets the item id as 26457
IPS spam blocked by CleanTalk.