#How do i get the model to update after a slice is eaten for kubejs delight pies?

11 messages · Page 1 of 1 (latest)

soft bough
#

I dont know how to update the models when a slice is eaten, and I dont know how to change the blocks noises, since rn its the wood noise instead of the cake noise.

minor canopyBOT
#

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

lethal steeple
#

If you need help, you need to provide code examples and log outputs, be sure to wrap code in code blocks.

rigid pilotBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

This example will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
soft bough
#

basically, the kubejs delight addon has a method for creating placeable pies, I made some placeable pies, I dont know how to update the model once you start eating the pie

#

I assumed the addon would just automatically take the slice models

#

and update it

#

but it doesnt, and the documentation for the addon is very sparse

soft bough
#
    event.create('pumpkin_pie', 'farmersdelight:pie')
      .hardness(0.5)
      .sliceItem('kubejs:pumpkin_pie_slice')
      .displayName('Pumpkin Pie')
      .material("cake")
    event.create('cherry_pie', 'farmersdelight:pie')
      .hardness(0.5)
      .sliceItem('kubejs:cherry_pie_slice')
      .displayName('Cherry Pie')
      .material("cake")
    event.create('mulberry_pie', 'farmersdelight:pie')
      .hardness(0.5)
      .sliceItem('kubejs:mulberry_pie_slice')
      .displayName('Mulberry Pie')
      .material("cake")
}) ```
#

this is the code for the pies, but the docs dont give any info about models