Skocz do zawartości
  • 0

czemu mi nic nie dropi?


kerpson
 Udostępnij

Pytanie

Mam problem gdyz zrobilem plik yml i tam wszystko jest ale nic mi nie dropi :c Macie kod (Nie caly)

on script load:
	if folder "plugins/test" doesn't exists:
		create folder "plugins/test"
	if file "plugins/Drop/config.yml" doesn't exists:
		create file "plugins/test/config.yml"
		wf "szansa-diament: 100%%" to "plugins/test/config.yml"
on break of stone:
	if {diament.%player%} is true:
		if player's tool is iron pickaxe or gold pickaxe or diamond pickaxe:
			if block's y-coordinate is smaller than {@diament-y}:
				chance of {diament}:
					if player can hold 1 diamond:
						give 1 diamond to player's inventory
						add 1 to {diament.%player%.sztuki}
						set {xp} to random integer between 1 and 5
						add {xp} to {xp.%player%}

 

Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	file: "../../test/config.yml"
on script load:
	if folder "plugins/test" doesn't exists:
		create folder "plugins/test"
	if file "plugins/Drop/config.yml" doesn't exists:
		create file "plugins/test/config.yml"
		set yaml value "szansa-diament" from {@file} to 100
on break of stone:
	if {diament.%player%} is true:
		if player's tool is iron pickaxe or gold pickaxe or diamond pickaxe:
			if block's y-coordinate is smaller than {@diament-y}:
				set {_diament} to yaml value "szansa-diament" from {@file}
				set {_diament} to {_diament} parsed as integer
				chance of {_diament}%:
					if player can hold 1 diamond:
						give 1 diamond to player's inventory
						add 1 to {diament.%player%.sztuki}
						set {xp} to random integer between 1 and 5
						add {xp} to {xp.%player%}

config z SkQuery.

Edytowane przez knugi
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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