BedrockEdits is a add on that adds powerfool editing tools for minecraft bedrock. It does not use experimental features
It adds the option to select a workspace, manipulate the workspace with operators, and some more useful tools
Each player has the following variables in their session. The session is not persistent, meaning, it's lost when the world is closed.
concept | type | description |
---|---|---|
pos1 | Coordinates(Vector3) | Is the blue corner of the selection, it is also the main corner |
pos2 | Coordinates(Vector3) | Is the red corner of the selection, also the secondary corner |
block1 | Block(BlockPermutation) | Represents the main block, red |
block2 | Block(BlockPermutation) | Represents the secondary block, blue |
There are multiple item tools that you can use
- Wands
- Block picker
- Debug stick
- Slot with state
Wands are used to edit the pos1
and pos2
which define the workspace
Right click a block to set it as pos1
(Blue corner)
Left click a block to set it as pos2
(Red corner)
Right click a block to set it as pos1
(Blue corner)
Left click to place the pos1
(Blue corner). It places pos1
against the clicked block face.
Right click a block to set it as pos2
(Red corner)
Left click to place the pos2
(Red corner). It places pos2
against the clicked block face.
Use the blue picker to select the block your operators will place.
Use the red picker to select the secondary block, this is used when placing block on replace mode.
This tool, when used (right click) opens up a form which allows you to select from four modes. This are similar to the fill command
Mode | Description |
---|---|
Normal | Just places the blocks |
Keep | Only places blocks if it was air |
Replace exactly | Only replaces blocks that match the secondary block permutation, with the same block states |
Replace loosely | Only replaces blocks that match the identifier of the secondary block |
Operators are what apply changes to your world, you can find them as items. To activate them, simply use the item (right click).
Places blocks on all the workspace, respecting the block place mode.
It now prompts you to select the block placing mode.
NOTE: Batched operator, if the area is large it spreads its operation in batches processed in consecutive ticks. Each batch creates its own commit to the history.
Places blocks on a line from pos1
to pos2
NOTE: UnBatch operator, this attempts to place all blocks in one game tick
NOTE: Workspace-less operator, this attempts to place blocks regardless if there's a valid workspace
Right click a block, it will replace all blocks of the same permutation that are connected to the right click. Similar to the bucket tool in image editing software.
NOTE Batched operator, if the area is large it spreads its operation in batches processed in consecutive ticks. Each batch creates its own commit to the history.
NOTE: It ignores the block placing mode, as it is incompatible with the concept.
Edits also adds a history, to allow you to undo and redo changes.
Every operator creates a commit, which store the block changes, and pushes it into the history. Some operators when working in large areas may create multiple commits.
Note: The history has a limited size, if it capacity is exceeded, when a new commit is added, it will remove commits from the oldest to newest until its size goes below its maximum capacity.
Use the Undo item.
Undoes one commit made by an operation.
Use the Redo item.
Redoes one commit made by an operation.
This allows Undone commits to be recovered as long as no new commit arrives.
This tool also provides commands to run, currently their accesible through the scriptevents.
So the syntax is:
/scriptevent bets:<command> [args]
Prints the structure data of "mystructure" in raw format
/scriptevent bets:stdata mystructure -r
Use either pos1
or pos2
command to query or modify the selection position box.
If no arguments, it returns the position of the selection
- Use optional argument
-set <x y z>
to set the coordinates - Use optional argument
-x <dx>
to add dx to the x coordinate - Use optional argument
-y <dy>
to add dy to the y coordinate - Use optional argument
-z <dz>
to add dz to the z coordinate
Queries pos 1
/scriptevent bets:pos1
Set pos2 to where the player is
/scriptevent bets:pos2 -set ~ ~ ~
Adds 2 to x value pos pos1
/scriptevent bets:pos1 -x 2
Use cls
command to clear the selection
Use sbs
to query the selection box size. It prints its x, y and z length.
Use fill
to run the fill operator
- Use optional argument
-mode <mode>
to select the mode, skipping the modal. This modes may be- normal
- keep
- replace
- loosely
Runs fill operator, opens the prompt
/scriptevent bets:fill
Runs fill operator, skips the prompt by specifying the mode
/scriptevent bets:fill -mode replace
Use stack
to run the stack operator
Use undo
to run the undo operator
Use redo
to run the redo operator
Use load
to run the load operator, and load a structure
Use save
to run the save operator, and save a structure
Use stl
to run to query all structures loaded
- Use flag
-r
to display the data raw.
Use stdata <structure>
to query the data of a specific structure
- Mandatory argument , the structure name to query
- Use flag
-r
to display the data raw.