kubejs: use kubejs-create builder API for flax press recipe

Now that v0.27.0 ships kubejs_create, the high-level
event.recipes.create.pressing(out, in) builder works, replacing the
raw event.custom({type: 'create:pressing', ...}) JSON shim we needed
before.

Verified live on the server -- recipe loads cleanly:
[bns/supplementaries_bridges] added flax -> string press recipe

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Matt
2026-05-28 18:55:43 +00:00
parent 847ca460ff
commit d2cc179ebd
@@ -20,14 +20,12 @@ ServerEvents.recipes(event => {
// 2 flax pressed -> 1 string. Cheaper than wool->4 string but // 2 flax pressed -> 1 string. Cheaper than wool->4 string but
// requires a Press (kinetic infrastructure) -- balanced. // requires a Press (kinetic infrastructure) -- balanced.
// //
// KubeJS's event.recipes.create.pressing(out, in) signature // Uses the kubejs_create mod's builder API (added in pack v0.27.0).
// doesn't match Create 6.x's two-arg form, so build the recipe // Before that, the bare event.recipes.create.pressing() signature
// via custom() with the raw JSON schema. // didn't match Create 6.x's recipe shape and we had to use a raw
event.custom({ // event.custom({type: 'create:pressing', ...}) call.
type: 'create:pressing', event.recipes.create.pressing('2x minecraft:string', 'supplementaries:flax')
ingredients: [{ item: 'supplementaries:flax' }], .id('bns:press_flax_to_string');
results: [{ id: 'minecraft:string', count: 2 }],
}).id('bns:press_flax_to_string');
console.info('[bns/supplementaries_bridges] added flax -> string press recipe'); console.info('[bns/supplementaries_bridges] added flax -> string press recipe');
}); });