Here it is:
int chunkMinX = min.getBlockX(); //Edit: fixed mistake here
int chunkMaxX = max.getBlockX();
Yes, I managed to create a fence, however (not a big deal) it leaves a corner empty, just one, when it creates the fences. rather annoying.
Hm. Ok so right now I have it so you can select the points, it saves them, and spawns a [Insert Animal]
The problems I'm having now are:
1. I do...
Ok you lost me... Sorry about all of this trouble. I want, after the user has selected two points, two create a fence around the square that the...
Is there a way to get the surrounding blocks (edge) of the two points? So I can put a barrier of fences?
Ok thanks for all this help. For one:
If I have to locations, is min and max the two cornerS?
Hmm... I'm beginning to understand. How exactly do you define a region?
If you could elaborate more.. sorry I don't get it.
Oh ok, so I could do like:
HashMap<Chunk,ArrayList<Creature>> someHashMap = new HashMap<Chunk,ArrayList<Creature>>;...
I'm sorry but what is a hashmap i never got them.
EDIT: Is it basically an array where each object can have multiple types?
How do I give a player an item (or items) based on an item id?
Well, theres no way to save what (saved) entities were in that chunk. As in, I have the chunk they were in, but I have no way to save the...
Ok so heres my method: I check on chunkUnload if any entites in the chunk were saved ones, then it saves the chunk in a Chunk. Then on chunkLoad...
How do I check? As in, is the isDead variable for LivingEntity set to true when it despawns or no?
Separate names with a comma.