Paste #106592: Unnamed Denizen Script Paste

Date: 2023/02/26 01:52:27 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


TaserG1:
    type: item
    material: netherite_shovel
    display name: <&f>Taser
    lore:
    - <n><gray>Zap!
    - <empty>
    - <&f>Ranged Damage: +2
    - <empty>
    - <green>★☆☆☆☆
    - <green><bold>Uncommon Weapon
    flags:
      rangedamage: 2
      weapon: taser
    mechanisms:
        hides:
        - ATTRIBUTES
        - UNBREAKABLE
        - ITEM_DATA
        unbreakable: true
        attribute_modifiers:
            generic_attack_damage:
                1:
                    operation: add_number
                    amount: 5
                    slot: hand
                    id: 10000000-1000-1000-1000-100000000000

TaserAbility:
    type: world
    events:
        on player clicks block:
            - if <player.item_in_hand.advanced_matches[TaserG1]>:
                - define playerloc at:<player.location>
                - define hit at:<player.eye_location.ray_trace[range=2;ignore=<player>;fluids=true;nonsolids=true]||null>
                - if <[hit]> != null:
                    - playeffect effect:flame offset:0 at:<[playerloc].points_between[<[hit].forward[2]>].distance[0.2]>