Paste #118588: script

Date: 2023/12/15 11:29:44 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Screaming_Blade:
    type: item
    debug: false
    material: netherite_sword
    display name: "<red>Screaming Blade"

    mechanisms:
        hides: all
        attribute_modifiers:
            generic_attack_damage:
                1:
                    operation: add_number
                    amount: 13
                    slot: hand
    recipes:
        1:
            type: shaped
            input:
                - air|redstone_block|air
                - potato|netherite_sword|potato
                - air|redstone_block|air
    lore:
    - "<blue>Combat"
    - ""
    - "<dark_red>The sword of life consumption!!!"
    - ""
    - "<dark_red><bold>GIVES TEMPORARY HEALTH BOOST ON PLAYER KILL!!!"

Screaming_Blade_Script:
  type: world
  events:
    after player damages player with:screaming_blade:
    - stop if:<context.entity.is_spawned>
    - cast health_boost duration:30s amplifier:4 hide_particles no_ambient no_icon
    - cast regeneration duration:8s amplifier:4 hide_particles no_ambient no_icon

Triple_Strike_Sword:
    type: item
    debug: false
    material: diamond_sword
    display name: "<green>Triple Strike Sword"

    mechanisms:
        hides: all
        attribute_modifiers:
            generic_attack_damage:
                1:
                    operation: add_number
                    amount: 9
                    slot: hand
    recipes:
        1:
            type: shaped
            input:
                - air|diamond_sword|air
                - diamond_sword|netherite_sword|diamond_sword
                - air|diamond_sword|air
    lore:
    - "<blue>Combat"
    - ""
    - "<dark_green><bold>RIGHT CLICK TO DO 3 STRIKES OF DAMAGE TO OPPONENT."


Triple_Strike_Sword_Script:
  type: world
  events:
    on player damages entity with:triple_strike_sword:
    - flag <context.damager> triple_strike_sword_last_hit:<context.entity>
    on player right clicks block with:triple_strike_sword:
      - if !<player.has_flag[triple_strike_sword_cooldown]>:
        - flag item triple_strike_sword_cooldown:false
        - hurt 9 <player.flag[triple_strike_sword_last_hit]>
        - wait 0.25
        - hurt 9 <player.flag[triple_strike_sword_last_hit]>
        - wait 0.25
        - hurt 9 <player.flag[triple_strike_sword_last_hit]>
        - wait 4.5s
        - flag item triple_strike_sword_cooldown:true

Mining_Drill :
    type: item
    debug: false
    material: netherite_pickaxe
    display name: "<yellow>Mining Drill"


    mechanisms:
        hides: all
        attribute_modifiers:
            generic_attack_speed:
                1:
                    operation: add_number
                    amount: 50
                    slot: hand
    recipes:
        1:
            type: shaped
            input:
                - air|redstone_block|air
                - potato|netherite_sword|potato
                - air|redstone_block|air
    lore:
    - "<blue>Combat"
    - ""
    - "<dark_blue><bold>RIGHT CLICK FOR TEMPORARY MINING BOOST!!!"
Mining_Drill_Script:
  type: world
  events:
    - define drillSpeed:0
    after player right clicks block with:mining_drill:
        - define drillSpeed:++
        - cast fast_digging duration:10s amplifier:drillSpeed