Rotbeast and muncher
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"format_version": 1,
|
||||||
|
"entity": {
|
||||||
|
"id": "undergarden:muncher",
|
||||||
|
"model": "undergarden:muncher",
|
||||||
|
"texture": "undergarden:muncher",
|
||||||
|
"behavior": "monster",
|
||||||
|
"width": 0.8,
|
||||||
|
"height": 0.8,
|
||||||
|
"max_health": 15,
|
||||||
|
"movement_speed": 0.3,
|
||||||
|
"attack_damage": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"format_version": 1,
|
||||||
|
"entity": {
|
||||||
|
"id": "undergarden:rotbeast",
|
||||||
|
"model": "undergarden:rotbeast",
|
||||||
|
"texture": "undergarden:rotbeast",
|
||||||
|
"behavior": "monster",
|
||||||
|
"width": 1.5,
|
||||||
|
"height": 3,
|
||||||
|
"max_health": 80,
|
||||||
|
"movement_speed": 0.22,
|
||||||
|
"attack_damage": 10,
|
||||||
|
"physical_shielding": 3
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"format_version": 1,
|
"format_version": 1,
|
||||||
"id": "undergarden",
|
"id": "undergarden",
|
||||||
"name": "The Undergarden",
|
"name": "The Undergarden",
|
||||||
"description": "A port of quek's The Undergarden: so far the Rotwalker, a rotting monster that spawns in the dark and hunts players.",
|
"description": "A port of quek's The Undergarden: so far the Rotwalker and the Rotbeast, rotting monsters that spawn in the dark and hunt players, and the Muncher.",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"quek (original)",
|
"quek (original)",
|
||||||
|
|||||||
@@ -0,0 +1,209 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12.0",
|
||||||
|
"minecraft:geometry": [
|
||||||
|
{
|
||||||
|
"description": {
|
||||||
|
"identifier": "geometry.muncher",
|
||||||
|
"texture_width": 64,
|
||||||
|
"texture_height": 32,
|
||||||
|
"visible_bounds_width": 1.5,
|
||||||
|
"visible_bounds_height": 1.5,
|
||||||
|
"visible_bounds_offset": [
|
||||||
|
0,
|
||||||
|
0.75,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bones": [
|
||||||
|
{
|
||||||
|
"name": "lower_jaw",
|
||||||
|
"pivot": [
|
||||||
|
0,
|
||||||
|
3,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-5,
|
||||||
|
4,
|
||||||
|
-5
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
10,
|
||||||
|
4,
|
||||||
|
10
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
15
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-8,
|
||||||
|
7,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
16,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
29
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "upper_jaw",
|
||||||
|
"pivot": [
|
||||||
|
0,
|
||||||
|
8,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-5,
|
||||||
|
8,
|
||||||
|
-5
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
10,
|
||||||
|
5,
|
||||||
|
10
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
0,
|
||||||
|
13,
|
||||||
|
-1
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
25
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "left_leg",
|
||||||
|
"pivot": [
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
30,
|
||||||
|
15
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "right_leg",
|
||||||
|
"pivot": [
|
||||||
|
-3,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-4,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
30,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "left_arm",
|
||||||
|
"pivot": [
|
||||||
|
-5,
|
||||||
|
6,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-7,
|
||||||
|
2,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
2,
|
||||||
|
4,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
15
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "right_arm",
|
||||||
|
"pivot": [
|
||||||
|
5,
|
||||||
|
6,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
5,
|
||||||
|
2,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
2,
|
||||||
|
4,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,263 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12.0",
|
||||||
|
"minecraft:geometry": [
|
||||||
|
{
|
||||||
|
"description": {
|
||||||
|
"identifier": "geometry.rotbeast",
|
||||||
|
"texture_width": 128,
|
||||||
|
"texture_height": 128,
|
||||||
|
"visible_bounds_width": 4,
|
||||||
|
"visible_bounds_height": 4,
|
||||||
|
"visible_bounds_offset": [
|
||||||
|
0,
|
||||||
|
2.0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bones": [
|
||||||
|
{
|
||||||
|
"name": "torso",
|
||||||
|
"pivot": [
|
||||||
|
-15,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lower_torso",
|
||||||
|
"parent": "torso",
|
||||||
|
"pivot": [
|
||||||
|
0,
|
||||||
|
16.75,
|
||||||
|
5.5
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-13,
|
||||||
|
17,
|
||||||
|
-0.5
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
26,
|
||||||
|
14,
|
||||||
|
13
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
50,
|
||||||
|
46
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "upper_torso",
|
||||||
|
"parent": "lower_torso",
|
||||||
|
"pivot": [
|
||||||
|
0,
|
||||||
|
26.5,
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"rotation": [
|
||||||
|
27.502,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-15,
|
||||||
|
26.5,
|
||||||
|
-3.5
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
30,
|
||||||
|
19,
|
||||||
|
18
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
32,
|
||||||
|
91
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "right_leg",
|
||||||
|
"pivot": [
|
||||||
|
7.5,
|
||||||
|
19,
|
||||||
|
5.5
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
1.5
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
9,
|
||||||
|
19,
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
56,
|
||||||
|
10
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "left_leg",
|
||||||
|
"pivot": [
|
||||||
|
-7.5,
|
||||||
|
19,
|
||||||
|
5.5
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-11,
|
||||||
|
0,
|
||||||
|
1.5
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
9,
|
||||||
|
19,
|
||||||
|
9
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
56,
|
||||||
|
10
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "head",
|
||||||
|
"pivot": [
|
||||||
|
0,
|
||||||
|
38.5,
|
||||||
|
-7
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-6,
|
||||||
|
37,
|
||||||
|
-20
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
12,
|
||||||
|
8,
|
||||||
|
12
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
80,
|
||||||
|
26
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "jaw",
|
||||||
|
"parent": "head",
|
||||||
|
"pivot": [
|
||||||
|
0,
|
||||||
|
36.5,
|
||||||
|
-8
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-6,
|
||||||
|
32,
|
||||||
|
-20
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
12,
|
||||||
|
5,
|
||||||
|
12
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
15
|
||||||
|
],
|
||||||
|
"inflate": 0.25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-6,
|
||||||
|
37.5,
|
||||||
|
-20
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
12,
|
||||||
|
2,
|
||||||
|
12
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"inflate": 0.25
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "right_arm",
|
||||||
|
"pivot": [
|
||||||
|
15,
|
||||||
|
41,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
15,
|
||||||
|
8,
|
||||||
|
-2
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
7,
|
||||||
|
34,
|
||||||
|
8
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
2,
|
||||||
|
86
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "left_arm",
|
||||||
|
"pivot": [
|
||||||
|
-15,
|
||||||
|
41,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"cubes": [
|
||||||
|
{
|
||||||
|
"origin": [
|
||||||
|
-22,
|
||||||
|
8,
|
||||||
|
-2
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
7,
|
||||||
|
34,
|
||||||
|
8
|
||||||
|
],
|
||||||
|
"uv": [
|
||||||
|
2,
|
||||||
|
86
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
@@ -7,6 +7,20 @@
|
|||||||
"min_count": 4,
|
"min_count": 4,
|
||||||
"max_count": 4,
|
"max_count": 4,
|
||||||
"chance": 0.1
|
"chance": 0.1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"entity": "undergarden:rotbeast",
|
||||||
|
"weight": 30,
|
||||||
|
"min_count": 1,
|
||||||
|
"max_count": 2,
|
||||||
|
"chance": 0.1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"entity": "undergarden:muncher",
|
||||||
|
"weight": 50,
|
||||||
|
"min_count": 1,
|
||||||
|
"max_count": 1,
|
||||||
|
"chance": 0.3
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import {
|
|||||||
import { LightRegion, REGION_LAYER, REGION_SIZE, REGION_VOID } from "$/client/workers/lighting.ts";
|
import { LightRegion, REGION_LAYER, REGION_SIZE, REGION_VOID } from "$/client/workers/lighting.ts";
|
||||||
import { create_entity } from "$/server/game/entity/entity_types.ts";
|
import { create_entity } from "$/server/game/entity/entity_types.ts";
|
||||||
import { Mob } from "$/server/game/entity/mob.ts";
|
import { Mob } from "$/server/game/entity/mob.ts";
|
||||||
|
import { NaturalSpawner } from "$/server/game/natural_spawner.ts";
|
||||||
import { test_game } from "./helpers.ts";
|
import { test_game } from "./helpers.ts";
|
||||||
|
|
||||||
// chunk 6, 6: a closed stone room with its floor at y 60 and its roof at y 64, and alice standing 40 blocks away
|
// chunk 6, 6: a closed stone room with its floor at y 60 and its roof at y 64, and alice standing 40 blocks away
|
||||||
@@ -31,6 +32,8 @@ async function setup(roof = "bworld:stone") {
|
|||||||
for (let y = FLOOR + 1; y < ROOF; y++) world.set_block(x, y, z, wall ? "bworld:stone" : "bworld:air");
|
for (let y = FLOOR + 1; y < ROOF; y++) world.set_block(x, y, z, wall ? "bworld:stone" : "bworld:air");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// only the rotwalker, so what else the undergarden spawns doesn't change what can spawn here
|
||||||
|
t.game.spawner = new NaturalSpawner(t.game.spawner.spawns.filter((s) => s.entity === "undergarden:rotwalker"));
|
||||||
t.join(1, "alice");
|
t.join(1, "alice");
|
||||||
const alice = t.game.players()[0];
|
const alice = t.game.players()[0];
|
||||||
world.set_block(x0 + 48, FLOOR, x0 + 8, "bworld:stone");
|
world.set_block(x0 + 48, FLOOR, x0 + 8, "bworld:stone");
|
||||||
|
|||||||
Reference in New Issue
Block a user