#How to make a craft where at the end you get filled FE battery?

22 messages · Page 1 of 1 (latest)

waxen kestrel
#

Hello, I want to make a recipe that allows you to get full FE battery from discharged one . The problem is that they both have the same name. How can I specify the amount of charge in battery during the craft?

rustic iglooBOT
#

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

hot lichen
#

get the charged battery in your hand

#

use command "/kubejs hand". Use the output instead of item id in the recipe

waxen kestrel
#

Ok, I will try thank you.

waxen kestrel
#

Hello, can you help me please ? it doesnt work

rustic iglooBOT
waxen kestrel
#

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

hot lichen
#

Oh in custom recipes its different

open tideBOT
#

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)
})
hot lichen
#
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

waxen kestrel
#

ok

#

it works but it is still discharged

hot lichen
#

Um I left ' in there

#

Edited the message

#

Try again

waxen kestrel
#

It works!! thank you so much

rustic iglooBOT
waxen kestrel
#

It crashed