CommandItems is a versatile and powerful Minecraft plugin designed to enhance gameplay by introducing custom command-triggered items. Whether you're looking to reward players with in-game currency, teleport them to specific locations, or trigger any other server command, CommandItems has you covered.
Config.yml
Code (YAML):
# ExampleMoney configuration
ExampleMoney:
ItemName
:
"&a1k MONEY"
# Identity of the item (will check when you click with an item)
Material
:
"PAPER"
# Material of the item
Action
: BOTH
# Action trigger (L_CLICK, R_CLICK, BOTH)
Consumable
: true
# Whether the item is consumed upon use
Commands
:
# Commands to execute upon item use
Player
:
[
]
Server
:
-
"money give %player% 1000"
Extras:
CustomTitle:
Enabled
: true
Title
:
"&aMONEY"
Subtitle
:
"&fYou received 1k Money"
Sounds:
Enabled
: true
List
:
# SOUND:pitch:tick
-
"entity.firework_rocket.launch:1.0:0"
-
"entity.player.levelup:1.2:10"
-
"entity.player.levelup:1.6:10"
Chat:
Enabled
: true
Messages
:
-
"&aYou received &f1k"
ActionBar:
Enabled
: true
Message
:
"&f+1k MONEY"
# ExampleTpScroll configuration
ExampleTpScroll:
ItemName
:
"&aTeleport Scroll - Spawn"
Material
:
"PAPER"
Action
: BOTH
Consumable
: true
Commands:
Player
:
[
]
Server
:
-
"tp %player% 0 120 0"
Extras:
CustomTitle:
Enabled
: true
Title
:
"&aTeleported!"
Subtitle
:
"&f-1 Teleport Scroll"
Sounds:
Enabled
: true
List
:
-
"entity.firework_rocket.launch:1.0:0"
-
"entity.player.levelup:1.0:20"
Chat:
Enabled
: true
Messages
:
-
"&aYou entered a protected area"
ActionBar:
Enabled
: true
Message
:
"&fTeleported!"