Skip to content

Commit

Permalink
Merge pull request #752 from VactricaKing/patch-1
Browse files Browse the repository at this point in the history
Update block-events.md
  • Loading branch information
SmokeyStack authored Nov 9, 2023
2 parents e1929b6 + 915e185 commit 73c2fa5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/blocks/block-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mentions:
- TheItsNameless
- ThomasOrs
- QuazChick
- VactricaKing
---

:::tip FORMAT & MIN ENGINE VERSION `1.20.30`
Expand Down Expand Up @@ -288,6 +289,24 @@ Removes the current block and replaces it with the defined block in the same pos
}
```

Or...

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

```json
"wiki:place_block": {
"set_block": {
"block_type": {
"name": "minecraft:trapdoor",
"states": {
"direction": 2,
"open_bit": true
}
}
}
}
```

### set_block_at_pos

Sets a block at a specified position relative to the block.
Expand All @@ -303,6 +322,24 @@ Sets a block at a specified position relative to the block.
}
```

Or...

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

```json
"wiki:generate_upper_door_above": {
"set_block_at_pos": {
"block_type": {
"name": "minecraft:wooden_door",
"states": {
"upper_block_bit": true
}
},
"block_offset": [0, 1, 0]
}
}
```

### set_block_state

Set block state value(s) (Can be set to the returned value of a Molang expression string).
Expand Down

0 comments on commit 73c2fa5

Please sign in to comment.