Jump to content

Janellope

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Janellope

  1. Is this what you mean? @Override public SPacketUpdateTileEntity getUpdatePacket() { NBTTagCompound nbtTag = new NBTTagCompound(); this.writeToNBT(nbtTag); return new SPacketUpdateTileEntity(getPos(), 1, nbtTag); } @Override public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity packet) { this.readFromNBT(packet.getNbtCompound()); }
  2. public void setStack(ItemStack stack) { this.stack = stack; this.markDirty(); if (worldObj != null) { IBlockState state = worldObj.getBlockState(getPos()); worldObj.notifyBlockUpdate(getPos(), state, state, 3); } } Is it suppose to be somewhere else? because it doesn't work.
  3. I made a pedestal, you right click items on and off of it, or shift right click to open the gui. most of it works fine except when you right click an item off the pedestal it still renders there until you log out or open the gui. I am at a loss as to what to do. Pedestal Block Code Pedestal TE Code Pedestal TESR
  4. Replaced Main.MODID + ":gui/PedestalGUI" with Main.MODID + ":textures/gui/PedestalGUI.png" and it works now but for some reason the item on the pedestal render won't update unless the gui is open and closed...
  5. Thanks, So now the screen greys out and you can highlight the inv in the gui but it doesn't actually show the gui, any ideas? ::EDIT:: I'm an idiot, I was not drawing a background png for the gui. But, now I am having difficulty registering the texture file...
  6. Ok, I fixed github. I don't know why it wasn't syncing right but the files are there now. Block https://github.com/Janellope/DigiCraft/blob/master/src/main/java/janellope/digicraft/block/miscblocks/BlockPedestal.java GUI container https://github.com/Janellope/DigiCraft/blob/master/src/main/java/janellope/digicraft/guicontainer/ContainerTEPedestal.java GUI handler https://github.com/Janellope/DigiCraft/blob/master/src/main/java/janellope/digicraft/network/ModGuiHandler.java Tile entity https://github.com/Janellope/DigiCraft/blob/master/src/main/java/janellope/digicraft/tileentity/miscblocks/TEPedestal.java TE GUI https://github.com/Janellope/DigiCraft/blob/master/src/main/java/janellope/digicraft/client/gui/TEPedestalGUI.java
  7. I have a working TE pedestal, you right click with an item it puts that item on the pedestal, I am attempting to, when shift right click it opens a gui of the pedestal's inv. I followed bedrockminer's tutorial as I have not found anything good for 1.10 yet and got an errorless build with a gui and a gui handler but when I shift right click the pedestal nothing happens, no error, no crash, no gui... nothing Github: https://github.com/Janellope/DigiCraft This is the code that should be executing at a shift right click: if (!world.isRemote) { player.openGui(Main.instance, ModGuiHandler.TEPedestalGUI, world, pos.getX(), pos.getY(), pos.getZ()); } return true; any help is greatly appreciated, it feels like every night I come here with a new problem and every morning with the help of this forum I solve the previous problem. Thank you all for such wonderful support.
  8. Ok, so there was an easy fix, I was not implementing ItemModelProvider but now the call GL11.GL_SMOOTH, GL11.GL_FLAT, and GL11.GL_QUADS are crashing the game. crash report here: http://pastebin.com/L3ECdbui I removed the "handle" renders and it works fine now. Thanks everyone!
  9. I registered the item model with Main.proxy.registerItemRenderer(block, 0, "pedestalblock"); and bound the TESR to the tile entity with ClientRegistry.bindTileEntitySpecialRenderer(PedestalTileEntity.class, new PedestalTESR()); not sure how to register the the renderer.
  10. I am following this tutorial http://modwiki.temporal-reality.com/mw/index.php/Render_Block_TESR_/_OBJ-1.9 and while I can get the pedestal to render, to take my item, and save/ load the nbt the pedestal item does not render and the entity in the pedestal's inv. does not render. any help is greatly appreciated. https://github.com/Janellope/DigiCraft
  11. Thank you so much. It works now!
  12. Sorry but I am not sure I understand. Do I need to swap out GameRegistry.register(block);? or am I doing something else wrong?
  13. Sorry. http://pastebin.com/pYC0EQT4
  14. Using the normal furnace with the custom ore works fine, using the custom furnace with vanilla ore works fine but try to use the custom furnace with the custom ore and the game crashes. Any help? Git:https://github.com/Janellope/DigiCraft
×
×
  • Create New...

Important Information

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