Witam. Mam tak jak w temacie, wszystko jest dobrze? czy jednak może źle?.
kod skryptu:
# Licencja - HeroseQ
#----------------------------------------------
#Zezwalam na:
#- Edytowanie kodu skryptu.
#- Używanie skryptu na serverach.
#Nie zezwalam na:
#- Podszywanie sie pod autora
#- Udostepnianie skryptu na innych forach.
#- Zmienianie licencji lub usuwanie jej.
#----------------------------------------------
options:
item1: 8 diamond
item2: 14 iron ingot
item3: 17 tnt
item4: 12 tnt
item5: 8 gold ingot
item6: 16 gold ingot
item7: 8 diamond
item8: 11 diamond
item9: 10 golden apple
item10: 15 apple
item11: 18 obsidian
item12: 64 glowstone
item13: 2 enchanted golden apple
item14: diamond pickaxe of fortune 3
item15: 7 diamond sword of unbreaking 2
on load:
add {@item1} to {drop::*}
add {@item2} to {drop::*}
add {@item3} to {drop::*}
add {@item4} to {drop::*}
add {@item5} to {drop::*}
add {@item6} to {drop::*}
add {@item7} to {drop::*}
add {@item8} to {drop::*}
add {@item9} to {drop::*}
add {@item10} to {drop::*}
add {@item11} to {drop::*}
add {@item12} to {drop::*}
add {@item13} to {drop::*}
add {@item14} to {drop::*}
add {@item15} to {drop::*}
stop
on mine of stone:
chance of 0.1%:
drop 1 chest named "&cMagiczna skrzynka" with lore "&eTa skrzynka zawiera" and "&eBardzo ciekawe nagody"
broadcast "&2Gracz &e%player% &2znalazł magiczną skrzynke !"
on place chest:
if name of player's tool is "&cMagiczna skrzynka":
player has 1 tripwire hook named "&5&lKlucz" with lore "&7Tym kluczem mozesz" and "&7otworzyc magiczna skrzynke":
remove 1 tripwire hook named "&5&lKlucz" with lore "&7Tym kluczem mozesz" and "&7otworzyc magiczna skrzynke" from player
remove 1 chest named "&cMagiczna skrzynka" with lore "&eTa skrzynka zawiera" and "&eBardzo ciekawe nagody" from player
drop a random item out of {drop::*}
send "&cZ skrzynki wypadł jakiś przedmiot !"
broadcast "&2Gracz &e%player% &2otworzył magiczną skrzynke !"
set event-block to air
else:
send "&cNie możesz użyć skrzynki nie mając klucza ! &7Możesz go zdobyc kopiąc kamień!"
drop 1 chest named "&cMagiczna skrzynka" with lore "&eTa skrzynka zawiera" and "&eBardzo ciekawe nagody"
set event-block to air
on mine of stone:
chance of 0.1%:
drop 1 tripwire hook named "&5&lKlucz" with lore "&7Tym kluczem mozesz" and "&7otworzyc magiczną skrzynke"
broadcast "&2Gracz &e%player% &2znalazł klucz do magicznej skrzynki !"
Kod błędu:
[09:44:19] [Server thread/WARN]: java.lang.Exception
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.Chunk.setTileEntity(Chunk.java:462)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.World.setTileEntity(World.java:969)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.ItemStack.placeItem(ItemStack.java:228)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:472)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1238)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886)
[09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819)
[09:44:19] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:830)
[09:44:19] [Server thread/WARN]: Block entity invalid: minecraft:chest @ BlockPosition{x=-13, y=73, z=-3}
Pytanie
SzlugPL 2
Witam. Mam tak jak w temacie, wszystko jest dobrze? czy jednak może źle?.
kod skryptu:
# Licencja - HeroseQ #---------------------------------------------- #Zezwalam na: #- Edytowanie kodu skryptu. #- Używanie skryptu na serverach. #Nie zezwalam na: #- Podszywanie sie pod autora #- Udostepnianie skryptu na innych forach. #- Zmienianie licencji lub usuwanie jej. #---------------------------------------------- options: item1: 8 diamond item2: 14 iron ingot item3: 17 tnt item4: 12 tnt item5: 8 gold ingot item6: 16 gold ingot item7: 8 diamond item8: 11 diamond item9: 10 golden apple item10: 15 apple item11: 18 obsidian item12: 64 glowstone item13: 2 enchanted golden apple item14: diamond pickaxe of fortune 3 item15: 7 diamond sword of unbreaking 2 on load: add {@item1} to {drop::*} add {@item2} to {drop::*} add {@item3} to {drop::*} add {@item4} to {drop::*} add {@item5} to {drop::*} add {@item6} to {drop::*} add {@item7} to {drop::*} add {@item8} to {drop::*} add {@item9} to {drop::*} add {@item10} to {drop::*} add {@item11} to {drop::*} add {@item12} to {drop::*} add {@item13} to {drop::*} add {@item14} to {drop::*} add {@item15} to {drop::*} stop on mine of stone: chance of 0.1%: drop 1 chest named "&cMagiczna skrzynka" with lore "&eTa skrzynka zawiera" and "&eBardzo ciekawe nagody" broadcast "&2Gracz &e%player% &2znalazł magiczną skrzynke !" on place chest: if name of player's tool is "&cMagiczna skrzynka": player has 1 tripwire hook named "&5&lKlucz" with lore "&7Tym kluczem mozesz" and "&7otworzyc magiczna skrzynke": remove 1 tripwire hook named "&5&lKlucz" with lore "&7Tym kluczem mozesz" and "&7otworzyc magiczna skrzynke" from player remove 1 chest named "&cMagiczna skrzynka" with lore "&eTa skrzynka zawiera" and "&eBardzo ciekawe nagody" from player drop a random item out of {drop::*} send "&cZ skrzynki wypadł jakiś przedmiot !" broadcast "&2Gracz &e%player% &2otworzył magiczną skrzynke !" set event-block to air else: send "&cNie możesz użyć skrzynki nie mając klucza ! &7Możesz go zdobyc kopiąc kamień!" drop 1 chest named "&cMagiczna skrzynka" with lore "&eTa skrzynka zawiera" and "&eBardzo ciekawe nagody" set event-block to air on mine of stone: chance of 0.1%: drop 1 tripwire hook named "&5&lKlucz" with lore "&7Tym kluczem mozesz" and "&7otworzyc magiczną skrzynke" broadcast "&2Gracz &e%player% &2znalazł klucz do magicznej skrzynki !"Kod błędu:
[09:44:19] [Server thread/WARN]: java.lang.Exception [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.Chunk.setTileEntity(Chunk.java:462) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.World.setTileEntity(World.java:969) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.ItemStack.placeItem(ItemStack.java:228) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:472) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1238) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886) [09:44:19] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819) [09:44:19] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:830) [09:44:19] [Server thread/WARN]: Block entity invalid: minecraft:chest @ BlockPosition{x=-13, y=73, z=-3}Edytowane przez WojciuOdnośnik do komentarza
https://skript.pl/temat/38906-warn-konsoli-po-otworzeniu-skrzynki/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.