Minor issue with Kubejs recipe reloading 1.18.2
Puggicorn opened this issue ยท 0 comments
Describe the Bug
When using Kubejs's Create addon, recipes created and modified don't reload on placed down machines
(Only tested using millstone)
When the millstone gets updated either by another create machine, or the player replacing the millstone. It works as intended
Reproduction Steps
- Place down millstone, and use a Kubejs recipe as a control
- modify Kubejs Recipe and use /reload
- Attempting to use the modified recipe results in the old recipe being used
Sample code below to make reproduction faster
// priority: 0
settings.logAddedRecipes = true
settings.logRemovedRecipes = true
settings.logSkippedRecipes = false
settings.logErroringRecipes = true
onEvent('recipes', event => {
//This example code turns dirt into a diamond
event.recipes.createMilling([
// Try modifying the below code to give 2 diamonds instead of one
Item.of('minecraft:diamond', 1),
// If the bug persists the recipe won't change until you update the millstone
], 'minecraft:dirt')
})
Expected Result
Expected result would be the millstone recipes changing without needing a block update from an outside source
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.5.0i
Minecraft Version
1.18.2
Forge Version
40.1.80
Other Mods
KubeJS / KubeJS Create and their respective API's. And JEI
Additional Context
From what I've gathered from testing, the bug appears to be caused by lack of block updates when data is changed.
(Unrelated)
Sorry if I made a mistake while filling this out, it's past 3 in the morning and I am getting exhausted