Date: 2024/01/29 17:25:31 UTC-08:00
Type: Denizen Script
Jer_DeathWeapon:
type: item
material: wooden_sword
mechanisms:
attribute_modifiers:
generic_attack_damage:
1:
operation: add_number
amount: 23
slot: hand
unbreakable: true
display name: Death Weapon
lore: "Test."
flags:
entities_hit: 0
weapon_version: 1.0
Jer_Weapon_Test_Kill_Count:
type: world
debug: true
events:
on entity killed by player:
- if <player.item_in_hand.script.name> == Jer_DeathWeapon:
- flag <context.damager.item_in_hand> entities_hit:+:1
- narrate <context.damager.item_in_hand.flag[entities_hit]>