Jump to content

rhbvkleef

Forge Modder
  • Posts

    11
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Nijmegen, The Netherlands
  • Personal Text
    I like programming!

rhbvkleef's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Since this tile-entity only has 2 slots, 2 integers and 1 boolean stored in NBT, I think it is fair to send all of these values to the client, since I am checking 1 slot and 1 boolean for the rendering. The block now renders properly as well
  2. Adding the functions onDataPacket and getDescriptionPacket and adding the code you showed into them, it still does not work, and I still get a FALSE return. After adding some loggers, it looks like the functions onDataPacket and getDescriptionPacket are never called. After restarting the world, the model renders correctly.
  3. I want to render my TileEntity in a special way, so when there is an Item in a specific slot I want to render a cube representing that item in the model. When checking for the item using the following function: public boolean getHasItemInSlot(int slot) { return itemStacks[slot] != null && (itemStacks[slot].stackSize > 0); } it always returns false. Even when taking the coordinates from the tileEntity (which ARE valid) it ALWAYS returns false. TileEntitySpecialRenderer class: https://github.com/rhbvkleef/requiredstuffz/blob/master/src/main/java/tk/yteditors/requiredstuffz/renderer/TileEntityOvenRenderer.java TileEntity class: https://github.com/rhbvkleef/requiredstuffz/blob/master/src/main/java/tk/yteditors/requiredstuffz/tileEntity/TileEntityOven.java Github repo: https://github.com/rhbvkleef/requiredstuffz
  4. According to Pahimar you don't need any program arguments when you use the GradleStart or the GradleStartServer class. You need VM arguments, but what are they? At this point I cant test my mod because the game doesn't want to launch, this is because I can't figure out how to get my run configurations back. (btw i'm using eclipse)
  5. Now I have: if(tileEntity.direction == 0 || tileEntity.direction == 2) GL11.glRotatef(tileEntity.direction * (-90), 0.0F, tileEntity.direction * (-90), 1f); if(tileEntity.direction == 1 || tileEntity.direction == 3) GL11.glRotatef(tileEntity.direction * (90), 0.0F, tileEntity.direction * (-90), 1f); And it perfectly works! It rotates the way it should!
  6. Yup, 3d param in GL11.glRotatef
  7. This unfortunately has no effect.. Weird!
  8. I have tried adjusting all values in my GL11.glRotatef([params]) function but non of them are rotating the block properly. It should just rotate where the player is facing, like a furnace. Not up and down. Here's my code: TileEntityOvenRenderer OvenModel: BlockOven@onBlockPlacedBy:
  9. I have a problem with my mod (find it at https://github.com/rhbvkleef/requiredstuffz) When breakBlock is called on my block (tk.yteditors.requiredstuffz.block.BlockOven) the TileEntity I get from the coordinates, is NOT an instance of TileEntityOven (tk.yteditors.requiredstuffz.tileentity.TileEntityOven) or even IInventory. What's happening here!?
  10. I have recently started modding minecraft. Today, I am working on adding a Pizza oven to minecraft and of course, sided textures. The problem I have is that the front is not visible if it is an item. How do I fix this? BlockOven.java: http://pastebin.com/adwqBQAL Screenshot:
×
×
  • Create New...

Important Information

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