Jump to content

mokonaModoki

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by mokonaModoki

  1. And is there any way to get dimension ID for the worldObject?
  2. Okay, I've decided to use custom packets to manually sync data between GUI and TileEntity, stored on server. In order to do this I need server world objectto get to the TileEntity I need. Could anyone help me? How do I get to the world object using static access or something..?
  3. I am already using latest forge build (6.6.0.495) Just upgraded to latest latest build (6.6.0.497) Still not working at all...
  4. public int damageDropped(int metadata) { return metadata & 7; } Try to remove this ... & 7 and return just metadata. I seriously can't see any reason to use bitwise AND here. public void onBlockPlacedBy(World par1World, int x, int y, int z, EntityLiving par5EntityLiving){ if (par1World.getBlockId(x, y - 1, z) == bExpansion.coloredStoneSlabID){ int metadata = par1World.getBlockMetadata(x, y - 1, z); if(par1World.getBlockMetadata(x, y-1, z) == metadata){ par1World.setBlockWithNotify(x, y, z, 0); //sets the block below to 0 par1World.setBlockAndMetadataWithNotify(x, y - 1, z, bExpansion.coloredStoneDoubleSlabID, metadata); //makes the slab a double-slab of the same metadata type } } } You are able to place stuff on top and it works properly because of this method. However you are checking if there is a halfslab below. Try checking above direction too, or try to mimic what Vanilla minecraft does.
  5. Upgrade to the Latest build of forge. Otherwise you will expirience the same issue with Thaumcraft and Greg Tech mods. http://adf.ly/673885/http://files.minecraftforge.net/minecraftforge/minecraftforge-universal-latest.zip
  6. When you are using same ID for many items, what really determines the item is its metadata. When creating result ItemStack for your recipe, use this code for is. You can control the metadata required. GameRegistry.addRecipe(new ItemStack(<YourItemID>, <Quantity>, <Metadata>), ... ); You should also check out the metadata tutorial on the main page if you haven't yet.
  7. I've got a trouble with GUI. My GUI class has a variable which links to the machine's TileEntity object, but all the fields inside this object are nullified after re-entering the world and as the result, GUI can't have the right data. I used debug and messages to find out that all the data in actual TileEntity object are loaded properly and that might be some kind of a desync problem between the server and client parts of the game. Also, there are some problems with item slots: the items placed inside dissapear from the slot, but when clicking on it again, they are being grabbed as if they were in the slot. I had similar problems when 1.3.1 came out and that was the reason I stopped further development of my mod. Here is the code of all the classes you might need. I count on your help. MainModClass: http://pastebin.com/0v8Qda1H ServerPacketHandler: http://pastebin.com/Tjscq5tE ClientPacketHandler: http://pastebin.com/UkFHyzih GUIHandler: http://pastebin.com/kuXGPXF6 GUIClass: http://pastebin.com/KyTBqp3U TileEntityClass: http://pastebin.com/iKHv730c BlockClass: http://pastebin.com/byrXsT8i ContainerClass: http://pastebin.com/DvY1s47D
×
×
  • Create New...

Important Information

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