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.

Brightborn

Members
  • Joined

  • Last visited

  1. ok that's got it to work now cheers for the help, now i feel silly for not noticing that sooner
  2. Hey i'm relatively new to modding i've been trying to create my own mod, first started on 1.7.10 then i started again for 1.8 but i'm having a small problem with setHarvestLevel with my blocks in that no matter the tool level the block always drops. I've tried various combinations to try solving it including putting the values into the block init but it doesn't seem to work so i figured i should ask some people who know what they are doing,the help is appreciated heres the code that i've used for the items kaijuGoldOre class } package KaijuMod.init; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class kaijuGoldOre extends Block{ public kaijuGoldOre(Material material){ super(material); this.setHardness(20.0F); this.setHarvestLevel("Pickaxe",5); } ItemRegistry class package KaijuMod.init; import KaijuMod.MainRegistry; import KaijuMod.Reference; import KaijuMod.blocks.BlockKaiju; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; public class KaijuBlocks { public static Block kaijuGoldOre; public static void init(){ kaijuGoldOre= new KaijuMod.init.kaijuGoldOre(Material.rock).setUnlocalizedName("kaijuGoldOre").setCreativeTab(MainRegistry.tabKaiju); } public static void register(){ GameRegistry.registerBlock(kaijuGoldOre, kaijuGoldOre.getUnlocalizedName().substring(5)); } public static void registerRenders(){ registerRender(kaijuGoldOre); } public static void registerRender(Block block){ Item item =Item.getItemFromBlock(block); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5),"inventory")); } }

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.