#Create mixer not loading

25 messages · Page 1 of 1 (latest)

modern bison
#

If there is a syntax error Im so sorry I just can't find it.

`event.custom({
type: 'create:mixing',
ingredients: [
Ingredient.of('minecraft:coal').toJson(),
Ingredient.of('minecraft:fermented_spider_eye').toJson(),
Ingredient.of('minecraft:paper').toJson()
],
results: [
Ingredient.of('firstaid:plaster').toJson()
],
processingTime: 100
})

event.custom({
type: 'create:mixing',
ingredients: [
Ingredient.of('botania:manaweave_cloth').toJson(),
Ingredient.of('minecraft:fermented_spider_eye').toJson(),
Ingredient.of('minecraft:paper').toJson()
],
results: [
Ingredient.of('firstaid:bandage').toJson()
],
processingTime: 120
})

event.custom({
type: 'create:mixing',
ingredients: [
Ingredient.of('botania:mana_bottle').toJson(),
Ingredient.of('minecraft:fermented_spider_eye').toJson(),
Ingredient.of('botania:ender_air_bottle').toJson()
],
results: [
Ingredient.of('firstaid:morphine').toJson()
],
processingTime: 150
})

`

merry cargoBOT
#

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

hard lionBOT
#

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

```js :arrow_left:

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

``` :arrow_left:

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

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

Tip: you can use KubeJS Create

hard lionBOT
#

KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.

modern bison
hard lionBOT
#

If you're working with KubeJS scripts, config files, or similar things, we generally recommend using an actual IDE rather than just Notepad++ and its various siblings.
In a lot of cases, it can help you find errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, etc!
We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

small raptor
#

It is recommended to use ProbeJS

hard lionBOT
#

ProbeJS is an addon mod for KubeJS that generates typings files for VSCode, allowing VSCode to offer autocompletions for a ton of things!

Mod by @empty needle

modern bison
inland cape
#

** Read your instructions carefully**

hard lionBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

modern bison
hard lionBOT
#

Paste version of latest.log from @modern bison

inland cape
#

Read. Your. Instructions. Carefully

hard lionBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

modern bison
hard lionBOT
#

Paste version of server.txt from @modern bison

modern bison
inland cape
#
[15:46:10] [ERR  ] Error loading KubeJS script: ReferenceError: "ServerEvents" is not defined. (server_scripts:script.js#88)
[15:48:14] [ERR  ] java.lang.IllegalStateException: Can't modify the empty stack.
[15:48:14] [ERR  ] java.lang.IllegalStateException: Can't modify the empty stack.
[15:48:14] [ERR  ] java.lang.IllegalStateException: Can't modify the empty stack.
#

Post your "script.js" here

modern bison
hard lionBOT
#

Paste version of script.js from @modern bison

inland cape
#

Okay, so:

  • ServerEvents.recipes is 1.19 only.
  • You only need 1 recipe event, you don't need one for each individual recipe.
  • On Line 81 and 94, you have an event.custom that is not inside a recipe event.