Updated README.MD

This commit is contained in:
WildInterloper 2024-03-10 21:19:41 -04:00
parent 4214b562bf
commit ea2859d915
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
# CustomBlockCMD
Something similar was requested [here](https://www.spigotmc.org/threads/clickable-items-command.492629/).
```#======================================================================================#
# NVus PRISON SETUP #
# by never2nv #
# www.FNGnation.net #
# Discord: FNGnation.net/discord #
#======================================================================================#
GOLD_BLOCK:
# Action type: hand or world. Hand means if the player has this block in their hand
# and right clicks it'll execute the command and optional message.
# world means if they right-click on this block anywhere in the world they see it
# it'll execute the command and optional message.
action-type: world
# Command type: player or server. Player means it'll execute the command as the player
cmd-type: player
# Command to execute
command: warp shop
# Optional message to send to the player. Leave "" for no message.
message: "Teleporting to the shop..."
DIAMOND_BLOCK:
action-type: hand
cmd-type: server
command: give @p diamond
IRON_BLOCK:
action-type: hand
cmd-type: player
command: spawn
message: "Teleporting to spawn..."
EMERALD_BLOCK:
action-type: world
cmd-type: server
command: give @p emerald
```