#Hi i'm new to kubejs and need help with this recipe code?

7 messages · Page 1 of 1 (latest)

storm glen
#
    event.shaped(
        Item.of('sophisticatedbackpacks:backpack', 1),
        [
            'A B A',
            'A C A',
            'D D D'
        ],
        {
            A: 'farmersdelight:rope',
            B: 'minecraft:leather',
            C: 'minecraft:chest',
            D: 'minecrafte:white_wool'
        }
    )

})```

It should make the backpack, but it doesn't.
trail trailBOT
#

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

storm glen
#

btw this is my first ever attempt with shaped recipes so something dumb is prolly going on

ornate quartz
#
ServerEvents.recipes(event => {
  event.shaped('sophisticatedbackpacks:backpack', [
    'ABA',
    'ACA',
    'DDD'
  ], {
    A: 'farmersdelight:rope',
    B: 'minecraft:leather',
    C: 'minecraft:chest',
    D: 'minecrafte:white_wool'
  })
})
#

spaces count as a slot with no item in it

#

so your original recipe was a 5x3 crafting grid

storm glen
#

oh alr thx