#1.18.2 Fabric Block Modify Script not working

9 messages · Page 1 of 1 (latest)

dreamy mountain
#

I'm trying to make a script for specific blocks that makes it take longer to break for example stone, I'm using the KubeJS wiki provided script on how to change this, and yet still it crashes. Here is the script:

BlockEvents.modification(event => {
event.modify('minecraft:stone', block => {
block.destroySpeed = 0.1
block.hasCollision = false
})
})

Here is the Crash Log:

plain spokeBOT
#

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

hazy crowBOT
#

Paste version of message.txt, message.txt, message.txt from @dreamy mountain

dreamy mountain
#

Please someone help

cyan ibex
#

Looks like the event is named differently on 1.18.2 but I have absolutely no clue where to look for that

dreamy mountain
#

onEvent('block.modification', event => {
event.modify('minecraft:stone', block => {
block.destroySpeed = 0.1
block.hasCollision = false
})
})

cyan ibex
#

Ye that would probably be it