Skip to content

Commit

Permalink
Update block-events.md
Browse files Browse the repository at this point in the history
Separated "set_block" and "set_block_at_pos" with block state and without block state
  • Loading branch information
VactricaKing authored Nov 3, 2023
1 parent 9e3ab2e commit 915e185
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/blocks/block-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,18 @@ Removes the current block and replaces it with the defined block in the same pos

<CodeHeader>minecraft:block > events</CodeHeader>

```json
"wiki:place_block": {
"set_block": {
"block_type": "minecraft:grass"
}
}
```

Or...

<CodeHeader>minecraft:block > events</CodeHeader>

```json
"wiki:place_block": {
"set_block": {
Expand All @@ -301,6 +313,19 @@ Sets a block at a specified position relative to the block.

<CodeHeader>minecraft:block > events</CodeHeader>

```json
"wiki:generate_stone_above": {
"set_block_at_pos": {
"block_type": "minecraft:stone",
"block_offset": [0, 1, 0]
}
}
```

Or...

<CodeHeader>minecraft:block > events</CodeHeader>

```json
"wiki:generate_upper_door_above": {
"set_block_at_pos": {
Expand Down

0 comments on commit 915e185

Please sign in to comment.