Bossbar Compass +Target Location icon

Bossbar Compass +Target Location -----

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





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]
Resource Information
Author:
----------
Total Downloads: 726
First Release: Dec 6, 2020
Last Update: Dec 6, 2020
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings