WildHeart Posted July 14, 2018 Posted July 14, 2018 (edited) Hi, how to update the chunk if it was unloaded? Edited July 14, 2018 by WildHeart Quote
jabelar Posted July 14, 2018 Posted July 14, 2018 What problem are you trying to solve? Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 I have a mod that has a mechanism, this mechanism is enabled when it loads your chunk, but I need to remove it as on my server logs are created. It doesn't mention ChunkEvent.Unload / Load or ForgeChunkManger. So, I need more ways of loading the chunk which I don't know. Thanks! Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 1 minute ago, diesieben07 said: Accessing a block in an unloaded chunk (through World#getBlockState for example) will load that chunk (and then immediately unload it, since it is not needed). However you should avoid doing this. I have no idea what this is supposed to mean. A server always creates log files. Please clarify. Oh, sry, it's a stupid translator. "I have a mod that has a mechanism, this mechanism loads chunk when is enabled". I know that it is possible to load the chunk using method getChunkFromChunkCoords, but what else like this can cause a сhunk loading or tileEntities update in the vicinity? Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 Not exactly. I know chunk loaders: ForgeChunManager, ChunkEvent.Load/Unload. But there are still vanilla ways I don't know about. That's what I'm asking. Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 How to update tileEntity when the player is not in the vicinity? Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 I want to disable this in mod. It is necessary not only in one tileEntity but also in the nearest in a chunk Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 I want to disable loading chunks in mod. Quote
Legenes Posted July 15, 2018 Posted July 15, 2018 I think he's trying to say that: "My Entity is keeping the chunk loaded, and I don't want it to do that. How can I make it to be loaded only, if the player is within X chunks?" Quote procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end;
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 (edited) Just now, Legenes said: I think he's trying to say that: "My Entity is keeping the chunk loaded, and I don't want it to do that. How can I make it to be loaded only, if the player is within X chunks?" Yes, thank u) But not entity, it's tile Edited July 15, 2018 by WildHeart Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 Just now, diesieben07 said: Entities do not do that by default. @WildHeart If this is the case, then you are doing something to keep the chunk loaded. Stop doing whatever this is. Not entity, this is tileEntity Quote
WildHeart Posted July 15, 2018 Author Posted July 15, 2018 1 minute ago, diesieben07 said: Same answer. TileEntities also do not keep chunks loaded by default. I know, but what can be in it that can cause? Quote
Recommended Posts
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.