From f01518a5439a5b65ed7097c3e44e0111ebd79582 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 28 Nov 2020 06:29:51 +0000 Subject: [PATCH] Merge docs for 'added and to handle block tags.' --- docs/scarpet/Full.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/scarpet/Full.md b/docs/scarpet/Full.md index db7e3248..d861d1f1 100644 --- a/docs/scarpet/Full.md +++ b/docs/scarpet/Full.md @@ -2222,6 +2222,16 @@ block_state(block('iron_trapdoor[half=top]'),'powered') => false bool(block_state(block('iron_trapdoor[half=top]'),'powered')) => 0 +### `block_list()`, `block_list(tag)` + +Returns list of all blocks. If tag is provided, returns list of blocks that belong to this block tag. + +### `block_tags()`, `block_tags(block)`, `block_tags(block, tag)` + +Without arguments, returns list of available tags, with block supplied (either by coordinates, or via block name), returns lost +of tags the block belongs to, and if a tag is specified, returns `null` if tag is invalid, `false` if this block doesn't belong +to this tag, and `true` if the block belongs to the tag. + ### `block_data(pos)` Return NBT string associated with specific location, or null if the block does not carry block data. Can be currently