#KubeJS Ars Nouveau Enchanting Apparatus - increase output count

7 messages · Page 1 of 1 (latest)

cerulean stump
#

In the provided example script below, how would I change this to output 2 TNT blocks instead of 1?

event.recipes.ars_nouveau.enchanting_apparatus(
[
"minecraft:sand",
"minecraft:sand",
"minecraft:sand",
"minecraft:sand",
], // input items
"minecraft:gunpowder", // reagent
"minecraft:tnt", // output
1000, // source cost
// true // keep nbt of reagent, think like a smithing recipe
)

shadow orioleBOT
#

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

surreal hollyBOT
#

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)
})
split marsh
#

Someone correct me if I’m wrong but wouldn’t "2x minecraft:tnt" work here?

rough grail
#

Try using:

  • '2x minecraft:tnt'
  • Item.of('minecraft:tnt', 2)
cerulean stump
#

You are correct, thanks!

#

For future searchers, the solution is:

ServerEvents.recipes(event => {
event.recipes.ars_nouveau.enchanting_apparatus(
[
"minecraft:sand",
"minecraft:sand",
"minecraft:sand",
"minecraft:sand",
], // input items
"minecraft:gunpowder", // reagent
"2x minecraft:tnt", // output
200, // source cost
)
})