#recipe help

32 messages · Page 1 of 1 (latest)

alpine ingot
#

sooo i´ve done this and i cannot make recipe get working c:

event.shaped(
  Item.of('minecraft:stone', 3), // arg 1: output
  [
    A: 'minecraft:gold_block',
    A: 'minecraft:gold_block',
    A: 'minecraft:gold_block',
    B: 'minecraft:gold_block',
    B: 'minecraft:apple',
    B: 'minecraft:gold_block',
    C: 'minecraft:gold_block',
    C: 'minecraft:gold_block',
    C: 'minecraft:gold_block',
  ],
  {
    A: 'minecraft:gold_block',
    B: 'minecraft:gold_block', 'minecraft:apple', //arg 3: the mapping object
    C: 'minecraft:gold_block',
  }
)
pseudo vortexBOT
#

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

old flame
#

you don't need to specify the items in the pattern part of the method, like so is correct:

event.shaped(
  Item.of('minecraft:stone', 3),
  [
    "AAA",
    "ABA",
    "AAA"
  ],
  {
    A: 'minecraft:gold_block',
    B: 'minecraft:apple'
  }
)

if the goal is to have the old op gapple recipe pattern

vocal root
plain jewel
#

stop telling people that

#

event.shaped() is preferred

vagrant geyser
#

why would they not use event.shaped??

vocal root
#

because there has no probejs support

vagrant geyser
#

-.-'

vocal root
plain jewel
jade grove
#

not sure how it is in 1.21 now

alpine ingot
alpine ingot
#

and

#

it gived me an a error

vagrant geyser
#

you need to put it inside an event

#

the game cant guess which event youre trying to use

winter lanceBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

alpine ingot
#

it is inside of event..

winter lanceBOT
#

🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.

alpine ingot
#

event.shaped(
Item.of('minecraft:enchanted_golden_apple', 1), // arg 1: output
[
"AAA",
"ABA", // arg 2: the shape (array of strings)
"AAA"
],
{
A: 'minecraft:gold_block', //arg: the mapping object´s: A B C
B: 'minecraft:apple'
}
)

old flame
#

If that's your entire file then it isn't inside of the event

alpine ingot
#

oh i am dumb

#

i forgotted

vagrant geyser
#

o.o