Appearance
helix / EnchantmentEffects
Interface: EnchantmentEffects โ
Defined in: core/values/enchantment/components.ts:29
Vanilla's enchantment effect components, named as vanilla's in camelCase.
Properties โ
ammoUse? โ
readonlyoptionalammoUse?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:35
Item parameters. 0 also makes the shot unpickable.
armorEffectiveness? โ
readonlyoptionalarmorEffectiveness?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:31
Damage parameters. 0 is no armor effect, 1 full.
attributes? โ
readonlyoptionalattributes?:AttributeEffect[]
Defined in: core/values/enchantment/components.ts:33
Attribute modifiers while the item is worn or held in its slots.
blockExperience? โ
readonlyoptionalblockExperience?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:37
Item parameters. Experience from breaking a block.
crossbowChargeTime? โ
readonlyoptionalcrossbowChargeTime?:ValueEffect
Defined in: core/values/enchantment/components.ts:41
Seconds to charge a crossbow. Read every tick, so a change lands mid-charge.
crossbowChargingSounds? โ
readonlyoptionalcrossbowChargingSounds?:object[]
Defined in: core/values/enchantment/components.ts:39
Sounds while charging, one entry per level.
end? โ
optionalend?:SoundRef
mid? โ
optionalmid?:SoundRef
start? โ
optionalstart?:SoundRef
damage? โ
readonlyoptionaldamage?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:43
Damage parameters.
damageImmunity? โ
readonlyoptionaldamageImmunity?:object[]
Defined in: core/values/enchantment/components.ts:45
Damage parameters. No damage at all while one matches.
requirements? โ
optionalrequirements?:Predicate
damageProtection? โ
readonlyoptionaldamageProtection?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:47
Damage parameters. Each unit is 4% less damage, up to 80%.
equipmentDrops? โ
readonlyoptionalequipmentDrops?:Conditional<ValueEffect> &object[]
Defined in: core/values/enchantment/components.ts:49
Damage parameters. Chance (0 to 1) a victim's gear drops; enchanted is who has it.
fishingLuckBonus? โ
readonlyoptionalfishingLuckBonus?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:51
Entity parameters on the fishing player.
fishingTimeReduction? โ
readonlyoptionalfishingTimeReduction?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:53
Entity parameters on the fishing player. Seconds less to wait for a bite.
hitBlock? โ
readonlyoptionalhitBlock?:Conditional<EntityEffect>[]
Defined in: core/values/enchantment/components.ts:55
Entity parameters on the entity hitting the block; for a projectile, the projectile.
itemDamage? โ
readonlyoptionalitemDamage?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:59
Item parameters. Durability used.
knockback? โ
readonlyoptionalknockback?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:57
Damage parameters.
locationChanged? โ
readonlyoptionallocationChanged?:Conditional<LocationEffect>[]
Defined in: core/values/enchantment/components.ts:61
Location parameters. Runs when the entity moves; attribute modifiers come off when it stops matching.
mobExperience? โ
readonlyoptionalmobExperience?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:63
Entity parameters on the killed mob.
postAttack? โ
readonlyoptionalpostAttack?:Targeted<EntityEffect>[]
Defined in: core/values/enchantment/components.ts:65
Damage parameters.
postPiercingAttack? โ
readonlyoptionalpostPiercingAttack?:Conditional<EntityEffect>[]
Defined in: core/values/enchantment/components.ts:67
1.21.11+. Damage parameters; the effect lands on the attacker.
preventArmorChange? โ
readonlyoptionalpreventArmorChange?:true
Defined in: core/values/enchantment/components.ts:69
The item can't be taken out of an armor slot.
preventEquipmentDrop? โ
readonlyoptionalpreventEquipmentDrop?:true
Defined in: core/values/enchantment/components.ts:71
The item isn't dropped on death.
projectileCount? โ
readonlyoptionalprojectileCount?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:73
Entity parameters on the one drawing. Projectiles past the first can't be picked up.
projectilePiercing? โ
readonlyoptionalprojectilePiercing?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:75
Item parameters on the ammunition. Entities a shot passes through.
projectileSpawned? โ
readonlyoptionalprojectileSpawned?:Conditional<EntityEffect>[]
Defined in: core/values/enchantment/components.ts:77
Entity parameters on the newly fired projectile.
projectileSpread? โ
readonlyoptionalprojectileSpread?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:79
Entity parameters on the shooter. Degrees from the aim line.
repairWithXp? โ
readonlyoptionalrepairWithXp?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:81
Item parameters. Durability per experience point; Mending uses 2.
smashDamagePerFallenBlock? โ
readonlyoptionalsmashDamagePerFallenBlock?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:83
Damage parameters. A mace smash's damage per block fallen.
tick? โ
readonlyoptionaltick?:Conditional<EntityEffect>[]
Defined in: core/values/enchantment/components.ts:85
Entity parameters on the holder. Every tick.
tridentReturnAcceleration? โ
readonlyoptionaltridentReturnAcceleration?:Conditional<ValueEffect>[]
Defined in: core/values/enchantment/components.ts:87
Entity parameters on the trident.
tridentSound? โ
readonlyoptionaltridentSound?:SoundRef[]
Defined in: core/values/enchantment/components.ts:91
The throw sound, one entry per level.
tridentSpinAttackStrength? โ
readonlyoptionaltridentSpinAttackStrength?:ValueEffect
Defined in: core/values/enchantment/components.ts:89
Above 0 makes a trident a spin attack instead of a throw.