#Charging Recipe with Create: crafts and addition

30 messages · Page 1 of 1 (latest)

signal roost
#

version:
1.20.1
Forge:
47.2.17

my question is how can i make a custom recipe with Tesla_charging with Kubejs?

minor orchidBOT
#

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

fathom sedgeBOT
#

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.

rich tundra
#

click custom

signal roost
#

is this right so or?

ServerEvents.recipes.custom({
type: "createaddition:charging",
"Input": {
"item": "minecraft:flint",
"count": "5"
},
"result":{
"item": "mineraft:emerald",
"count": 1
},
"energy": 2000,
"maxChargeRate": 300
})

rich tundra
#

no

#
ServerEvents.recipes(event => {
  event.custom({
    type: "createaddition:charging",
    "Input": {
      "item": "minecraft:flint",
      "count": "5"
    },
    "result":{
      "item": "mineraft:emerald",
      "count": 1
    },
    "energy": 2000,
    "maxChargeRate": 300
  })
})

like this

signal roost
#

it is working i think but in game the recipe is not there

fathom sedgeBOT
#

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.

signal roost
fathom sedgeBOT
#

Paste version of message.txt from @signal roost

rich tundra
#

you've written 'mineraft:diamond'

#

missing a c

signal roost
fathom sedgeBOT
#

Paste version of message.txt from @signal roost

signal roost
#

its again wait im dump xD

signal roost
#

but now its this problem:

Error parsing recipe createaddition:kjs/4en1ezjbb7n8ks5ra26u7cq18[createaddition:charging]: {"type":"createaddition:charging","Input":{"item":"minecraft:flint","count":"5"},"result":{"item":"minecraft:emerald","count":2},"energy":2222,"maxChargeRate":200}: Item cannot be null

#

in the log

rich tundra
#

your I in input is uppercase

#

needs to be lowercase

signal roost
#

now its working thx XD

#

but the thing is the count is not working right because i want it that it need 5 flint to get 1 emerald but it makes evry single one too a flint

rich tundra
#

remove the " around the number

signal roost
#

nop not working

fathom sedgeBOT
#

🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.

signal roost
#
  event.custom({
    type: "createaddition:charging",
    "input": {
      "item": "minecraft:flint",
      "count": 10
    },
    "result":{
      "item": "minecraft:emerald",
      "count": 1
    },
    "energy": 2222,
    "maxChargeRate": 200
  })
})```
rich tundra
#

could be that they don't support count

signal roost
#

that could be