Skocz do zawartości
  • 0

Spawnowanie mobów / problem z dodawaniem do zmiennej


Mr. Edgarsz

Pytanie

Witam.

Mam problem ponieważ przy śmierci lub otrzymaniu obrażeń nie działa mi dodawanie do zmiennej.

Kod:

on death:	attacker is holding wooden sword named "&c&lMiecz Pozeracza Dusz" with lore "&c&lLiczba Dusz: %{dusze.%attacker%}%"	if helmet of attacker is not wither skeleton head named "&e&lUluMulu":		add 1 to {dusze.%attacker%} <---		wait 1 tick		set lore of attacker's tool to "&c&lLiczba Dusz: %{dusze.%attacker%}%"	else:		cancel event

Kolejny problem to problem ze spawnowaniem mobów na bloku (Kod na ołtarz do przyzywania bossa):

on rightclick on dirt:	block east clicked block is Enchantment Table	block west clicked block is Enchantment Table	block north clicked block is Enchantment Table	block south clicked block is Enchantment Table	spawn zombie 5 above targeted block <---	#push the player upwards at speed 0.5	#push the player behind at speed 3	send "test"

Trzecią rzeczą jest pytanie odnośnie bloków:

Już jakiś czas męczę się z faktem iż nie odczytuje mi głowy czarnego szkieleta jako bloku i chociaż nie wywala błędów nie mogę go w żaden sposób wykorzystać. Tak więc pytanie brzmi: Jak odwołać się do bloku głowy withera.

Proszę o pomoc.

Pozdrawiam,

Edgarsz.

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

18 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Spróbuj to:

 on death:	attacker tool is wooden sword named "&c&lMiecz Pozeracza Dusz" with lore "&c&lLiczba Dusz: %{dusze.%attacker%}%":		if helmet of attacker is not wither skeleton head named "&e&lUluMulu":			add 1 to {dusze.%player%}			wait 1 tick			set lore of attacker's tool to "&c&lLiczba Dusz: %{dusze.%player%}%"		else:			cancel event
a to drugie:

 on rightclick on dirt:	block east clicked block is Enchanting Table:		block west clicked block is Enchanting Table:			block north clicked block is Enchanting Table:				block south clicked block is Enchanting Table:					spawn zombie 5 on targeted block					#push the player upwards at speed 0.5					#push the player behind at speed 3					send "test"
Nie obiecuje że bd dzialalo, bo nie sprawdzałem.
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Hmm... niestety nie pomogło.

Problem jest taki że skrypt jest dobry ale nie wywołują się określone rzeczy. Sprawdziłem czy jak zrobię komendę spawującą zombie nad głową gracza to podziała - i podziałało. Potem sprawdziłem czy jeżeli dam po prostu:

on leftclick on sponge:	spawn zombie above clicked block

Sprawdziłem też czy jak zmienię z "above" na "on" to coś to da... Efekt? Zero błędów podczas ładowania skryptu ale zombie się nie spawnuje. Jakieś pomysły?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

@Up: Dalej nic....

Ma ktoś pomysł co to może być? Nie działa ani dodawanie do zmiennej ani spawnowanie nad blokiem/na bloku + jeszcze na stojącą głowę wither skeletona nie działają loopy ani eventy typu on click.

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

  • 0

 

[18:31:49] [Server thread/INFO]: Starting minecraft server version 1.7.9[18:31:49] [Server thread/INFO]: Loading properties[18:31:49] [Server thread/INFO]: Default game type: SURVIVAL[18:31:49] [Server thread/INFO]: Generating keypair[18:31:50] [Server thread/INFO]: Starting Minecraft server on *:25565[18:31:50] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.1-b3084jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.1)[18:31:51] [Thread-7/INFO]: ----- Bukkit Auto Updater -----[18:31:51] [Thread-7/INFO]: It appears that you're running a Beta Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.[18:31:51] [Thread-7/INFO]: If you would like to be kept informed about new Beta Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'beta'.[18:31:51] [Thread-7/INFO]: With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.[18:31:51] [Thread-7/INFO]: If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.[18:31:51] [Thread-7/INFO]: ----- ------------------- -----[18:31:52] [Server thread/INFO]: [WorldEdit] Loading WorldEdit v6.0.0-SNAPSHOT:3122-33d4285,master[18:31:52] [Server thread/INFO]: [SkAddonLib] Loading SkAddonLib v1.4[18:31:52] [Server thread/INFO]: [BarAPI] Loading BarAPI v3.1[18:31:52] [Server thread/INFO]: [WorldGuard] Loading WorldGuard v5.9.1-SNAPSHOT:1296-4422d53,master[18:31:52] [Server thread/INFO]: [Skript] Loading Skript v2.1.2[18:31:52] [Server thread/INFO]: [BossBarSK] Loading BossBarSK v1.666[18:31:52] [Server thread/INFO]: [PermissionsBukkit] Loading PermissionsBukkit v2.2[18:31:52] [Server thread/INFO]: [SkriptPlus] Loading SkriptPlus v2.0.1-SNAPSHOT[18:31:52] [Server thread/INFO]: Preparing level "world"[18:31:52] [Server thread/ERROR]: Exception reading .worldlevel.datjava.util.zip.ZipException: Not in GZIP format	at java.util.zip.GZIPInputStream.readHeader(Unknown Source) ~[?:1.7.0_55]	at java.util.zip.GZIPInputStream.<init>(Unknown Source) ~[?:1.7.0_55]	at java.util.zip.GZIPInputStream.<init>(Unknown Source) ~[?:1.7.0_55]	at net.minecraft.server.v1_7_R3.NBTCompressedStreamTools.a(SourceFile:13) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.WorldLoader.c(SourceFile:56) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.WorldLoaderServer.isConvertable(SourceFile:88) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:155) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:167) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks]	at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-b3084jnks][18:31:52] [Server thread/WARN]: java.util.zip.ZipException: Not in GZIP format[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.readHeader(Unknown Source)[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.<init>(Unknown Source)[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.<init>(Unknown Source)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.NBTCompressedStreamTools.a(SourceFile:13)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.WorldNBTStorage.getWorldData(WorldNBTStorage.java:93)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.World.<init>(World.java:134)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.WorldServer.<init>(WorldServer.java:52)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:222)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)[18:31:52] [Server thread/WARN]: java.util.zip.ZipException: Not in GZIP format[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.readHeader(Unknown Source)[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.<init>(Unknown Source)[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.<init>(Unknown Source)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.NBTCompressedStreamTools.a(SourceFile:13)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.PersistentCollection.get(SourceFile:45)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.World.<init>(World.java:169)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.WorldServer.<init>(WorldServer.java:52)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:222)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)[18:31:52] [Server thread/WARN]: java.util.zip.ZipException: Not in GZIP format[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.readHeader(Unknown Source)[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.<init>(Unknown Source)[18:31:52] [Server thread/WARN]: 	at java.util.zip.GZIPInputStream.<init>(Unknown Source)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.NBTCompressedStreamTools.a(SourceFile:13)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.WorldNBTStorage.getWorldData(WorldNBTStorage.java:93)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.World.<init>(World.java:134)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.WorldServer.<init>(WorldServer.java:52)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.SecondaryWorldServer.<init>(SecondaryWorldServer.java:6)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:262)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436)[18:31:52] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)[18:31:52] [Server thread/INFO]: Preparing start region for level 0 (Seed: 6049667001154574934)[18:31:53] [Server thread/INFO]: Preparing start region for level 1 (Seed: 6049667001154574934)[18:31:53] [Server thread/INFO]: [WorldEdit] Enabling WorldEdit v6.0.0-SNAPSHOT:3122-33d4285,master[18:31:53] [Server thread/INFO]: WEPIF: Using the Bukkit Permissions API.[18:31:53] [Server thread/INFO]: [SkAddonLib] Enabling SkAddonLib v1.4[18:31:53] [Server thread/INFO]: [BarAPI] Enabling BarAPI v3.1[18:31:53] [Server thread/INFO]: [BarAPI] Loaded[18:31:53] [Server thread/INFO]: [WorldGuard] Enabling WorldGuard v5.9.1-SNAPSHOT:1296-4422d53,master[18:31:54] [Server thread/INFO]: [WorldGuard] (world) TNT ignition is PERMITTED.[18:31:54] [Server thread/INFO]: [WorldGuard] (world) Lighters are PERMITTED.[18:31:54] [Server thread/INFO]: [WorldGuard] (world) Lava fire is blocked.[18:31:54] [Server thread/INFO]: [WorldGuard] (world) Fire spread is UNRESTRICTED.[18:31:54] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world'[18:31:54] [Server thread/INFO]: [WorldGuard] (world_the_end) TNT ignition is PERMITTED.[18:31:54] [Server thread/INFO]: [WorldGuard] (world_the_end) Lighters are PERMITTED.[18:31:54] [Server thread/INFO]: [WorldGuard] (world_the_end) Lava fire is blocked.[18:31:54] [Server thread/INFO]: [WorldGuard] (world_the_end) Fire spread is UNRESTRICTED.[18:31:54] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world_the_end'[18:31:54] [Server thread/INFO]: [WorldGuard] 0 regions loaded for 'world'[18:31:54] [Server thread/INFO]: [WorldGuard] 0 regions loaded for 'world_the_end'[18:31:55] [Server thread/INFO]: [Skript] Enabling Skript v2.1.2[18:31:59] [Server thread/INFO]: [Skript] Loaded a total of 11504 english aliases[18:31:59] [Server thread/INFO]: [Skript]  ~ created by & © Peter Güttinger aka Njol ~[18:31:59] [Server thread/INFO]: [BossBarSK] Enabling BossBarSK v1.666[18:31:59] [Server thread/INFO]: [PermissionsBukkit] Enabling PermissionsBukkit v2.2[18:31:59] [Server thread/INFO]: [PermissionsBukkit] Enabled successfully[18:31:59] [Server thread/INFO]: [SkriptPlus] Enabling SkriptPlus v2.0.1-SNAPSHOT[18:31:59] [Server thread/WARN]: ---------------------------[18:31:59] [Server thread/WARN]: [18:31:59] [Server thread/WARN]: Your version of Skript Plus is 2.0.1-SNAPSHOT[18:31:59] [Server thread/WARN]: This is a development build, which may be incredibly buggy.[18:31:59] [Server thread/WARN]: [18:31:59] [Server thread/WARN]: Report bugs at[18:31:59] [Server thread/WARN]: http://dev.bukkit.org/bukkit-plugins/skript/forum/misc/59406/[18:31:59] [Server thread/WARN]: [18:31:59] [Server thread/WARN]: --------------------------[18:31:59] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it[18:31:59] [Server thread/INFO]: Done (7,154s)! For help, type "help" or "?"[18:31:59] [Server thread/ERROR]: [Skript] 'around' is not a direction (lodz.sk, line 42: loop blocks 1 block around event-block:')[18:31:59] [Server thread/INFO]: [Skript] Loaded 1 script with a total of 3 triggers and 2 commands in 0.3 seconds[18:31:59] [Server thread/INFO]: [Skript] Finished loading.[18:31:59] [pool-3-thread-1/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Checking for the latest version of Skript...[m[18:32:01] [Skript update thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m You're currently running the latest stable version of Skript.[m[18:34:25] [User Authenticator #1/INFO]: UUID of player edgarsz is a84dc592-ee61-495e-8862-30b3a692fea0[18:34:26] [Server thread/INFO]: edgarsz[/127.0.0.1:51440] logged in with entity id 84 at ([world] 130.41734035234873, 67.875, -1.719088923968002)[18:34:35] [Server thread/INFO]: edgarsz issued server command: /skript reload lodz[18:34:41] [Server thread/WARN]: [WorldEdit] No compatible nms block class found.[18:34:52] [Server thread/INFO]: edgarsz issued server command: /skript reload lodz[18:35:09] [Server thread/INFO]: edgarsz issued server command: /skript reload lodz[18:35:37] [Server thread/INFO]: edgarsz issued server command: /skript reload lodz[18:35:53] [Server thread/INFO]: edgarsz issued server command: /skript reload lodz[18:36:08] [Server thread/INFO]: edgarsz issued server command: /skript reload lodz[18:58:29] [Server thread/INFO]: edgarsz fell from a high place[18:58:33] [Server thread/INFO]: edgarsz issued server command: /back[18:58:39] [Server thread/INFO]: edgarsz issued server command: /gamemode 1[18:58:39] [Server thread/INFO]: edgarsz: Set own game mode to CREATIVE mode[m[18:58:49] [Server thread/INFO]: edgarsz lost connection: Internal Exception: java.io.IOException: Istniejące połączenie zostało gwałtownie zamknięte przez zdalnego hosta[18:58:49] [Server thread/INFO]: edgarsz left the game

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Nie mam. Najnowsza wersja Skripta i SkriptPlus jest na 100% kompatybilna z 1.7.4 i niekompatybilna z 1.7.9, bo jak pisał Jeb -> Wszystkie pluginy muszą być zaktualizowane na 1.7.9, bo pojawiło się tam sporo zmian w kodzie

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Problem jest taki że nie ma bukkita na 1.7.4 jest tylko na 1..7.5 no nic testuję. Btw. Dodam że zmieniałem wersję silnika na 1.7.2 i nie działało więc wątpię żeby na 1.7.5 podziałało. Jednakże zaraz to sprawdzę.

 

@Edit: Dalej nie działa. Paczka na 1.7.9 została mi podesłana przez Pirata on na niej testuje skrypty więc....

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

  • 0
Can't understand this expression: (('%rounded x location of clicked block%', '%rounded y location of clicked block+1%' and '%rounded z location of clicked block%')) (lodz.sk, line 33: set {_block} to (%rounded x location of clicked block%, %rounded y location of clicked block+1%, %rounded z location of clicked block%)')

Z konsoli /

Odnośnik do komentarza
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ę...