This adds a gps arrow to minecraft to help you navigate your world.
The arrow will disappear after 3 seconds of being within 3 blocks of the destination.
Commands:
/tomtom <x> <y> <z> [display text]
/tomtom clear
/tomtom edit
This command allows you to move the gps arrow.
API:
/** * @param mod Your @Mod.instance object. * @param player The player we are setting the gps for. * @param pos The destination position. * @param text The short description of the destination */ public static void sendTomTomPos(Object mod, EntityPlayer player, BlockPos pos, String text) { NBTTagCompound tag = new NBTTagCompound(); tag.setLong("location", pos.toLong()); tag.setLong("uuid-most", player.getUniqueID().getMostSignificantBits()); tag.setLong("uuid-least", player.getUniqueID().getLeastSignificantBits()); tag.setString("text", text); FMLInterModComms.sendRuntimeMessage(mod, "tomtom", "setPointer", tag); }
1.9+ features:
{
"model": "arrows/<your_arrow_folder>/<your_arrow>.obj",
"textureFolder": "arrows/<your_arrow_folder>/",
"useUniversalTextures" : "true"
}