Jump to content

dvd604

Members
  • Posts

    8
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

dvd604's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. It isn't the server that is the problem. It works fine on a server. Basically what I'm trying to do is, depending on what value people put into my GUI, it output a different block / item. It works well on a server, but when you bring it to a single player game, it starts to break, ghosting items and removing the converted items. I can't see why tho, since Minecraft singleplayer is run off of a localized server, it should work on both sides, no? ,dvd604
  2. Sorry, I havnt done much in the way of tinkering with other peoples mods. My only help would be, try putting a "mod_" before the modID, to see if that helps
  3. You might want to @Override that method, and can you not make your version of worldTime static, instead of changing base classes?
  4. If you install the mod, then goto the Mods tab on the MC start screen, and click the mod you're looking for, it should tell you the ID
  5. If it's a block, using onActivated from the block class should do the trick, just throw in player.inventory.addItemStackToInventory(ItemStack); Where player is your EntityPlayer. As for the ID, that's up to you
  6. So I have a block, that has two slots, and 11 buttons. Buttons from 0 to 9, increase and decrease important variables, and 10, should convert the item in the slot, to a defined item / block. This works fine on a server (Me hosting the server and joining via a client), but when playing single player, it does not accept the item properly, making a ghost copy of it in the slot, and when the item is converted, it almost instantly removes itself. Code: PacketHandler: http://paste.minecraftforge.net/view/765c6e9a TileEntity (Useful Methods): http://paste.minecraftforge.net/view/1dc73dde GUI (Parts that send packets): http://paste.minecraftforge.net/view/96b9161f If you need anything else, just ask Any help is much appricated, dvd604 EDIT: Here's the GitHub, that's all of my code. https://github.com/dvd604/Xperium EDIT 2: It was a problem with decrStackSize, spotted by a friend. Thank's everyone!
  7. And I could associate my TE with my block by adding this? @Override public TileEntity createNewTileEntity(World var1) { // TODO Auto-generated method stub return new tileEntityHydrocase(); }
  8. When attempting to open my GUI by right-clicking the block "hydroBase", the game crashes with this error: http://gw.minecraftforge.net/Avqk Source can be viewed on my Github: https://github.com/dvd604/HydroPonics/tree/master/HydroPonics/common EDIT: Now after associating my tileentity with my block, I get this error: http://gw.minecraftforge.net/N8xy Thanks in advance, dvd604
×
×
  • Create New...

Important Information

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