Paste #135141: Umbrella

Date: 2025/07/26 23:55:12 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


umbrella_closed:
    type: item
    debug: false
    material: stick
    mechanisms:
        custom_model_data: 1
    display name: <&7>Свёрнутый зонт
    lore:
    - <&7>ПКМ чтобы раскрыть
    recipes:
        1:
            type: shaped
            input:
            - air|white_wool,orange_wool,magenta_wool,light_blue_wool,yellow_wool,lime_wool,pink_wool,gray_wool,light_gray_wool,cyan_wool,purple_wool,blue_wool,brown_wool,green_wool,red_wool,black_wool|white_wool,orange_wool,magenta_wool,light_blue_wool,yellow_wool,lime_wool,pink_wool,gray_wool,light_gray_wool,cyan_wool,purple_wool,blue_wool,brown_wool,green_wool,red_wool,black_wool
            - air|stick|white_wool,orange_wool,magenta_wool,light_blue_wool,yellow_wool,lime_wool,pink_wool,gray_wool,light_gray_wool,cyan_wool,purple_wool,blue_wool,brown_wool,green_wool,red_wool,black_wool
            - stick|air|air

umbrella_open:
    type: item
    debug: false
    material: stick
    mechanisms:
        custom_model_data: 2
    display name: <&7>Зонт
    lore:
    - <&7>ПКМ чтобы свернуть

umbrella_toggle:
    type: world
    debug: false
    events:
        on player right clicks block with:umbrella_closed:
        - determine passively cancelled
        - take iteminhand
        - give umbrella_open
        - equip <player> hand:umbrella_open
        - playsound <player> sound:ITEM_ARMOR_EQUIP_LEATHER volume:1 pitch:1
        - playeffect effect:WATER_SPLASH at:<player.location.add[0,2,0]> offset:0.5 quantity:20
        on player right clicks block with:umbrella_open:
        - determine passively cancelled
        - take iteminhand
        - give umbrella_closed
        - equip <player> hand:umbrella_closed
        - playsound <player> sound:ITEM_ARMOR_EQUIP_LEATHER volume:1 pitch:1.5





(OR)

umbrella_closed:
    type: item
    debug: false
    material: stick
    mechanisms:
        custom_model_data: 1
    display name: <&7>Свёрнутый зонт
    lore:
    - <&7>ПКМ чтобы раскрыть
    recipes:
        1:
            type: shaped
            input:
            - air|wool|wool
            - air|stick|wool
            - stick|air|air

umbrella_open:
    type: item
    debug: false
    material: stick
    mechanisms:
        custom_model_data: 2
    display name: <&7>Зонт
    lore:
    - <&7>ПКМ чтобы свернуть

umbrella_toggle:
    type: world
    debug: false
    events:
        on player right clicks block with:umbrella_closed:
        - determine passively cancelled
        - take iteminhand
        - give umbrella_open
        - equip <player> hand:umbrella_open
        - playsound <player> sound:ITEM_ARMOR_EQUIP_LEATHER volume:1 pitch:1
        - playeffect effect:WATER_SPLASH at:<player.location.add[0,2,0]> offset:0.5 quantity:20
        on player right clicks block with:umbrella_open:
        - determine passively cancelled
        - take iteminhand
        - give umbrella_closed
        - equip <player> hand:umbrella_closed
        - playsound <player> sound:ITEM_ARMOR_EQUIP_LEATHER volume:1 pitch:1.5