FindTrade
一款 Minecraft 插件,通过视觉粒子引导来查找拥有特定附魔交易的村民。
功能特性
- 附魔搜索:查找附近出售特定附魔书的村民
- 路径规划:使用 pathetic-bukkit 库可视化真实的可通行路径
- 区域管理:定义区域以轻松识别村民位置
- 交互式 TUI:用于搜索结果和区域管理的文本用户界面
- 自定义粒子效果:配置多种粒子类型用于柱状和路径效果
命令
/findtrade search <enchantment>
搜索附近提供特定附魔书的村民。
- 在交互式 TUI 中显示结果
- 点击结果以显示引导您前往村民的粒子效果
- 如果村民位于已定义区域内,则显示区域名称
/findtrade region
打开区域管理 TUI,用于创建、编辑和删除区域。
- 创建 (Create):定义带有名称和坐标的区域(支持 WorldEdit 选择)
- 列表 (List):查看所有已定义的区域
- 编辑 (Edit):修改区域名称或坐标
- 删除 (Delete):移除一个区域
别名:/ft
权限
| 权限 |
描述 |
默认值 |
findtrade.use |
使用搜索并查看区域 |
true |
findtrade.write |
创建、编辑和删除区域 |
op |
配置
配置文件位于 plugins/FindTrade/config.yml。
粒子效果
particle-effects:
duration: 30 # 粒子显示的持续时间(秒)
# 村民位置上方的柱状粒子
pillar:
enabled: true
interval: 1
particles:
- type: "HAPPY_VILLAGER"
height: 20
count: 10
- type: "END_ROD"
height: 20
count: 5
# 玩家与村民之间的路径粒子
path:
enabled: true
use-pathfinding: true # false = 直线(降低服务器负载)
update-interval: 0.1
particles:
- type: "END_ROD"
count: 1
offset-x: 0.5
offset-y: 0.5
offset-z: 0.5
randomness-x: 0.0
randomness-y: 0.0
randomness-z: 0.0
speed: 0.0
路径规划
该插件使用 A* 路径规划来显示真实的可通行路径。此过程在异步线程中运行,对服务器影响极小。如果遇到性能问题,请将 use-pathfinding: false 设置为使用简单的直线可视化。
本地化
语言文件位于 plugins/FindTrade/localization/。支持的语言:
依赖项
- WorldEdit(可选)- 用于使用 WorldEdit 法杖进行区域选择
安装
- 从发布页面下载最新版本
- 将
.jar 文件放入服务器的 plugins 文件夹中
- 重启服务器
更新日志
0.4.0
- 重大重构:将所有命令整合为
/findtrade
- 添加 A* 路径规划以实现真实的路径可视化(pathetic-bukkit)
- 添加用于搜索结果和区域管理的交互式 TUI
- 可配置多种粒子类型用于柱状和路径效果
- 添加了粒子偏移、随机性和速度设置
- 改进了路径规划失败时回退到直线的处理
0.3.0
- 添加 EasyVillagerTrade 集成及 TUI 界面
- 添加用于附魔管理的交互式文本用户界面
- 增强搜索功能,同时包含已注册和附近的村民
- 添加可点击的聊天消息以改善交互体验
0.2.0
- 添加基于区域的村民交易管理
- 增强
/findvillager 命令以搜索特定附魔
- 添加 WorldEdit 集成以进行区域选择
0.1.0
- 初始版本
- 基本的村民交易管理
- 附魔搜索功能
- 粒子效果可视化
许可证
本项目采用 MIT 许可证授权。
FindTrade
A Minecraft plugin for finding villagers with specific enchantment trades using visual particle guidance.
Features
- Enchantment Search: Find nearby villagers selling specific enchantment books
- Pathfinding: Realistic walkable path visualization using the pathetic-bukkit library
- Region Management: Define regions to identify villager locations easily
- Interactive TUI: Text-based user interface for search results and region management
- Customizable Particles: Configure multiple particle types for pillar and path effects
Commands
/findtrade search <enchantment>
Search for nearby villagers offering a specific enchantment book.
- Displays results in an interactive TUI
- Click on a result to show particle effects guiding you to the villager
- Shows region name if the villager is within a defined region
/findtrade region
Opens the region management TUI for creating, editing, and deleting regions.
- Create: Define a region with a name and coordinates (supports WorldEdit selection)
- List: View all defined regions
- Edit: Modify region name or coordinates
- Delete: Remove a region
Aliases: /ft
Permissions
| Permission |
Description |
Default |
findtrade.use |
Use search and view regions |
true |
findtrade.write |
Create, edit, and delete regions |
op |
Configuration
The configuration file is located at plugins/FindTrade/config.yml.
Particle Effects
particle-effects:
duration: 30 # How long particles are displayed (seconds)
# Pillar particles above villager location
pillar:
enabled: true
interval: 1
particles:
- type: "HAPPY_VILLAGER"
height: 20
count: 10
- type: "END_ROD"
height: 20
count: 5
# Path particles between player and villager
path:
enabled: true
use-pathfinding: true # false = straight line (lower server load)
update-interval: 0.1
particles:
- type: "END_ROD"
count: 1
offset-x: 0.5
offset-y: 0.5
offset-z: 0.5
randomness-x: 0.0
randomness-y: 0.0
randomness-z: 0.0
speed: 0.0
Pathfinding
The plugin uses A* pathfinding to show realistic walkable paths. This runs asynchronously and has minimal server impact. If you experience performance issues, set use-pathfinding: false to use simple straight-line visualization.
Localization
Language files are located in plugins/FindTrade/localization/. Supported languages:
- English (
en.yml)
- Korean (
ko.yml)
Dependencies
- WorldEdit (optional) - For region selection using WorldEdit wand
Installation
- Download the latest release from the releases page
- Place the
.jar file in your server's plugins folder
- Restart your server
Changelog
0.4.0
- Major refactor: Consolidated commands into
/findtrade
- Added A* pathfinding for realistic path visualization (pathetic-bukkit)
- Added interactive TUI for search results and region management
- Configurable multiple particle types for pillar and path effects
- Added particle offset, randomness, and speed settings
- Improved fallback to straight line when pathfinding fails
0.3.0
- Added EasyVillagerTrade integration with TUI interface
- Added interactive Text User Interface for enchantment management
- Enhanced search to include both registered and nearby villagers
- Added clickable chat messages for better interaction
0.2.0
- Added region-based villager trade management
- Enhanced
/findvillager command to search for specific enchantments
- Added WorldEdit integration for region selection
0.1.0
- Initial release
- Basic villager trade management
- Enchantment search functionality
- Particle effect visualization
License
This project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧