Commands - DraViGen/BtW-Tesseract_Utils GitHub Wiki

General command information

Command legend:

"<>" = required

"[]" = optional

"|" = OR

Commands parameters:

  • When an <id/meta> is asked you can either give it the block/item's name or its actual id (use EMI and advanced tooltips (F3+H) to find the id and metadata of blocks if needed). By pressing TAB, the game will auto-fill with matching name (or give you the full list of name). For it to work, respect the name caps (There is a cap at the start of the name, and after "_")

  • Certain block have things called "metadata" (number after the "/" ) meaning it has the same id as other blocks but isn't the same block, in most case the name isn't the same so you can just use the block's name without having to worry about it (exemple: stone, deepslate, blackstone share the same id=1, but has different metadata=0 for stone, 1 for deepslate, 2 for blackstone)

  • When coordinates are asked (x,y,z), if you're looking at a block you can press "TAB" and it's going to enter that block's coordinate. By entering "~" it will use the corresponding coordinate of your current location, and by adding a number after the "~" it will offset the coordinate by the amount entered, example: // paste 23 ~ ~6, it will paste an object at x=23, y=your current Y coord and z=your Z coord + 6 (can be negative)

Advanced command usage:

When placing multiple block using // set, // replace, // shape, // line, etc:

  • ";" can be added after an ID to add another block in the blocks added, example: // set stone;obsidian = will place stone and obsidian in the same proportion in the selection.
  • ":" can be added after the ID to choose the previous ID proportion, example: // set stone:5;obsidian:15 = will place stone and obsidian with a ratio of 5/15 (1/3), meaning on average when 1 stone is placed, 3 obsidian is placed in the selection.

It is possible to use everything at once but you need to follow this order: // set id/meta:%;id/meta:%;id/meta:%;etc.

Example: // set 1/2:75;obsidian:5;leaves/2:20 = will place 75% deepslate, 5% obsidian, 20% birch leaves in the selection.

Additional information:

  • Most commands need a selected area to work, to select an area you can either use tye wooden axe or the Selection mode of thr Buildmode.

  • In the config menu (F6) you can enable/disable:

    • noUpdate : when placing block with commands, it will (in most case) not cause an update to surrounding block (anvil will float for exemple)

    • ignoreAir : when copying/pasting selection, only actual blocks will replace existings blocks. If set to false, air will replace existing blocks.

How to use commands:

/give

  • /give <id/meta> [count]

/summon

  • /summon <entity name> [count] [x] [y] [z]

/effect

  • /effect <clear|set> <effect name|id> [duration] [level]

/playsound

  • /playsound <sound|music>

/kill

The /kill command let you delete specific or all loaded entity. You can choose between player, mob, item or all.

  • /kill <player|mob|item|all> <entity name>

/inv

The /inv command allow you to save, load and remove previously saved inventory. Or load inventory presets that come with the addon.

  • /inv <save|load|remove|preset> <name>

// (world edit command):

  • "// setblock <id/meta> <x> <y> <z>" : Place a block at the designed coordinate with the ID given.

  • "// set <id/meta> [hollow|wall] [thickness]" : Replace a selection with blocks with the ID given. If volume specified: "hollow" create an empty box and "wall" create a wall with the top and bottom opened, both with the thickness given (if not specified, default at 1).

  • "// shape <id/meta> <sphere|cylinder|cube|pyramid> <parameters> <x> <y> <z> [hollow|open] [replace] " : Place a shape at the coordinate with the ID given, sphere/cylinder/cube/pyramid are possible shapes, the parameters depends on which shape you use: sphere only needs one parameter= radius, the cylinder needs two= radius and height, and the cube needs three= sizeX, sizeY and sizeZ. These parameters are in the form of: 1:1:1. You can choose to place these shape hollowed or opened (only for the cylinder and cube shape), you can choose the thickness in this case by adding another value to the parameters (if i placed a full cylinder with a 5 radius and 3 height: parameters = 5:3 , if place a hollow cylinder with same parameters but with a thickness of 2: parameters = 5:3:2). If the Y size of the pyramid shape is set to negative, it will spawn it upside down.

  • "// replace <id/meta> [id/meta replaced]" : Replace every block that are not air (if not specified) with the first ID. If second ID specified: replace only block matching the second ID.

  • "// move <to|add> <x> <y> <z>" : If "to": move a selection to designated coords (if not specified, move to the player's coords). If "add": move a selection to the current selection coordinate + the offset specified (can be negative). Exemple: // move add 0 5 0 = move the current selection 5 block higher. // move to 0 5 0 = move the current selection to the coords: 0 5 0

  • "// copy" : Copy a selection and store it temporarily.

  • "// paste [x] [y] [z]" : Paste the copied area to the designated coords (if not specified: paste at the player's coords) .

  • "// undo [amount]" : Revert an action if done with Tesseract Utils. If specified, revert "amount" of action.

  • "// redo [amount]" : Redo an action that was reverted. If specified, redo "amount" of action

  • "// pos1" : Select the First point of the selection with the current coords of the player.

  • "// pos2" : Select the Second point of the selection with the current coords of the player.

  • "// tool <sphere|cylinder|cube|pyramid> <id/meta> <parameters> [replace] [hollow|open]" : Transform the held item as a shape tool using the specified caracteristics (for more information refer yourself to the shape command)

  • "// line <id/meta> [thickness]" : spawn a line of block connecting the first and second select

  • "// plane <id/meta> [x|z] [thickness]" : spawn a surface connecting the first and second selected position. By default the plane is drawn on the X axis, but if specified it can be drawn on the Z axis.

⚠️ **GitHub.com Fallback** ⚠️