Allows users to execute commands as player or server when either a user right clicks on a block in the world or when that block is in their hand.
Go to file
WildInterloper ea2859d915 Updated README.MD 2024-03-10 21:19:41 -04:00
.idea v1.0-SNAPSHOT 2024-03-10 21:08:48 -04:00
src/main v1.0-SNAPSHOT 2024-03-10 21:08:48 -04:00
target v1.0-SNAPSHOT 2024-03-10 21:08:48 -04:00
CustomBlockCMD.iml v1.0-SNAPSHOT 2024-03-10 20:59:01 -04:00
README.MD Updated README.MD 2024-03-10 21:19:41 -04:00
pom.xml v1.0-SNAPSHOT 2024-03-10 20:59:01 -04:00

README.MD

CustomBlockCMD

Something similar was requested here.

#                                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