Skocz do zawartości
  • 0

Szukam Skryptu na blokowanie skrzynek przez gracza który postawił skrzynie.


DawidekZZ

Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on place:
    if event-block is not chest:
        stop
    set {chest::%location of event-block%} to player
on break:
    if event-block is not chest:
        stop
    if {chest::%location of event-block%} is player:
        cancel event
on right click:
    if clicked block is not chest:
        stop
    if {chest::%location of clicked block%} is player:
        stop
    cancel event

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on break:
    if event-block is not chest:
        stop
    if {chest::%location of event-block%} is player:
        cancel event

a to nie powinno być:
 

on break:
    if event-block is not chest:
        stop
    if {chest::%location of event-block%} isn't player:
        cancel event

?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
43 minuty temu, DawidekZZ napisał:

teraz działa tylko czy się da zrobić jeszcze żeby operator mógł niszczyć i otwierać wszystkie skrzynie ? czyli tak jak w vanilli.

on place:
    if event-block is not chest:
        stop
    set {chest::%location of event-block%} to player
on break:
    if event-block is not chest:
        stop
    if {chest::%location of event-block%} is player:
        stop
    if player is op:
        stop
    cancel event
on right click:
    if clicked block is not chest:
        stop
    if {chest::%location of clicked block%} is player:
        stop
    if player is op:
        stop
    cancel event

 

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ę...