August 31, 20178 yr Have you tried looking at how Ender Pearls do this? Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 31, 20178 yr EntityPlayer#getCooldownTracker()CooldownTracker#setCooldown() This literally took me 5 seconds to find in the sources. Edited August 31, 20178 yr by MrBendelScrolls
September 1, 20178 yr Author 17 hours ago, Choonster said: Have you tried looking at how Ender Pearls do this? No, didn't think about that since not everything is in source code (like Diamond Ore generation) Edited September 1, 20178 yr by Insane96MCP
September 1, 20178 yr 39 minutes ago, Insane96MCP said: No, didn't think about that since not everything is in source code (like Diamond Ore generation) Everything is in the source code. World generation isn't handled by the Block class, it's handled by dedicated world generation classes. If you look for usages of Blocks.DIAMOND_ORE, you'll see that it's used in BiomeDecorator#decorate to create a WorldGenMinable instance. This is later used in BiomeDecorator#generateOres to generate veins of Diamond Ore. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.