#How do I use Create: Kubejs?

20 messages · Page 1 of 1 (latest)

untold valve
#

I have edited this example from the curseforge page but it gives the error ReferenceError: "event" is not defined

  'minecraft:paper',
  Fluid.of('create_enchantment_industry:ink', 200)
])```
lucid solsticeBOT
#

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

coarse bolt
#

do you have event defined anywhere? Are you using StartupEvents.registry?

untold valve
#

sorry, I don't have much experience with this at all

coarse bolt
#

no worries xD

untold valve
#

how do I define an event?

coarse bolt
#

i was wrong, its this:


ServerEvents.recipes(event => {
  event.recipes.createFilling......
})
#

you always have to have some sort of trigger, for this its ServerEvents.recipes

#

then you define the event, with event => {}

#

you could technically do anything right there, i always use just e

untold valve
#

okay, I'll try that

coarse bolt
#

so ServerEvents.recipes(e=>{})

untold valve
#

oh ic

#

and then you'd do e.recipes.createFilling......

coarse bolt
#

Yeah

untold valve
#

oh wow, it worked!

#

thx a bunch

untold valve
#

1 more question, how do I make the output multiple?

#

nvm, I figured it out, thx again