Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

Forging a Minecraft mod

Basic Minecraft modding with Minecraft Forge

block dissapearing

  • 2013-08-12 10:07:19
    i found something really weird. i got my launcher. when i, in the main mod class, register its tile entity it disappears after reloading the world. when i don't register it it stays perfectly where it is. does anyone have a solution. here is my code so far: https://www.dropbox.com/sh/y6zg32syrer50or/ChVCVuMTF9
  • 2013-08-12 10:30:32
    note: it is even so bad that after i reload the world all the blocks i placed were gone

  • 2013-08-12 10:42:12
    In the launcher tile entity class you need to do a super call when reading from NBT like this:
    @Override
    public void readFromNBT(NBTTagCompound compound){
    super.readFromNBT(compound);
    timerShoot = compound.getShort("timer shoot");
    }
  • 2013-08-12 10:50:01
    aah. thats it. thanks for helping me :)
  • Log in or sign up to reply to this thread