#can i make some thing like this
67 messages · Page 1 of 1 (latest)
You can add, remove and modify recipes with KubeJS, and the wiki has a page on that!
I think he was referring to needing multiple items in a singular input slot
(ex 8 iron ingot)
iirc thats done with a custom mod, but yea, you can make custom recipes like that via
event.custom
I could provide more help if i knew what mod that added
can you help me more
I could provide more help if i knew what mod that added
what do you mean ?
its called
medevel saige machines
can you give me more info about event.custom
Look at the recipes how the mod does it and use that datapack format inside an event.custom
??kjswiki
You can add, remove and modify recipes with KubeJS, and the wiki has a page on that!
this code goes into server_scripts ?
onEvent("recipes", event => {
event.custom({
"type": "siegemachines:siege_workbench",
"pattern": [
"i i",
"ioi",
" s "
],
"key": {
"s": {
"item": "minecraft:string",
"count": 1
},
"i": {
"tag": "forge:ingots/iron",
"count": 2
},
"o": {
"tag": "forge:ingots/iron",
"count": 1
}
},
"result": {
"item": "siegemachines:barrel",
"count": 1
}
})
})```
Should be something like this
?
ok thx
if i want to add more i will just copy the code and best it ender the ) right ?
from even.custom to ) right ?
I'm not at home so I can't help u with that atm
Paste version of giant_arrow.json, mortar.json, trebuchet.json, turret_base.json, wheel.json from @steady light
this is the items i want to add crafting recpis of it
// priority: 0
settings.logAddedRecipes = true
settings.logRemovedRecipes = true
settings.logSkippedRecipes = false
settings.logErroringRecipes = true
console.info('Hello, World! (You will see this line every time server resources reload)')
onEvent('recipes', event => {
// Change recipes here
})
onEvent('item.tags', event => {
// Get the #forge:cobblestone tag collection and add Diamond Ore to it
// event.get('forge:cobblestone').add('minecraft:diamond_ore')
// Get the #forge:cobblestone tag collection and remove Mossy Cobblestone from it
// event.get('forge:cobblestone').remove('minecraft:mossy_cobblestone')
})
can you help me with that error ?
hello ?
I dont know what u need help with, i already told you everything
heres another example on how u could do it
onEvent('recipes', event => {
event.remove({id: 'minecraft:furnace'})
event.custom(
{
"type": "siegemachines:siege_workbench",
"pattern": [
"CCC",
"C C",
"CCC"
],
"key": {
"C": {
"item": "minecraft:cobblestone",
"count": 8
}
},
"result": {
"item": "minecraft:furnace",
"count": 1
}
}
)
})
its not working
Paste version of message.txt from @steady light
and this kubejs logs
Paste version of message.txt from @steady light
i think the error came from the siage bensh it self so can you give me a mod that add me a crafting table that can add more then one item in it ?
listen, i tested the script above just fine with just KubeJS and the Medieval Siege Machines mod
if u cannot get that to work, im sorry but i cannot help you.
same
what ? 1.18.2 ?
can you give me the Medieval Siege Machines ver
1.10 ?
when
lol i didn't find this ver can you plz upload it to me ?
please
ok thx
@steady light Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!
@steady light Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!
@steady light Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!
@steady light Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

