Biome tags
This commit is contained in:
+6
-1
@@ -1,4 +1,4 @@
|
||||
// tags: lists of blocks, items or entities that every mod can add to, see docs/modding/resources/tags.md
|
||||
// tags: lists of blocks, items, entities or biomes that every mod can add to, see docs/modding/resources/tags.md
|
||||
import { assert, assertEquals, assertThrows } from "@std/assert";
|
||||
import { Container, ItemStack } from "$/common/inventory.ts";
|
||||
import { CRAFTING_RESULT_SLOT } from "$/common/protocol.ts";
|
||||
@@ -86,6 +86,11 @@ Deno.test("the base game's tags, from scripts", async () => {
|
||||
assert(tags.has("items", "#bworld:logs", "bworld:cherry_log"));
|
||||
assert(tags.has("blocks", "bworld:leaves", "bworld:birch_leaves"));
|
||||
assert(!tags.has("items", "bworld:planks", "bworld:stone"));
|
||||
assertEquals(tags.get("biomes", "bworld:is_river"), ["bworld:river", "bworld:frozen_river"]);
|
||||
assert(tags.has("biomes", "#bworld:is_ocean", "bworld:deep_frozen_ocean"));
|
||||
assert(tags.has("biomes", "bworld:is_mountain", "bworld:jagged_peaks"));
|
||||
assert(tags.has("biomes", "bworld:is_forest", "bworld:dark_forest"));
|
||||
assert(!tags.has("biomes", "bworld:is_forest", "bworld:plains"));
|
||||
assertEquals(tags.get("items", "c:ingots"), [
|
||||
"bworld:copper_ingot",
|
||||
"bworld:tin_ingot",
|
||||
|
||||
Reference in New Issue
Block a user