Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dispellz

  • Rank
    Tree Puncher


  • Gender
  • Personal Text
  1. Because WorldEvent.Load fires when the world is being loaded (which happens every time you get into the game). I don't need to add items when the world loads, I need to add them when the player first joins a new world.
  2. I figured out how to give player certain items when they respawn after death. The problem I'm having is when I generate a new world - the inventory is empty. Is that a different kind of event I have to handle?
  3. diesieben07, You were right. I'm sending packets to the server that tells it to increase or decrease and it all works Thanks a lot for the help!
  4. The weird thing is EVERYTHING works correctly, except the fact that anytime i want to save to NBTs, the value of any variable is zero. The loading from NBTs works perfectly. If I assign the value of trashAmount to be lets say 10 INSIDE the NBT Save, then the value will save correctly. However when I dont assign it and just try to pull it, the int is always zero. No idea why this is happening and supposedly it works in the tutorial. Anyhow, Yes, I need this to persist through players death. This will be a singleplayer mod ONLY if that makes any difference. TLHPoE, if you could link me to a
  5. The values are changed by the method setTrash and that is also when i sync it. The only other place with sync is in my event handler. package org.theya.sustain.gui; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.EntityJoinWorldEvent; import net.minecraftforge.event.entity.EntityEvent.EntityConstructing; public class PollutionHandler { @ForgeSubscribe public void onEntityConstructing(EntityConstructing event) { if(event.entity instanceof EntityPlayer && PollutionBarData.get((EntityPlayer)
  6. I've been figuring out the IExtendedEntityProperties and have a problem with them. I found coolAlias tutorial on that stuff and pretty much followed it (http://www.minecraftforum.net/topic/1952901-172164-eventhandler-and-iextendedentityproperties/). This is pretty much what my class looks like: package org.theya.sustain.gui; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.nbt
  7. So i create a dummy entity and use it to read and write NBTs?
  8. I have a custom gui bar that renders on the screen at the same time xp bar does. Its a little mana indicator. The problem is I have to save it somehow when the player exits. My question is, do I need TileEntity to save NBTs? If yes, can you please point me to an example? Maybe there is a better way to do it? Thanks for the help!
  9. I'm beating myself with a stick right now. Turns out I had 2 of them placed and for some reason didn't realize that could be the issue. Thanks a lot for help and sorry for the trouble!
  10. Minecraft Forge Wiki: http://www.minecraftforge.net/wiki/Create_a_Fluid
  11. That is what I thought, so I decided to do this: if(!this.worldObj.isRemote) { System.out.println(this.worldObj.getBlockId(xCoord + 1, yCoord, zCoord)); } Unfortunately same thing.
  12. I'm trying to get a block that is next to my custom furnace. In TileEntityBrickFurnace class I simply wrote: System.out.println(this.worldObj.getBlockId(xCoord + 1, yCoord, zCoord)); The results look like this: 2014-03-08 13:02:00 [iNFO] [sTDOUT] 9 2014-03-08 13:02:00 [iNFO] [sTDOUT] 0 2014-03-08 13:02:00 [iNFO] [sTDOUT] 9 2014-03-08 13:02:00 [iNFO] [sTDOUT] 0 2014-03-08 13:02:00 [iNFO] [sTDOUT] 9 2014-03-08 13:02:00 [iNFO] [sTDOUT] 0 2014-03-08 13:02:00 [iNFO] [sTDOUT] 9 2014-03-08 13:02:00 [iNFO] [sTDOUT] 0 2014-03-08 13:02:00 [iNFO] [sTDOUT] 9 2014-03-08 13:02:00 [iNFO]
  13. Of course it can! How did I not see this... This seems to fix my issue, thanks a lot for help!
  14. This is for 1.6.4, but most of this stuff should be easy to covert to 1.7.2
  15. 2014-03-07 11:45:29 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection 2014-03-07 11:45:29 [iNFO] [sTDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63) 2014-03-07 11:45:29 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) 2014-03-07 11:45:29 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) 2014-03-07 11:45:29 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServ
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.