Skocz do zawartości
  • 0

skript na sandboya i obsydianarke


haxoffy
 Udostępnij

Pytanie

siemka potrzebuje dwuch skryptow

1. na sandboya zeby piasek od postawienia bloku id 120 lecial w dol az do napotkania przeszkody

2. na obsydianarke zeby po wpisaniu komendy obsydianarka dostajemy 1-3 moss stone nazwane obsydianarka i po postawieniu byl by blok moss stone i po zniszczeniu sie dostawalo do eq 1-10 obsydianu. Z gory dziekuje za pomoc i poswiecenie czasu :)

Odnośnik do komentarza
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

2. Jesli chcesz zeby obsa dawalo po wykopaniu to zamien on break    na on mine

command /obsydianarka:
	trigger:
		set {_} to 1 or 2 or 3 
		if {_} is 1:
			give 1 mossy cobblestone to the player
		if {_} is 2:
			give 2 mossy cobblestone to the player
		if {_} is 3:
			give 3 mossy cobblestone to the player
on break of mossy cobblestone:
	set {__} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10
	if {__} is 1:
		give 1 obsidian to the player
	if {__} is 2:
		give 2 obsidian to the player
	if {__} is 3:
		give 3 obsidian to the player
	if {__} is 4:
		give 4 obsidian to the player
	if {__} is 5:
		give 5 obsidian to the player
	if {__} is 6:
		give 6 obsidian to the player
	if {__} is 7:
		give 7 obsidian to the player
	if {__} is 8:
		give 8 obsidian to the player
	if {__} is 9:
		give 9 obsidian to the player
	if {__} is 10:
		give 10 obsidian to the player

Tutaj masz z nazwana obsydianarka bo zapomnialem o tym :D

variables:
	{obsydianarki::%player%} = 0
on place:
	if name of player's tool is "&2Obsydianarka":
		add 1 to {obsydianarki::%player%}
on break of mossy cobblestone:
	if {obsydianarki::%player%} >= 1:
		remove 1 from {obsydianarki::%player%} 
		set {__} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10
		if {__} is 1:
			give 1 obsidian to the player
		if {__} is 2:
			give 2 obsidian to the player
		if {__} is 3:
			give 3 obsidian to the player
		if {__} is 4:
			give 4 obsidian to the player
		if {__} is 5:
			give 5 obsidian to the player
		if {__} is 6:
			give 6 obsidian to the player
		if {__} is 7:
			give 7 obsidian to the player
		if {__} is 8:
			give 8 obsidian to the player
		if {__} is 9:
			give 9 obsidian to the player
		if {__} is 10:
			give 10 obsidian to the player

 

Edytowane przez lizz0r
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
43 minuty temu, lizz0r napisał:

2. Jesli chcesz zeby obsa dawalo po wykopaniu to zamien on break    na on mine

command /obsydianarka:
	trigger:
		set {_} to 1 or 2 or 3 
		if {_} is 1:
			give 1 mossy cobblestone to the player
		if {_} is 2:
			give 2 mossy cobblestone to the player
		if {_} is 3:
			give 3 mossy cobblestone to the player
on break of mossy cobblestone:
	set {__} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10
	if {__} is 1:
		give 1 obsidian to the player
	if {__} is 2:
		give 2 obsidian to the player
	if {__} is 3:
		give 3 obsidian to the player
	if {__} is 4:
		give 4 obsidian to the player
	if {__} is 5:
		give 5 obsidian to the player
	if {__} is 6:
		give 6 obsidian to the player
	if {__} is 7:
		give 7 obsidian to the player
	if {__} is 8:
		give 8 obsidian to the player
	if {__} is 9:
		give 9 obsidian to the player
	if {__} is 10:
		give 10 obsidian to the player

Tutaj masz z nazwana obsydianarka bo zapomnialem o tym :D

variables:
	{obsydianarki::%player%} = 0
on place:
	if name of player's tool is "&2Obsydianarka":
		add 1 to {obsydianarki::%player%}
on break of mossy cobblestone:
	if {obsydianarki::%player%} >= 1:
		remove 1 from {obsydianarki::%player%} 
		set {__} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10
		if {__} is 1:
			give 1 obsidian to the player
		if {__} is 2:
			give 2 obsidian to the player
		if {__} is 3:
			give 3 obsidian to the player
		if {__} is 4:
			give 4 obsidian to the player
		if {__} is 5:
			give 5 obsidian to the player
		if {__} is 6:
			give 6 obsidian to the player
		if {__} is 7:
			give 7 obsidian to the player
		if {__} is 8:
			give 8 obsidian to the player
		if {__} is 9:
			give 9 obsidian to the player
		if {__} is 10:
			give 10 obsidian to the player

 

Dzięki ! :D

zapomnialem dodac ze ma sie to odnawiac na ziemi co 10 sekund i zeby po wpisaniu zabieralo 4 staki obsydianu:/ dopisalbys?

Edytowane przez haxoffy
błąd
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /obsydianarka:
	trigger:
		if player has 256 obsidian:
			remove 256 obsidian from the player
			set {_} to 1 or 2 or 3 
			if {_} is 1:
				give 1 mossy cobblestone to the player
			if {_} is 2:
				give 2 mossy cobblestone to the player
			if {_} is 3:
				give 3 mossy cobblestone to the player
on break:
	if event-block is mossy cobblestone:
		set {__} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10
		if {__} is 1:
			give 1 obsidian to the player
		if {__} is 2:
			give 2 obsidian to the player
		if {__} is 3:
			give 3 obsidian to the player
		if {__} is 4:
			give 4 obsidian to the player
		if {__} is 5:
			give 5 obsidian to the player
		if {__} is 6:
			give 6 obsidian to the player
		if {__} is 7:
			give 7 obsidian to the player
		if {__} is 8:
			give 8 obsidian to the player
		if {__} is 9:
			give 9 obsidian to the player
		if {__} is 10:
			give 10 obsidian to the player
		wait 10 second
		set event-block to mossy cobblestone

 

Edytowane przez lizz0r
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Dnia 26.05.2017 o 13:23, lizz0r napisał:
command /obsydianarka:
	trigger:
		if player has 256 obsidian:
			remove 256 obsidian from the player
			set {_} to 1 or 2 or 3 
			if {_} is 1:
				give 1 mossy cobblestone to the player
			if {_} is 2:
				give 2 mossy cobblestone to the player
			if {_} is 3:
				give 3 mossy cobblestone to the player
on break:
	if event-block is mossy cobblestone:
		set {__} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10
		if {__} is 1:
			give 1 obsidian to the player
		if {__} is 2:
			give 2 obsidian to the player
		if {__} is 3:
			give 3 obsidian to the player
		if {__} is 4:
			give 4 obsidian to the player
		if {__} is 5:
			give 5 obsidian to the player
		if {__} is 6:
			give 6 obsidian to the player
		if {__} is 7:
			give 7 obsidian to the player
		if {__} is 8:
			give 8 obsidian to the player
		if {__} is 9:
			give 9 obsidian to the player
		if {__} is 10:
			give 10 obsidian to the player
		wait 10 second
		set event-block to mossy cobblestone

 

Dzięki za pomoc ! :DD

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...