KubeJS Thermal

KubeJS Thermal

19M Downloads

Documentation: How to keep the die in the multiservo press // MC 1.16.x

7eggert opened this issue ยท 1 comments

commented

Not an issue

By default, the die in the multiservo press will get consumed.

To avoid this, do the following in kubejs/server_scripts/script.js

onEvent('recipes', event => {
event.custom({
        "type": "thermal:press",
        "input": [
                { "tag": "forge:storage_blocks/iron" },
                { "item": "appliedenergistics2:silicon_press" }
        ],
        "result": [
                {       "item": "appliedenergistics2:silicon_press",
                        "count": 1
                }
        ],
        "energy": 4000
});
})

onEvent('item.tags', event => {
var dies = event.get('thermal:crafting/dies');
dies.add("appliedenergistics2:silicon_press");
})
commented

This is now documented on this wiki page: https://mods.latvian.dev/books/kubejs/page/kubejs-thermal