Reduce usage of RecipeEventJS#custom

This commit is contained in:
oitsjustjose 2022-08-01 08:55:21 -05:00
commit f49b247a4c
4 changed files with 92 additions and 190 deletions

View file

@ -200,10 +200,9 @@ onEvent('recipes', event => {
event.remove({id: 'thermal:devices/tree_extractor/tree_extractor_jungle'});
event.remove({id: 'thermal:machines/press/press_dandelion_to_latex'});
event.remove({id: 'thermal:machines/press/press_vine_to_latex'});
event.custom({
type: 'thermal:tree_extractor',
trunk: 'minecraft:jungle_log',
leaves: 'minecraft:jungle_leaves',
result: Fluid.of('industrialforegoing:latex', 25).toJson(),
});
event.recipes.thermal.tree_extractor(
Fluid.of('industrialforegoing:latex', 25),
'minecraft:jungle_log',
'minecraft:jungle_leaves'
);
});