#Create an Item

6 messages · Page 1 of 1 (latest)

elfin valve
#

in kubejs for mc 1.18 it was done like this.

onEvent('item.registry', event => {
 
    event.create('tiny_coal').burnTime(200).maxStackSize(64);
    event.create('tiny_charcoal').burnTime(200).maxStackSize(64);
  
  })

how is it done in 1.19?

digital forgeBOT
#

Once your question has been answered, please close this post with </resolve:1050379261372006400> command!

jagged nebulaBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:
```js
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
```
As an example, this will look like such:

onEvent('recipes', e => {
  e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
tawdry magnet
#

even specifically has an example for how item registry changed

elfin valve
#

thanks