Cannot create ModeledEntity
Simply using ModelEngineAPI#createModeledEntity(Entity); like the API section in the wiki says prints this error: The BukkitEntityData#syncUpdate function is trying to remove an element from an immutable collection.
Paper version: This server is running Paper version git-Paper-196 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 773dd72) You are running the latest version Previous version: git-Paper-195 (MC: 1.20.1)
java.lang.UnsupportedOperationException: null
at com.google.common.collect.ImmutableCollection.removeIf(ImmutableCollection.java:320) ~[guava-31.1-jre.jar:?]
at com.ticxo.modelengine.api.entity.data.BukkitEntityData.syncUpdate(BukkitEntityData.java:76) ~[ModelEngine-4.0.0.jar:?]
at com.ticxo.modelengine.api.entity.data.BukkitEntityData.<init>(BukkitEntityData.java:40) ~[ModelEngine-4.0.0.jar:?]
at com.ticxo.modelengine.api.entity.BukkitEntity.createEntityData(BukkitEntity.java:50) ~[ModelEngine-4.0.0.jar:?]
at com.ticxo.modelengine.api.entity.BukkitEntity.<init>(BukkitEntity.java:41) ~[ModelEngine-4.0.0.jar:?]
at com.ticxo.modelengine.api.ModelEngineAPI.createModeledEntity(ModelEngineAPI.java:106) ~[ModelEngine-4.0.0.jar:?]
at com.ticxo.modelengine.api.ModelEngineAPI.getOrCreateModeledEntity(ModelEngineAPI.java:131) ~[ModelEngine-4.0.0.jar:?]
at killerceepr.deadpoint.entity.type.CrimsonEyeGrim.lambda$spawnFunction$0(CrimsonEyeGrim.java:37) ~[Deadpoint-1.0.jar:?]
at killerceepr.deadpoint.entity.type.GrimEntity.lambda$spawn$0(GrimEntity.java:180) ~[Deadpoint-1.0.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.CraftRegionAccessor.addEntity(CraftRegionAccessor.java:566) ~[paper-1.20.1.jar:git-Paper-196]
at org.bukkit.craftbukkit.v1_20_R1.CraftRegionAccessor.spawn(CraftRegionAccessor.java:545) ~[paper-1.20.1.jar:git-Paper-196]
at org.bukkit.craftbukkit.v1_20_R1.CraftRegionAccessor.spawn(CraftRegionAccessor.java:539) ~[paper-1.20.1.jar:git-Paper-196]
at org.bukkit.RegionAccessor.spawn(RegionAccessor.java:349) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.RegionAccessor.spawnEntity(RegionAccessor.java:359) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at killerceepr.deadpoint.entity.type.GrimEntity.spawn(GrimEntity.java:140) ~[Deadpoint-1.0.jar:?]
at killerceepr.deadpoint.entity.type.GrimEntity.spawn(GrimEntity.java:136) ~[Deadpoint-1.0.jar:?]
at killerceepr.deadpoint.listeners.ItemListener.onPlayerInteract(ItemListener.java:144) ~[Deadpoint-1.0.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor91.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:git-Paper-196]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.1.jar:git-Paper-196]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.1.jar:git-Paper-196]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:591) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:537) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:2015) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:37) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.a(ServerboundUseItemOnPacket.java:9) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1338) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1315) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1308) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1286) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1174) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-196]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information