Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Pomoże ktoś? Błąd czy bug?


DyRoXCraft

Rekomendowane odpowiedzi

Opublikowano

Siemka mam skrypt na luckyBlocki tylko że po rozwaleniu go wypada gąbka zamiast czegoś z listy nagród :P jak to... :P kurde naprawić

 

 

Kodzik:
 

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

c50f297fe1f15.png

 

Opublikowano

Przecież już to poprawiałem na innym forum :D

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

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

 

Przecież już to poprawiałem na innym forum :D

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

nadal nie działa :)

c50f297fe1f15.png

 

Opublikowano

@DyRoXCraft to musi jakiś plugin blokować, bo u mnie to działa i ładnie śmiga, podaj listę pluginów, ewentualnie jak się boisz to radź se sam.

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...