Skocz do zawartości

Rekomendowane odpowiedzi

Preferowana wersja scriptu : 2.12.0

 

WYMAGANIA ↓

Pluginy : world edit, world graund 

WYMAGANIA ↑

 

 

Script blokuje customowe itemy z anarchia np rzucanie turbo trapem na spawn . powinno blokować wszystko z pluginu strom itemy (((strom itemy dodaje prawie wszystkie customowe ity z anarchia.gg na od 1.16.5 do 1.21.1+)))ale custom Itemy z scritptów też powinno blokować ale mogą być lekkie błędy. 

 

KONFIGURACJA BLOKAD

Zalecam wrzucić poprostu do gpt i powiedzieć : "zrób aby ten script blokował te kordy spawna <TWOJE KORDY > I Powiedz mu jeszcze aby nie poprawiał błędów ani czytelności i podaj mu wersje minecraft , script, hosting, silnik 

 

on load:
    clear {blockedItems::*}
    add "Anarchiczna zbroja" to {blockedItems::*}
    add "Anarchiczna zbroja 2" to {blockedItems::*}
    add "Anarchiczny miecz" to {blockedItems::*}
    add "Anarchiczny kilof" to {blockedItems::*}
    add "Anty cobweb" to {blockedItems::*}
    add "Arcus Magnus" to {blockedItems::*}
    add "Bombarda maxima" to {blockedItems::*}
    add "Boski topór" to {blockedItems::*}
    add "Ciepłe mleko" to {blockedItems::*}
    add "Dynamit" to {blockedItems::*}
    add "Excalibur" to {blockedItems::*}
    add "Kostka rubika" to {blockedItems::*}
    add "Krew wampira" to {blockedItems::*}
    add "Korona Anarchii" to {blockedItems::*}
    add "Kosa" to {blockedItems::*}
    add "Kupa Anarchii" to {blockedItems::*}
    add "Lewe jajko" to {blockedItems::*}
    add "Lizak" to {blockedItems::*}
    add "Łopata Grincha" to {blockedItems::*}
    add "Łuk Kupidyna" to {blockedItems::*}
    add "Marchewkowy miecz" to {blockedItems::*}
    add "Marchewkowa kusza" to {blockedItems::*}
    add "Parawan" to {blockedItems::*}
    add "Piekielna tarcza" to {blockedItems::*}
    add "Piernik" to {blockedItems::*}
    add "Róża kupidyna" to {blockedItems::*}
    add "Rózga" to {blockedItems::*}
    add "Sakiewka dropu" to {blockedItems::*}
    add "Siekiera Grincha" to {blockedItems::*}
    add "Smoczy miecz" to {blockedItems::*}
    add "Śnieżka" to {blockedItems::*}
    add "Spleśniała kanapka" to {blockedItems::*}
    add "Totem ułaskawienia" to {blockedItems::*}
    add "Trójząb Posejdona" to {blockedItems::*}
    add "Turbo-domek" to {blockedItems::*}
    add "Turbo-Trap" to {blockedItems::*}
    add "Wampirze jabłko" to {blockedItems::*}
    add "Wędka nielota" to {blockedItems::*}
    add "Wędka surferka" to {blockedItems::*}
    add "Wyrzutnia Hydro Klatki" to {blockedItems::*}
    add "Wzmocniona elytra" to {blockedItems::*}
    add "Zaczarowanie przedmiotu" to {blockedItems::*}
    add "Zajęczy miecz" to {blockedItems::*}
    add "Zatruty ołówek" to {blockedItems::*}
    add "Złamane serce" to {blockedItems::*}
    add "Jajko zmutowanego creepera" to {blockedItems::*}

# Funckja nie działa w 2.12, więc to powtarzamy w eventach:

on rightclick:
    if tool of player is set:
        set {_toolName} to name of tool of player
        # Usuwanie kolorów (na szybko, bez regexa)
        replace all "&0" in {_toolName} with ""
        replace all "&1" in {_toolName} with ""
        replace all "&2" in {_toolName} with ""
        replace all "&3" in {_toolName} with ""
        replace all "&4" in {_toolName} with ""
        replace all "&5" in {_toolName} with ""
        replace all "&6" in {_toolName} with ""
        replace all "&7" in {_toolName} with ""
        replace all "&8" in {_toolName} with ""
        replace all "&9" in {_toolName} with ""
        replace all "&a" in {_toolName} with ""
        replace all "&b" in {_toolName} with ""
        replace all "&c" in {_toolName} with ""
        replace all "&d" in {_toolName} with ""
        replace all "&e" in {_toolName} with ""
        replace all "&f" in {_toolName} with ""
        replace all "&k" in {_toolName} with ""
        replace all "&l" in {_toolName} with ""
        replace all "&m" in {_toolName} with ""
        replace all "&n" in {_toolName} with ""
        replace all "&o" in {_toolName} with ""
        replace all "&r" in {_toolName} with ""

        loop {blockedItems::*}:
            if {_toolName} contains loop-value:
                if player is in region "spawn":
                    cancel event
                    send "&cNie możesz używać tego przedmiotu na spawnie!" to player
                    stop

on leftclick:
    if tool of player is set:
        set {_toolName} to name of tool of player
        # Usuwanie kolorów (tak samo)
        replace all "&0" in {_toolName} with ""
        replace all "&1" in {_toolName} with ""
        replace all "&2" in {_toolName} with ""
        replace all "&3" in {_toolName} with ""
        replace all "&4" in {_toolName} with ""
        replace all "&5" in {_toolName} with ""
        replace all "&6" in {_toolName} with ""
        replace all "&7" in {_toolName} with ""
        replace all "&8" in {_toolName} with ""
        replace all "&9" in {_toolName} with ""
        replace all "&a" in {_toolName} with ""
        replace all "&b" in {_toolName} with ""
        replace all "&c" in {_toolName} with ""
        replace all "&d" in {_toolName} with ""
        replace all "&e" in {_toolName} with ""
        replace all "&f" in {_toolName} with ""
        replace all "&k" in {_toolName} with ""
        replace all "&l" in {_toolName} with ""
        replace all "&m" in {_toolName} with ""
        replace all "&n" in {_toolName} with ""
        replace all "&o" in {_toolName} with ""
        replace all "&r" in {_toolName} with ""

        loop {blockedItems::*}:
            if {_toolName} contains loop-value:
                if player is in region "spawn":
                    cancel event
                    send "&cNie możesz używać tego przedmiotu na spawnie!" to player
                    stop

on damage of entity by player:
    attacker is player
    if tool of attacker is set:
        set {_toolName} to name of tool of attacker
        # Usuwanie kolorów
        replace all "&0" in {_toolName} with ""
        replace all "&1" in {_toolName} with ""
        replace all "&2" in {_toolName} with ""
        replace all "&3" in {_toolName} with ""
        replace all "&4" in {_toolName} with ""
        replace all "&5" in {_toolName} with ""
        replace all "&6" in {_toolName} with ""
        replace all "&7" in {_toolName} with ""
        replace all "&8" in {_toolName} with ""
        replace all "&9" in {_toolName} with ""
        replace all "&a" in {_toolName} with ""
        replace all "&b" in {_toolName} with ""
        replace all "&c" in {_toolName} with ""
        replace all "&d" in {_toolName} with ""
        replace all "&e" in {_toolName} with ""
        replace all "&f" in {_toolName} with ""
        replace all "&k" in {_toolName} with ""
        replace all "&l" in {_toolName} with ""
        replace all "&m" in {_toolName} with ""
        replace all "&n" in {_toolName} with ""
        replace all "&o" in {_toolName} with ""
        replace all "&r" in {_toolName} with ""

        loop {blockedItems::*}:
            if {_toolName} contains loop-value:
                if attacker is in region "spawn":
                    cancel event
                    send "&cNie możesz używać tego przedmiotu na spawnie!" to attacker
                    stop

on damage of player by player:
    attacker is player
    if tool of attacker is set:
        set {_toolName} to name of tool of attacker
        # Usuwanie kolorów - tak samo jak wyżej
        replace all "&0" in {_toolName} with ""
        replace all "&1" in {_toolName} with ""
        replace all "&2" in {_toolName} with ""
        replace all "&3" in {_toolName} with ""
        replace all "&4" in {_toolName} with ""
        replace all "&5" in {_toolName} with ""
        replace all "&6" in {_toolName} with ""
        replace all "&7" in {_toolName} with ""
        replace all "&8" in {_toolName} with ""
        replace all "&9" in {_toolName} with ""
        replace all "&a" in {_toolName} with ""
        replace all "&b" in {_toolName} with ""
        replace all "&c" in {_toolName} with ""
        replace all "&d" in {_toolName} with ""
        replace all "&e" in {_toolName} with ""
        replace all "&f" in {_toolName} with ""
        replace all "&k" in {_toolName} with ""
        replace all "&l" in {_toolName} with ""
        replace all "&m" in {_toolName} with ""
        replace all "&n" in {_toolName} with ""
        replace all "&o" in {_toolName} with ""
        replace all "&r" in {_toolName} with ""

        loop {blockedItems::*}:
            if {_toolName} contains loop-value:
                if attacker is in region "spawn":
                    cancel event
                    send "&cNie możesz bić tym przedmiotem na spawnie!" to attacker
                    stop

on lightning strike:
    set {_loc} to location of event-entity
    if name of world of {_loc} is "world":
        set {_x} to x-coordinate of {_loc}
        set {_z} to z-coordinate of {_loc}
        if {_x} >= 100:
            if {_x} <= 200:
                if {_z} >= 100:
                    if {_z} <= 200:
                        cancel event

I dodajcie jeszcze to samym końcu ↓

on projectile shoot:
    if shooter is a player:
        set {_loc} to location of shooter
        set {_x} to x-coordinate of {_loc}
        set {_z} to z-coordinate of {_loc}
        if {_x} is greater or equal to 85:
            if {_x} is less or equal to 111:
                if {_z} is greater or equal to -74:
                    if {_z} is less or equal to -56:
                        cancel event
                        send "&cNie możesz rzucać przedmiotami na spawnie!" to shooter

 

 

 

 

Edytowane przez KacyKOOYT
Dodaje tagi
Odnośnik do komentarza
https://skript.pl/temat/58847-script-blokada-custom-it%C3%B3w-na-spawn-z-anarchi-gg/
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...