Skocz do zawartości
  • 0

Blok z itemami gracz po wyjsciu ze serwera


Pytanie

Witam ostatnio pisze skrypty i chcialem zrobic cos takiego:

jesli gracz wyjdzie ze serwera stawia sie blok i jego itemy zapisuja sie do tego bloku. I jak ktos kliknie na ten blok to itemy zapisane w nim dropa na ziemie i blok znika.

Probowalem to zrobic lecz przez ponad 3 godziny nic z tego nie wyszlo

Odnośnik do komentarza
https://skript.pl/temat/35031-blok-z-itemami-gracz-po-wyjsciu-ze-serwera/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on disconnect:
  add items in inventory of player to {chest::items::%location of block at player%::*}
  set {chest::name::%location of block at player%} to player
  set block at player to chest

on rightclick:
  if {chest::name::%location of event-block%} is set:
    drop {chest::items::%location of event-block%::*} at event-block
    set event-block to air
    clear inventory of {chest::name::%location of event-block%}
    delete {chest::name::%location of event-block%} and {chest::items::%location of event-block%::*}

on join:
  set block at player to air
  delete {chest::name::%location of block at player%} and {chest::items::%location of block at player%::*}

Pisane  na telefonie. Nie testowane. Nie gwarantuje że działa.

Odnośnik do komentarza
https://skript.pl/temat/35031-blok-z-itemami-gracz-po-wyjsciu-ze-serwera/#findComment-224961
Udostępnij na innych stronach

  • 0
10 minut temu, ZiemniaQ napisał:

on disconnect:
  add items in inventory of player to {chest::items::%location of block at player%::*}
  set {chest::name::%location of block at player%} to player
  set block at player to chest

on rightclick:
  if {chest::name::%location of event-block%} is set:
    drop {chest::items::%location of event-block%::*} at event-block
    set event-block to air
    clear inventory of {chest::name::%location of event-block%}
    delete {chest::name::%location of event-block%} and {chest::items::%location of event-block%::*}

on join:
  set block at player to air
  delete {chest::name::%location of block at player%} and {chest::items::%location of block at player%::*}

Pisane  na telefonie. Nie testowane. Nie gwarantuje że działa.

Wszystko dziala tak jak chcialem tylko trzeba usunac on join oraz dodac usuwanie item podczas wychodzenia ale z tym sam sobie poradze

Dzieki za pomoc Prosze o zamkniecie tematu

Odnośnik do komentarza
https://skript.pl/temat/35031-blok-z-itemami-gracz-po-wyjsciu-ze-serwera/#findComment-224962
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ę...