#Custom Event Mod Recipe not working.

4 messages · Page 1 of 1 (latest)

snow ocean
#

I have tried trouble shooting and cant seem to find a solution. My script

 event.custom({
  type: 'minecraft:anvil_repair',
  baseItem: 'kubejs:sun_stone_helmet'
  repairItem: [{Item.of('pixelmon:sun_stone')}]
  })
})```
My error code
```20:46:14] [ERROR] !   repairItem: [{Item.of('pixelmon:sun_stone')}]#22: missing } after property list
[20:46:14] [ERROR] ! …rhino.EvaluatorException: missing } after property list (server_scripts:pixelmon_armor_replacements.js#22)```
And working .json version of recipe.
```{
  "type": "minecraft:anvil_repair",
  "baseItem": "kubejs:sun_stone_helmet"
  "repairItem": {
    "item": "pixelmon:sun_stone"
  }
}```
exotic mirageBOT
#

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

dapper marsh
#
ServerEvents.recipes(event => {
 event.custom({
  type: 'minecraft:anvil_repair',
  baseItem: 'kubejs:sun_stone_helmet'
  repairItem: Item.of('pixelmon:sun_stone')
  })
})
snow ocean
#

Ah shoot was hoping to take it down before someone replied but everyone here is one the ball lol found this works as well just before you answered. I appreciate it though!

 event.custom({
  type: 'minecraft:anvil_repair',
  baseItem: 'kubejs:sun_stone_helmet',
  repairItem: 'pixelmon:sun_stone'
  })
})```