Skocz do zawartości
  • 0

skrypt na generator prosty


xdowskip

Pytanie

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /generator:
  permission: gen.adm
  trigger:
    give emerald block named "&aGenerator"
on place:
  if name of player's tool is "&aGenerator":
    if {Geny::*} contains location at event-block:
      send "&cWystapil blad!"
    else:
      add location at event-block to {Geny::*}
      send "&aPostawiono generator!"
on break:
  if {Geny::*} contains location at event-block:
    clear drops
    drop emerald block named "&aGenerator" at event-block
    remove location at event-block from {Geny::*}
    send "&aZniszczono generator!"

every 3 seconds:
  loop {Geny::*}:
    add 3 to {kasa::%player%}

Proszę :) 

Edytowane przez Hiri12
Odnośnik do komentarza
https://skript.pl/temat/56535-skrypt-na-generator-prosty/#findComment-338728
Udostępnij na innych stronach

  • 0
W dniu 13.11.2023 o 19:30, Hiri12 napisał:
command /generator:
  permission: gen.adm
  trigger:
    give emerald block named "&aGenerator"
on place:
  if name of player's tool is "&aGenerator":
    if {Geny::*} contains location at event-block:
      send "&cWystapil blad!"
    else:
      add location at event-block to {Geny::*}
      send "&aPostawiono generator!"
on break:
  if {Geny::*} contains location at event-block:
    clear drops
    drop emerald block named "&aGenerator" at event-block
    remove location at event-block from {Geny::*}
    send "&aZniszczono generator!"

every 3 seconds:
  loop {Geny::*}:
    add 3 to {kasa::%player%}

Proszę :) 

DZIEKI

Odnośnik do komentarza
https://skript.pl/temat/56535-skrypt-na-generator-prosty/#findComment-338764
Udostępnij na innych stronach

  • 0
on place of emerald ore:
	name of event-block is "&aGenerator":
		while block at event-location is emerald ore:
			set {generator::%location of event-block%} to true
			loop 3 times:
				{generator::%location of event-block%} is true:
					drop 1 sunflower at location of event-block
			wait 3 second

on pick up of sunflower:
	{generator::%location of event-block%} is true:
		cancel event
		add 3 to {kasa::%player%}
		
command /gen:
	permission: adm.gen
	permission message: "&cBłąd &8>> &7Nie masz permisji do tej komendy &e(&7ADM.GEN&e)&7!"
	trigger:
		give player emerald block named "&aGenerator"

Proszte mi się wydaję a raczej również działa

Odnośnik do komentarza
https://skript.pl/temat/56535-skrypt-na-generator-prosty/#findComment-338999
Udostępnij na innych stronach

  • 0
1 minutę temu, devyy napisał:
on place of emerald ore:
	name of event-block is "&aGenerator":
		while block at event-location is emerald ore:
			set {generator::%location of event-block%} to true
			loop 3 times:
				{generator::%location of event-block%} is true:
					drop 1 sunflower at location of event-block
			wait 3 second

on pick up of sunflower:
	{generator::%location of event-block%} is true:
		cancel event
		add 3 to {kasa::%player%}
		
command /gen:
	permission: adm.gen
	permission message: "&cBłąd &8>> &7Nie masz permisji do tej komendy &e(&7ADM.GEN&e)&7!"
	trigger:
		give player emerald block named "&aGenerator"

Proszte mi się wydaję a raczej również działa

no dzieki

Odnośnik do komentarza
https://skript.pl/temat/56535-skrypt-na-generator-prosty/#findComment-339000
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ę...