Jump to content

calclavia

Forge Modder
  • Posts

    2281
  • Joined

  • Last visited

Everything posted by calclavia

  1. 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?
  2. Where is the tutorial located? EDIT: Found it: http://www.minecraftforum.net/topic/1010052-creating-mods-methuselah96s-tutorials-8212/
  3. 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...
  4. 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?
  5. 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.
  6. 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.
  7. If you look at the furnace block, it faces whatever direction you place it. Maybe you can look at that as reference.
  8. I tried that and basically copied what the sword item is doing. But it still doesn't show the damage bar.
  9. 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?
  10. 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.
  11. Take a look at the redstone ore as reference. It glows when you start mining it.
  12. 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.
  13. 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.
  14. 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.
  15. 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.
  16. Sorry but that's not what I was looking for. I posted a image of what I'm trying to get above.
  17. 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.
  18. Use world.getBlockMetadata to get the metadata of the block the tilen entity is in.
  19. 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!
  20. 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.
  21. 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.
  22. 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?
  23. This is a question for the forum admin. How popular does a mod have to be in order to be in the front page?
×
×
  • Create New...

Important Information

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