Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Mlot Hefajstosa
- on rightclick:
- if tool of player is {wvsp.kit::hefajstos}:
- set {czas::%player%::hef1} to difference between {uzycie::%player%::hef1} and now
- if {czas::%player%::hef1} is less than 20 seconds:
- send "&c&lMlota mozesz uzyc ponownie za &b%difference between 20 seconds and {czas::%player%::hef1}%"
- else:
- if player is sneaking:
- if targeted block is set:
- set {uzycie::%player%::hef1} to now
- if distance between player and targeted block is less than 15:
- set {_target} to targeted block
- else:
- set {_target} to block 15 meters in front of player
- spawn armor stand at location 5 meters above {_target} with nbt "{NoGravity:1,Invisible:1,DisabledSlots:65793,Pose:{Body:[270f,0f,0f]}}"
- set {_mlot} to spawned entity
- set tool of {_mlot} to wooden axe
- drawDot count 15, particle "cloud", XYZ 0.9, 0.7, 0.9, center location of {_mlot}'s head, visibleRange 100, keepFor 3 ticks
- drawDot count 10, particle "flame", XYZ 0.6, 0.6, 0.6, center location of {_mlot}'s head, visibleRange 100, keepFor 2 ticks
- wait 0.8 seconds
- add "{NoGravity:0}" to nbt of {_mlot}
- set no clip state of {_mlot} to true
- while block at {_mlot} is air or tall grass or water:
- drawdot count 5, particle "suspenddepth", XYZ 0.1, 0.1, 0.1, center location of {_mlot}'s head, visibleRange 100, keepFor 1 tick
- wait 1 tick
- set no clip state of {_mlot} to false
- add "{NoGravity:1}" to nbt of {_mlot}
- create safe explosion of force 2 at location 1 meter below {_mlot}
- wait 1 tick
- drawDot count 7, particle "flame", XYZ 0.4, 0.2, 0.4, center location 0.3 meters above {_mlot}, visibleRange 100, keepFor 1 tick
- loop all living entities in radius 5 of {_mlot}:
- apply blindness to loop-entity for 4 seconds
- apply slowness 2 to loop-entity for 7 seconds
- set {_loc} to location 0.25 meters above {_mlot}
- set {_radius} to 1
- set {_id} to 1
- set {_density} to 13
- loop 5 times:
- drawWarpRings style 4, particle "smoke", XYZ 0.1, 0.1, 0.1, center {_loc}, id "%player%.hef.%{_id}%", rainbowMode false, scan false, height 2.5, radius {_radius}, ringCount 1, ringDensity {_density}, visibleRange 100
- increase {_radius} by 1
- increase {_id} by 1
- increase {_density} by 9
- wait 2 ticks
- set {_id} to 1
- wait 2 ticks
- loop 5 times:
- stopEffect id "%player%.hef.%{_id}%"
- increase {_id} by 1
- wait 3 ticks
- wait 1 second
- drawDot count 7, particle "cloud", XYZ 0.5, 0.5, 0.5, center location of {_mlot}'s head, visibleRange 100, keepFor 1 tick
- kill {_mlot}
- else:
- send "&cMusisz trafić w blok!"
- else:
- send "&cAby uzyc Mlota musisz trzymać shifta!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement