#'event' is not defined.

13 messages · Page 1 of 1 (latest)

wet bluff
#

Hello! I am trying to add a crafting recipe for the budding amethyst. I am using this script:
Event.shapeless(
Item.of('minecraft:budding_amethyst', 1),
[
'9x minecraft:amethyst_shard'
]
)
The same thing happens when "event" is lowercase. I am not sure why this happens. (Fabric, 1.19.2)

wraith pierBOT
#

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

untold hollow
#

Is that your entire script?

wet bluff
#

yes

#

do i need more?

untold hollow
#

Yeah

wet bluff
#

oops

fervent grailBOT
#

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.

wet bluff
#

thank you

untold hollow
#

No probs 🙂

#
event.shapeless(
    Item.of('minecraft:budding_amethyst'),
    [ 
      '9x minecraft:amethyst_shard'
    ]
  )
})```
This is how the script is supposed to be. Make sure to put it in `server_scripts`
wet bluff
#

thank you! i am a complete noob at this, the only programming ive touched is python

untold hollow
#

No problem! Learn some JS sometime, you'll enjoy it