Skocz do zawartości
  • 0

Złote serca


xMANPL

Pytanie

Cześć i czołem ! Mógłbym mi ktoś zrobić skrypt taki że jak zakładam klatę Prot 50 to dodaje mi 2 paski złotych serc a gdy 60 to 3 paski.  A np gdy spodnie Prot 60 to regeneracja 2. Gdy helm Prot 55 to jump boost 2. A gdy buty Prot 50 to szybkość 1 . 

Odnośnik do komentarza
https://skript.pl/temat/19479-z%C5%82ote-serca/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on armor equip:
	if event-item is diamond helmet:
		if event-item is enchanted with protection 55:
			apply jump boost 2 to the player for 999 days
	if event-item is diamond chestplate:
		if event-item is enchanted with protection 50:
			set the maximum health of the player to 30
		if event-item is enchanted with protection 60:
			set the maximum health of the player to 40
	if event-item is diamond leggings:
		if event-item is enchated with protection 60:
			apply regeneration 2 to the player for 999 days
			stop
	if event-item is diamond boots:
		if event-item is enchanted with protection 50:
			apply speed 1 to the player for 999 days
on armor unequip:
	if event-item is diamond helmet:
		if event-item is enchanted with protection 55:
			remove jump boost from the player
	if event-item is diamond chestplate:
		if event-item is enchanted with protection 50:
			set the maximum health of the player to 10
		if event-item is enchanted with protection 60:
			set the maximum health of the player to 10
	if event-item is diamond leggings:
		if event-item is enchated with protection 60:
			remove regeneration from the player
			stop
	if event-item is diamond boots:
		if event-item is enchanted with protection 50:
			remove speed from the player
			stop

Do działania skryptu wymagany jest plugin: Skript oraz SharpSK (ew. WildSkript i SkQuery) :)

Edytowane przez iм×kvρi
Odnośnik do komentarza
https://skript.pl/temat/19479-z%C5%82ote-serca/#findComment-132536
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ę...