Paste #95774: kirby tool

Date: 2022/04/22 17:58:18 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link



kirby_tool:
    type: item
    debug: false
    material: pink_wool
    display name: <&d>Kirby Tool
    enchantments:
    - vanishing_curse:1
    mechanisms:
        hides: all

kirby_world:
    type: world
    debug: false
    events:
        on player right clicks block with:kirby_tool:
        - determine passively cancelled
        - wait 1t
        - foreach <player.location.forward[3].find_entities.within[5].filter[is_player.not]> as:victim:
            - if <player.can_see[<[victim]>]> && <player.eye_location.facing[<[victim]>].degrees[30,30]>:
                - adjust <player> fake_pickup:<[victim]>