Everything posted by dvd604
-
[SOLVED] Buttons, PacketHandlers and Container Inventorys
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
-
Give Item to player
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
-
If Time == ?
You might want to @Override that method, and can you not make your version of worldTime static, instead of changing base classes?
-
Give Item to player
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
-
Give Item to player
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
-
[SOLVED] Buttons, PacketHandlers and Container Inventorys
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!
-
Opening modded GUI crash
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(); }
-
Opening modded GUI crash
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
IPS spam blocked by CleanTalk.