Everything posted by rhbvkleef
-
TileEntity passed to TileEntitySpecialRenderer does not contain full information
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
-
TileEntity passed to TileEntitySpecialRenderer does not contain full information
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.
-
TileEntity passed to TileEntitySpecialRenderer does not contain full information
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
-
[1.7.10-10.13.0.1178] Run configuration
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)
-
Rotating Techne block model not working
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!
-
Rotating Techne block model not working
Yup, 3d param in GL11.glRotatef
-
Rotating Techne block model not working
This unfortunately has no effect.. Weird!
-
Rotating Techne block model not working
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:
-
TileEntity not instanceof IInventory
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!?
-
[1.7.2] Texture in inventory no front face
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:
IPS spam blocked by CleanTalk.