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

Problem ze skryptem


CevaBikaGaming

Rekomendowane odpowiedzi

Opublikowano

Po zreloadowaniu nie wyrzuca żadnych błędów, ale nie działa - nie daje złotego samorodka do eq.

 

 

 

on click on diamond block:
    if player is in world "NazwaSwiata":
        if player has 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl":
            if player has 2 coal of unbreaking 10 named "&9Niezwykly Krysztal":
                remove 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl" from player's inventory
                remove 2 coal of unbreaking 10 named "&9Niezwykly Krysztal" from player's inventory
                chance of 75%:
                    chance of 90%:
                        set {%player%.miecz} to a random integer from 1 to 10
                        if {%player%.miecz} is 1:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c10||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 2:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c20||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 3:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c30||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 4:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c40||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 5:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c50||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 6:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c60||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 7:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c70||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 8:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c80||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 9:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c90||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 10:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c100||&aMozesz uzyc co: &c2 minuty" to player
                    else:
                        set {%player%.miecz} to a random integer from 1 to 20
                        if {%player%.miecz} is 1:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c10||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 2:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c20||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 3:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c30||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 4:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c40||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 5:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c50||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 6:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c60||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 7:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c70||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 8:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c80||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 9:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c90||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 10:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c100||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 11:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c110||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 12:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c120||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 13:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c130||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 14:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c140||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 15:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c150||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 16:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c160||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 17:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c170||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 18:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c180||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 19:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c190||&aMozesz uzyc co: &c2 minuty" to player
                        if {%player%.miecz} is 20:
                            add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c200||&aMozesz uzyc co: &c2 minuty" to player
 

 

 

Opublikowano

Zdebuguj program uzywajac

send "test"

i sprawdź gdzie kod się zatrzymuje i poprawiaj :)

 

//Zdebugowałem za Ciebie i znalazłem błąd i co jest najciekawsze to jest błąd skripta.

 

Nie wyszukuje Ci poprawnie itemu. Dostajesz węgiel ale bez enchantu a próbujesz sprawdzić węgiel z enchantem. Podmień sobie coal na id.

 

Czyli takie coś:

 

 

 

command /daj:
	trigger:
		give 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl" to player
		give 2 263:0 of unbreaking 10 named "&9Niezwykly Krysztal" to player
on rightclick on diamond block:	
	if player is in world "world":
		if player has 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl":
			if player has 263:0 of unbreaking 10 named "&9Niezwykly Krysztal":
				remove 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl" from player's inventory
				remove 2 coal of unbreaking 10 named "&9Niezwykly Krysztal" from player's inventory
				chance of 75%:
					chance of 90%:
						set {miecz.%player%} to a random integer from 1 to 10
						if {miecz.%player%} is 1:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c10||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 2:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c20||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 3:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c30||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 4:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c40||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 5:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c50||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 6:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c60||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 7:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c70||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 8:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c80||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 9:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c90||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 10:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c100||&aMozesz uzyc co: &c2 minuty" to player
					else:
						set {miecz.%player%} to a random integer from 1 to 20
						if {miecz.%player%} is 1:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c10||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 2:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c20||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 3:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c30||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 4:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c40||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 5:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c50||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 6:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c60||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 7:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c70||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 8:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c80||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 9:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c90||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 10:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c100||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 11:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c110||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 12:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c120||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 13:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c130||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 14:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c140||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 15:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c150||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 16:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c160||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 17:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c170||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 18:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c180||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 19:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c190||&aMozesz uzyc co: &c2 minuty" to player
						if {miecz.%player%} is 20:
							add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c200||&aMozesz uzyc co: &c2 minuty" to player 

 

 

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

@CevaBikaGaming

 

A da się zapisać procent w procencie ? Nie wiedziałem..

Chance of 75%:
    Chance of 90%:
        (...)

#EDIT

 

Spróbuj teraz

 

 

 

on click on diamond block:
    if player is in world "NazwaSwiata":
        if player has 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl":
            if player has 2 coal of unbreaking 10 named "&9Niezwykly Krysztal":
                remove 20 gunpowder of unbreaking 10 named "&9Krysztalowy Pyl" from player's inventory
                remove 2 coal of unbreaking 10 named "&9Niezwykly Krysztal" from player's inventory
                chance of 75%:
                    set {%player%.miecz} to a random integer from 1 to 10
                    if {%player%.miecz} is 1:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c10||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 2:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c20||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 3:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c30||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 4:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c40||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 5:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c50||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 6:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c60||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 7:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c70||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 8:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c80||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 9:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c90||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 10:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c100||&aMozesz uzyc co: &c2 minuty" to player
                chance of 25%:
                    set {%player%.miecz} to a random integer from 1 to 20
                    if {%player%.miecz} is 1:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c10||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 2:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c20||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 3:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c30||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 4:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c40||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 5:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c50||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 6:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c60||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 7:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c70||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 8:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c80||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 9:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c90||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 10:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c100||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 11:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c110||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 12:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c120||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 13:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c130||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 14:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c140||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 15:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c150||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 16:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c160||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 17:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c170||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 18:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c180||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 19:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c190||&aMozesz uzyc co: &c2 minuty" to player
                    if {%player%.miecz} is 20:
                        add 1 gold nugget of unbreaking 10 named "&dKrysztalowa Energia" with lore "&aDodatkowe Serca: &c200||&aMozesz uzyc co: &c2 minuty" to player 

 

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...