Skocz do zawartości
  • 0

Jak to zrobić?


jndooo

Pytanie

Witam, chciał bym tu dodać bookshelf szkło i snieg itemy poprostu które jak są zniczone to zamieniaja się w inne mam taki kod

on break:
	if player has permission "dreq":
		if player's gamemode is survival:
			event-block isn't stone:
				cancel event
				set event-block to air
				add event-block to player
			else:
				player's tool isn't enchanted with silk touch:
					cancel event
					set event-block to air
					add 1 cobblestone to player
				else:
					cancel event
					set event-block to air
					add 1 stone to player

Próbowałem róznie lecz zawsze dawało mi dany przedmiot + cobbla

Odnośnik do komentarza
https://skript.pl/temat/35420-jak-to-zrobi%C4%87/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
12 minut temu, MrJuliusz napisał:

Aham? A po polsku można?

Chyba mu chodzi o to że chce mieć ten kod + by niszczył bookshelf itd. ale zawsze wypada mu dany item oraz cobel, ja tak to zrozumiałem i jeśli chciałby coś takiego to musi przebudować cały kod

 

Zobacz te 2 wersje,

Spoiler

on break:
    if player has permission "dreq":
        if player's gamemode is survival:
            event-block isn't stone:
                cancel event
                set event-block to air
                add event-block to player
                stop
            else:
                player's tool isn't enchanted with silk touch:
                    cancel event
                    set event-block to air
                    add 1 cobblestone to player
                    stop
                else:
                    cancel event
                    set event-block to air
                    add 1 stone to player
                    stop

on break:
    if player has permission "dreq":
        if player's gamemode is survival:
            event-block is stone:
                player's tool is enchanted with silk touch:
                    cancel event
                    set event-block to air
                    add 1 stone to player
                    stop
                else:
                    cancel event
                    set event-block to air
                    add 1 cobblestone to player
                    stop
            event-block is ...
            #wypisujesz wszystkie bloki jakie chcesz

 

TakiJakTy

Łącze posty. Jeśli zapomniałeś coś dodać do swojego posta edytuj go a nie pisz następnego.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
https://skript.pl/temat/35420-jak-to-zrobi%C4%87/#findComment-227624
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ę...