Skocz do zawartości
  • 0

Itemy po wejsciu


xZumo11

Pytanie

Potrzebuje skrypt na 1.8. Gdy gracz wejdzie na serwer dostaje miecz ostrosc 5 i zaklety ogien 2, diamentowego seta ochrona 4, 2 koxy, 5 refili. To samo ma dostać gdy zginie.
Oraz jeśli ktoś umie komendą /dajitemy ustawia te itemy po dolączeniu i zginieci które mam na sobie

Odnośnik do komentarza
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on join:
	give diamond sword of sharpness 5, fire aspect 2 to player
	set player's helmet slot to diamond helmet of protection 4
	set player's chestplate slot to diamond chestplate of protection 4
	set player's leggings slot to diamond leggings of protection 4
	set player's boots slot to diamond boots of protection 4
	give 2 enchanted golden apples to player
	give 5 golden apples to player

on respawn:
	give diamond sword of sharpness 5, fire aspect 2 to player
	set player's helmet slot to diamond helmet of protection 4
	set player's chestplate slot to diamond chestplate of protection 4
	set player's leggings slot to diamond leggings of protection 4
	set player's boots slot to diamond boots of protection 4
	give 2 enchanted golden apples to player
	give 5 golden apples to player

Ostatniego zdania nie rozumiem, bo jest dziwnie napisane, rozpisz się :v

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, PoweredDragon napisał:

on join:
	give diamond sword of sharpness 5, fire aspect 2 to player
	set player's helmet slot to diamond helmet of protection 4
	set player's chestplate slot to diamond chestplate of protection 4
	set player's leggings slot to diamond leggings of protection 4
	set player's boots slot to diamond boots of protection 4
	give 2 enchanted golden apples to player
	give 5 golden apples to player

on respawn:
	give diamond sword of sharpness 5, fire aspect 2 to player
	set player's helmet slot to diamond helmet of protection 4
	set player's chestplate slot to diamond chestplate of protection 4
	set player's leggings slot to diamond leggings of protection 4
	set player's boots slot to diamond boots of protection 4
	give 2 enchanted golden apples to player
	give 5 golden apples to player

Ostatniego zdania nie rozumiem, bo jest dziwnie napisane, rozpisz się :v

Co do zdania zamiast pisać te itemy w skrypcie to wpisuje komende /dajitemy i ustawia te itemy po zginięciu i dolączeniu które mam na sobie

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on join:
    restore inventory of player from {KIT}
    loop 36 times:
      item in loop-number slot is any helmet:
        equip item in loop-number slot
      item in loop-number slot is any chestplate:
        equip item in loop-number slot
      item in loop-number slot is any leggings:
        equip item in loop-number slot
      item in loop-number slot is any boots:
        equip item in loop-number slot

on respawn:
    restore inventory of player from {KIT}
    loop 36 times:
      item in loop-number slot is any helmet:
        equip item in loop-number slot
      item in loop-number slot is any chestplate:
        equip item in loop-number slot
      item in loop-number slot is any leggings:
        equip item in loop-number slot
      item in loop-number slot is any boots:
        equip item in loop-number slot

command /dajitemy:
  trigger:
    set {KIT} to player's serialized contents

W trakcie ustawiania musisz mieć zdjętą zbroję w ekwipunku

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
23 minuty temu, PoweredDragon napisał:

on join:
    restore inventory of player from {KIT}
    loop 36 times:
      item in loop-number slot is any helmet:
        equip item in loop-number slot
      item in loop-number slot is any chestplate:
        equip item in loop-number slot
      item in loop-number slot is any leggings:
        equip item in loop-number slot
      item in loop-number slot is any boots:
        equip item in loop-number slot

on respawn:
    restore inventory of player from {KIT}
    loop 36 times:
      item in loop-number slot is any helmet:
        equip item in loop-number slot
      item in loop-number slot is any chestplate:
        equip item in loop-number slot
      item in loop-number slot is any leggings:
        equip item in loop-number slot
      item in loop-number slot is any boots:
        equip item in loop-number slot

command /dajitemy:
  trigger:
    set {KIT} to player's serialized contents

W trakcie ustawiania musisz mieć zdjętą zbroję w ekwipunku

Nie dziala i oco chodzi z tą zdjętą zbroją?
Tutaj masz ssa blędów: przechwytywanie_5907069d35802.png

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on join:
	restore inventory of player from {KIT}
	loop 36 times:
		item in loop-number slot is any helmet:
			equip player with item in loop-number slot
		item in loop-number slot is any chestplate:
			equip player with item in loop-number slot
		item in loop-number slot is any leggings:
			equip player with item in loop-number slot
		item in loop-number slot is any boots:
			equip player with item in loop-number slot

on respawn:
    restore inventory of player from {KIT}
	loop 36 times:
		item in loop-number slot is any helmet:
			equip player with item in loop-number slot
		item in loop-number slot is any chestplate:
			equip player with item in loop-number slot
		item in loop-number slot is any leggings:
			equip player with item in loop-number slot
		item in loop-number slot is any boots:
			equip player with item in loop-number slot

command /dajitemy:
	trigger:
		set {KIT} to player's serialized contents

Tu masz wytabowane. Ze zbroją chodzi o to, że przy wpisywaniu /dajitemy nie zapisze założonej zbroi, musisz mieć ją zdjętą w ekwipunku, żeby gracz ją dostał (ale gracz dostanie założoną)

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
10 minut temu, PoweredDragon napisał:

on join:
	restore inventory of player from {KIT}
	loop 36 times:
		item in loop-number slot is any helmet:
			equip player with item in loop-number slot
		item in loop-number slot is any chestplate:
			equip player with item in loop-number slot
		item in loop-number slot is any leggings:
			equip player with item in loop-number slot
		item in loop-number slot is any boots:
			equip player with item in loop-number slot

on respawn:
    restore inventory of player from {KIT}
	loop 36 times:
		item in loop-number slot is any helmet:
			equip player with item in loop-number slot
		item in loop-number slot is any chestplate:
			equip player with item in loop-number slot
		item in loop-number slot is any leggings:
			equip player with item in loop-number slot
		item in loop-number slot is any boots:
			equip player with item in loop-number slot

command /dajitemy:
	trigger:
		set {KIT} to player's serialized contents

Tu masz wytabowane. Ze zbroją chodzi o to, że przy wpisywaniu /dajitemy nie zapisze założonej zbroi, musisz mieć ją zdjętą w ekwipunku, żeby gracz ją dostał (ale gracz dostanie założoną)

Wszystko ok a możesz zrobić gdy gracz wyjdzie z serwera niewazne w jakim miejscu jest to jak wejdzie tepa go na /spawn

Odnośnik do komentarza
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ę...