[SPIGOT-6117] Summoning the Air Item throw an Error Created: 28/Aug/20 Updated: 04/Dec/23 Resolved: 04/Dec/23 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | guerryer | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | entity |
Version: | git-Spigot-b5a13e6-3f57283 (MC: 1.16.2) |
Guidelines Read: | Yes |
Description |
Summoning the Air item throw an error and put Unable to summon entity in the chat. Video (Chat Message) Command: /summon minecraft:item ~ ~ ~ [09:06:35] [Server thread/INFO]: guerryer issued server command: /summon minecraft:item ~ ~ ~ [09:06:35] [Server thread/WARN]: Exception loading entity: net.minecraft.server.v1_16_R2.ReportedException: Loading entity NBT at net.minecraft.server.v1_16_R2.Entity.load(Entity.java:1663) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.EntityTypes.lambda$108(EntityTypes.java:321) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.SystemUtils.a(SourceFile:402) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.EntityTypes.a(EntityTypes.java:318) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.EntityTypes.b(EntityTypes.java:366) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.EntityTypes.a(EntityTypes.java:347) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.CommandSummon.a(SourceFile:65) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.CommandSummon.b(SourceFile:45) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.CommandDispatcher.a(CommandDispatcher.java:182) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at org.bukkit.craftbukkit.v1_16_R2.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:45) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:756) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1697) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1540) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(SourceFile:144) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(SourceFile:118) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:941) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:934) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(SourceFile:127) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:918) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:850) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.IllegalArgumentException: Cannot drop air at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.EntityItem.setItemStack(EntityItem.java:418) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.EntityItem.loadData(EntityItem.java:321) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] at net.minecraft.server.v1_16_R2.Entity.load(Entity.java:1607) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-3f57283] ... 29 more |
Comments |
Comment by Marvin Rieple [ 04/Dec/23 ] |
Was fixed in 1.20.2 with this commit: 069495671ec |
Comment by guerryer [ 29/Aug/20 ] |
Sure, so I'm using a mob spawner to spawn an item (A stone block because air can't be summon ... yet) with a villager passenger (Any mobs/entity can be used) because the item doesn't have a minimum delay to spawn. Video: https://youtu.be/E-NnxuGWuSg /setblock ~ ~1 ~ spawner{SpawnCount:24,MaxNearbyEntities:1,SpawnRange:0.1,Delay:1,MinSpawnDelay:1,MaxSpawnDelay:1,RequiredPlayerRange:1,SpawnData:{id:"minecraft:item",Item:{id:"stone",Count:1b},Passengers:[{id:"minecraft:villager"}]}} replace I'm doing a map to test almost every features of the game and also the reason why I posted bug reports recently. |
Comment by md_5 [ 29/Aug/20 ] |
> , I use it with a mob spawner to bypass the spawn rate of the spawner (I can make a video if you want). Can you explain a bit more how that works? |
Comment by guerryer [ 29/Aug/20 ] |
The main reason why I reported this issue, it's because of the error. For the usefulness of summoning the air item, I use it with a mob spawner to bypass the spawn rate of the spawner (I can make a video if you want). |
Comment by md_5 [ 28/Aug/20 ] |
How is summoning the air item useful? |