Skocz do zawartości

Ktoś to zrobi :) ?


Rekomendowane odpowiedzi

Poprawi mi ktoś to? :D po postawieniu i wykopaniu wylatuje gąbka zamiast nagród! :p


 


on script load:

        set {nagroda::1} to 30 sand

        set {nagroda::2} to 1 diamond block

        set {nagroda: :3} to 3 diamond

        set {nagroda::4} to 2 pig spawn egg

        set {nagroda::5} to 3 emerald

        set {nagroda::6} to 1 emerald block

        set {nagroda::7} to 64 cobblestone

       

        set {block::1} to sponge

       

on break of cobblestone:

        if player's gamemode is survival:

                chance of 3%:

                        give sponge named "&6&lLucky Block" to player

on break of stone:

        if player's gamemode is survival:

                chance of 3%:

                        give sponge named "&6&lLucky Block" to player

on place of sponge:

        if name of player's tool is "&6&lLucky Block":

                set {_b} to random integer from 1 to size of {block: :*}

                wait 1 tick

                set event-block to {block::%{_b}%}

                set {block.%location of event-block%} to true

                stop

on break:

        if {block.%location of event-block%} is true:

                if player's gamemode is survival:

                        clear {block.%location of event-block%}

                        set {_n} to random integer from -1 to size of {nagroda: :*}

                        cancel event

                        set event-block to air

                        if {_n} is -1:

                                send "&7Uwazaj, szkielety."

                                spawn 5 wither skeleton

                                stop

                        if {_n} is 0:

                                send "&6Puff"

                                create a fake explosion at player

                                stop

                        give {nagroda::%{_n}%} to player

                        send "&7Dostales: &6%{nagroda::%{_n}%}%"

                        stop

Edytowane przez iReyo
Odnośnik do komentarza
https://skript.pl/temat/9257-kto%C5%9B-to-zrobi/
Udostępnij na innych stronach

Z tego co wiem to jest mój sk, i on działał poprawnie.


 


Zmieniłeś tutaj wiele rzeczy które mają wpływ na poprawne działanie skryptu, usuń warunek w on break, na sprawdzanie czy ma survival (to nie jest potrzebne a wraz buguje skrypt)


Odnośnik do komentarza
https://skript.pl/temat/9257-kto%C5%9B-to-zrobi/#findComment-71081
Udostępnij na innych stronach

Ehh. nie denerwuj, bo wiem co piszę :D I to jest ewidentnie mój sk :D Proszę poprawione:



on script load:
set {nagroda::1} to 30 sand
set {nagroda::2} to 1 diamond block
set {nagroda::3} to 3 diamond
set {nagroda::4} to 2 pig spawn egg
set {nagroda::5} to 3 emerald
set {nagroda::6} to 1 emerald block
set {nagroda::7} to 64 cobblestone

on break of stone or cobblestone:
if player's gamemode is survival:
chance of 3%:
give sponge named "&6&lLucky Block" to player
on place of sponge:
if name of player's tool is "&6&lLucky Block":
set {block.%location of event-block%} to true
stop
on break:
if {block.%location of event-block%} is true:
clear {block.%location of event-block%}
set {_n} to random integer from -1 to size of {nagroda::*}
cancel event
set event-block to air
if {_n} is -1:
send "&7Uwazaj, szkielety."
spawn 5 wither skeleton
stop
if {_n} is 0:
send "&6Puff"
create a fake explosion at player
stop
give {nagroda::%{_n}%} to player
send "&7Dostales: &6%{nagroda::%{_n}%}%"
stop

Edytowane przez knugi
Odnośnik do komentarza
https://skript.pl/temat/9257-kto%C5%9B-to-zrobi/#findComment-71085
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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