Bossbar Compass +Target Location v1.1.0

Compass Target Location (나침반에 목표지점 기능이 있음)

  1. Mkkas3145
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Contributors:
    Mkkas3145


    command:
    [​IMG]

    ex (Add TargetLocation):
    [​IMG]
    ex (Remove TargetLocation):
    [​IMG]

    Code (Text):

    //Give the player a target point
    TargetLocationAPI.addTargetLocation(player, addtargetloc, targetname, targetcolor)

    //Remove the target point of the player
    TargetLocationAPI.removeTargetLocation(player, targetname)

    //Returns whether the player has the target Location
    TargetLocationAPI.isTargetLocation(player, targetname)

    //Returns whether the target point is the corresponding color
    TargetLocationAPI.isTargetLocationColor(player, targetname, targetcolor)

    //Returns all target points for that player
    TargetLocationAPI.getTargetLocationList(player)

    //If the player has a target point, information is returned
    TargetLocationAPI.getTargetLocation(player, targetname)

    //Returns whether the player has at least 1 target point
    TargetLocationAPI.isTargetLocationEmpty(player)

    //Reset target point position
    TargetLocationAPI.setTarget_Location(player, targetname, setloc)

    //Reset target point color
    TargetLocationAPI.setTarget_Color(player, targetname, targetcolor)

    //Returns the distance to the target point
    (v1.0.1) TargetLocationAPI.getTargetDistance(player, targetname)

    //Delete all target points for that player
    (v1.0.1) TargetLocationAPI.deleteTargetLocation(player)

    //Returns the Yaw value between the player's position and its target
    (v1.0.2) TargetLocationAPI.getPlayerLocationTargetLocationYaw(player, targetname)
    //N = 360
    //W = -180
    //S = 0
    //E = 180

    //The number of target points for that player
    (v1.0.5) TargetLocationAPI.getNumberofTargetLocation(player)
     
    Code (Text):

        //Add Target Event
        @EventHandler
        public void onPlayerAddTarget(PlayerAddTargetEvent e) {
            TargetLocation target = e.getTargetLocation();
        }

        //Remove Target Event
        @EventHandler
        public void onPlayerRemoveTarget(PlayerRemoveTargetEvent e) {
            Player player = e.getPlayer();
            String targetname = e.getTargetName();
            Location targetloc = e.getTargetLocation();
            TargetColor targetcolor = e.getTargetColor();
        }

        //Player Target Reach Event
        @EventHandler
        public void onPlayerTargetReach(PlayerTargetReachEvent e) {
            TargetLocation target = e.getTargetLocation();
            double targetdistance = getTargetDistance();

            //Within 3 meters
            if (e.isTargetDistance(3.0)) {
                //
            }
        }
     
    Code (Text):

    update_tick: 1
    #BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
    bossbar_color: "WHITE"
    display_start: "§f- "
    display_end: " §f-"
    display_target_DARK_BLUE: "§1[·]§f"
    display_target_BLUE: "§9[·]§f"
    display_target_DARK_AQUA: "§3[·]§f"
    display_target_AQUA: "§b[·]§f"
    display_target_DARK_RED: "§4[·]§f"
    display_target_RED: "§c[·]§f"
    display_target_YELLOW: "§e[·]§f"
    display_target_GOLD: "§6[·]§f"
    display_target_DARK_GREEN: "§2[·]§f"
    display_target_GREEN: "§a[·]§f"
    display_target_DARK_PURPLE: "§5[·]§f"
    display_target_LIGHT_PURPLE: "§d[·]§f"
    display_target_WHITE: "§f[·]§f"
    display_target_GRAY: "§7[·]§f"
    display_target_DARK_GRAY: "§8[·]§f"
    display_target_BLACK: "§0[·]§f"
    compass_N: "§f<N>"
    compass_NE: " "
    compass_E: "§f<E>"
    compass_SE: " "
    compass_S: "§f<S>"
    compass_SW: " "
    compass_W: "§f<W>"
    compass_NW: " "
    compass_not: " "
    target-bossbar-use: true
    target-bossbar: "{display_target} {target_name} §7{target_distance}m"
    #BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
    target_bossbar_color: "WHITE"
     

    [​IMG]

Recent Reviews

  1. MrGRomy
    MrGRomy
    5/5,
    Version: v1.1.0
    The best compass plugin I have ever seen. the target system is super, and it is very convenient
  2. Hibela
    Hibela
    5/5,
    Version: 1.0.6
    46 downloads and there are no reviews? I don't get it because this resource is kinda awesome!