Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Zombie zaglady kawalek kodu - nie respi sie


Entify

Rekomendowane odpowiedzi

Opublikowano

Tak jak w temacie, na dole jest kawalek kodu, ktory nie ma zadnych errorow, ale ten zombie sie nie respi, jak sie tepam w te koordy ;c

 

@ScoreBoard

@Palladin

every 10 second:
	set {_loc.x} to random integer between -2500 and 2500
	set {_loc.z} to random integer between -2500 and 2500
	set {_loc.y} to 200
	set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
	spawn a zombie at {_loc}
	apply speed 1 to the last spawned entity for 10 seconds
	apply resistance 99 to the last spawned entity for 10 seconds
	set max health of spawned zombie to 100
	heal spawned zombie
	set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
	set helmet of the spawned zombie to a diamond helmet of protection 4
	set chestplate of the spawned zombie to a diamond chestplate of protection 4
	set leggings of the spawned zombie to a diamond leggings of protection 4
	set boots of the spawned zombie to a diamond boots of protection 4
	set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
	broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6(x: %{_loc.x}% | z: %{_loc.z}%)&7."

@Edit a jak zrobie tak \/ to dziala :v

	set {_loc.x} to -452
	set {_loc.z} to -71
	set {_loc.y} to 76
	set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify Spróbuj:

set {_loc.x} to a random number between -2500 and 2500

// Jak wywala błąd, usuń a

// Spróbuj też usunąć a podczas spawnowania 

Nje dziala ;c, obecny kod;

every 1 minute:
	set {_loc.x} to random number between -2500 and 2500
	set {_loc.z} to random number between -2500 and 2500
	set {_loc.y} to 200
	set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
	spawn 1 zombie at {_loc}
	apply speed 1 to the last spawned entity for 10 seconds
	apply resistance 99 to the last spawned entity for 10 seconds
	set max health of spawned zombie to 100
	heal spawned zombie
	set name of spawned zombie to "&c&lZOMBIE ZAGLADY &a%last spawned entity's health%&7/&c%max health of last spawned entity%"
	set helmet of the spawned zombie to a diamond helmet of protection 4
	set chestplate of the spawned zombie to a diamond chestplate of protection 4
	set leggings of the spawned zombie to a diamond leggings of protection 4
	set boots of the spawned zombie to a diamond boots of protection 4
	set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
	broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6(x: %{_loc.x}% | z: %{_loc.z}%)&7."

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify

    set {_loc.x} to random integer between -2500 and 2500 prased as x-coordinate
    set {_loc.z} to random integer between -2500 and 2500 prased as z-coordinate
    set {_loc.y} to 200

Spróbuj tak.

 

Ale nic nie obiecuje, bo chyba nie ma nawet takiego typu.

 

Mimo wszystko spróbuj.

 

// Edit

    set {_loc.x} to random integer between -2500 and 2500 prased as number
    set {_loc.z} to random integer between -2500 and 2500 prased as number
    set {_loc.y} to 200

To już bardziej prawdopodobne.

 

// Edit 2

 

Aha, chyba już wiem.

set {_loc} to "%{_loc.x}%, %{_loc.y}%, %{_loc.z}%" prased as location

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Opublikowano
[14:56:51 INFO]: [Skript] Reloading Testy.sk...
[14:56:51 ERROR]: 'set {_loc} to "%{_loc.x}%, %{_loc.y}%, %{_loc.z}%" prased as
location' is not a boolean (yes/no) (Testy.sk, line 5: set {_loc} to "%{_loc.x}%
, %{_loc.y}%, %{_loc.z}%" prased as location')
[14:56:51 INFO]: [Skript] Encountered 1 error while reloading Testy.sk!
[14:57:41 INFO]: [Skript] Reloading Testy.sk...
[14:57:41 ERROR]: 'set {_loc.x} to random integer between -2500 and 2500 prased
as number' is not a boolean (yes/no) (Testy.sk, line 2: set {_loc.x} to random i
nteger between -2500 and 2500 prased as number')
[14:57:41 ERROR]: 'set {_loc.z} to random integer between -2500 and 2500 prased
as number' is not a boolean (yes/no) (Testy.sk, line 3: set {_loc.z} to random i
nteger between -2500 and 2500 prased as number')
[14:57:41 INFO]: [Skript] Encountered 2 errors while reloading Testy.sk!
>
[14:58:10 INFO]: [Skript] Reloading Testy.sk...
[14:58:10 ERROR]: 'set {_loc.x} to random integer between -2500 and 2500 prased
as x-coordinate' is not a boolean (yes/no) (Testy.sk, line 2: set {_loc.x} to ra
ndom integer between -2500 and 2500 prased as x-coordinate')
[14:58:10 ERROR]: 'set {_loc.z} to random integer between -2500 and 2500 prased
as z-coordinate' is not a boolean (yes/no) (Testy.sk, line 3: set {_loc.z} to ra
ndom integer between -2500 and 2500 prased as z-coordinate')
[14:58:10 INFO]: [Skript] Encountered 2 errors while reloading Testy.sk!

:c @Palladin

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify

 

Hahahahaha, sorry wielkie :DD
 

Napisałem "prased" zamiast "parsed" xD
 

set {_loc} to "%{_loc.x}%, %{_loc.y}%, %{_loc.z}%" parsed as location

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Opublikowano

:C

[15:26:23 INFO]: [Skript] Reloading Testy.sk...
[15:26:24 ERROR]: 'set {_loc} to "%{_loc.x}%, %{_loc.y}%, %{_loc.z}%"' is not a
text (Testy.sk, line 5: set {_loc} to "%{_loc.x}%, %{_loc.y}%, %{_loc.z}%" parse
d as location')
[15:26:24 INFO]: [Skript] Encountered 1 error while reloading Testy.sk!

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify, spróbuj tak:

every 10 second:
	set {_min} to -2500 parsed as number
	set {_max} to 2500 parsed as number
	set {_loc.x} to random integer between {_min} and {_max}
	set {_loc.z} to random integer between {_min} and {_max}
	set {_loc.y} to 200 parsed as number
	set {_loc} to location ({_loc.x}, {_loc.y}, {_loc.z}) in the world "world"
	spawn a zombie at {_loc}
	apply speed 1 to the last spawned entity for 10 seconds
	apply resistance 99 to the last spawned entity for 10 seconds
	set max health of spawned zombie to 100
	heal spawned zombie
	set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
	set helmet of the spawned zombie to a diamond helmet of protection 4
	set chestplate of the spawned zombie to a diamond chestplate of protection 4
	set leggings of the spawned zombie to a diamond leggings of protection 4
	set boots of the spawned zombie to a diamond boots of protection 4
	set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
	broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6(x: %{_loc.x}% | z: %{_loc.z}%)&7."
Opublikowano

 

@1361622928-U485574.pngEntify, spróbuj tak:

every 10 second:
	set {_min} to -2500 parsed as number
	set {_max} to 2500 parsed as number
	set {_loc.x} to random integer between {_min} and {_max}
	set {_loc.z} to random integer between {_min} and {_max}
	set {_loc.y} to 200 parsed as number
	set {_loc} to location ({_loc.x}, {_loc.y}, {_loc.z}) in the world "world"
	spawn a zombie at {_loc}
	apply speed 1 to the last spawned entity for 10 seconds
	apply resistance 99 to the last spawned entity for 10 seconds
	set max health of spawned zombie to 100
	heal spawned zombie
	set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
	set helmet of the spawned zombie to a diamond helmet of protection 4
	set chestplate of the spawned zombie to a diamond chestplate of protection 4
	set leggings of the spawned zombie to a diamond leggings of protection 4
	set boots of the spawned zombie to a diamond boots of protection 4
	set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
	broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6(x: %{_loc.x}% | z: %{_loc.z}%)&7."

:c

[15:35:00 INFO]: [Skript] Reloading Testy.sk...
[15:35:00 ERROR]: '-2500' is not a text (Testy.sk, line 2: set {_min} to -2500 p
arsed as number')
[15:35:00 ERROR]: '2500' is not a text (Testy.sk, line 3: set {_max} to 2500 par
sed as number')
[15:35:00 ERROR]: '200' is not a text (Testy.sk, line 6: set {_loc.y} to 200 par
sed as number')
[15:35:01 INFO]: [Skript] Encountered 3 errors while reloading Testy.sk!
>

@Edit zrobilem tak, nie ma errorów, ale dalej sie nie respi:

every 10 second:
	set {_min} to "-2500" parsed as number
	set {_max} to "2500" parsed as number
	set {_loc.x} to random integer between {_min} and {_max}
	set {_loc.z} to random integer between {_min} and {_max}
	set {_loc.y} to "200" parsed as number
	set {_loc} to location ({_loc.x}, {_loc.y}, {_loc.z}) in the world "world"
	spawn a zombie at {_loc}
	apply speed 1 to the last spawned entity for 10 seconds
	apply resistance 99 to the last spawned entity for 10 seconds
	set max health of spawned zombie to 100
	heal spawned zombie
	set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
	set helmet of the spawned zombie to a diamond helmet of protection 4
	set chestplate of the spawned zombie to a diamond chestplate of protection 4
	set leggings of the spawned zombie to a diamond leggings of protection 4
	set boots of the spawned zombie to a diamond boots of protection 4
	set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
	broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6(x: %{_loc.x}% | z: %{_loc.z}%)&7."

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify

 

No, coś tam skleiłem. Łap. Nie jestem pewien czy dobrze.

aliases:
    nonsolid = 0, 6, 27, 28, 30, 31, 32, 37, 38, 39, 40, 50, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77, 78:0, 83, 85:4-7, 104, 105, 106, 111, 115, 131, 132, 141, 142, 143, 147, 148, 157

every 10 seconds:
    set {_loc} to location at random number between -2500 and 2500, 0, random number between -2500 and 2500
    loop blocks above {_loc}:
        loop-block is nonsolid
        block above loop-block is nonsolid
        set {_alt.loc} to altitude of loop-block
        stop loop
    set {_loc.change} to {_loc} parsed as text
    replace all " 0," to " %{_alt.loc}%," in {_loc.change}
    set {_loc} to {_loc.change} parsed as location
    spawn a zombie at {_loc}
    apply speed 1 to the last spawned entity for 10 seconds
    apply resistance 99 to the last spawned entity for 10 seconds
    set max health of spawned zombie to 100
    heal spawned zombie
    set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
    set helmet of the spawned zombie to a diamond helmet of protection 4
    set chestplate of the spawned zombie to a diamond chestplate of protection 4
    set leggings of the spawned zombie to a diamond leggings of protection 4
    set boots of the spawned zombie to a diamond boots of protection 4
    set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
    broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6%{_loc}%&7."

Nie polecam robić tego co 10 sekund - inwazja Zombie Zagłady na Twój serwer ;)

 

 

 

   
 

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Opublikowano

@1361622928-U485574.pngEntify

 

No, coś tam skleiłem. Łap. Nie jestem pewien czy dobrze.

aliases:
    nonsolid = 0, 6, 27, 28, 30, 31, 32, 37, 38, 39, 40, 50, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77, 78:0, 83, 85:4-7, 104, 105, 106, 111, 115, 131, 132, 141, 142, 143, 147, 148, 157

every 10 seconds:
    set {_loc} to location at random number between -2500 and 2500, 0, random number between -2500 and 2500
    loop blocks above {_loc}:
        loop-block is nonsolid
        block above loop-block is nonsolid
        set {_alt.loc} to altitude of loop-block
        stop loop
    set {_loc.change} to {_loc} parsed as text
    replace all " 0," to " %{_alt.loc}%," in {_loc.change}
    set {_loc} to {_loc.change} parsed as location
    spawn a zombie at {_loc}
    apply speed 1 to the last spawned entity for 10 seconds
    apply resistance 99 to the last spawned entity for 10 seconds
    set max health of spawned zombie to 100
    heal spawned zombie
    set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
    set helmet of the spawned zombie to a diamond helmet of protection 4
    set chestplate of the spawned zombie to a diamond chestplate of protection 4
    set leggings of the spawned zombie to a diamond leggings of protection 4
    set boots of the spawned zombie to a diamond boots of protection 4
    set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
    broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6%{_loc}%&7."

Nie polecam robić tego co 10 sekund - inwazja Zombie Zagłady na Twój serwer ;)

 

 

 

   

 

Wjem, dalem przykladowo do testow co 10 sekund :v

 

// nje dziala, errory;

[19:02:29 INFO]:  ╗ Zombie Zaglady zostal zrespiony na koordynatach: <none>.
[19:02:40 INFO]:  ╗ Zombie Zaglady zostal zrespiony na koordynatach: <none>.
>sk reload Testy
[19:02:41 INFO]: [Skript] Reloading Testy.sk...
[19:02:41 ERROR]: 'replace all " 0," to " %{_alt.loc}%," in {_loc.change}' is no
t a boolean (yes/no) (Testy.sk, line 12: replace all " 0," to " %{_alt.loc}%," i
n {_loc.change}')
[19:02:41 ERROR]: Text cannot be parsed as a location (Testy.sk, line 13: set {_
loc} to {_loc.change} parsed as location')
[19:02:42 INFO]: [Skript] Encountered 2 errors while reloading Testy.sk!
>

@Edit poprawilem, nie ma zadnych errorow, ale na chacie pisze "zombie .... na koordynatach: <none>"

kod:

aliases:
    nonsolid = 0, 6, 27, 28, 30, 31, 32, 37, 38, 39, 40, 50, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77, 78:0, 83, 85:4-7, 104, 105, 106, 111, 115, 131, 132, 141, 142, 143, 147, 148, 157

every 10 seconds:
    set {_loc} to location at random number between -2500 and 2500, 0, random number between -2500 and 2500
    loop blocks above {_loc}:
        loop-block is nonsolid
        block above loop-block is nonsolid
        set {_alt.loc} to altitude of loop-block
        stop loop
    set {_loc.change} to {_loc} parsed as text
    replace all " 0," with " %{_alt.loc}%," in {_loc.change}
    set {_loc} to {_loc.change}
    spawn a zombie at {_loc}
    apply speed 1 to the last spawned entity for 10 seconds
    apply resistance 99 to the last spawned entity for 10 seconds
    set max health of spawned zombie to 100
    heal spawned zombie
    set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
    set helmet of the spawned zombie to a diamond helmet of protection 4
    set chestplate of the spawned zombie to a diamond chestplate of protection 4
    set leggings of the spawned zombie to a diamond leggings of protection 4
    set boots of the spawned zombie to a diamond boots of protection 4
    set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
    broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6%{_loc}%&7."

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify

 

Szczerze to nie mam pojęcia dlaczego to nie działa.

 

// Edit

aliases:
    nonsolid = 0, 6, 27, 28, 30, 31, 32, 37, 38, 39, 40, 50, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77, 78:0, 83, 85:4-7, 104, 105, 106, 111, 115, 131, 132, 141, 142, 143, 147, 148, 157

every 10 seconds:
    set {_loc} to location at random number between -2500 and 2500, 0, random number between -2500 and 2500
    loop blocks above {_loc}:
        loop-block is nonsolid
        block above loop-block is nonsolid
        set {_loc-output} to location of loop-block
        stop loop
    set {_loc} to {_loc-output}
    spawn a zombie at {_loc}
    apply speed 1 to the last spawned entity for 10 seconds
    apply resistance 99 to the last spawned entity for 10 seconds
    set max health of spawned zombie to 100
    heal spawned zombie
    set name of spawned zombie to "&c&lZOMBIE ZAGLADY"
    set helmet of the spawned zombie to a diamond helmet of protection 4
    set chestplate of the spawned zombie to a diamond chestplate of protection 4
    set leggings of the spawned zombie to a diamond leggings of protection 4
    set boots of the spawned zombie to a diamond boots of protection 4
    set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 2
    broadcast " &8» &c&lZombie Zaglady&7 zostal zrespiony na koordynatach: &6%{_loc}%&7."

Jak to nie działa, to nie wiem.

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...