#How to make a craft where at the end you get filled FE battery?
22 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
get the charged battery in your hand
use command "/kubejs hand". Use the output instead of item id in the recipe
Ok, I will try thank you.
Ticket re-opened!
Hello, can you help me please ? it doesnt work
Ticket re-opened!
event.custom({
"type": "tfmg:polarizing",
"ingredients": [
{
"item": "scguns:advanced_exo_suit_core"
}
],
"results": [
{
"item": "Item.of('scguns:advanced_exo_suit_core', '{Energy:60000}')"
}
]
}
)
If I try to delete "item": at start it doesnt work
Oh in custom recipes its different
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
event.custom({
"type": "tfmg:polarizing",
"ingredients": [
{
"item": "scguns:advanced_exo_suit_core"
}
],
"results": [
{
"item":'scguns:advanced_exo_suit_core',
"nbt": "{Energy:60000}"
}
]
}
)
Try like this
It works!! thank you so much
Ticket closed!
It crashed