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.

Chaest

Members
  • Joined

  • Last visited

  1. I re-installed everything and it now works. Still don't know why it didn't work, but problem solved!! Thanks you both for you time!
  2. Oh I see! No, I know how java works, at least enough not to do that! x)
  3. Hugh, must be the installation then, that's really weird... I'm afraid it is. What's missing that seems so important? Here's the whole "Aderosite.java" code. Made using this page : http://www.wuppy29.com/minecraft/1-8-tutorial/updating-1-7-to-1-8-part-3-basic-blocks/#sthash.sKzccjr4.dpbs package ant.belena.start; import ant.belena.start.reference.Reference; import net.minecraftforge.fml.common.ObfuscationReflectionHelper; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class Anderosite extends Block { public final static String name = "Anderosite"; public Anderosite(){ super(Material.ground); setStepSound(Block.soundTypeStone); setHardness(5.0F); setUnlocalizedName(Reference.MOD_ID+"_"+name); setCreativeTab(CreativeTabs.tabBlock); setHarvestLevel("pickaxe",3); } }
  4. Hello! Sorry if it's been asked already but I'd like to know if the method "setHarvestLevel" 's been change or something like that. Cause however I use it in my code Block.setHarvestLevel([tool], [level]); this.setHarvestLevel([tool], [level]); setHarvestLevel([tool], [level]); And wherever in fact, it just keep on telling me it's not defined. There's no include proposed or anything, it'll only ask me to create a new function with this name. I've been searching for hours now and as I just started it's really annoying. I'm starting to believe I made a mistake while installing the environment, though I've checked I followed this tutorial : "http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/2235074-tattys-1-8-modding-tutorial-next-tutorial-blocks" and shouldn't have missed anything... So if you have any idea of what I'm doing wrong, please tell me! Here's some code : public Anderosite(){ super(Material.ground); setStepSound(Block.soundTypeStone); setHardness(5.0F); setUnlocalizedName(Reference.MOD_ID+"_"+name); setCreativeTab(CreativeTabs.tabBlock); setHarvestLevel("pickaxe",3); } GameRegistry.registerItem(araitaOre, "AraitaOre"); araita.setHarvestLevel("pickaxe", 2); GameRegistry.registerBlock(araita, "Araita"); GameRegistry.registerBlock(anderosite, "Anderosite"); GameRegistry Here's the exact error message : "The method setHarvestLevel(String, int) is undefined for the type Block." I'm using eclypse on widows seven (don't think it matters but who knows... not me^^) Thanks for your replies!

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.