Skocz do zawartości
  • 0

Ender chest


ResidentEvil1337

Pytanie

Witam napisze mi ktos skrypt ze jak ender chest bedzie stal na gabce (sponge) to wtedy bedzie mozna uzyc klucza Easy Case kodzik z otwierania bez tego sponge kto napisze pierwszy i kod bedzie poprawny dam naj

on rightclick on ender chest:
    if player's tool is tripwire hook named "&4&lKLUCZ EASY CASE":
        remove 1 
        wait 3 tick
        open chest with 1 row named "&4ANIMACJA BY RESIDENTEVIL" to player
        format slot 0 of player with 1 of nether star named "&4OTWIERANIE!" to close 
        wait 2 second
        chance of 10%:
            execute console command "kit elita %player%"
        chance of 20%:
            execute console command "kit sponsor %player%"
        chance of 30%:
            give 1 diamond sword of sharpness 6 and fire aspect 3 and unbreaking 4 named "&a&lDedasz FK" to player
 

 

Odnośnik do komentarza
https://skript.pl/temat/16751-ender-chest/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Możesz trochę więcej podać inforamcji. Bo ja nie wiem jak ma stać na sponge? Przy postawieniu enderchesta czy przy uzyciu klucza? Chodzi ci o otworzenie skrzyni i pojawienie sie sponge pod enderchestem? Wyjaśnij a ja spróbuje się tym zająć :) 

Odnośnik do komentarza
https://skript.pl/temat/16751-ender-chest/#findComment-114504
Udostępnij na innych stronach

  • 0

między

on rightclick on ender chest:

a
 

    if player's tool is tripwire hook named "&4&lKLUCZ EASY CASE":

wstaw

if block below event-block is sponge:

PS Nie wiem czy daje się myślnik między event a block, sprawdź i zobacz.

Odnośnik do komentarza
https://skript.pl/temat/16751-ender-chest/#findComment-114546
Udostępnij na innych stronach

  • 0

Masz, pisałem to trochę :) Czasami gracz może nic nie dostać! ;) 

on rightclick on ender chest:
	if player's tool is tripwire hook:
		if block below event-block is sponge:
			if name of player's tool is "&6Klucz do &eMagiczna Skrzynia":
				cancel event
				remove 1 tripwire hook named "&6Klucz do &eMagiczna Skrzynia" from player
				send "&eLosowanie..."
				wait 1 seconds
				chance of 3%:
					if player has enough space for 1 tripwire hook:
						if {_x} is not set:
							give 1 tripwire hook named "&6Klucz do &e..." to player
							send "&cWylosowales: &6Klucz do &e..."
							set {_x} to 1
							wait 5 seconds
							delete {_x}
				chance of 5%:
					send "&cNiestety, nic nie uzyskales, skrzynia byla pusta!"
					stop
				chance of 10%:
					if player has enough space for 1 diamond sword:
						if {_x} is not set:
							give 1 diamond sword of sharpness 3 and knockback 2 named "&cMiecz Bogow" to player
							send "&cWylosowales: &eMiecz Bogow"
							set {_x} to 1
							wait 5 seconds
							delete {_x}
					else:
						drop 1 diamond sword named "&eMiecz Bogow"
				chance of 30%:
					if player has enough space for 1 feather:
						if {_x} is not set:
							give 1 feather of unbreaking 10 named "&cWywalacz Boga" to player
							send "&cWylosowales:&6 Wywalacz Boga"
							set {_x} to 1
							wait 5 seconds
							delete {_x}
					else:
						drop 1 feather of unbreaking 10 named "&cWywalacz Boga"
				chance of 50%:
					if player has enough space for 1 stone:
						if {_x} is not set:
							give 1 stone of unbreaking 10 named "&eKamien Zeusa" to player
							send "&cWylosowales: &6Kamien Zeusa &9(50%%)"
							set {_x} to 1
							wait 5 seconds
							delete {_x}
					else:
						drop 1 stone named "&eKamien Zeusa"
				chance of 2%:
					if player has enough space for 1 paper:
						if {_x} is not set:
							give 1 paper named "&eZwoj Mamotatki" to player
							send "&cWylosowales: &eZwoj Mamotatki"
							set {_x} to 1
							wait 5 seconds
							delete {_x}
					else:
						drop 1 paper named "&eZwoj Mamotatki"

on rightclick with paper:
	if name of player's tool is "&eZwoj Mamotatki":
		remove 1 paper named "&eZwoj Mamotatki" from player
		apply strength 2 to player for 2 minutes
		apply speed 2 to player for 2 minutes
		apply night vision 2 to player for 2 minutes

on rightclick with stone:
	if name of player's tool is "&eKamien Zeusa":
		set {_p} to 1
		set {_x} to target block
		strike lightning at {_x}
		remove 1 stone named "&eKamien Zeusa" from player
		wait 1 seconds
		delete {_p}
		
on place of stone:
	if {_p} is set:
		cancel event

on rightclick with feather:
	if name of player's tool is "&cWywalacz Boga":
		remove 1 feather named "&cWywalacz Boga" from player
		send "&6Yahhuuu!!"
		push the player upwards at speed 3
		push the player horizontally forward at speed 9

 

Odnośnik do komentarza
https://skript.pl/temat/16751-ender-chest/#findComment-114547
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ę...