Skocz do zawartości
  • 0

Skrypt na wylaczenie coobla w gui


Pytanie

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on spawn of cobblestone:
	if {cobble} is true:
		cancel event
		clear {cobble}

command /cobbleswitch [<text>]:
	trigger:
		if arg 1 is "off"
			set {cobble::%player%} to false
			wait 2 tick
			execute player command "cobble"
		else:
			set {cobble::%player%} to true
			wait 2 tick
			execute player command "cobble"

on mine of stone:
	if {cobble::%player%} is false:
		set {cobble} to true

command /cobble:
	trigger:
		open chest with 3 rows named "&cCobble:" to player
		wait a tick
		format slot 11 of player with 1 of red wool named "&cWylacz cobbla." to close then run [execute player command "cobbleswitch off"]
  		format slot 16 of player with 1 of green wool named "&aWlacz cobbla." to close then run [execute player command "cobbleswitch on"]
  		format slot 13 of player with 1 of cobblestone named "&7Drop cobbla!" to close

 

Edytowane przez KrejzolekPRO
Odnośnik do komentarza
https://skript.pl/temat/19129-skrypt-na-wylaczenie-coobla-w-gui/#findComment-130291
Udostępnij na innych stronach

  • 0
9 minut temu, KrejzolekPRO napisał:

on spawn of cobblestone:
	if {cobble} is true:
		cancel event
		clear {cobble}

command /cobbleswitch [<text>]:
	trigger:
		if arg 1 is "off"
			set {cobble::%player%} to false
			wait 2 tick
			execute player command "cobble"
		else:
			set {cobble::%player%} to true
			wait 2 tick
			execute player command "cobble"

on mine of stone:
	if {cobble::%player%} is false:
		set {cobble} to true

command /cobble:
	trigger:
		open chest with 3 rows named "&cCobble:" to player
		wait a tick
		format slot 11 of player with 1 of red wool named "&cWylacz cobbla." to close then run [execute player command "cobbleswitch off"]
  		format slot 16 of player with 1 of green wool named "&aWlacz cobbla." to close then run [execute player command "cobbleswitch on"]
  		format slot 13 of player with 1 of cobblestone named "&7Drop cobbla!" to close

 

tak srednio 

 

Odnośnik do komentarza
https://skript.pl/temat/19129-skrypt-na-wylaczenie-coobla-w-gui/#findComment-130293
Udostępnij na innych stronach

  • 0
[13:51:52 INFO]: [Skript] Reloading Cobble.sk...
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (Cobble.sk, line 9: set {cobble::%player%} to false')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (Cobble.sk, line 10: wait 2 tick')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (Cobble.sk, line 11: execute player command "cobble"')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found '__->->' [-> = tab, _ = space, ? = other whitespace] (Cobble.sk, line 26: format slot 16 of player with 1 of green wool named "&aWlacz cobbla." to close then run [execute player command "cobbleswitch on"]')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found '__->->' [-> = tab, _ = space, ? = other whitespace] (Cobble.sk, line 27: format slot 13 of player with 1 of cobblestone named "&7Drop cobbla!" to close')
[13:51:52 ERROR]: 'cobblestone' is not an entity type (Cobble.sk, line 1: on spawn of cobblestone:')
[13:51:52 ERROR]: 'if' is not a type (Cobble.sk, line 8: if arg 1 is "off"')
[13:51:52 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Cobble.sk, line 12: else:')
[13:51:52 INFO]: [Skript] Encountered 8 errors while reloading Cobble.sk!
Odnośnik do komentarza
https://skript.pl/temat/19129-skrypt-na-wylaczenie-coobla-w-gui/#findComment-130295
Udostępnij na innych stronach

  • 0
Teraz, kapirogal napisał:
[13:51:52 INFO]: [Skript] Reloading Cobble.sk...
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (Cobble.sk, line 9: set {cobble::%player%} to false')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (Cobble.sk, line 10: wait 2 tick')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (Cobble.sk, line 11: execute player command "cobble"')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found '__->->' [-> = tab, _ = space, ? = other whitespace] (Cobble.sk, line 26: format slot 16 of player with 1 of green wool named "&aWlacz cobbla." to close then run [execute player command "cobbleswitch on"]')
[13:51:52 ERROR]: indentation error: expected 2 tabs, but found '__->->' [-> = tab, _ = space, ? = other whitespace] (Cobble.sk, line 27: format slot 13 of player with 1 of cobblestone named "&7Drop cobbla!" to close')
[13:51:52 ERROR]: 'cobblestone' is not an entity type (Cobble.sk, line 1: on spawn of cobblestone:')
[13:51:52 ERROR]: 'if' is not a type (Cobble.sk, line 8: if arg 1 is "off"')
[13:51:52 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Cobble.sk, line 12: else:')
[13:51:52 INFO]: [Skript] Encountered 8 errors while reloading Cobble.sk!

Jest tylko błąd z tabami, musisz to wytabować.

Odnośnik do komentarza
https://skript.pl/temat/19129-skrypt-na-wylaczenie-coobla-w-gui/#findComment-130296
Udostępnij na innych stronach

  • 0
Teraz, KrejzolekPRO napisał:

Nie, nie wrzucę, skoro nie chce ci się nawet kliknąć 15 razy tabulatora to znak, że czas dać sobie spokój.

Chodzi o to że słabo się na tym znam. Spróboje.

Odnośnik do komentarza
https://skript.pl/temat/19129-skrypt-na-wylaczenie-coobla-w-gui/#findComment-130299
Udostępnij na innych stronach

  • 0
[13:55:50 ERROR]: 'cobblestone' is not an entity type (Cobble.sk, line 1: on spawn of cobblestone:')
[13:55:50 ERROR]: 'if' is not a type (Cobble.sk, line 8: if arg 1 is "off"')
[13:55:50 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Cobble.sk, line 12: else:')
 
To zostało :)
Odnośnik do komentarza
https://skript.pl/temat/19129-skrypt-na-wylaczenie-coobla-w-gui/#findComment-130301
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ę...