Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. @Mod.EventHandler
  2. public void postInit(FMLPostInitializationEvent event)
  3. {
  4. // Force initialization of ForgeHooks so it doesn't overwrite harvest levels when it
  5. // gets initialized later
  6. new ForgeHooks();
  7.  
  8. //should work now
  9. Blocks.cobblestone.setHarvestLevel("pickaxe", 3);
  10.  
  11. //works
  12. Blocks.bedrock.setHardness(5);
  13. Blocks.bedrock.setHarvestLevel("pickaxe", 3);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement