vault backup: 2025-03-24 20:49:18
All checks were successful
Update pages on webserver / Update (push) Successful in 5s

This commit is contained in:
themodernhakr 2025-03-24 20:49:18 -05:00
parent 66641a4b1e
commit 91ddc1fd29

View File

@ -22,12 +22,12 @@ While working on my Database datapack (still WIP), I knew I'd want to find
## Constraints ## Constraints
# One Macro # One Macro
Macros allow us to reach into our array and pick out an entry that matching value in the `string` property. Macros allow us to reach into our array and pick out an entry that matching value in the `string` property.
```ts ```haskell
... one_macro.array[string:$(keyword)] > one_macro.array[string:$(keyword)]
``` ```
```haskell ```haskell
// one_macro/run.mcfunction -- one_macro/run.mcfunction
data modify storage test_namespace:test_namespace temp.keyword set value 'entry500' data modify storage test_namespace:test_namespace temp.keyword set value 'entry500'
@ -37,14 +37,14 @@ data remove storage test_namespace:test_namespace temp.keyword
data remove storage test_namespace:test_namespace temp.result data remove storage test_namespace:test_namespace temp.result
``` ```
```ts ```haskell
// one_macro/_searcharray.mcfunction -- one_macro/_searcharray.mcfunction
$data modify storage test_namespace:test_namespace temp.result set from storage test_namespace:test_namespace one_macro.array[string:$(keyword)] $data modify storage test_namespace:test_namespace temp.result set from storage test_namespace:test_namespace one_macro.array[string:$(keyword)]
``` ```
# Two Macro # Two Macro
```ts ```haskell
// two_macro/run.mcfunction -- two_macro/run.mcfunction
data modify storage test_namespace:test_namespace temp.keyword set value 'entry500' data modify storage test_namespace:test_namespace temp.keyword set value 'entry500'