Everything posted by calclavia
-
Switching facing texture of a block
A lot of machines seems to require rotation of,it's textures. You think it's a good idea I include something like that in the API?
-
Forge Ore Dictionary
Where is the tutorial located? EDIT: Found it: http://www.minecraftforum.net/topic/1010052-creating-mods-methuselah96s-tutorials-8212/
-
Showing Damage
I'm not really sure. I looked at the player entity update function and there seems to be nothing related to updating the item bar there...
-
Showing Damage
Thanks! That worked! One problem though. It seems that the item will only update it's damage bar when the player hovers his/her mouse over the item. How can I make the graphic of the damage bar update constantly?
-
Switching facing texture of a block
Try this: http://www.minecraftforum.net/topic/1154044-12520412-duckys-modding-tutorials-make-your-blocks-nice-now-with-cables-api/ Instead of using the metadata, use a variable stored in the tile entity.
-
Showing Damage
No no. Saving the data is not a problem. The problem is I don't kow how to get that durability bar under the tools to show up.
-
Switching facing texture of a block
If you look at the furnace block, it faces whatever direction you place it. Maybe you can look at that as reference.
-
Showing Damage
I tried that and basically copied what the sword item is doing. But it still doesn't show the damage bar.
-
Showing Damage
In Universal Electricity, I am currently working on an item that can be charged. I successfully save the data of how much electricity the item stored via NBTTag. However, I don't know how to create a damage bar (like the sword, pickaxe etc.) to show how much electricity there is in the item. Anyone know how to make the small damage bar show under the item?
-
Angles and Trajectory
I haven't learn this in school yet. But can you please tell me the difference between atan and atan2 functions in Java? Atan2 seems to work an atan does not work.
-
Lights?
Take a look at the redstone ore as reference. It glows when you start mining it.
-
Angles and Trajectory
I figured out a solution for my problem but the result is completely different from this. I simply used the atan2() java function to get the radians and convert it into a angle.
-
Particles
Is there a way I can make some specific particles render even in a far away distance? I'm using this for the smoke of the missile from my mod ICBM.
-
Angles and Trajectory
Sorry, but I am only in junior high school. If I am not as good as you in math, I will not be surprised. But anyway, thanks for the reply. I feel stupid I didn't thought of that solution. I was trying to think too hard when it's something really simple. Thanks.
-
Angles and Trajectory
Yes, I want to find the bearing of the rocket. Good solution, but I do not know the point C and also the line B. How would I calculate to find that? Point C is required in order for me to use tangent.
-
Angles and Trajectory
Sorry but that's not what I was looking for. I posted a image of what I'm trying to get above.
-
Angles and Trajectory
This is more of a math question than a modding question. It is for my ICBM mod and I can't really figure it out. I am given point A and B. A missile is to be shot from point A to B. What would the trajectory (rotationPitch) of the missile be in angles? Also, what direction (rotationYaw) will the missile shoot in angles? I tried using Tangent but it didn't really work properly. I looked at the EntityArrow class as a reference but they already had the rotationYaw and rotationPitch as known variables (they get the variables from the entity player's rotation). LaunchYaw will be the direction of the missile the missile being shot. LaunchPitch will be the trajectory of the missile. this.setLocationAndAngles(position.x, position.y, position.z, launchYaw, launchPitch); I am guessing the solution would be related to sine cosine, tangent functions. Since I know the two points, I know the distance between the two points.
-
[Solved] Skipping Tile Entites
Use world.getBlockMetadata to get the metadata of the block the tilen entity is in.
-
[Solved] Skipping Tile Entites
I solved the problem! I got rid of my constructor which had a parameter which is metadata (since my tile entity has a metadata). It works fine now and I found another way to retrieve the metadata information. Creating an empty constructor could also work. Thanks for the help!
-
Shift-Clicking and Item Questions
It works fine now
-
Popularity
Ok because most of the traffic happens at the Minecraft Forum and not here. Even the popular mods like secret rooms etc. doesn't have much traffic on the forum. The forum feels more like a modders only zone currently. But thats aright.
-
ItemFood Picture override help
I'm not sure why you said you can't implement that interface into the ItemFood class (since the ItemFood class extends the Item class). Tell me in more detail how it doesn't allow you to implement this interface.
-
[Solved] Skipping Tile Entites
When the world loads with my tile entity inside, java keeps throws out errors like "java.lang.InstantiationException:net.minecraft.src.ICBMTileEntityXXX" when the tile entity tries to read data from NBT. After that error, it says "Skipping TileEntity with ID XXX". I'm a beginner at modding so I'm not sure what mapping is in this context and tossing break points. Can you please explain?
-
Popularity
This is a question for the forum admin. How popular does a mod have to be in order to be in the front page?
-
Shift-Clicking and Item Questions
Ok thanks it's good now
IPS spam blocked by CleanTalk.