Skip to content

Commit

Permalink
test: overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Oct 9, 2023
1 parent 9a42907 commit d6ffcc5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/bolt_overlay/beet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require:
- bolt
data_pack:
load: "src"
pipeline:
- mecha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
say ("my" + "stuff")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
say (1 + 2)
36 changes: 36 additions & 0 deletions tests/snapshots/examples__build_bolt_overlay__0.pack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Lectern snapshot

## Data pack

`@data_pack pack.mcmeta`

```json
{
"pack": {
"pack_format": 18,
"description": ""
}
}
```

### demo

`@function demo:foo`

```mcfunction
say mystuff
```

## Overlay `dummy_overlay`

`@overlay dummy_overlay`

### demo

`@function demo:foo`

```mcfunction
say 3
```

`@endoverlay`

0 comments on commit d6ffcc5

Please sign in to comment.