Jump to content

Floppygunk

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Floppygunk's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. Can you post the error? That would make it much easier to pinpoint the problem. @thebest108: The @Instance has nothing to do with it. Every mod is supposed to have @Instance in it, so having two mods with @Instance in it will not crash the game.
  2. I just tried that, it didn't make any difference.
  3. I am trying to make a tile entity that works like a gear shaft. The shaft is meant to connect to other shafts when I place them next to each other. I've set up the onNeighborBlockChange function to make adjacent shafts connect when you place one, but for some reason only the one I placed updates. A bit of debugging has told me that the shafts are updating correctly on the server side, but not on the client side. I have packet handling set up in the tile entity, and it's being updated correctly in the onDataPacket function, so I don't know why it's not updated correctly when rendering. Here is my code (I've only included the parts I think are important): TileEntityShaft: http://pastebin.com/0tB535Sc BlockShaft: http://pastebin.com/4Anj8dGb If anyone wants the full code, it's at https://github.com/LogiCo-Modding/Geartech
  4. Thanks for your reply. Yes, I was doing it wrong, and I've got it working now.
  5. The title says it all. When I make a tile entity, the coordinates are 0 and the worldObj is null. I've figured out how to initialise the tile entity with the coordinates and save it in NBT tags when I save the world, but unfortunately I can't save the world object in NBT tags. So how do I let tile entities access the world object?
×
×
  • Create New...

Important Information

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