#Charging Recipe with Create: crafts and addition
30 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
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.
click custom
this is thier recipe json: https://github.com/mrh0/createaddition/blob/1.20.1/src/main/resources/data/createaddition/recipes/charging/copper_block.json
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
})
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
it is working i think but in game the recipe is not there
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.
Paste version of message.txt from @signal roost
that is the right thing
Paste version of message.txt from @signal roost
its again wait im dump xD
there is a mistake in result with minecraft is wrong xD
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
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
remove the " around the number
nop not working
🗒️**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.
event.custom({
type: "createaddition:charging",
"input": {
"item": "minecraft:flint",
"count": 10
},
"result":{
"item": "minecraft:emerald",
"count": 1
},
"energy": 2222,
"maxChargeRate": 200
})
})```
could be that they don't support count
that could be