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.4KB

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