Block Modification

block.modification event is a startup script event that allows you to change properties of existing blocks

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

All available properties:

  • String material
  • boolean hasCollision
  • float destroySpeed
  • float explosionResistance
  • boolean randomlyTicking
  • String soundType
  • float friction
  • float speedFactor
  • float jumpFactor
  • int lightEmission
  • boolean requiredTool

Revision #2
Created Wed, Aug 25, 2021 7:39 AM by LatvianModder
Updated Thu, Sep 23, 2021 11:02 PM by LatvianModder