Jump to content

BeardlessBrady

Members
  • Posts

    398
  • Joined

  • Last visited

Everything posted by BeardlessBrady

  1. I cant seem to find the 'getStateForPlacement' method
  2. I'm just wondering how I'd go about using a block with a blockstate in a recipe. Specifically when you set things with the getActualState() method with info from the tile entity.
  3. So when holding and item in my mouse its fine, until I extend the gui by opening a tab. Then it gets all weird. A video can better explain what I mean: https://vid.me/oZyY Container Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/containers/ContainerVendor.java Gui Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/guis/GuiVendor.java
  4. I tried that but no luck. Could there be any other reason why it only transfer from once?
  5. So I have a Boolean variable in the tile entity and I can change it by right clicking with an item in hand. Its supposed to change something in the GUI of the block and it does...once. Then it doesn't sync anymore. Block Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/blocks/BlockVendor.java Tile Entity Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/tiles/TileVendor.java Gui Class [1]: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/client/guis/GuiVendor.java Gui Class [2] (Gets called by other): https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/client/guis/GuiTab_Lock.java
  6. Haha that is very weird. Welp it fixed it though so thanks!
  7. I'm having some trouble sending a packet from a client GUI(through a button push) to the server. My initial intent was to spawn an item outside the block by pushing the button, but now Im just testing with a println. Crash: http://pastebin.com/DQCyC7rL Gui Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/client/guis/GuiVendor.java Packet Handler Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/handler/PacketHandler.java Message Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/network/PacketSendItem.java
  8. Alright so I have some text in a gui that shows a number, when you right click the block with an item it adds 100 to that number. for some reason it will update and save in the tile entity, but when using a get method in the gui to get the number from the tile entity it stays at the original number. Gui Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/client/guis/GuiVendor.java Tile Entity Class: https://github.com/BeardlessBrady/Currency-Mod/blob/master/src/main/java/gunn/modcurrency/tiles/TileVendor.java
  9. Alright, Thanks
  10. k but I dont understand what that is, its from a external program, what do those numbers affect?
  11. So Im working with custom block models and I don't quite understand the errors Im getting or how to fix them. Log: http://pastebin.com/DgASHLTX Blockstate .json: http://pastebin.com/1cZa3TjG Model .Obj: http://pastebin.com/jAGVsuJg (Just incase its asked for) Model .Mtl: http://pastebin.com/uCiRPvBN
  12. You are completely right. Thanks!!
  13. So I'm just playing around to get to know forge and I'm trying to get a tile entity to do something every few ticks. Tile Entity Class: http://pastebin.com/tYVSdbUC *Even the System outputs dont show up Block Class: http://pastebin.com/SmBm3J9p ModBlocks Class: http://pastebin.com/k4ncPSSX Common Proxy Class: http://pastebin.com/VrmM41QN
  14. Alright so i just have a question regarding block inventory textures when the block has various states. Do you have to register the render of the block for each metadata or is it possible through just .jsons? My specific problem is that the default texture of the block in the inventory is fine but when I place it and change the state then break it and pick it up the texture is broken. Is it possible to change that through just .jsons?
  15. I managed to fix it, forgot a few quotes in that .json file
  16. Ya I didnt reall yknow what specified a line and column on a .json file Heres my file: http://pastebin.com/QNxFybje
  17. Thank you so much, I literally looked at everything else but the ModStates file. The game loads now but now none of the textures are loading from the types property (Renamed mactypes to type) New Crash log: http://pastebin.com/bzLizjU0
  18. Alright so I've been having trouble with block states. I assumed I set everything up right, I've looked at quite a few different ways of doing it but now Im getting this weird error. Code: - ModStates.java: http://pastebin.com/kXMa2AVH - BlockMachine.java: http://pastebin.com/11RegmB4 - .Json File: http://pastebin.com/xSyE5nmK Error Log: http://pastebin.com/gftJzpFB
  19. Seems to be my router settings as plugging directly into my modem it works, closing post
  20. Welp. Thanks for trying I suppose
  21. Do you have any idea why they wouldnt be getting downloaded?
  22. It downloads everything before that perfectly. Is there something different about the client/server download, what would specifically be preventing that from being downloaded but nothing before that?
×
×
  • Create New...

Important Information

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