Skocz do zawartości
  • 0

Kilof który kopie 3x3


Pytanie

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
function getBlocks(dir: Direction, loc: location, p: player):
	if {_dir} is west or east:
		add (block south {_loc})' location to {_return::*}
		add (block south under {_loc})' location to {_return::*}
		add (block south above {_loc})' location to {_return::*}
		add (block north {_loc})' location to {_return::*}
		add (block north under {_loc})' location to {_return::*}
		add (block north above {_loc})' location to {_return::*}
	if {_dir} is north or south:
		add (block west {_loc})' location to {_return::*}
		add (block west under {_loc})' location to {_return::*}
		add (block west above {_loc})' location to {_return::*}
		add (block east {_loc})' location to {_return::*}
		add (block east under {_loc})' location to {_return::*}
		add (block east above {_loc})' location to {_return::*}
	add (block above {_loc})' location to {_return::*}
	add (block under {_loc})' location to {_return::*}
	return {_return::*}
on right click:
	name of player's tool is "3x3"
	break getBlocks(player's facing, location of clicked block, player) naturally using player's tool

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/48506-kilof-kt%C3%B3ry-kopie-3x3/#findComment-302618
Udostępnij na innych stronach

  • 0
W dniu 4.05.2021 o 21:45, xAxee napisał:
function getBlocks(dir: Direction, loc: location, p: player):
	if {_dir} is west or east:
		add (block south {_loc})' location to {_return::*}
		add (block south under {_loc})' location to {_return::*}
		add (block south above {_loc})' location to {_return::*}
		add (block north {_loc})' location to {_return::*}
		add (block north under {_loc})' location to {_return::*}
		add (block north above {_loc})' location to {_return::*}
	if {_dir} is north or south:
		add (block west {_loc})' location to {_return::*}
		add (block west under {_loc})' location to {_return::*}
		add (block west above {_loc})' location to {_return::*}
		add (block east {_loc})' location to {_return::*}
		add (block east under {_loc})' location to {_return::*}
		add (block east above {_loc})' location to {_return::*}
	add (block above {_loc})' location to {_return::*}
	add (block under {_loc})' location to {_return::*}
	return {_return::*}
on right click:
	name of player's tool is "3x3"
	break getBlocks(player's facing, location of clicked block, player) naturally using player's tool

 

@xAxee nie działa ;/ 

Błędy:


 

[18:25:35] [Server thread/INFO]: [Skript] Reloading kilofy.sk...
[18:25:35] [Server thread/ERROR]: This function doesn't return any value. Please use 'stop' or 'exit' if you want to stop the function. (kilofy.sk, line 18: return {_return::*}')
[18:25:35] [Server thread/ERROR]: The function 'getBlocks' doesn't return any value. (kilofy.sk, line 21: break getBlocks(player's facing, location of clicked block, player) naturally using player's tool')
[18:25:35] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading kilofy.sk!

mam dodatki: skellet, skrayfall, skript, skquery

Odnośnik do komentarza
https://skript.pl/temat/48506-kilof-kt%C3%B3ry-kopie-3x3/#findComment-308611
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ę...