Add cooking pot from farmer's delight !
This commit is contained in:
@@ -13,6 +13,13 @@
|
||||
},
|
||||
"drops": "bworld:furnace",
|
||||
"interactive": true,
|
||||
"states": [
|
||||
{
|
||||
"name": "lit",
|
||||
"bits": 1,
|
||||
"default": 0
|
||||
}
|
||||
],
|
||||
"components": {
|
||||
"bworld:furnace": {}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"item": {
|
||||
"id": "bworld:bowl",
|
||||
"texture": "bworld:bowl"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"recipe": {
|
||||
"type": "shaped",
|
||||
"pattern": [
|
||||
"P P",
|
||||
" P "
|
||||
],
|
||||
"key": {
|
||||
"P": "bworld:planks"
|
||||
},
|
||||
"result": {
|
||||
"id": "bworld:bowl",
|
||||
"count": 4
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -191,6 +191,12 @@ function register_furnace(ctx: ServerContext) {
|
||||
}
|
||||
}
|
||||
|
||||
// burning, so it heats what's on top, like farmer's delight's cooking pot
|
||||
const lit = data.fuel > 0 ? 1 : 0;
|
||||
if (ctx.world.get_state(block.x, block.y, block.z, "lit") !== lit) {
|
||||
ctx.world.set_state(block.x, block.y, block.z, "lit", lit);
|
||||
}
|
||||
|
||||
for (const screen of viewers.get(key(block)) ?? []) show(screen, data);
|
||||
},
|
||||
});
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 178 B |
Reference in New Issue
Block a user