Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. Make a book, make a gui. Make right click open the gui. Finally add content ie pages to the gui.
  2. You created your own Provider and did not post the class.
  3. Well I'm new to java so I just added this to my ItemGooseberry, but it creates an error public class ItemGoosberry extends ItemFood { Learn Java then come back, we are not here to teach Java.
  4. Forge provides a Energy Capability you just need to override getCapability and hasCapability in your TE. This is also what you should be doing for inventories using the IItemHandler capability. Look at the forge docs http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/
  5. First update tick if you need to access the blocks/other TEs otherwise onLoad() is what you should use.
  6. You will have to draw something to the screen over it.
  7. You are greatly overusing super calls in your update methods ie getUpdateTag. I cant see anything that wont let it read and write, is writeToNBT and readFromNBT even getting called?
  8. Yours still wont be pushable, but i think you are okay with that.
  9. Please dont do that. Did you override writeToNBT and readFromNBT in your TE?
  10. TEs cant be pushed by pistons there is a way around this you could override the piston using the substitution system, but i am not sure how minecraft would handle that. Capabilities as far as i know cant be applied to blocks yet, and even if they could you would not be able to save any data.
  11. Define render issues.
  12. OpenGL is the rendering engine of Minecraft any type of rendering you do eventually traces back to OpenGL. There is a simple way to do rotations GLStateManager.rotate (angle, x, y, x). Honestly the easiest way would be to guess and check until you get the rotations correct, and i believe you can get the players rotation, but you may need reflection.
  13. You also need to register an ItemBlock item for your blocks.
  14. What is this line BlockMysteriumPortal.java 230
  15. This is not allowed public static ArmorMaterial jetpackArmorMaterial = EnumHelper.addArmorMaterial("jetpackArmorMaterial", "..", 64, new int[] {6}, 1); It has to be the full length IE 4 numbers.
  16. Switch your parent to "item/generated" and get rid of your display, thirdperson, and firstperson tags.
  17. No not specifically GLStateManager.translate(x, y, z), but GLStatemanager.translate(where on the x, where on the y, where on the z). They can be decimals to center it in the block.
  18. Post your main mod class where you initialize you items.
  19. Call GLStateManager.translate(x, y, z) again to correct its position based on your metadata.
  20. It is getting called on both client and server side.
  21. Do not know where the textures are actually stored, but they are loaded at runtime, so if you trace the rendering of a block back far enough you are sure to find the textures themselves, but you may need to use reflection to get them.
  22. Quick question I have seen you do this but what do the "::" mean is it the same as using "#"? That is pretty much what it means. The :: is actually an operator added in Java 8 to reference methods so they can be used for various things e.g. passing a Function as a parameter of a method. Probably not the best explanation, but this is what I know of them. Ahh and then that prompted me to look up lambda expressions which are pretty cool. (Been meaning to do that for a while now though). Thanks.
  23. Make your IThirst#getThirstier and IThirst#slakeThirst take in a player so it can send the packet.
  24. Quick question I have seen you do this but what do the "::" mean is it the same as using "#"?
×
×
  • Create New...

Important Information

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