#custom machine output custom machine
16 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
supposedly I take the ID through /kubejs hand and make it an output, it won’t be output
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
like this?
almost, you need to add commas at the end of each of the lines and also remove the " before the { and th )" after the }
This? (I just didn't really understand)
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.
he mean send code like it js ur code here
{ "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" } ] }
Use ```
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)
})
{
"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"
}
]
}