Mr_suma 8760818f4e3347398456d1a3fac049ee
이해도 | 초보자(스크립트 구성요소나 기본문법은 알아요) |
---|---|
게임버전 (JE) | 1.17.1 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.6 |
[19:22:20] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.AssertionError: TRAP
at net.minecraft.world.item.ItemStack.checkEmpty(ItemStack.java:187) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.world.item.ItemStack.setCount(ItemStack.java:1231) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.level.PlayerInteractManager.a(PlayerInteractManager.java:445) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1596) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.network.protocol.game.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:28) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.network.protocol.game.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:30) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(SourceFile:151) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(SourceFile:125) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1148) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1141) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(SourceFile:134) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1125) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1054) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305) ~[spigot-1.17.1.jar:3276-Spigot-3892929-b58f429]
at java.lang.Thread.run(Thread.java:831) [?:?]
콘솔창에 이렇게 뜨더라구요
거너아나
2021.11.23죄송하지만 코드도 좀 보여주세요
Mr_Suma
2021.11.23command /수표발행 [<integer>]:
trigger:
if arg 1 is set:
if arg-1 > {%player%.돈}:
message "&7당신이 소지하고 있는 돈보다 더 많은 금액을 인출할 수 없습니다." to player
stop
else:
if arg-1 is 0:
message "&60&7원은 수표로 변환할 수 없습니다." to player
stop
else:
if arg-1 <= {%player%.돈}:
message "&a 성공적&f으로 &6수표&f를 발행했습니다." to player
subtract arg-1 from {%player%.돈}
give paper named "수표 &6%arg 1%&f원 with lore &8발행자: %player%" to player
stop
if arg 1 is not set:
message "&7/수표발행 [금액] - 자신의 돈을 수표로 내보냅니다." to player
on rightclick with paper:
if name of player's tool contains "수표":
set {_name} to uncolored name of player's tool
replace all "수표" and "원" and " " with "" in {_name}
set {_name} to {_name} parsed as integer
add {_name} to {%player%.돈}
remove 1 paper from player's tool
message "수표를 사용해 &6%{_name}%&f원을 지급 받았습니다." to player
거너아나
2021.11.23그 수표를 우클릭할때 에러가 나신다면
remove 1 paper from player's tool를 remove 1 from item amount of player's tool로 바꾸어보시겠어요
Mr_Suma
2021.11.23우클릭 했을 때 스코어보드에 돈이 올라간게 표시가 안되고 그 상태로 튕겨버리네요..
거너아나
2021.11.23고쳐도 그런가요
Mr_Suma
2021.11.23네 그렇네요.. 어떻게 해야될까요ㅜㅜ
세티스
2021.12.05비슷한글있어서 기억나는데 cancel event를 사용하면 해결될겁니다.