介绍
CNPC-XMM-addon
CNPC-XMM Addon is a bridge between CustomNPCs and Xaero’s Minimap. It allows server admins and map makers to automatically add waypoints to a player’s map when they accept or interact with specific quests.
This is perfect for adventure maps, and quest lines where you want to guide players to their next objective without them getting lost.
Features
Automatic Waypoint Creation:
When a player accepts a quest, a waypoint can be automatically added to their minimap.
Full Customization: Configure the waypoint directly within the CustomNPCs Quest Editor.
Set custom Coordinates (X, Y, Z).
Choose Colors (Red, Green, Blue, Gold, etc.).
Set Titles and Names.
Toggle yIncluded.
Mark as Temp or not.
Scripting API Support:
For advanced users, use JavaScript in CustomNPCs scripts to dynamically create waypoints.
IPlayer.addWaypoint(int x, int y, int z, String name, int color);
var waypoint = event.API.createXmmWaypoint(int x, int y, int z, String name, int color);
waypoint.applyTo(IPlayer)

How to Use (GUI Method)
Open the Quest Editor in CustomNPCs.
Select a Quest.
Click the “Map Waypoint” (地图路径点) button (added by this addon).



Configure the location, color, and name of the waypoint.

Save the quest. Now, when a player takes this quest, the waypoint will appear on their map!
You may also edit the waypoint with command
/noppes quest waypoint set <quest> [<position>]
if the position is null, it will refer to the executor’s position.
Scripting Example
function interact(a){
var player = a.player;
// Create a waypoint at the player's current location
var waypoint = a.API.createXmmWaypoint(player.blockX, player.blockY, player.blockZ, "Objective", 3);
waypoint.applyTo(player);
}
常见问题
CNPC-XaeroMiniMap-addon 支持哪些 Minecraft 版本?
CNPC-XaeroMiniMap-addon 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
CNPC-XaeroMiniMap-addon 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分