Land claim

Status
This thread has been locked.

Just Development

Feedback score
0
Posts
15
Reactions
3
Resources
0
Hey,

I'm not really experienced in Minecraft plugin development and I have a plugin for a server that I co-own which is about 60% done. One of the bigger things missing is being able to let clans claim land like the Faction plugin lets you.

Is this hard to make or is it fairly easy and how would I go about doing it?
 

ParaPhoenix

Supreme
Feedback score
0
Posts
19
Reactions
3
Resources
0
It wouldn't particularly be hard in my opinion, chunks have specific locations on a World, almost like coordinates. You can use these and store them when a clan claims a chunk, and use chunk#getBlock(x1,y1,z1) to get a block within a chunk. The hardest part of this would be managing events within one of these claimed chunks, you'd have to do a little bit of math to determine a location inside of a chunk. (Cuboid logic - simple math, I made a utility which is very similar a while back, ) If you search up for 'Cube/Region logic' on bukkit I'm sure there will be a few threads that could help you as well. Hopefully this helped you ^^
 
Status
This thread has been locked.
Top