Skocz do zawartości
  • 0

Problem ze skryptem na wypadanie surowców z kamienia.


SkepsonTV

Pytanie

Witam, próbuje sobie zrobić skrypt na wypadania rud z kamienia ale oczywiście błędy być muszą :(

Najgorsze jest to, że nie rozumiem o co w nich chodzi. Potrzebuje szybko ukończyć skrypt, gdyż jest mi on potrzebny na mym serwerze, a nie chce go zaśmiecać pluginami ;(

 

Proszę o pomoc.

 

Skrypt:

# Informacje o Skrypcie:# Nazwa: AvatarDrops[TM].# Autor: SkepsonTV.# Wersja: 1.0.0 Alpha.# Dla: AvatarServ 2014 Edition.on mine of stone:	if player's tool is wooden pickaxe or stone pickaxe or iron picaxe or golden pickaxe or diamond pickaxe:		chance of 6%		drop 1 coal		stop		chance of 4%		drop 4 coal		stop	if player's tool is stone pickaxe or iron pickaxe or golden pickaxe or diamond pickaxe:		chance of 5%		drop 1 iron ore		stop		chance of 3%		drop 3 iron ore		stop		chance of 7%		drop 2 redstone		stop		chance of 5%		drop 3 lapis lazuli		stop	if player's tool is iron pickaxe or golden pickaxe or diamond pickaxe:		chance of 1%		drop 5 diamond		stop		chance of 1%		drop 1 emerald		stop		on mine of netherrack:	if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pixkaxe or diamond pickaxe:		chance of 9%		drop 2 quartz ore		stop		on mine of enderstone:	if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pickaxe or diamond pickaxe:		chance of 4%		drop 1 ender pearl		stop		on mine of iron ore	chance of 100%	drop cobblestone	stop	on mine of gold ore	chance of 100%	drop cobblestone	stop	on mine of diamond ore	chance of 100%	drop cobblestone	stop	on mine of emerald ore	chance of 100%	drop cobblestone	stop

Błędy:

[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 50: chance of 100%')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 51: drop cobblestone')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 52: stop')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 55: chance of 100%')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 56: drop cobblestone')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 57: stop')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 60: chance of 100%')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 61: drop cobblestone')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 62: stop')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 65: chance of 100%')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 66: drop cobblestone')
[20:15:15] [BŁĄD]: indentation error: expected 0 tabs, but found 1 tab (AvatarDrops.sk, line 67: stop')
[20:15:15] [BŁĄD]: Can't compare a slot with ('wooden pickaxe', 'stone pickaxe', 'iron picaxe', 'golden pickaxe' or 'diamond pickaxe') (AvatarDrops.sk, line 9: if player's tool is wooden pickaxe or stone pickaxe or iron picaxe or golden pickaxe or diamond pickaxe:')
[20:15:15] [BŁĄD]: Can't compare a slot with ('wooden pickaxe', 'stone pickaxe', 'iron pickaxe', 'golden pixkaxe' or 'diamond pickaxe') (AvatarDrops.sk, line 38: if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pixkaxe or diamond pickaxe:')
[20:15:15] [BŁĄD]: 'enderstone' is not an item type (AvatarDrops.sk, line 43: on mine of enderstone:')
[20:15:15] [BŁĄD]: invalid line - all code has to be put into triggers (AvatarDrops.sk, line 49: on mine of iron ore')
[20:15:15] [BŁĄD]: invalid line - all code has to be put into triggers (AvatarDrops.sk, line 54: on mine of gold ore')
[20:15:15] [BŁĄD]: invalid line - all code has to be put into triggers (AvatarDrops.sk, line 59: on mine of diamond ore')
[20:15:15] [BŁĄD]: invalid line - all code has to be put into triggers (AvatarDrops.sk, line 64: on mine of emerald ore')
[20:15:15] [INFO]: [skript] Encountered 19 errors while reloading AvatarDrops.sk!

 

Wersja Skript: 2.1.2

Wersja CB: 1.7.2 R.03 BETA

Odnośnik do komentarza
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość DonFallingCookie

Jezu Chryste, gdzie dwukropki?

on mine of iron ore    chance of 100%    drop cobblestone    stop

Powinno być

on mine of iron ore:    chance of 100%:        drop cobblestone        stop

można też łatwiej, usuwając te wszystkie "mine of jakiś ore" 

on mine of any ore:	cancel event	set block to air
if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pixkaxe or diamond pickaxe:

Picaxe? W grze nie ma takiego przedmiotu. Jak już, to "pickaxe" :I

on mine of enderstone:

Takiego bloku w grze też nie ma.

Tyle błędów, że zamiast wypisywać dam gotowy kod.

# Informacje o Skrypcie: # Nazwa: AvatarDrops[TM].# Autor: SkepsonTV.# Wersja: 1.0.0 Alpha.# Dla: gunwoserw 2014 Edition. on mine of stone:    if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pickaxe or diamond pickaxe:        chance of 6%:			drop 1 coal			stop        chance of 4%:			drop 4 coal			stop    if player's tool is stone pickaxe or iron pickaxe or golden pickaxe or diamond pickaxe:        chance of 5%:			drop 1 iron ore			stop        chance of 3%:			drop 3 iron ore			stop        chance of 7%:			drop 2 redstone			stop        chance of 5%:			drop 3 lapis lazuli			stop    if player's tool is iron pickaxe or golden pickaxe or diamond pickaxe:        chance of 1%:			drop 5 diamond			stop        chance of 1%:			drop 1 emerald			stopon mine of netherrack:    if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pixkaxe or diamond pickaxe:        chance of 9%:			drop 2 quartz ore			stopon mine of end stone:    if player's tool is wooden pickaxe or stone pickaxe or iron pickaxe or golden pickaxe or diamond pickaxe:        chance of 4%:			drop 1 ender pearl			stopon mine of iron ore or gold ore or diamond ore or emerald ore:	cancel event	set block to air
Edytowane przez DonFallingCookie
Odnośnik do komentarza
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ę...