Everything posted by Draco18s
-
(1.6.4) Block bounds/Hitbox
Not outside of a coremod, no.
-
Couple Custom Block Questions
The OGL code there just rotates the item entity so it lays flat instead of standing upright.
-
[1.6.4] just a quick server modding question
serverSideRequired=true means that a player that has the mod installed on their client CANNOT join a server without it. That's all it does.
-
(1.6.4) Block bounds/Hitbox
This is because Minecraft assumes that blocks never extend outside a full cube. You should really be using a second block to fill that upper space, like pistons do.
-
[1.7.2] java.lang.OutOfMemoryError when adding a bunch of recipes.
OreDict recipes. GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(whatevs), " r ", " s ", " ", 's', "stone", 'r', new ItemStack(Item.redstone)));
-
Couple Custom Block Questions
It happens there in model class. See line 60.
-
Couple Custom Block Questions
Not sure what's up with that. Things near the edge of the view cone generally behave oddly anyway. Thanks! Here's a screenshot of it in the world. (Hmm. Need to double check the glass edges. I think I saw them missing the edging the other day...)
-
[1.7.2] How do I make cacti do more damage?
Oh ew, no. Event handler yes, but that's the wrong event. Use LivingHurtEvent.
-
Couple Custom Block Questions
GL11.glEnable(GL11.GL_BLEND) See line 95.
-
[1.6.4]Player position problem.
Alright. I don't know what the problem is. I thought it was because of the truncates to integers, but that's not it. I do not know what is wrong. The problem may not even be in that class.
-
Problems Updating mod to 1.7.2
Coremods use reflection and/or ASM, not edits to base classes.
-
[1.6.4]Player position problem.
Packets can handle floats. Floats and doubles are convertible into each other. Hmm. Now I'm not sure.
-
[1.6.4]Player position problem.
private int lastPlayerX = 0; private int lastPlayerY = 0; private int lastPlayerZ = 0; private int lastPlayerX2 = 0; private int lastPlayerY2 = 0; private int lastPlayerZ2 = 0; *Cough*
-
[1.6.4] how do i move parts of the world?
Probably. I was just doing a proof of concept thing. I didn't need the copy to be perfect, as the "concept" part was being able to blend the edges of the copy with the destination, so that it looked natural. Here's the only set of screenshots I took of one such teleport. http://s16.postimg.org/d0vp5qjid/2014_01_24_23_09_54.png[/img] http://s23.postimg.org/q9poehyt7/2014_01_25_01_52_15.png[/img] http://s27.postimg.org/5t6vwu11f/2014_01_25_02_04_16.png[/img]
-
[1.6.4] how do i move parts of the world?
Yes, but if you set the piston head to air before you've copied the base, the base won't get copied (it drops). Flag 2 be damned. Rails are also a bitch to copy, but I think doing them during a second pass would be sufficient.
-
Using itemstack and blocks?
All blocks in stacks are of type ItemBlock. Check that.
-
[1.6.4] how do i move parts of the world?
I used Flag 2 as well, but that didn't stop doors and pistons from breaking.
-
[1.6.4] RESOLVED How to get the running Minecraft directory
There's also DimensionManager.getCurrentSaveRootDirectory() if you need that. Also, new File(".") will also get the current directory
-
[1.7.2] java.lang.OutOfMemoryError when adding a bunch of recipes.
The reason not to is because mods will want to distinguish copper and iron.
-
[1.7.2] openGui Problem (onBlockActivated)
- [1.7.2] java.lang.OutOfMemoryError when adding a bunch of recipes.
Huh? But to answer the question: yes, you can. But you probably shouldn't.- Explosion Event -- detecting / stopping / manipulating explosions?
Yes, but that's not useful in his case. He wants a block at (0,70,0) to protect blocks in a 16 block range from being damaged by explosions. So the block at (0,70,0) needs to know when an explosion goes off over at (12,70,0) so that the blocks at (10,70,0), (10,70,1), (10,70,-1), etc. don't get destroyed.- [1.7.2] java.lang.OutOfMemoryError when adding a bunch of recipes.
Use the ore dictionary.- [1.6.4]Player position problem.
int playerPosX = (int)mc.thePlayer.posX; int playerPosY = (int)mc.thePlayer.posY; int playerPosZ = (int)mc.thePlayer.posZ; What did you think was going to happen when you truncated doubles down to ints?- Compiled Mod Causes Error [SOLVED -> never use func_...!]
"Explicit" is the word you're looking for there. - [1.7.2] java.lang.OutOfMemoryError when adding a bunch of recipes.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.