Skip to main content

Block Modification

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

onEvent('item.block.modification', event => {
  event.modify('minecraft:ender_pearl'stone', itemblock => {
    item.maxStackSizeblock.destroySpeed = 640.1
    item.fireResistantblock.hasCollision = truefalse
  })
})

All available properties:

  • intString maxStackSizematerial
boolean hasCollision float destroySpeed float explosionResistance boolean randomlyTicking String soundType float friction float speedFactor float jumpFactor int maxDamage int burnTime String craftingReminderlightEmission boolean fireResistant Rarity rarity tier = tierOptions => {
    int uses float speed float attackDamageBonus int level int enchantmentValue Ingredient repairIngredientrequiredTool } foodProperties = food => { // note: uses functions instead of a = b
      hunger(int) saturation(float) meat(boolean) alwaysEdible(boolean) fastToEat(boolean) effect(String effectId, int duration, int amplifier, float probability) removeEffect(String effectId) }