Skip to content

Result Extension | Command

WolfyScript edited this page Jun 20, 2023 · 2 revisions

Allows executing commands when a craft is completed. You can run commands inside the console or let the player run the command.

You can use player dependent placeholders to for example display the player name, etc.

  • If you have PlaceholderAPI installed, you must use PAPI placeholders inside the commands
  • If PAPI is not available, you can use the %player% placeholder to use the player name.
{
    "key" : "customcrafting:command",
    "outer_radius" : [ 0.0, 0.0, 0.0 ],
    "inner_radius" : [ 0.0, 0.0, 0.0 ],
    "consoleCommands" : [ "say hi %player%", "effect give %player% minecraft:strength 100 100" ],
    "playerCommands" : [ ],
    "nearPlayer" : true,
    "nearWorkstation" : true
}

outer and inner radius: Configure the area where to look for players to run the command on.
consoleCommands: Commands that are executed in the console.
playerCommands: Commands that are executed by the player.
nearPlayer: Runs the commands for all players in the configured area around the player that caused the execution.
nearWorkstation: Runs the commands for all players in the configured area around the workstation (furnace, etc.) that caused the execution.

| Home

  • Editions
  • Installation

| General

  • Performance
  • Terminology

| Recipes

Types

  • From 1.6.5.x
  • From 1.6.4.0
  • From 1.6.3.0 or older

| Special Workstations

  • Custom Recipe Book
  • Vanilla Recipe Book
Clone this wiki locally