Jump to content

Sear_Heat

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Sear_Heat

  1. Static can refer to non-static code by slapping an instance in front of the non-static code. Just saying if that helped.
  2. Sooo.... how should I do that? Sorry that I don't know, I used a slightly modified version of the bow code.
  3. I am still confused on how to create one, curse those stupid p_11111_0_ parameters.
  4. I am just going to say that Notch auto-drops an apple when he dies. You should find the code for Notch dropping an extra item and modify it inside your own class.
  5. I am trying to spawn an entity with a key press. The keybind code is ok but the real problem is actually spawning an entity. I do not know how to spawn the fireball at the player, because when I use Minecraft.getMinecraft().theWorld for world and Minecraft.getMinecraft().thePlayer for the paramaters on spawning the fireball, it gives me the error, "Cannot instantiate the type EntityFireball". How should I fix this? code: http://pastebin.com/qr4DSq2u
  6. Well, this is more of a thought experiment than a coding solution, but I think you should make a new class like EntityLivingBase that is almost exactly the same but with the set jaw and pitch values, and then use that in your code.
  7. I want to send a message to the player through chat. I know that I need an IChatComponent, but what the heck is that? I can't send the message then, and I really need to.
  8. I am trying to build my mod with Gradle, but my packages and code are in a different folder than the one build.gradle is in. How do I point to a separate directory in the build.gradle's group field?
  9. I'm not in debug mode, but your explanation makes sense. My computer is astonishingly slow while running 3D games. Thanks for the explanation.
  10. Whenever I try to play a singleplayer world with my mod in eclipse, it just takes me to the title screen and I get this error: It stops the first time I try to play it after I restart my computer but every time after it gives me this. Does anyone know why, and how I can stop it?
  11. I have recently made a custom bow (ItemRubyBow) that is pretty much the ItemBow code copied but modified. So I was left clueless when, even though every other thing was working perfectly, the bow would only get the enchantment "Unbreaking", no matter how many times I enchanted it. They were different levels of Unbreaking, in case that is relevant. Also, this may be related to the answer: Is there any way to set the durability of a bow? Am I missing some sort of "BowMaterial"? Here is my code: http://pastebin.com/7EX5BFTk
  12. Well, this really depends on the computer, but when you start up the world it tries to generate Aradactite Ore 24 times per chunk (I believe), and there are a crapload of chunks in Minecraft. I would lower it to something more reasonable like 10.
  13. I actually did import that line, you must have skipped it. I really do not know what the problem is, it has me stumped!
  14. I am having trouble with my world generation code. The error is "The constructor WorldGenMineable(Block, Int, Int) is undefined". Here is all the relevant code: Main Class: PRIVATE NOW Ruby Ore Block: PRIVATE NOW Register Helper: PRIVATE NOW World Generation Code: PRIVATE NOW EDIT: A misinterpretation of the tutorial caused this. By deleting the second integer in the worldGenMineable, the error went away. I was misled to believe you needed two numbers, but I guess that was only for blocks with data values.
×
×
  • Create New...

Important Information

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