Everything posted by Sear_Heat
-
NBT Problem [1.7]
Static can refer to non-static code by slapping an instance in front of the non-static code. Just saying if that helped.
-
Spawning Entity at player through keybind press
Sooo.... how should I do that? Sorry that I don't know, I used a slightly modified version of the bow code.
-
Sending messages to player
I am still confused on how to create one, curse those stupid p_11111_0_ parameters.
-
[1.7.2]Player dropping extra item?
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.
-
Spawning Entity at player through keybind press
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
-
1.7 Lock Entity's rotation jaw and pitch
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.
-
Sending messages to player
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.
-
Gradle separate directories
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?
-
[1.7.2]Single player bug
I'm not in debug mode, but your explanation makes sense. My computer is astonishingly slow while running 3D games. Thanks for the explanation.
-
[1.7.2]Single player bug
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?
-
[SOLVED]Custom Bow enchantment system broken!
Thanks, that helped a lot!
-
[SOLVED]Custom Bow enchantment system broken!
Bump.
-
[SOLVED]Custom Bow enchantment system broken!
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
-
[1.7.2][build 1085][FIXED]World generation taking really long
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.
-
[1.7.2][FIXED]My World Generation code is broken.
I actually did import that line, you must have skipped it. I really do not know what the problem is, it has me stumped!
-
[1.7.2][FIXED]My World Generation code is broken.
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.
IPS spam blocked by CleanTalk.