# # # # # # # # # # # # ~ 𝔸𝕦𝕥𝕠𝕣: ℂ𝕫𝕦𝕡𝕒𝕜𝕒𝕟 # ~ 𝕊𝕜𝕣𝕪𝕡𝕥: ℂ𝕠𝕠𝕣𝕕𝕤-𝕋𝕡 # ~ ℙ𝕠𝕥𝕣𝕫𝕖𝕓𝕟𝕖 𝕡𝕝𝕦𝕘𝕚𝕟𝕪: # 𝕊𝕜𝕣𝕚𝕡𝕥, 𝕊𝕜𝔹𝕖𝕖 # # # # # # # # # # # options: # #################################################| 𝕌𝕤𝕥𝕒𝕨𝕚𝕖𝕟𝕚𝕒 |################################################## Nazwa: &b&kx &e&lCoords-Tp &b&kx # Nazwa różdżki Przedmiot: warped fungus on a stick # Przedmiot, który ma być różdżką Czas: 15 # Czas teleportacji Użycia: 3 # Liczba użyć różdżki # #################################################| ℂ𝕣𝕒𝕗𝕥𝕚𝕟𝕘 |################################################## craft1: air craft2: ender pearl craft3: obsidian craft4: ender pearl craft5: diamond block craft6: ender pearl craft7: obsidian craft8: ender pearl craft9: air # # # # # # # # # # # # # # # | | # # craft1 | craft2 | craft3 # #________|________|________# # | | # # craft4 | craft5 | craft6 # #________|________|________# # | | # # craft7 | craft8 | craft9 # # | | # # # # # # # # # # # # # # # # #################################################| 𝕂𝕠𝕕 |################################################## on load: register new shaped recipe for {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}" with lore "" and "&6* &eTa magiczna różdżka" and " &eprzeniesie cię w wybrane miejsce!" and "" and "&6* &eAby wybrać miejsce teleportacji," and " &ewciśnij lewy przycisk myszki" and "" and "&6* &eAby się przenieść w wybrane miejsce," and " &eWciśnij prawy przycisk myszki" and "" and "&6* &eTeleportacja potrwa {@Czas} sekund," and " &enie ruszaj się w tym czasie!" and "" and "&7* Użycia: {@Użycia}" and "" using {@craft1} and {@craft2} and {@craft3} and {@craft4} and {@craft5} and {@craft6} and {@craft7} and {@craft8} and {@craft9} with id "ck_skript_coords_tp" on enchant: if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": cancel event on fishing: if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": cancel event on drop: if event-item is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if {ckcoordstp::%uuid of player%} is true: send action bar "&6» &eTeleportacja anulowana, nie wyrzucaj różdżki podczas teleportacji! &6«" to player set {ckcoordstp::%uuid of player%} to false on tool change: if player is holding {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if {ckcoordstp::%uuid of player%} is true: set {ckcoordstp::%uuid of player%} to false send action bar "&6» &eTeleportacja anulowana, nie zmieniaj różdżki na inny przedmiot podczas teleportacji! &6«" to player stop on quit: if {ckcoordstp::%uuid of player%} is true: set {ckcoordstp::%uuid of player%} to false command /givecoordstp: permission: ck-skript.coordstp trigger: give 1 {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}" with lore "" and "&6* &eTa magiczna różdżka" and " &eprzeniesie cię w wybrane miejsce!" and "" and "&6* &eAby wybrać miejsce teleportacji," and " &ewciśnij lewy przycisk myszki" and "" and "&6* &eAby się przenieść w wybrane miejsce," and " &ewciśnij prawy przycisk myszki" and "" and "&6* &eTeleportacja potrwa {@Czas} sekund," and " &enie ruszaj się w tym czasie!" and "" and "&7* Użycia: {@Użycia}" and "" to player on left click: if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if lore of tool is set: if lore of player's tool contains "" and "&6* &eTa magiczna różdżka" and " &eprzeniesie cię w wybrane miejsce!" and "" and "&6* &eAby wybrać miejsce teleportacji," and " &ewciśnij lewy przycisk myszki" and "" and "&6* &eAby się przenieść w wybrane miejsce," and " &ewciśnij prawy przycisk myszki" and "" and "&6* &eTeleportacja potrwa {@Czas} sekund," and " &enie ruszaj się w tym czasie!" and "" and "&7* Użycia: {@Użycia}" and "": set lore of player's tool to "" and "&6* &eTa magiczna różdżka" and " &eprzeniesie cię na te coordy:" and "" and " &6▏ &bX: %rounded x-location of player%" and " &6▏ &bY: %rounded y-location of player%" and " &6▏ &bZ: %rounded z-location of player%" and "" and "" and "&6* &eAby się przenieść w wybrane miejsce," and " &ewciśnij prawy przycisk myszki" and "" and "&6* &eAby zmienić miejsce teleportacji," and " &ewciśnij lewy przycisk myszki" and "" and "&6* &eTeleportacja potrwa {@Czas} sekund," and " &enie ruszaj się w tym czasie!" and "" and "&7* Użycia: {@Użycia}" and "" else: set line 5 of lore of player's tool to " &6▏ &bX: %rounded x-location of player%" set line 6 of lore of player's tool to " &6▏ &bY: %rounded y-location of player%" set line 7 of lore of player's tool to " &6▏ &bZ: %rounded z-location of player%" set {world.%player%} to player's world set line 8 of lore of player's tool to " &6▏ &b%{world.%player%}%" delete {world.%player%} send "&6* &eMiejsce teleportacji zostało utworzone na coordach:" send " &bX: %rounded x-location of player% &6▏ &bY: %rounded y-location of player% &6▏ &bZ: %rounded z-location of player%" stop on rightclick: if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if lore of player's tool contains "" and "&6* &eTa magiczna różdżka" and " &eprzeniesie cię w wybrane miejsce!" and "" and "&6* &eAby wybrać miejsce teleportacji," and " &ewciśnij lewy przycisk myszki" and "" and "&6* &eAby się przenieść w wybrane miejsce," and " &ewciśnij prawy przycisk myszki" and "" and "&6* &eTeleportacja potrwa {@Czas} sekund," and " &enie ruszaj się w tym czasie!" and "" and "&7* Użycia: {@Użycia}" and "": send "&6* &eMiejsce teleportacji nie zostało odnalezione" stop if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if lore of player's tool does not contain "" and "&6* &eTa magiczna różdżka" and " &eprzeniesie cię w wybrane miejsce!" and "" and "&6* &eAby je wybrać, wciśnij" and " &elewy przycisk myszki" and "" and "&6* &eAby się przenieść w wybrane miejsce," and " &eWciśnij prawy przycisk myszki" and "" and "&6* &eTeleportacja potrwa {@Czas} sekund," and " &enie ruszaj się w tym czasie!" and "" and "&7* Użycia: {@Użycia}" and "": if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if {ckcoordstp::%uuid of player%} is true: cancel event else: if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": cancel event set {ckcoordstp::%uuid of player%} to true send "&6* &eTeleportacja rozpoczęta!" to player set {_a} to "&c" loop {@Czas} times: set {_a} to "%{_a}%▊" send action bar "&6» {@Nazwa} &6▏ %{_a}% &6«" to player wait 1 second if {ckcoordstp::%uuid of player%} is false: stop set {_ckcd::%uuid of player%} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" loop {@Czas} times: set {_a} to "&a" loop {@Czas} times: set {_a} to "%{_a}%▊" if loop-number-1 is loop-number-2: set {_a} to "%{_a}%&c" if {ckcoordstp::%uuid of player%} is false: stop wait 1 second if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": send action bar "&6» {@Nazwa} &6▏ %{_a}% &6«" to player if {_ckcd::%uuid of player%} isn't "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%": send action bar "&6» &eTeleportacja anulowana, nie ruszaj się podczas teleportacji! &6«" to player set {ckcoordstp::%uuid of player%} to false stop set {_uzycia.%player%} to uncoloured line 19 of lore of player's tool replace all "* Użycia: " with "" in {_uzycia.%player%} set {_uzycia.%player%} to {_uzycia.%player%} parsed as integer if {_uzycia.%player%} >= 1: set line 19 of lore of player's tool to "&7* Użycia: %{_uzycia.%player%} - 1%" set {ckcoordstp::%uuid of player%} to false if player's tool is {@Przedmiot} of thorns 10 with hidden enchants flag named "{@Nazwa}": if lore of tool is set: set {_x.%player%} to line 5 of lore of tool replace all " &6▏ &bX: " with "" in {_x.%player%} set {_y.%player%} to line 6 of lore of tool replace all " &6▏ &bY: " with "" in {_y.%player%} set {_z.%player%} to line 7 of lore of tool replace all " &6▏ &bZ: " with "" in {_z.%player%} set {_w.%player%} to line 8 of lore of tool replace all " &6▏ &b" with "" in {_w.%player%} set {_x.%player%} to "%{_x.%player%}%" parsed as integer set {_y.%player%} to "%{_y.%player%}%" parsed as integer set {_z.%player%} to "%{_z.%player%}%" parsed as integer set {_w.%player%} to "%{_w.%player%}%" parsed as world teleport player to location({_x.%player%}, {_y.%player%}, {_z.%player%}, {_w.%player%}) send "&6* &eTeleportacja zakończona!" to player set {ckcoordstp::%uuid of player%} to false if {_uzycia.%player%} <= 1: delete player's tool