onPlayerMove() player.getDirection()
Here it is: int chunkMinX = min.getBlockX(); //Edit: fixed mistake here int chunkMaxX = max.getBlockX(); int chunkMinZ...
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?
Hey Guys, How do I give a player an item (or items) based on an item id? Thanks, cvcs1
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?
Entities despawn. Pigs and such. When you leave the chunk. I need them to not.
I didn't say that I don't think. What I am trying to do is when a user creates a fenced in area and pays for it (idk how the payment will work...
By this I meant how do i check when a saved creature despawns?
So basically, if it isDead (does this get set to true on despawn?) but it wasnt killed by an entity, then do what I want?
I used onPlayerInteract
Separate names with a comma.