I am currently working on a minecraft plugin using spigot. It's a sort of a race between players where checkpoints validation is needed.
I have a minecraft map edited on MCEdit and I have severals signs already set on the map that serves as "checkpoints".
All I need is to find a way to distinguish the signs.
I would like to get x y z coordinates of each signs but I've thought that there could be map makers that wouldn't name their signs the same way I do, so I need to find another way to distinguish the signs.
I have a debut code but i don't have any ideas to get it forward.
@EventHandler
public void onClick(PlayerInteractEvent e){
if(e.getItem().getType() == Material.SIGN){
//I'll have to getlocation() the signs
//And maybe store the locations in an array
e.setCancelled(true);
}
}
Any ideas?
there could be map makers that wouldn't name their signs the same way I do
What? What does this even mean? Minecraft stores all signs the same way: a sign block and a sign tile entity. \$\endgroup\$