###### MIECZE ####### mieczendermana: type: item material: netherite_sword display name: <&color[#9F08FB]>MIECZ ENDERMANA enchantments: - sharpness:6 - unbreaking:3 - fire_aspect:2 mieczzatrucia: type: item material: netherite_sword display name: <&color[#08FB71]>MIECZ ZATRUCIA 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 !: - define countdown_time 60 - flag mieczcooldown expire:<[countdown_time]>s - itemcooldown netherite_sword d:<[countdown_time]>s - run skill_mieczendermana - repeat <[countdown_time]>: - actionbar "<&color[#9F08FB]>MIECZ ENDERMANA » (Odnowi się za: <[countdown_time]>s)" targets: - define countdown_time <[countdown_time].sub[1]> - wait d:1s - actionbar "<&color[#9F08FB]>MIECZ ENDERMANA » (Odnowi się za: TERAZ!)" targets: ### MIECZ ZATRUCIA on player damages player with:mieczzatrucia: - flag mieczzatrucia_last_hit: - 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]>: - actionbar "<&color[#08FB71]>MIECZ ZATRUCIA » (Odnowi się za: <[countdown_time2]>s)" targets: - define countdown_time2 <[countdown_time2].sub[1]> - wait d:1s - actionbar "<&color[#08FB71]>MIECZ ZATRUCIA » (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:0 duration:10s