Skocz do zawartości
  • 0

Potrzebuje skrypt na cobblex oraz random tp na guzik.


Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on load:
	set {item} to mossy cobblestone named "&6Cobblex"
	clear {cx::*}
	
	#Dodawanie itemow do dropu
	
	add diamond to {cx::*}
	add gold ingot to {cx::*}
	add 8 of gold ingot to {cx::*}
	add iron ingot to {cx::*}
	add 8 of iron ingot to {cx::*}
	add golden apple to {cx::*}
command /cbx [<text>]:
	trigger:
		if player has 9*64 of cobblestone:
			remove 9*64 of cobblestone from player
			add {item} to player
			send "&7Stworzyles cobblex!"
		else:
			send "&7Nie masz &a9*64 cobbla!"
on place:
	if player's tool is {item}:
		set event-block to air
		drop ("%random element out of {cx::*}%" parsed as item) at event-block
		send "&7Otworzyles cx!"

 

Odnośnik do komentarza
https://skript.pl/temat/34301-potrzebuje-skrypt-na-cobblex-oraz-random-tp-na-guzik/#findComment-220843
Udostępnij na innych stronach

  • 0
function getRandomLoc(xmin: integer=-1000, xmax: integer=1000, zmin: integer=-1000, zmax: integer=1000, world: text="world") :: location:
	while {_return} is not set:
		set {_x} to random integer between {_xmin} and {_xmax}
		set {_z} to random integer between {_zmin} and {_zmax}
		set {_loc} to highest block at location at {_x}, 0, {_z} in world ({_world} parsed as world)
		if block at {_loc} != water or lava:
			set {_return} to {_loc}
			add 1 to y-loc of {_return}
	return {_return}

on rightclick on stone button:
	teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "twój_świat")


	#argumenty funkcji:
		#minimalna wspólrzędna x
		#maksymalna wspólrzędna x
		#minimalna wspólrzędna z
		#maksymalna wspólrzędna z
		#nazwa świata
        

 

Edytowane przez ZiemniaQ
Ziemniaki
Odnośnik do komentarza
https://skript.pl/temat/34301-potrzebuje-skrypt-na-cobblex-oraz-random-tp-na-guzik/#findComment-220845
Udostępnij na innych stronach

  • 0
55 minut temu, xAxee napisał:

on load:
	set {item} to mossy cobblestone named "&6Cobblex"
	clear {cx::*}
	
	#Dodawanie itemow do dropu
	
	add diamond to {cx::*}
	add gold ingot to {cx::*}
	add 8 of gold ingot to {cx::*}
	add iron ingot to {cx::*}
	add 8 of iron ingot to {cx::*}
	add golden apple to {cx::*}
command /cbx [<text>]:
	trigger:
		if player has 9*64 of cobblestone:
			remove 9*64 of cobblestone from player
			add {item} to player
			send "&7Stworzyles cobblex!"
		else:
			send "&7Nie masz &a9*64 cobbla!"
on place:
	if player's tool is {item}:
		set event-block to air
		drop ("%random element out of {cx::*}%" parsed as item) at event-block
		send "&7Otworzyles cx!"

 

jak mam przywolac ?

 

Dzięki

 

Kurotsuwa

Łączę.

Notatka dodana przez Kurotsuwa

Odnośnik do komentarza
https://skript.pl/temat/34301-potrzebuje-skrypt-na-cobblex-oraz-random-tp-na-guzik/#findComment-220852
Udostępnij na innych stronach

  • 0
Godzinę temu, LuckyPotato napisał:

function getRandomLoc(xmin: integer=-1000, xmax: integer=1000, zmin: integer=-1000, zmax: integer=1000, world: text="world") :: location:
	while {_return} is not set:
		set {_x} to random integer between {_xmin} and {_xmax}
		set {_z} to random integer between {_zmin} and {_zmax}
		set {_loc} to highest block at location at {_x}, 0, {_z} in world ({_world} parsed as world)
		if block at {_loc} != water or lava:
			set {_return} to {_loc}
			add 1 to y-loc of {_return}
	return {_return}

on rightclick on stone button:
	teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "twój_świat")


	#argumenty funkcji:
		#minimalna wspólrzędna x
		#maksymalna wspólrzędna x
		#minimalna wspólrzędna z
		#maksymalna wspólrzędna z
		#nazwa świata
        

 

Nie dziala cos

 

nie wazne / do zamkniecia

Kurotsuwa

Łączę.

Notatka dodana przez Kurotsuwa

Odnośnik do komentarza
https://skript.pl/temat/34301-potrzebuje-skrypt-na-cobblex-oraz-random-tp-na-guzik/#findComment-220855
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ę...