###### MIECZE ####### mieczendermana: type: item material: netherite_sword display name: <&gradient[from=#B148BC;to=#93419B]>KATANA KRESU mechanisms: unbreakable: true custom_model_data: 6370001 enchantments: - sharpness:6 - unbreaking:3 - fire_aspect:2 mieczzatrucia: type: item material: netherite_sword display name: <&gradient[from=#43A727;to=#54D231]>ZATRUTY MIECZ mechanisms: unbreakable: true custom_model_data: 6370002 enchantments: - sharpness:6 - unbreaking:3 - fire_aspect:2 ### EVENTY DZIAŁANIE EVENTOWEK eventowki: type: world events: ### MIECZ ENDERMANA on player right clicks block with:mieczendermana: - if !: - if !: - define countdown_time 60 - flag mieczcooldown expire:<[countdown_time]>s - itemcooldown netherite_sword d:<[countdown_time]>s - run skill_mieczendermana - repeat <[countdown_time]>: - if : - stop - else: - actionbar "<&gradient[from=#B148BC;to=#93419B]>KATANA KRESU » (Odnowi się za: <[countdown_time]>s)" targets: - define countdown_time <[countdown_time].sub[1]> - wait d:1s - else if : - define countdown_time 60 - flag mieczcooldown expire:<[countdown_time]>s - itemcooldown netherite_sword d:<[countdown_time]>s - run skill_mieczendermana - repeat <[countdown_time]>: - actionbar "<&gradient[from=#B148BC;to=#93419B]>KATANA KRESU » (Odnowi się za: <[countdown_time]>s) | <&gradient[from=#43A727;to=#54D231]>ZATRUTY MIECZ » (Odnowi się za: <[countdown_time]>s)" targets: - define countdown_time <[countdown_time].sub[1]> - wait d:1s - actionbar "<&gradient[from=#B148BC;to=#93419B]>KATANA KRESU » (Odnowi się za: TERAZ) | <&gradient[from=#43A727;to=#54D231]>ZATRUTY MIECZ » (Odnowi się za: TERAZ)" targets: ### MIECZ ZATRUCIA on player damages player with:mieczzatrucia: - flag mieczzatrucia_last_hit: - if : - if !: - if !: - define countdown_time2 60 - flag mieczcooldownzatrucia expire:<[countdown_time2]>s - itemcooldown netherite_sword d:<[countdown_time2]>s - inject skill_mieczzatrucia - repeat <[countdown_time2]>: - if : - stop - else: - actionbar "<&gradient[from=#43A727;to=#54D231]>ZATRUTY MIECZ » (Odnowi się za: <[countdown_time2]>s)" targets: - define countdown_time2 <[countdown_time2].sub[1]> - wait d:1s - else if : - define countdown_time2 60 - flag mieczcooldownzatrucia expire:<[countdown_time2]>s - itemcooldown netherite_sword d:<[countdown_time2]>s - inject skill_mieczzatrucia - repeat <[countdown_time2]>: - actionbar "<&gradient[from=#B148BC;to=#93419B]>KATANA KRESU » (Odnowi się za: <[countdown_time2]>s) | <&gradient[from=#43A727;to=#54D231]>ZATRUTY MIECZ » (Odnowi się za: <[countdown_time2]>s)" targets: - define countdown_time2 <[countdown_time2].sub[1]> - wait d:1s - actionbar "<&gradient[from=#B148BC;to=#93419B]>KATANA KRESU » (Odnowi się za: TERAZ) | <&gradient[from=#43A727;to=#54D231]>ZATRUTY MIECZ » (Odnowi się za: TERAZ)" targets: skill_mieczendermana: type: task script: - shoot ENDER_PEARL height:0.1 speed:2 skill_mieczzatrucia: type: task script: - cast poison amplifier:1 duration:5s