Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jibbity

Members
  • Joined

  • Last visited

Everything posted by jibbity

  1. 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
  2. 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); } }
  3. 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
  4. Thanks again everyone
  5. How would you suggest to best set up the item id?
  6. I will have a play with that as well
  7. Thank you very much, and to everyone who replied.
  8. 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))); } }
  9. I have tried changing the itemID like you suggested, however it just generated another random number.
  10. 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.