#Error kubejs that thinks createPressing is ImmersiveEngineering

12 messages · Page 1 of 1 (latest)

ivory bramble
#

there's code, I can't figure why createPressing isn't IE but KubeJS thinks it's IE:

let inter = 'kubejs:incomplete_iron_lid'
e.recipes.createSequencedAssembly ([
item.of('kubejs:iron_lid').withChance(75.0),
item.of('kubejs:failed_iron_lid').withChance(25.0)],
'#forge:ingots/iron',[
e.recipes.createPressing(inter, inter),
e.recipes.createPressing(inter, inter),
e.recipes.createPressing(inter, inter),
e.recipes.createDeploying(inter, [inter, '4x #forge:nuggets/copper']),
e.recipes.createDeploying(inter, [inter, '4x #forge:glass_panes'])
])

left muskBOT
#

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

raw mason
#

item is capital I

#

its a class

ivory bramble
#

oh

#

hold, I just found about 2nd, it's from old code, I forgot to remove it

bleak breach
#

also i don't think you can have a space in between createSequencedAssembly and ([? i may be wrong

ivory bramble
#

oh thanks for noticing!

bleak breach
#

also, quick tip:

ivory bramble
#

all good, it's fixed, thanks for helping me, I'll close this now!

trim vaultBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:

As an example, :arrow_up: will look like this:

onEvent('recipes', e => {
  e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
ivory bramble
#

ok, I'll add this in notebook