Block Modification
event is a startup script event that allows you to change properties of existing item.block.modificationitemsblocks
onEvent('item.block.modification', event => {
event.modify('minecraft:ender_pearl'stone', itemblock => {
item.maxStackSizeblock.destroySpeed = 640.1
item.fireResistantblock.hasCollision = truefalse
})
})
All available properties:
intStringmaxStackSizematerial- boolean hasCollision
- float destroySpeed
- float explosionResistance
- boolean randomlyTicking
- String soundType
- float friction
- float speedFactor
- float jumpFactor
- int
maxDamage int burnTimeString craftingReminderlightEmission- boolean
fireResistant Rarity raritytier = tierOptions => {int usesfloat speedfloat attackDamageBonusint levelint enchantmentValueIngredient repairIngredientrequiredTool
}foodProperties = food => { // note: uses functions instead of a = bhunger(int)saturation(float)meat(boolean)alwaysEdible(boolean)fastToEat(boolean)effect(String effectId, int duration, int amplifier, float probability)removeEffect(String effectId)
}