XDonPlugins
一个用于 Minecraft 资源创建的实用模组
版本说明
- 版本 1.21.10:止步于 v2.0.1,无后续更新
- 版本 1.21.11:当前活跃开发版本(v2.0.1+)
- 未来计划:将移植到 26.1 或新的稳定模组版本
- 意义:1.21.11 是 Minecraft 最后一个混淆版本
功能
物品交互组件
为物品添加各种交互触发器,创建交互式道具
右键点击命令组件
组件名称:
xdp:rightclick_function
用法:
/give @s paper[xdp:rightclick_function=“command”]
示例:
# 右键点击获得钻石
/give @s paper[xdp:rightclick_function=“/give @s diamond”]
# 右键点击执行函数
/give @s paper[xdp:rightclick_function=“/function namespace:test”]
# 右键点击传送
/give @s compass[xdp:rightclick_function=“/tp @s 0 100 0”]
左键点击命令组件
组件名称:
xdp:leftclick_function
用法:
/give @s sword[xdp:leftclick_function=“command”]
示例:
# 左键攻击时播放音效
/give @s iron_sword[xdp:leftclick_function=“/playsound entity.lightning_bolt.thunder player @s”]
# 左键时施加效果
/give @s stick[xdp:leftclick_function=“/effect give @s strength 10 1”]
掉落执行组件
组件名称:
xdp:drop_function
用法:
/give @s item[xdp:drop_function=“command”]
示例:
# 掉落时爆炸
/give @s tnt[xdp:drop_function=“/summon creeper ~ ~ ~ {Fuse:0}”]
# 掉落时发送消息
/give @s paper[xdp:drop_function=“/say Someone dropped an important item!”]
拾取执行组件
组件名称:
xdp:pickup_function
用法:
/give @s item[xdp:pickup_function=“command”]
示例:
# 拾取时治疗
/give @s apple[xdp:pickup_function=“/effect give @s instant_health 1 1”]
# 拾取时传送
/give @s ender_pearl[xdp:pickup_function=“/tp @s 0 100 0”]
特性:
- 支持任何有效的 Minecraft 命令
- 以玩家身份执行命令
- 可与多个组件结合使用
- 非常适合地图制作和自定义游戏机制
屏幕与界面管理
通过客户端开关控制各种界面元素的显示状态

命令确认弹窗开关
配置:
/xdp:screen CommandConfirmationScreen <true/false>
检查当前状态:
/xdp:screen CommandConfirmationScreen
用例:
创建可点击的命令文本:
/tellraw @a [{“text”:“[Test]”,“color”:“green”,“bold”:true,“click_event”:{action:run_command,command:“/function namespace:test”},“hover_event”:{action:‘show_text’,value:{text:“Click”}}}]
当设置为 false 时,点击文本将直接执行命令,而不会弹出确认框。
HUD 元素显示控制
可控制的 HUD 元素:
Hotbar.HealthBar.FoodBar.ArmorBar.Experience - 快捷栏、生命条、饥饿条、护甲条、经验条组合
Hotbar - 仅快捷栏物品
Title.Subtitle - 标题和副标题组合
SelectedItemName - 选中物品名称
VehicleHealth - 载具生命值
PotionEffects - 药水效果
ActionBar - 动作栏
Crosshair - 准星
DebugInfo - 调试信息 (F3)
Chat - 聊天
PlayerList - 玩家列表
配置命令:
/xdp:screen HudDisplay <element name> <targets> <true/false>
状态检查:
/xdp:screen HudDisplay <element name>
常见示例:
# 隐藏整个底部 HUD
/xdp:screen HudDisplay Hotbar.HealthBar.FoodBar.ArmorBar.Experience <targets> false
# 仅隐藏快捷栏物品
/xdp:screen HudDisplay Hotbar <targets> false
# 隐藏准星
/xdp:screen HudDisplay Crosshair <targets> false
# 隐藏聊天
/xdp:screen HudDisplay Chat <targets> false
权限要求:需要 OP 权限(权限等级 2)
增强版踢出命令
提供可在命令方块和数据包中使用的低权限踢出命令
命令格式:
/xdp:kick <targets> [<reason>]
参数说明:
targets - 指定要踢出的玩家(玩家名称、目标选择器或 UUID)
reason - 可选,踢出原因(若未指定则使用默认消息)
权限对比:
- 原版 kick 命令:权限等级 3(仅限 OP)
xdp:kick 命令:权限等级 1(可在命令方块和数据包中使用)
示例:
/xdp:kick Steve
/xdp:kick Steve for violating server rules
/xdp:kick @a[tag=banned] for being banned
自定义死亡消息
完全替换原版死亡消息,支持 JSON 格式的富文本消息
命令格式:
/xdp:config deathmessage set <message>
/xdp:config deathmessage reset
支持的格式:
-
纯文本格式(用引号括起来):
/xdp:config deathmessage set “Met an unfortunate end”
-
JSON 格式(支持富文本):
/xdp:config deathmessage set {“text”:“Died horribly”,“color”:‘red’,“bold”:true}
效果对比:
- 默认消息:
XD_ON was killed
- 自定义消息:
XD_ON met an unfortunate demise
示例:
/xdp:config deathmessage set “tragically perished”
/xdp:config deathmessage set {“text”:“utterly annihilated”,“color”:‘red’,“bold”:true}
/xdp:config deathmessage reset
自定义成就消息
自定义成就通知文本,以替换默认的“取得进展”消息
命令格式:
/xdp:config advancementmessages set <message>
/xdp:config advancementmessages reset
/xdp:config advancementmessages list
支持的格式:
-
纯文本格式(用引号括起来):
/xdp:config advancementmessages set “Completed the achievement”
-
JSON 格式(支持富文本):
/xdp:config advancementmessages set {“text”:“New achievement obtained”,“color”:‘gold’,“bold”:true}
效果对比:
- 默认消息:
XD_ON made progress [Obtained wood]
- 自定义消息:
XD_ON completed achievement [Obtained wood]
示例:
/xdp:config advancementmessages set “Reached milestone”
/xdp:config advancementmessages set {“text”:“Unlocked new achievement”,“color”:‘yellow’,“italic”:true}
/xdp:config advancementmessages list
/xdp:config advancementmessages reset
安装要求
- Minecraft 1.21.11
- Fabric Loader 0.18.1+
- Fabric API
- Java 21
注意: 1.21.11 是最后一个混淆版本;即将到来的 26.1 将是第一个非混淆版本。
未来计划
即将变更
- Minecraft 26.1:首个非混淆版本支持
- 映射迁移:计划过渡到 Mojang Mappings
- 更快的更新:非混淆版本将实现更快的更新速度
功能开发
本模组将继续开发各种实用功能,为 Minecraft 资源创作和游戏性体验增添更多增强内容
作者
XDon_
使用 DeepL.com(免费版)翻译
XDonPlugins
A functional mod for Minecraft resource creation
Version Notes
- Version 1.21.10: Stopped at v2.0.1, no further updates
- Version 1.21.11: Current active development version (v2.0.1+)
- Future Plans: Will be ported to 26.1 or a new stable mod version
- Significance: 1.21.11 is Minecraft's final obfuscated version
Features
Item Interaction Components
Adds various interaction triggers to items, creating interactive props
Right-Click Command Component
Component Name:
xdp:rightclick_function
Usage:
/give @s paper[xdp:rightclick_function=“command”]
Examples:
# Right-click to obtain a diamond
/give @s paper[xdp:rightclick_function=“/give @s diamond”]
# Right-click to execute a function
/give @s paper[xdp:rightclick_function=“/function namespace:test”]
# Right-click to teleport
/give @s compass[xdp:rightclick_function=“/tp @s 0 100 0”]
Left-Click Command Component
Component Name:
xdp:leftclick_function
Usage:
/give @s sword[xdp:leftclick_function=“command”]
Example:
# Play sound effect on left-click attack
/give @s iron_sword[xdp:leftclick_function=“/playsound entity.lightning_bolt.thunder player @s”]
# Apply effect on left-click
/give @s stick[xdp:leftclick_function=“/effect give @s strength 10 1”]
Drop Execution Component
Component Name:
xdp:drop_function
Usage:
/give @s item[xdp:drop_function=“command”]
Example:
# Explodes on drop
/give @s tnt[xdp:drop_function=“/summon creeper ~ ~ ~ {Fuse:0}”]
# Sends message on drop
/give @s paper[xdp:drop_function=“/say Someone dropped an important item!”]
Pickup Execution Component
Component Name:
xdp:pickup_function
Usage:
/give @s item[xdp:pickup_function=“command”]
Example:
# Healing on pickup
/give @s apple[xdp:pickup_function=“/effect give @s instant_health 1 1”]
# Teleport on Pickup
/give @s ender_pearl[xdp:pickup_function=“/tp @s 0 100 0”]
Features:
- Supports any valid Minecraft command
- Executes commands as the player
- Combines with multiple components
- Ideal for map creation and custom game mechanics
Screen & Interface Management
Control display states of various interface elements via client-side toggles

Command Confirmation Popup Switch
Configuration:
/xdp:screen CommandConfirmationScreen <true/false>
Check Current Status:
/xdp:screen CommandConfirmationScreen
Use Case:
Create clickable command text:
/tellraw @a [{“text”:“[Test]”,“color”:“green”,“bold”:true,“click_event”:{action:run_command,command:“/function namespace:test”},“hover_event”:{action:‘show_text’,value:{text:“Click”}}}]
When set to false, clicking the text will execute the command directly without a confirmation popup.
HUD Element Display Control
Controllable HUD Elements:
Hotbar.HealthBar.FoodBar.ArmorBar.Experience - Hotbar, Health Bar, Hunger Bar, Armor Bar, Experience Bar combination
Hotbar - Hotbar items only
Title.Subtitle - Title and subtitle combination
SelectedItemName - Selected item name
VehicleHealth - Vehicle health
PotionEffects - Potion effects
ActionBar - Action bar
Crosshair - Crosshair
DebugInfo - Debug information (F3)
Chat - Chat
PlayerList - Player list
Configuration command:
/xdp:screen HudDisplay <element name> <targets> <true/false>
Status check:
/xdp:screen HudDisplay <element name>
Common Examples:
# Hide entire bottom HUD
/xdp:screen HudDisplay Hotbar.HealthBar.FoodBar.ArmorBar.Experience <targets> false
# Hide hotbar items only
/xdp:screen HudDisplay Hotbar <targets> false
# Hide crosshair
/xdp:screen HudDisplay Crosshair <targets> false
# Hide chat
/xdp:screen HudDisplay Chat <targets> false
Permission Requirement: Requires OP permission (Permission Level 2)
Enhanced Kick Commands
Provides lower-permission kick commands usable in command blocks and packets
Command Format:
/xdp:kick <targets> [<reason>]
Parameter Description:
targets - Specifies players to kick (player name, target selector, or UUID)
reason - Optional, reason for kicking (uses default message if unspecified)
Permission Comparison:
- Original kick command: Permission Level 3 (OP only)
xdp:kick command: Permission level 1 (usable in command blocks and packets)
Examples:
/xdp:kick Steve
/xdp:kick Steve for violating server rules
/xdp:kick @a[tag=banned] for being banned
Custom Death Messages
Completely replaces vanilla death messages, supporting rich text messages in JSON format
Command Format:
/xdp:config deathmessage set <message>
/xdp:config deathmessage reset
Supported Formats:
-
Plain text format (enclosed in quotes):
/xdp:config deathmessage set “Met an unfortunate end”
-
JSON format (supports rich text):
/xdp:config deathmessage set {“text”:“Died horribly”,“color”:‘red’,“bold”:true}
Effect Comparison:
- Default message:
XD_ON was killed
- Custom message:
XD_ON met an unfortunate demise
Example:
/xdp:config deathmessage set “tragically perished”
/xdp:config deathmessage set {“text”:“utterly annihilated”,“color”:‘red’,“bold”:true}
/xdp:config deathmessage reset
Custom Achievement Messages
Customize achievement notification text to replace the default “Progress made” message
Command Format:
/xdp:config advancementmessages set <message>
/xdp:config advancementmessages reset
/xdp:config advancementmessages list
Supported Formats:
-
Plain text format (enclosed in quotes):
/xdp:config advancementmessages set “Completed the achievement”
-
JSON format (supports rich text):
/xdp:config advancementmessages set {“text”:“New achievement obtained”,“color”:‘gold’,“bold”:true}
Effect Comparison:
- Default message:
XD_ON made progress [Obtained wood]
- Custom message:
XD_ON completed achievement [Obtained wood]
Example:
/xdp:config advancementmessages set “Reached milestone”
/xdp:config advancementmessages set {“text”:“Unlocked new achievement”,“color”:‘yellow’,“italic”:true}
/xdp:config advancementmessages list
/xdp:config advancementmessages reset
Installation Requirements
- Minecraft 1.21.11
- Fabric Loader 0.18.1+
- Fabric API
- Java 21
Note: 1.21.11 is the last obfuscated version; the upcoming 26.1 will be the first non-obfuscated release.
Future Plans
Upcoming Changes
- Minecraft 26.1: First unobfuscated version support
- Mapping Migration: Planned transition to Mojang Mappings
- Faster Updates: Unobfuscated releases will enable quicker updates
Feature Development
This mod will continue developing various utility features, adding more enhancements for Minecraft resource creation and gameplay experience
Author
XDon_
Translated with DeepL.com (free version)
评论 0
登录后参与评分
还没有评论,来抢沙发吧