A functional mod for Minecraft resource creation
Adds various interaction triggers to items, creating interactive props
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”]
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”]
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!”]
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:
Control display states of various interface elements via client-side toggles
!Wiki Details !Game Effects
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.
Controllable HUD Elements:
Hotbar.HealthBar.FoodBar.ArmorBar.Experience - Hotbar, Health Bar, Hunger Bar, Armor Bar, Experience Bar combinationHotbar - Hotbar items onlyTitle.Subtitle - Title and subtitle combinationSelectedItemName - Selected item nameVehicleHealth - Vehicle healthPotionEffects - Potion effectsActionBar - Action barCrosshair - CrosshairDebugInfo - Debug information (F3)Chat - ChatPlayerList - Player listConfiguration 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)
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:
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
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:
XD_ON was killedXD_ON met an unfortunate demiseExample:
/xdp:config deathmessage set “tragically perished”
/xdp:config deathmessage set {“text”:“utterly annihilated”,“color”:‘red’,“bold”:true}
/xdp:config deathmessage reset
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:
XD_ON made progress [Obtained wood]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
Note: 1.21.11 is the last obfuscated version; the upcoming 26.1 will be the first non-obfuscated release.
This mod will continue developing various utility features, adding more enhancements for Minecraft resource creation and gameplay experience
XDon_
Translated with DeepL.com (free version)

A functional mod created for Minecraft resource packs. More interesting features will continue to be released in the future. For a more detailed introduction to the mod, you can search for this mod on Bilibili to watch tutorial videos.