KubeJS (Old)

KubeJS (Old)

3M Downloads

SoundType being weird

AnAwesomGuy opened this issue ยท 0 comments

commented

Minecraft Version

1.18.2

KubeJS Version

1802.5.5-build.569

Rhino Version

1802.2.1-build.255

Architectury Version

4.11.89

Forge/Fabric Version

Fabric 0.14.14

Describe your issue

using

onEvent('block.modification', event => {
    event.modify('crafting_table', block => {
        block.soundType = 'STONE'
        block.destroySpeed = 3
        block.explosionResistance = 3
        block.material = 'stone'
    })
})

fails with

Error occurred while handling event 'block.modification': Cannot convert STONE to net.minecraft.class_2498 (startup_scripts:blocks.js#3)

https://lexxie.site/forge-javadocs/1.18.2/net/minecraft/world/level/block/SoundType.html#STONE

Crash report/logs

No response