Skocz do zawartości
  • 0

Drop


grio2100

Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Tu masz przykład

variables:
	{drop.diamond.%player%} = true
command /drop:
	trigger:
		open chest with 1 row named "DROP" to player
		wait 1 tick
		if {drop.diamond.%player%} is true:
			format slot 0 of player with diamond named "&eSzansa &8-&6 15 procent" with lore "&e&lDrop&8&l: &aWlaczony" to close then run [make console execute command "/drop2 diamond %player%"]
		if {drop.diamond.%player%} is false:
			format slot 0 of player with diamond named "&eSzansa &8-&6 15 procent" with lore "&e&lDrop&8&l: &cWylaczony" to close then run [make console execute command "/drop2 diamond %player%"]
			
command /drop2 [<text>] [<player>]:
	executable by: console
	trigger:
		if arg 1 is "diamond":
			if arg 2 is set:
				if {drop.diamond.%arg 2%} is true:
					set {drop.diamond.%arg 2%} to false
					send "DROP OFF" to arg 2
				else:
					set {drop.diamond.%arg 2%} to true
					wait 2 tick
					send "DROP ON" to arg 2
				wait 2 tick
				arg 2 command "drop"

on mine a stone:
	if {drop.diamond.%arg 2%} is true:
		chance of 15%:
			give a diamond to the player
			send "&cZdobyles diament!"

 

Odnośnik do komentarza
https://skript.pl/temat/9975-drop/#findComment-74785
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ę...