#custom machine output custom machine

16 messages · Page 1 of 1 (latest)

winter elm
#

and who knows how to make a recipe for a custom car so that the output is another car?

tawny fernBOT
#

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

winter elm
#

supposedly I take the ID through /kubejs hand and make it an output, it won’t be output

flat blaze
#

for that syntax it's a little different

#

paste the item id after "item": and then to use nbt add "nbt": and paste the nbt there

#

if this doesn't work, then the recipe type doesn't support nbt most likely

winter elm
#

like this?

flat blaze
#

almost, you need to add commas at the end of each of the lines and also remove the " before the { and th )" after the }

winter elm
#

This? (I just didn't really understand)

shadow peakBOT
#

Send your code here instead of a screenshot

It makes it easier to diagnose your code and help you fix it or make the required changes/additions.

winter elm
coral scroll
#

he mean send code like it js ur code here

winter elm
#

{ "type": "custommachinery:custom_machine", "machine": "custommachinery:fabricator", "time": 100, "requirements": [ { "type": "custommachinery:item", "item": "kubejs:spawn_creeper", "amount": 1, "mode": "input" }, { "type": "custommachinery:item", "item": "kubejs:spawn_cow", "amount": 1, "mode": "input" }, { "type": "custommachinery:item", "item": "kubejs:basic_dirt_machine_casing", "amount": 1, "mode": "input" }, { "type": "custommachinery:item", "item": "coinsje:gold_coin", "amount": 5, "mode": "input" }, { "type": "custommachinery:item", "item": "pipez:basic_upgrade", "amount": 1, "mode": "input" }, { "type": "custommachinery:item", "item": "pipez:item_pipe", "amount": 5, "mode": "input" }, { "type": "custommachinery:energy_per_tick", "amount": 1000, "mode": "input" }, { "type": "custommachinery:item", "item": "custommachinery:custom_machine_item", "nbt": "loot_fabricator", "amount": 1, "mode": "output" } ] }

shadow peakBOT
#

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)
})
winter elm
#
{
    "type": "custommachinery:custom_machine",
    "machine": "custommachinery:fabricator",
    "time": 100,
    "requirements": [
        {
            "type": "custommachinery:item",
            "item": "kubejs:spawn_creeper",
            "amount": 1,
            "mode": "input"
        },
        {
            "type": "custommachinery:item",
            "item": "kubejs:spawn_cow",
            "amount": 1,
            "mode": "input"
        },
        {
            "type": "custommachinery:item",
            "item": "kubejs:basic_dirt_machine_casing",
            "amount": 1,
            "mode": "input"
        },
        {
            "type": "custommachinery:item",
            "item": "coinsje:gold_coin",
            "amount": 5,
            "mode": "input"
        },
        {
            "type": "custommachinery:item",
            "item": "pipez:basic_upgrade",
            "amount": 1,
            "mode": "input"
        },
        {
            "type": "custommachinery:item",
            "item": "pipez:item_pipe",
            "amount": 5,
            "mode": "input"
        },
        {
            "type": "custommachinery:energy_per_tick",
            "amount": 1000,
            "mode": "input"
        },
        {
            "type": "custommachinery:item",
            "item": "custommachinery:custom_machine_item",
            "nbt": "loot_fabricator",
            "amount": 1,
            "mode": "output"
        }
    ]
}