-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f145f7d
commit a3fbcca
Showing
6 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
// priority 100 | ||
|
||
let registerAe2ChargerSchema = (/** @type {Internal.RecipeSchemaRegistryEventJS} */ event) => { | ||
const keys = global.schemas.keys | ||
const chargerSchema = new $RecipeSchema( | ||
keys.ingredient, | ||
keys.result | ||
) | ||
event.namespace("ae2").register("charger", chargerSchema) | ||
} | ||
const keys = global.schemas.keys | ||
const chargerSchema = new $RecipeSchema(keys.result, keys.ingredient) | ||
event.namespace("ae2").register("charger", chargerSchema) | ||
} | ||
|
||
/* | ||
Tests used: | ||
ae2.charger("gtceu:netherrack_plutonium_ore", "#create:sandpaper") | ||
.id("gregitas:charger/test/0") | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// priority 100 | ||
|
||
let registerAe2InscriberSchema = (/** @type {Internal.RecipeSchemaRegistryEventJS} */ event) => { | ||
const keys = global.schemas.keys | ||
const inscriberSchema = new $RecipeSchema(keys.result, keys.inscriber_ingredients, keys.inscriber_mode) | ||
.constructor(breakdownInput, keys.result, keys.inscriber_middle) | ||
.constructor(breakdownInput, keys.result, keys.inscriber_middle, keys.inscriber_top) | ||
.constructor(breakdownInput, keys.result, keys.inscriber_middle, keys.inscriber_top, keys.inscriber_bottom) | ||
event.namespace("ae2").register("inscriber", inscriberSchema) | ||
} | ||
|
||
/* | ||
Tests used: | ||
ae2.inscriber("acacia_boat", "#ae2:all_certus_quartz") | ||
.id("gregitas:inscriber/test/0") | ||
ae2.inscriber("oak_boat", "minecraft:stone", "minecraft:apple").mode("inscribe") | ||
.id("gregitas:inscriber/test/1") | ||
ae2.inscriber("dark_oak_boat", "minecraft:carrot", "minecraft:beef", "minecraft:cooked_rabbit").mode("press") | ||
.id("gregitas:inscriber/test/2") | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters