Skocz do zawartości
  • 0

Niedziałająca Fortune w skrypcie do dropu


Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość ZiemniaQ

Czemu działa to nie mam pojęcia, bo niby błędów nie ma. Ale gdy to rozdzielimy to już problemu nie ma:

on break of stone:
	if player's tool is a pickaxe:
		if tool of player is enchanted with fortune 3:
#			chance of 100%:          jeżeli ma tu być 100% to ta linijka nie jest w ogóle potrzebna, można ją wykasować.
			give a random number between 4 and 1 of coal to the player
			send "&7[&aDrop&7] &6Znalazles duzo &8Wegla" to player

 

Odnośnik do komentarza
https://skript.pl/temat/34154-niedzia%C5%82aj%C4%85ca-fortune-w-skrypcie-do-dropu/#findComment-219843
Udostępnij na innych stronach

  • 0
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 28: chance of 3%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 29: give a random number between 4 and 1 of coal to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 30: send "&7[&aDrop&7] &6Znalazles duzo &8Wegla" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 31: chance of 1%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 32: give a random number between 4 and 1 of coal to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 33: send "&7[&aDrop&7] &6Znalazles duzo &3DIAMENT" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 34: chance of 3%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 35: give a random number between 4 and 1 of redstone to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 36: send "&7[&aDrop&7] &6Znalazles duzo &4Redstona" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 37: chance of 2%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 38: give a random number between 4 and 1 of iron ore to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 39: send "&7[&aDrop&7] &6Znalazles duzo &fZelaza" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 40: chance of 2%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 41: give a random number between 4 and 1 of gold ore to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 42: send "&7[&aDrop&7] &6Znalazles duzo &eZlota" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 43: chance of 3%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 44: give a random number between 4 and 1 of lapis lazuli to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 45: send "&7[&aDrop&7] &6Znalazles duzo &1Lazurytu" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 46: chance of 1%:')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 47: give a random number between 4 and 1 of emerald to the player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 48: send "&7[&aDrop&7] &6Znalazles duzo &2Emeraldow" to player')
[ERROR] .... [Skript] indentation error: expected 3 tabs, but found 12 spaces (drop.sk, line 49: stop')

 

bvcz

Usuwam zbędne entery i wstawiam w [ code][/code]

Notatka dodana przez bvcz

Odnośnik do komentarza
https://skript.pl/temat/34154-niedzia%C5%82aj%C4%85ca-fortune-w-skrypcie-do-dropu/#findComment-219856
Udostępnij na innych stronach

  • 0
Gość ZiemniaQ
Godzinę temu, ciuchcia napisał:

używam tabów

No najwidoczniej nie skoro otrzymałeś takie błędy. Twój skrypt był zrobiony spacjami, ja w kodzie użyłem tabów. Zamień wszystkie w evencie na jednolite i nie będzie problemu..

Odnośnik do komentarza
https://skript.pl/temat/34154-niedzia%C5%82aj%C4%85ca-fortune-w-skrypcie-do-dropu/#findComment-219873
Udostępnij na innych stronach

  • 0

Używam normalnie tabów i i tak wyskakuje.

Poza tym, nadal nie działa fortune w ogóle, bez chance działa bez problemu

Edytowane przez ciuchcia
Nieaktywny

Pamiętaj, jeżeli ostatnia odpowiedź w temacie należy do ciebie, edytuj ją zamiast dodawać nową.

Odnośnik do komentarza
https://skript.pl/temat/34154-niedzia%C5%82aj%C4%85ca-fortune-w-skrypcie-do-dropu/#findComment-219878
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ę...