Tools for building games mainly focused on changing block properties. And noclip.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.3KB

4 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # BuildingTools
  2. Tools for building games, mainly focused on changing and displaying (F3) block properties.
  3. ## Commands
  4. ### Selection commands
  5. Before changing any block with this mod, you need to select it in most cases. This is different than Gamecraft's box selection.
  6. You can use all the commands starting with `select`, they all have descriptions to help and should be self-explanatory otherwise.
  7. You can also run the desired block command for a cluster with a given object ID by adding the identifier as the last parameter.
  8. In this case you don't need to select the blocks beforehand which can be useful in command computers.
  9. Speaking of command computers, object signals can *also* be used, so if you have an object trigger set up and an object identifier enters that trigger, then all the blocks attached to it will be used as target blocks for the given block command that receives the signal.
  10. To use this, add "Chan" at the end of the command name (like `colorBlocksChan`).
  11. ### Block commands
  12. #### Color command
  13. The `colorBlocks` command can color the selected blocks to the given color.
  14. It works in both time stopped and running modes, although the color *will not* reset on time stop.
  15. The darkness parameter is what can be selected in the game using `Ctrl+<num>` by default.
  16. 0 means default color, then lightest to darkest.
  17. Usage (The object ID is optional):
  18. ```
  19. colorBlocks "<color> <darkness> [objectID]"
  20. ```
  21. **The usage for all other block commands are the following:**
  22. ```
  23. <command> "<x> <y> <z> [objectID]"
  24. ```
  25. ### Scale blocks
  26. The `scaleBlocks` command can be used to both scale *and* move the blocks so that the cluster stays together.
  27. In this case, the block you're looking at is used as reference and won't be moved.
  28. The `scaleIndividually` command only scales the blocks but doesn't move them so you can see between them.
  29. Both commands take a *relative* scale, so specifying "1 1 1" will not change anything and "2 2 2" will double the scale in all directions.
  30. Note that block connections will not be updated until you reload the save.
  31. ### Move blocks
  32. The `moveBlocks` command will move the selected blocks by the specified amount. Use 0.2 for one block of change in position.
  33. In time stopped mode, this will not update block connections, just like the scale commands.
  34. In time running mode, this will move the whole chunks the selected blocks are a part of.
  35. ### Push blocks
  36. The `pushBlocks` and `pushRotateBlocks` command will apply a specified (regular or angular) force to the selected blocks' chunks.
  37. The directions are global, so a positive value for Y means push upwards.
  38. Only works in time running mode.
  39. ## Other commands
  40. ### Push player
  41. The `pushPlayer` and `pushRotatePlayer` commands will apply a specified (regular or angular) force to the player in any mode.
  42. ### Examples
  43. * Select and move box selected blocks by 5 blocks in the +X direction:
  44. ```
  45. selectSelectedBlocks
  46. moveBlocks "1 0 0"
  47. ```
  48. * Select and push the block you're looking at and all connected blocks by 10 in the +Y direction:
  49. ```
  50. selectBlocksLookedAt false
  51. <Start time>
  52. pushBlocks "0 10 0"
  53. ```
  54. * Change the color of the cluster with ID E to blue:
  55. ```
  56. colorBlocks "blue 0 E"
  57. ```
  58. * Color all clusters with an object ID that enter an object trigger hooked up to a command computer with this command:
  59. (Can be filtered using an object filter)
  60. ```
  61. colorBlocksChan "blue 0"
  62. ```