Skocz do zawartości
  • 0

Stoniarki


pawel1232

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
6 minut temu, pawel1232 napisał:

Napisze mi ktoś skrypt na stoniarki ? takie żeby wcale się nie bugowały ma być end stone a nad nim kamień 

on place of end stone:
	if player's held item is end stone named "&6Stoniarka":
		set block above event-block to stone
		add location of event-block to {stoniarki::*}
		
on break of stone:
	if {stoniarki::*} contains location of block below event-block:
		wait 5 ticks
		set event-block to stone
		
on break of end stone:
	if {stoniarki::*} contains location of event-block:
		if player's held item is golden pickaxe:
			remove location of event-block from {stoniarki::*}
		else:
			cancel event
			send "&cStoniarki musisz wykopac zlotym kilofem!" to player
			
command /dajstoniarke:
	trigger:
		give player 1 end stone named "&6Stoniarka"

Powinno działać. Stoniarkę (end stone) niszczysz złotym kilofem. Komendą /dajstoniarke dajesz sobie 1 stoniarkę do ekwipunku.

Odnośnik do komentarza
https://skript.pl/temat/41176-stoniarki/#findComment-257409
Udostępnij na innych stronach

  • 0
on place of end stone:
	if player's held item is end stone named "&6Stoniarka":
		add location of block to {endstone::*}
		add location of block above block to {kamien::*}
		set block above block to stone

on break of stone:
	loop {kamien::*}:
		if loop-value is location of target block:
			wait 5 ticks
			set block to stone
			
on break of end stone:
	if player's held item is golden pickaxe: 
		loop {endstone::*}:
			if loop-value is location of block:
				remove location of block from {endstone::*}
				remove location of block above from {kamien::*}
				cancel the event
				set block to air
				drop end stone named "&6Stoniarka"
	else:
    		cancel the event
        	send "&cAby wykopac stoniarke uzyj zlotego kilofu!"
			
command /dajstoniarke [<text>]:
	trigger:
		give player 1 end stone named "&6Stoniarka"

Proszę. 

Edytowane przez smiley
Odnośnik do komentarza
https://skript.pl/temat/41176-stoniarki/#findComment-257513
Udostępnij na innych stronach

  • 0
6 godzin temu, pawel1232 napisał:

Stoniarka sie nie odnawia  błędó nie ma ale jak postawie to pojawa się stone i jak wykopie to potem nic 

U mnie wszystko poprawnie działa. Przywołaj sobie komendą stoniarkę. /dajstoniarke i zacznij kopać kamień.

EDIT:

Dodałem wykopywanie bloków przystosowane pod ciebie, bo wiem, że masz starszą wersję.

on place of end stone:
	if player's held item is end stone named "&6Stoniarka":
		set block above event-block to stone
		add location of event-block to {stoniarki::*}
		
on break of stone:
	if {stoniarki::*} contains location of block below event-block:
		wait 5 ticks
		set event-block to stone
		
on break of end stone:
	if {stoniarki::*} contains location of event-block:
		if player's held item is golden pickaxe:
			remove location of event-block from {stoniarki::*}
			set {wykopana::stoniarka} to true
			drop end stone named "&6Stoniarka" at event-block
		else:
			cancel event
			send "&cStoniarki musisz wykopac zlotym kilofem!" to player
			
on item spawn of end stone:
	if {wykopana::stoniarka} is true:
		cancel event
		clear {wykopana::stoniarka}
			
command /dajstoniarke:
	trigger:
		give player 1 end stone named "&6Stoniarka"

 

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/41176-stoniarki/#findComment-257514
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ę...