Hi all, I am trying to make a custom pizza block, with the following properties:
- The pizza must be placed and eaten slice by slice, similar to a cake.
- Breaking the item, regardless of tool, drops nothing
- The number of slices should be customizable
- The nutritional value of the slices should be customizable
Following this post: (#1184426569012351017 message) I can make a cake, but I can't figure out how to change the number of "slices" or "bites"; it looks like it just copies the exact properties of the vanilla minecraft cake.
(Also, on 1.20.1, it appears that using .tab() on $ItemProperties causes an error
§7dev.latvian.mods.rhino.EcmaError: TypeError: Cannot find function tab in object net.minecraft.world.item.Item$Properties@73c6ae9d. (startup_scripts:pizza.js#20)```
that I believe may be related to this change: (https://stackoverflow.com/questions/76941006/minecraft-forge-item-properties-tab-method-cannot-be-resolved). )
I am aware that the addon KubeJS Delight allows for custom Farmer's Delight pie-type foods, but the documentation doesn't show any way to change the number of slices or the nutritional value of each slice.
Does anyone know: what would be the best way to go about this?

