Skocz do zawartości
  • 0

Ustawi mi ktos crafting i cooldown? help


Pytanie

Witam potrzebuje aby ktos mi ustawil crafting na rzucane tnt ze kraftuje sie z 9 stackow tnt i cooldown ze mozna rzucac tnt co 3 sekundy

 

 

 

on rightclick:
    if name of player's tool is "&4Rzucane TnT":
        set {tnt.%player%} to true
        shoot a TNT from player with speed 0.4
        remove 1 tnt named "&c&lRzucane TnT" from player
        wait 2 second
        set {tnt.%player%} to false
on place tnt:
    if {tnt.%player%} is true:
        cancel event
on script load:
    register new shaped recipe for TNT of infinity 1 named "&c&lRzucane TnT" using 64 of tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/48500-ustawi-mi-ktos-crafting-i-cooldown-help/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

crafting masz dobrze ale pewnie nie masz squery więc zainstaluj

 

a co do cooldown to wpisujesz

 

on rightclick:
	cooldown: 3
    if name of player's tool is "&4Rzucane TnT":
        set {tnt.%player%} to true
        shoot a TNT from player with speed 0.4
        remove 1 tnt named "&c&lRzucane TnT" from player
        wait 2 second
        set {tnt.%player%} to false
on place tnt:
    if {tnt.%player%} is true:
        cancel event
on script load:
    register new shaped recipe for TNT of infinity 1 named "&c&lRzucane TnT" using 64 of tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt

Edytowane 4 maja przez vWorsky

 

Odnośnik do komentarza
https://skript.pl/temat/48500-ustawi-mi-ktos-crafting-i-cooldown-help/#findComment-303276
Udostępnij na innych stronach

  • 0
on script load:
	register new shaped recipe for TNT of infinity 1 named "&c&lRzucane TnT" using 64 of tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt, 64 tnt
	createCooldown("tnt", 3 second)

on rightclick:
	if name of player's tool is "&4Rzucane TnT":
		if getCooldown(player, "tnt"):
			shoot a TNT from player with speed 0.4
			remove 1 tnt named "&c&lRzucane TnT" from player
			setCooldown(player, "tnt")

on place tnt:
	if getCooldown(player, "tnt"):
		stop
	cancel event

Wymaga: AxCooldown

Odnośnik do komentarza
https://skript.pl/temat/48500-ustawi-mi-ktos-crafting-i-cooldown-help/#findComment-303279
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...