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

Merged
Matt merged 1 commits from refactor/supplementaries-bridges-kubejs-create-api into main 2026-05-28 19:08:43 +00:00
Owner

Summary

  • Replaces the raw event.custom({type: 'create:pressing', ...}) shim with the high-level event.recipes.create.pressing(out, in) builder.
  • This was always the intended API; we could not use it before v0.27.0 because the bare event.recipes.create.* namespace did not exist until kubejs_create was added.
  • Demonstrates the value of the new mod in the v0.27.0 batch.

Test plan

  • Server restarted with refactored script; KubeJS log shows [bns/supplementaries_bridges] added flax -> string press recipe.
  • Server bound to port 25565 cleanly.
  • In-game smoke: place 2 flax under a Mechanical Press; output should be 2 string.
## Summary - Replaces the raw `event.custom({type: 'create:pressing', ...})` shim with the high-level `event.recipes.create.pressing(out, in)` builder. - This was always the intended API; we could not use it before v0.27.0 because the bare `event.recipes.create.*` namespace did not exist until `kubejs_create` was added. - Demonstrates the value of the new mod in the v0.27.0 batch. ## Test plan - [x] Server restarted with refactored script; KubeJS log shows `[bns/supplementaries_bridges] added flax -> string press recipe`. - [x] Server bound to port 25565 cleanly. - [ ] In-game smoke: place 2 flax under a Mechanical Press; output should be 2 string.
Matt added 1 commit 2026-05-28 19:08:28 +00:00
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>
Matt merged commit 5e816e1a7a into main 2026-05-28 19:08:43 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: minecraft/brass-and-sigil#45