Posted June 24, 201510 yr can we add non block data(nbt preferably) in a chunk? I know we can add nbt data to a worlds and tileentity's but I don't know if we can add it to a chunk. Am I wrong about this?
June 24, 201510 yr Author I had some difficulties implementing it @SubscribeEvent public void ChunkDataEvent(ChunkDataEvent.Load event){ System.out.print(" a|"+event.getData().getBoolean("data")+"|a "); event.getData().setBoolean("data",true); System.out.print(" "+event.getData().getBoolean("data")+"|b "); } @SubscribeEvent public void ChunkDataEvent(ChunkDataEvent.Save event){ System.out.print(" a|"+event.getData().getBoolean("data")+"|a "); event.getData().setBoolean("data",true); System.out.print(" "+event.getData().getBoolean("data")+"|b "); } when it loads it will return true twice, but when It saves it will only return true after I set 'data' to true, I don't know if this is intended behavior or if I did something wrong?
June 24, 201510 yr Author I just thought that if we didn't specify the data it didn't change, but thank you on clearing up that it doesn't.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.