forked from unimatrix/web
Add the Ixian Powercore recipe and current device names to the Cookbook
This commit is contained in:
parent
e99331a8e0
commit
a4e2fc64eb
6 changed files with 207 additions and 25 deletions
|
|
@ -1,18 +1,147 @@
|
|||
{
|
||||
"items": {
|
||||
"ender_chest": {"id":"dunechest_ender_chest","name":"Ender Chest","material":"barrel","custom":true,"icon":"/recipe-icons/dunechest_ender_chest.png","summary":"A custom chest with three colour pads. Matching frequencies share storage on the same planet; diamond toggles the supplied private mode."},
|
||||
"speed_hopper_1": {"id":"dunechest_speed_hopper_1","name":"Speed Hopper MK I","material":"hopper","custom":true,"icon":"/recipe-icons/dunechest_speed_hopper_1.png","summary":"A faster hopper with an item filter. Open its settings with a Wrench or sneak-click with an empty hand."},
|
||||
"speed_hopper_2": {"id":"dunechest_speed_hopper_2","name":"Speed Hopper MK II","material":"hopper","custom":true,"icon":"/recipe-icons/dunechest_speed_hopper_2.png","summary":"The second Speed Hopper tier. Craft it with a genuine MK I; an ordinary hopper does not satisfy the upgrade recipe."},
|
||||
"speed_hopper_3": {"id":"dunechest_speed_hopper_3","name":"Speed Hopper MK III","material":"hopper","custom":true,"icon":"/recipe-icons/dunechest_speed_hopper_3.png","summary":"The third Speed Hopper tier. Craft it with a genuine MK II and netherite ingots."},
|
||||
"auto_crafter": {"id":"dunechest_auto_crafter","name":"Auto Crafter","material":"crafting_table","custom":true,"summary":"A custom crafting block that takes ingredients from the container above and sends its result to the container below. Right-click to set its recipe."},
|
||||
"wrench": {"id":"dunechest_wrench","name":"Wrench","material":"knowledge_book","custom":true,"icon":"/recipe-icons/dunechest_wrench.png","summary":"Left-click a DuneChest, Speed Hopper or Auto Crafter to open that block’s settings. Works on Java and Bedrock."}
|
||||
"ender_chest": {
|
||||
"id": "dunechest_ender_chest",
|
||||
"name": "Ender Chest",
|
||||
"material": "barrel",
|
||||
"custom": true,
|
||||
"icon": "/recipe-icons/dunechest_ender_chest.png",
|
||||
"summary": "A custom chest with three colour pads. Matching frequencies share storage on the same planet; diamond toggles the supplied private mode."
|
||||
},
|
||||
"speed_hopper_1": {
|
||||
"id": "dunechest_speed_hopper_1",
|
||||
"name": "Ixian sorting devices MK 1",
|
||||
"material": "hopper",
|
||||
"custom": true,
|
||||
"icon": "/recipe-icons/dunechest_speed_hopper_1.png",
|
||||
"summary": "A faster hopper with an item filter. Open its settings with a Wrench or sneak-click with an empty hand."
|
||||
},
|
||||
"speed_hopper_2": {
|
||||
"id": "dunechest_speed_hopper_2",
|
||||
"name": "Ixian sorting devices MK 2",
|
||||
"material": "hopper",
|
||||
"custom": true,
|
||||
"icon": "/recipe-icons/dunechest_speed_hopper_2.png",
|
||||
"summary": "The second Ixian sorting device tier. Craft it with a genuine MK 1; an ordinary hopper does not satisfy the upgrade recipe."
|
||||
},
|
||||
"speed_hopper_3": {
|
||||
"id": "dunechest_speed_hopper_3",
|
||||
"name": "Ixian sorting devices MK 3",
|
||||
"material": "hopper",
|
||||
"custom": true,
|
||||
"icon": "/recipe-icons/dunechest_speed_hopper_3.png",
|
||||
"summary": "The third Ixian sorting device tier. Craft it with a genuine MK 2 and netherite ingots."
|
||||
},
|
||||
"auto_crafter": {
|
||||
"id": "dunechest_auto_crafter",
|
||||
"name": "Ixian Replicator MK XIV",
|
||||
"material": "crafting_table",
|
||||
"custom": true,
|
||||
"summary": "A custom crafting block that takes ingredients from the container above and sends its result to the container below. Right-click to set its recipe."
|
||||
},
|
||||
"wrench": {
|
||||
"id": "dunechest_wrench",
|
||||
"name": "Wrench",
|
||||
"material": "knowledge_book",
|
||||
"custom": true,
|
||||
"icon": "/recipe-icons/dunechest_wrench.png",
|
||||
"summary": "Left-click a DuneChest, Ixian sorting device or Ixian Replicator to open its settings. Works on Java and Bedrock."
|
||||
},
|
||||
"dune_beacon": {
|
||||
"id": "dunechest_dune_beacon",
|
||||
"name": "Ixian Powercore MK XIV",
|
||||
"material": "sea_lantern",
|
||||
"custom": true,
|
||||
"icon": "/recipe-icons/dunechest_dune_beacon.png",
|
||||
"summary": "A beamless powercore with beacon effects. Build a beacon pyramid beneath it, then choose effects in its settings. It works indoors without open sky."
|
||||
}
|
||||
},
|
||||
"recipes": [
|
||||
{"id":"ender_chest","pattern":["OEO","OBO","OOO"],"ingredients":{"O":"minecraft:obsidian","E":"minecraft:ender_eye","B":"minecraft:barrel"}},
|
||||
{"id":"speed_hopper_1","pattern":["GRG","RHR","GRG"],"ingredients":{"G":"minecraft:gold_ingot","R":"minecraft:redstone","H":"minecraft:hopper"}},
|
||||
{"id":"speed_hopper_2","pattern":["DRD","RIR","DRD"],"ingredients":{"D":"minecraft:diamond","R":"minecraft:redstone_block","I":"speed_hopper_1"}},
|
||||
{"id":"speed_hopper_3","pattern":["NRN","RIR","NRN"],"ingredients":{"N":"minecraft:netherite_ingot","R":"minecraft:redstone_block","I":"speed_hopper_2"}},
|
||||
{"id":"auto_crafter","pattern":["IRI","RTR","IDI"],"ingredients":{"I":"minecraft:iron_ingot","R":"minecraft:redstone","T":"minecraft:crafting_table","D":"minecraft:dropper"}},
|
||||
{"id":"wrench","pattern":["I I"," I "," S "],"ingredients":{"I":"minecraft:iron_ingot","S":"minecraft:stick"}}
|
||||
{
|
||||
"id": "ender_chest",
|
||||
"pattern": [
|
||||
"OEO",
|
||||
"OBO",
|
||||
"OOO"
|
||||
],
|
||||
"ingredients": {
|
||||
"O": "minecraft:obsidian",
|
||||
"E": "minecraft:ender_eye",
|
||||
"B": "minecraft:barrel"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "speed_hopper_1",
|
||||
"pattern": [
|
||||
"GRG",
|
||||
"RHR",
|
||||
"GRG"
|
||||
],
|
||||
"ingredients": {
|
||||
"G": "minecraft:gold_ingot",
|
||||
"R": "minecraft:redstone",
|
||||
"H": "minecraft:hopper"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "speed_hopper_2",
|
||||
"pattern": [
|
||||
"DRD",
|
||||
"RIR",
|
||||
"DRD"
|
||||
],
|
||||
"ingredients": {
|
||||
"D": "minecraft:diamond",
|
||||
"R": "minecraft:redstone_block",
|
||||
"I": "speed_hopper_1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "speed_hopper_3",
|
||||
"pattern": [
|
||||
"NRN",
|
||||
"RIR",
|
||||
"NRN"
|
||||
],
|
||||
"ingredients": {
|
||||
"N": "minecraft:netherite_ingot",
|
||||
"R": "minecraft:redstone_block",
|
||||
"I": "speed_hopper_2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "auto_crafter",
|
||||
"pattern": [
|
||||
"IRI",
|
||||
"RTR",
|
||||
"IDI"
|
||||
],
|
||||
"ingredients": {
|
||||
"I": "minecraft:iron_ingot",
|
||||
"R": "minecraft:redstone",
|
||||
"T": "minecraft:crafting_table",
|
||||
"D": "minecraft:dropper"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "wrench",
|
||||
"pattern": [
|
||||
"I I",
|
||||
" I ",
|
||||
" S "
|
||||
],
|
||||
"ingredients": {
|
||||
"I": "minecraft:iron_ingot",
|
||||
"S": "minecraft:stick"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dune_beacon",
|
||||
"shapeless": [
|
||||
"minecraft:beacon",
|
||||
"minecraft:ender_eye"
|
||||
],
|
||||
"notes": "Available on all six servers, including Lobby. This recipe uses a vanilla beacon; it does not replace the vanilla beacon recipe."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"sourceRepository": "unimatrix/plugins",
|
||||
"sourceCommit": "56346a273d1b014fa256d26d34b4a4e33cc1d6b5",
|
||||
"purpose": "Pinned recipe registration and supplied artwork. The ingredient-consumption follow-up does not change these definitions.",
|
||||
"purpose": "Original six recipe registrations and their supplied artwork remain pinned here. Beacon additions and Owner-requested display names have separate source pins below.",
|
||||
"files": {
|
||||
"DuneChest/src/main/java/com/example/dunechest/StorageItems.java": "41c4a853c08877ce369cb4e203332a213ccf377f982181b832c87e1993a69c79",
|
||||
"DuneChest/src/main/java/com/example/dunechest/StorageRules.java": "d7e273e01e59f297d0670e8ab7410a600e63bd4753be3dadec99f0e965666fd5"
|
||||
|
|
@ -9,25 +9,57 @@
|
|||
"icons": {
|
||||
"icons/dunechest_ender_chest.png": {
|
||||
"source": "network/resource-pack/central/overlay/assets/dunerealms/textures/block/ender_chest_front.png",
|
||||
"sha256": "88ca2f00bbf7f23fdd47ce5e0f8bc941a59d7c9bb2e5c93d6494ffb60c40b629"
|
||||
"sha256": "bb70bff5e49f84aec457110069dbc4279c159eeb264703f70b15c6ebcf1a7e6c",
|
||||
"sourceCommit": "2faba139906da15741db2702b3bed3e92ad7ee26"
|
||||
},
|
||||
"icons/dunechest_speed_hopper_1.png": {
|
||||
"source": "network/resource-pack/central/overlay/assets/dunerealms/textures/block/speed_hopper_1.png",
|
||||
"sha256": "f41ca0dfe2fe591df724c7a25b67338405e1dab6fbf1e978cf7f14b76cd73378"
|
||||
"sha256": "f41ca0dfe2fe591df724c7a25b67338405e1dab6fbf1e978cf7f14b76cd73378",
|
||||
"sourceCommit": "2faba139906da15741db2702b3bed3e92ad7ee26"
|
||||
},
|
||||
"icons/dunechest_speed_hopper_2.png": {
|
||||
"source": "network/resource-pack/central/overlay/assets/dunerealms/textures/block/speed_hopper_2.png",
|
||||
"sha256": "c6b25e755fb66984cd6d1de254c9b299a9e0279e4637bbae5491bb69be150185"
|
||||
"sha256": "c6b25e755fb66984cd6d1de254c9b299a9e0279e4637bbae5491bb69be150185",
|
||||
"sourceCommit": "2faba139906da15741db2702b3bed3e92ad7ee26"
|
||||
},
|
||||
"icons/dunechest_speed_hopper_3.png": {
|
||||
"source": "network/resource-pack/central/overlay/assets/dunerealms/textures/block/speed_hopper_3.png",
|
||||
"sha256": "fae56fa0f0f2724c0184b703b24b2787b17c63837d8d978815beb7f9f265144b"
|
||||
"sha256": "fae56fa0f0f2724c0184b703b24b2787b17c63837d8d978815beb7f9f265144b",
|
||||
"sourceCommit": "2faba139906da15741db2702b3bed3e92ad7ee26"
|
||||
},
|
||||
"icons/dunechest_wrench.png": {
|
||||
"source": "network/resource-pack/central/overlay/assets/dunerealms/textures/item/wrench.png",
|
||||
"sha256": "e9d730f7d79114a0dd4699a3b2048ba234ae2589f5eda3f217dad8a02606be7a"
|
||||
"sha256": "e9d730f7d79114a0dd4699a3b2048ba234ae2589f5eda3f217dad8a02606be7a",
|
||||
"sourceCommit": "2faba139906da15741db2702b3bed3e92ad7ee26"
|
||||
}
|
||||
},
|
||||
"recipeCount": 6,
|
||||
"iconSource": "Exact supplied wrench sprite and custom block face textures; no rarity or equipment metadata inferred."
|
||||
"recipeCount": 7,
|
||||
"iconSource": "Exact supplied wrench sprite and custom block face textures; no rarity or equipment metadata inferred.",
|
||||
"beacon": {
|
||||
"sourceCommit": "7d53eaf8f51b9100ecc10ea47cc21a3207f260d2",
|
||||
"recipe": "One vanilla beacon and one eye of ender; shapeless.",
|
||||
"files": {
|
||||
"DuneChest/src/main/java/com/example/dunechest/StorageItems.java": "ea42754c0d50520a7fea158e5802d763f5d13cedf8b46779bd2e4f0875f009c0"
|
||||
},
|
||||
"icon": {
|
||||
"path": "icons/dunechest_dune_beacon.png",
|
||||
"source": "network/resource-pack/central/overlay/assets/dunerealms/textures/block/dune_beacon_crystal.png",
|
||||
"sha256": "8365dcadc2f5c1c1f86c99f06fb2c9a60ff91882401c65693dac71d6cd829a2b",
|
||||
"presentation": "Exact crystal texture as a flat preview, not a rendered 3D item."
|
||||
}
|
||||
},
|
||||
"displayNames": {
|
||||
"authority": "Owner request, 30 November 2026",
|
||||
"items": {
|
||||
"speed_hopper_1": "Ixian sorting devices MK 1",
|
||||
"speed_hopper_2": "Ixian sorting devices MK 2",
|
||||
"speed_hopper_3": "Ixian sorting devices MK 3",
|
||||
"auto_crafter": "Ixian Replicator MK XIV",
|
||||
"dune_beacon": "Ixian Powercore MK XIV"
|
||||
},
|
||||
"sourceCommit": "2faba139906da15741db2702b3bed3e92ad7ee26",
|
||||
"files": {
|
||||
"DuneChest/src/main/java/com/example/dunechest/StorageItems.java": "1fe4be5e924ab2b2281839f567182c0baed43c83fccfb87baeb72cf78569cde7"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
BIN
website/data/cookbook/icons/dunechest_dune_beacon.png
Normal file
BIN
website/data/cookbook/icons/dunechest_dune_beacon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 332 B |
Binary file not shown.
|
Before Width: | Height: | Size: 791 B After Width: | Height: | Size: 860 B |
|
|
@ -99,6 +99,14 @@ export function recipeCatalogue() {
|
|||
recipes.push({ id: 'spice_boosted_potion', station: 'Brewing stand', inputs: [entry('imported_potion', 'Imported Potion', 'potion'), spice], output: entry('spice_boosted_potion', 'Spice-Boosted Potion', 'potion', true), amount: 1, notes: 'Brew once on Arrakis. Effect levels are multiplied by 1.25 and rounded to the nearest whole level; duration stays the same.' });
|
||||
const storage = JSON.parse(readFileSync(duneChest, 'utf8'));
|
||||
for (const recipe of storage.recipes) {
|
||||
if (recipe.shapeless) {
|
||||
if (!Array.isArray(recipe.shapeless) || !recipe.shapeless.length || recipe.shapeless.length > 9) throw Error('Invalid shapeless DuneChest recipe');
|
||||
const inputs = recipe.shapeless.map(ingredient => item(ingredient));
|
||||
recipes.push({id: 'dunechest_' + recipe.id, station: crafting, inputs,
|
||||
grid: Array.from({length: 9}, (_, index) => inputs[index] ?? null),
|
||||
output: storage.items[recipe.id], amount: 1, shaped: false, notes: recipe.notes});
|
||||
continue;
|
||||
}
|
||||
if (recipe.pattern.length !== 3 || recipe.pattern.some(row => row.length !== 3)) throw Error('Invalid DuneChest crafting grid');
|
||||
const grid = recipe.pattern.flatMap(row => [...row].map(symbol => {
|
||||
if (symbol === ' ') return null;
|
||||
|
|
@ -109,7 +117,7 @@ export function recipeCatalogue() {
|
|||
}));
|
||||
recipes.push({id: 'dunechest_' + recipe.id, station: crafting, inputs: grid.filter(Boolean), grid,
|
||||
output: storage.items[recipe.id], amount: 1, shaped: true,
|
||||
notes: 'Available on Arrakis, Caladan, Giedi Prime, Kaitain and Sigmadraken IV. Not installed on Lobby.'});
|
||||
notes: 'Available on all six servers, including Lobby.'});
|
||||
}
|
||||
for (const recipe of recipes) {
|
||||
if (foodIds.has(recipe.output.id)) {
|
||||
|
|
|
|||
|
|
@ -4,17 +4,30 @@ import {readFileSync} from 'node:fs';
|
|||
import {createHash} from 'node:crypto';
|
||||
import {recipeCatalogue,recipeIcons} from '../scripts/recipe-catalogue.mjs';
|
||||
|
||||
test('DuneChest cookbook preserves shaped gaps, exact custom upgrade ingredients and all six outputs',()=>{
|
||||
test('DuneChest cookbook preserves shaped gaps, exact custom upgrade ingredients and all seven outputs',()=>{
|
||||
const all=recipeCatalogue(),recipes=all.filter(r=>r.id.startsWith('dunechest_'));
|
||||
assert.equal(recipes.length,6);assert.equal(new Set(recipes.map(r=>r.output.id)).size,6);
|
||||
assert.equal(recipes.length,7);assert.equal(new Set(recipes.map(r=>r.output.id)).size,7);
|
||||
const by=id=>recipes.find(r=>r.id==='dunechest_'+id);
|
||||
const wrench=by('wrench');assert.deepEqual(wrench.grid.map(i=>i?.material??null),['iron_ingot',null,'iron_ingot',null,'iron_ingot',null,null,'stick',null]);assert.equal(wrench.inputs.length,4);
|
||||
for(const [tier,previous] of [[2,1],[3,2]]){
|
||||
const upgrade=by('speed_hopper_'+tier),core=upgrade.grid[4];assert.equal(core.id,'dunechest_speed_hopper_'+previous);assert.equal(core.custom,true);assert.ok(all.some(r=>r.output.id===core.id));
|
||||
}
|
||||
assert.equal(by('ender_chest').inputs.filter(i=>i.material==='obsidian').length,7);
|
||||
for(const r of recipes){assert.equal(r.grid.length,9);assert.equal(r.amount,1);assert.equal(r.shaped,true);assert.match(r.notes,/Not installed on Lobby/);assert.equal(r.output.quality,undefined);assert.equal(r.output.equipmentMark,undefined);}
|
||||
const icons=new Map(recipeIcons(recipes));assert.equal(icons.size,5);for(const bytes of icons.values())assert.equal(bytes.subarray(0,8).toString('hex'),'89504e470d0a1a0a');
|
||||
for(const r of recipes.filter(r=>r.shaped)){assert.equal(r.grid.length,9);assert.equal(r.amount,1);assert.equal(r.shaped,true);assert.match(r.notes,/all six servers, including Lobby/);assert.equal(r.output.quality,undefined);assert.equal(r.output.equipmentMark,undefined);}
|
||||
const icons=new Map(recipeIcons(recipes));assert.equal(icons.size,6);for(const bytes of icons.values())assert.equal(bytes.subarray(0,8).toString('hex'),'89504e470d0a1a0a');
|
||||
const provenance=JSON.parse(readFileSync(new URL('../data/cookbook/dunechest-source.json',import.meta.url)));assert.equal(provenance.sourceCommit,'56346a273d1b014fa256d26d34b4a4e33cc1d6b5');assert.equal(Object.keys(provenance.files).length,2);
|
||||
for(const [path,source] of Object.entries(provenance.icons))assert.equal(createHash('sha256').update(readFileSync(new URL('../data/cookbook/'+path,import.meta.url))).digest('hex'),source.sha256);
|
||||
});
|
||||
|
||||
// This recipe must remain shapeless; the existing six shaped recipes retain their layouts.
|
||||
test('Ixian names and the beamless powercore recipe use stable custom identities',()=>{
|
||||
const recipes=recipeCatalogue(),by=id=>recipes.find(r=>r.id==='dunechest_'+id);
|
||||
for(const tier of [1,2,3])assert.equal(by('speed_hopper_'+tier).output.name,'Ixian sorting devices MK '+tier);
|
||||
assert.equal(by('auto_crafter').output.name,'Ixian Replicator MK XIV');
|
||||
const beacon=by('dune_beacon');assert.equal(beacon.output.name,'Ixian Powercore MK XIV');assert.equal(beacon.output.id,'dunechest_dune_beacon');
|
||||
assert.deepEqual(beacon.inputs.map(i=>[i.material,i.custom]),[['beacon',false],['ender_eye',false]]);
|
||||
assert.equal(beacon.shaped,false);assert.equal(beacon.grid.length,9);assert.equal(beacon.grid.filter(Boolean).length,2);assert.match(beacon.notes,/all six servers, including Lobby/);
|
||||
assert.equal(beacon.output.equipmentMark,undefined);assert.equal(beacon.output.quality,undefined);
|
||||
const provenance=JSON.parse(readFileSync(new URL('../data/cookbook/dunechest-source.json',import.meta.url)));
|
||||
assert.equal(createHash('sha256').update(readFileSync(new URL('../data/cookbook/'+provenance.beacon.icon.path,import.meta.url))).digest('hex'),provenance.beacon.icon.sha256);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff