#crusher from IE to make the create's crushed ores into 2 IE dusts.

30 messages · Page 1 of 1 (latest)

dusty tusk
#

ServerEvents.recipes(event => {
event.recipes.immersiveengineering.crusher("immersiveengineering:dust_iron" ,"create:crushed_raw_iron")
})

this is the code. kubejs shows no error when reloading in game but the recipie doesnt exist at all. if there is some way to fix this plz tell, i havent gone to the point of making a crusher ig so its not a big problem rn if anyone has the fix ur help is greatly appriciated.

forest pantherBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

sharp scarabBOT
#

Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.

dusty tusk
sharp scarabBOT
#

Paste version of server.log from @dusty tusk

dusty tusk
#

that version does not have the code in it this one does

sharp scarabBOT
#

Paste version of server.log from @dusty tusk

dawn mesa
#

seems to be an issue with the immersive engineering unofficial addon, as the secondaries key doesn't seem to be optional (and KubeJS IE unofficial doesn't write it to the json always), report to the auhor of KubeJS IE Unofficial and use event.custom instead

sharp scarabBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

dawn mesa
#

click custom

dusty tusk
#

ServerEvents.recipes(event => {
event.custom({
type: 'immersiveengineering:crusher',
ingredients: [
{ item: 'create:crushed_raw_iron' }
],
result: [
{ item: 'immersiveengineering:dust_iron', count: 2 }
]
})
})

#

i used this but i cant congigure energy or time but idc about that it just doesnt work

#

it says kubejs loaded with no errors but the recipie just doesnt exist

#

i also tried to do this using replace input

#

ServerEvents.recipes(event => {
event.replaceInput(
{ input: 'immersiveengineering:crusher/ore_iron' }, // Arg 1: the filter
'minecraft:raw_iron', // Arg 2: the item to replace
'create:crushed_raw_iron' // Arg 3: the item to replace it with
)
})

#

it didnt work idk why maybe modded recipies doesnt work with it but i doubt that

dawn mesa
#

yeah it's right that moded recipes don't work with replaceInput /Output when there's no addon support

dawn mesa
dawn mesa
sharp scarabBOT
#

Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.

dawn mesa
#

also

sharp scarabBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

This example will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
dusty tusk
sharp scarabBOT
#

Paste version of server.log from @dusty tusk

dawn mesa
#

the problem is that you have an ingredients key instead of an input key like immsiveengineering needs.

event.custom({
  type: 'immersiveengineering:crusher',
  energy: 3200,
  input: {
    item: 'create:crushed_raw_iron'
  },
  result: { 
    item: 'immersiveengineering:dust_iron', 
    count: 2 
  },
  secondaries: []
})

this is the actual json that is required

dusty tusk
#

oh that makes sense let me try that real quick

#

i have had a headache for a week now bro im doing sum weird shit

#

god damm it works now thank you.

#

and i can change the energy requirements god thats nice