Skocz do zawartości
  • 0

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


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

 

  • 0

wszystko działa właśnie jedna rzecz jak postawie swoją skrzynie to nie mogę jej potem zniszczyć naprawisz to i jeszcze żeby operator mógł dotykać wszystkie skrzynie i je niszczyć jak byś dał rade.

  • 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

?

  • 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

 

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