Skip to content

Commit

Permalink
feat(server_recipe_script): add extreme crafting recipes and singular…
Browse files Browse the repository at this point in the history
…ity compressor

- Implement new extreme shaped crafting recipe for 'avaritia:infinity_sword'.
- Add new compressor recipe for creating 'avaritia:singularity' from copper ingots.
- Refactor recipe script and improve recipe handling logic.
- Remove deprecated code and clean up the recipe script for better maintainability.

BREAKING CHANGE: The restructuring of the recipe system may affect existing integrations
or configurations that rely on the previous implementation.
  • Loading branch information
cnlimiter committed Jul 19, 2024
1 parent 5c4006c commit 9726790
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions example/server_recipe_script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ServerEvents.recipes(
event => {
event.custom({
type: 'avaritia:shaped_extreme_craft',//shapeless is avaritia:shapeless_extreme_craft。
pattern: [
" I ",
" III",
" III ",
" III ",
" C III ",
" CII ",
" NC ",
" N C ",
"X "
],
key: {
C: [
{item: 'avaritia:crystal_matrix_ingot'}
],
I: [
{item: 'avaritia:infinity_ingot'}
],
N: [
{item: 'avaritia:neutron_ingot'}
],
X: [
{item: 'avaritia:infinity_catalyst'}
]
},
result: {item: 'avaritia:infinity_sword'}
})
event.custom({
type: 'avaritia:compressor',
inputCount: 2000,
timeCost: 240,
ingredient: {tag: 'forge:ingots/copper'},
result: { item: 'avaritia:singularity', count: 1 , nbt: {Id: 'avaritia:copper'}}
})
console.log('Hello! The avaritia recipe event has fired!')
}
)

0 comments on commit 9726790

Please sign in to comment.