Are you sure the bat isn't suffering a counterattack? Being pushed around should never, ever deposit it back in your inventory.
It bites the zombie/ sheep/ skeleton/ wolf/ creeper/ iron golem/ polar bear/ polar bear cub/ shulker/ cow/ guardian/ each other and it is thrown back by its own attack. Like they are being repelled. When I noticed this issue in survival I made a superflat for testing and had 8 at once bouncing off whatever they were attacking like they were tied on with elastic bands. I just went back in and made sure all other mods were taken out and it's definitely a prominent bug. Sometimes the bats will be thrown so far away from me that they will be sent to my inventory because of the distance. Not because the attack was sending them to my inventory. They are just beyond the distance threshold. And if you accidentally hit one of your own pet bats the rest target the one you hit.
I made the pit arena bigger and deeper to make it harder for them to get thrown out of for testing because otherwise I keep having to toss them out of my inventory and back into the battle.
Something else I noticed and I don't know if it was intended or not is that bats won't attack ghasts. I hit a ghast that's trapped below them and the bats just hang around doing nothing.
Gotta add that I can't thank you enough for updating this mod. It's a beautiful, wonderful little mod that I've had hours upon hours of fun with and I'll never get enough of it.
Thank you for bringing this to my attention. Apparently there was a change in how knockback works for 1.10 and i never noticed. While i was at it i managed to make their observable movement much smoother.
I have just tried Pet Bats in 1.11.0 and was able to duplicate the crash trying to use the flute. No other mods are present. I did this in a super flat world created just to test this bug.
Here is the crash report.
---- Minecraft Crash Report ----
// There are four lights!
java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at net.minecraft.util.NonNullList.remove(SourceFile:59)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at atomicstryker.petbat.common.PetBatMod.removeFluteFromPlayer(PetBatMod.java:400)
at atomicstryker.petbat.common.EntityPetBat.func_70071_h_(EntityPetBat.java:423)
at net.minecraft.world.World.func_72866_a(World.java:1987)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:839)
at net.minecraft.world.World.func_72870_g(World.java:1957)
at net.minecraft.world.World.func_72939_s(World.java:1773)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:620)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:720)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:624)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at java.util.AbstractList.remove(AbstractList.java:161)
at net.minecraft.util.NonNullList.remove(SourceFile:59)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at atomicstryker.petbat.common.PetBatMod.removeFluteFromPlayer(PetBatMod.java:400)
at atomicstryker.petbat.common.EntityPetBat.func_70071_h_(EntityPetBat.java:423)
at net.minecraft.world.World.func_72866_a(World.java:1987)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:839)
at net.minecraft.world.World.func_72870_g(World.java:1957)
-- Entity being ticked --
Details:
Entity Type: petbat:petbat (atomicstryker.petbat.common.EntityPetBat)
Entity ID: 15640
Entity Name: Lucius
Entity's Exact location: -375.84, 38.38, 893.32
Entity's Block location: World: (-376,38,893), Chunk: (at 8,2,13 in -24,55; contains blocks -384,0,880 to -369,255,895), Region: (-1,1; contains chunks -32,32 to -1,63, blocks -512,0,512 to -1,255,1023)
Entity's Momentum: -0.12, -0.01, -0.24
Entity's Passengers: []
Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1773)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:620)
-- Affected level --
Details:
Level name: 1.11.0_Mod Testing Flat-Bats
All players: 1 total; [EntityPlayerMP['Crafty_Angyl'/324, l='1.11.0_Mod Testing Flat-Bats', x=-379.30, y=34.00, z=893.70]]
Chunk stats: ServerChunkCache: 476 Drop: 0
Level seed: -971901656266500397
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 3;minecraft:bedrock,29*minecraft:stone,3*minecraft:dirt,minecraft:grass;1;village,biome_1,decoration,stronghold,mineshaft,lake,lava_lake,dungeon
Level spawn location: World: (-402,4,955), Chunk: (at 14,0,11 in -26,59; contains blocks -416,0,944 to -401,255,959), Region: (-1,1; contains chunks -32,32 to -1,63, blocks -512,0,512 to -1,255,1023)
Level time: 4224 game time, 4224 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 108705 (now: false), thunder time: 131433 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:720)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:624)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at java.lang.Thread.run(Thread.java:745)
-- System Details --
Details:
Minecraft Version: 1.11
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 322006224 bytes (307 MB) / 736743424 bytes (702 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.35 Powered by Forge 13.19.0.2149 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forge-1.11-13.19.0.2149.jar)
UCHIJAAAA forge{13.19.0.2149} [Minecraft Forge] (forge-1.11-13.19.0.2149.jar)
UCHIJAAAA petbat{1.4.4} [Pet Bat] (PetBat-1.11.jar)
Loaded coremods (and transformers):
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Player Count: 1 / 8; [EntityPlayerMP['Crafty_Angyl'/324, l='1.11.0_Mod Testing Flat-Bats', x=-379.30, y=34.00, z=893.70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
I'm testing further and hunting for more bugs. The attached images show one. The bats sometimes hang hovering below the block they are supposed to be hanging from.
Aaaaand I even figured out a way to break the world with the bug. But I predicted that it was going to happen. Apparently the bug is caused by the bat item. I haven't completely tested this, since I didn't try taking a pet bat out of creative inventory yet and that was going to be the last bat-item-in-inventory test since RadiantSkies already stated that it also happens when they die, but I used /kill on myself when I had a whole bunch of bats and when I respawned I was far enough away that they all tried to go to my inventory. So now when I try to enter the world, whelp... Whenever I tried the flute or anything before this, when I came back into the world the flute was back and the bat was still flying about as though I hadn't used it, but because my character is now too far away the mod is trying to send them to inventory and the bug is immediately crashing. The crash report is no doubt the same, just with more bats!
When a fix is released I'll try opening the broken world with the new download.
My friends and I are trying to use the mod on the server for 1.10.2. We're having trouble taming them. We have a few mods and it works in single player, but not in multiplayer. Anyone else having this issue?
I played your mod the whole of today and yesterday and it is definitely awesome!
One suggestion though, after the bats reached level 6, the mod don't seem to have any other fun things to do so I was thinking maybe increase the level cap more to something like I dunno maybe 100? I am a pokemon fan and reaching the max level so easily kinda gets me a little bored lol.
and also enableing different abilities that we can choose from after reaching a specific level or something?
Like maybe have your bat have lighting moves after reaching level 30 etc
And also you can put in a setting ish thing where those that don't want their bats using their moves can simply disable it.
I have no idea how to make a mod so I really don't know if what I suggested is possible. I'm just telling you some of the changes that would make me very happy XD
The Meaning of Life, the Universe, and Everything.
Join Date:
2/21/2017
Posts:
42
Member Details
just out of curiosity; what would one need to do to make an add-on for this mod; that is i want to make armor for my pet bat --- similar to how someone designed the mod that gives armor and inventory space to pet wolves -- that he can use to have at least some protection since his HP caps at 28 max at fully leveled.
-- at the least i want the little guy to be able to carry some items on himself at all items; - like a stack of pumpkin pies so he can eat when he needs to heal; maybe i'm just being too ambious now but i still think its very possible. - even if the add-on has to function via the "human-bat interface" (the screen that lets you rename your pet bat while its in item mode) in order to give the little guy items and or armor to equip.
Are you sure the bat isn't suffering a counterattack? Being pushed around should never, ever deposit it back in your inventory.
It bites the zombie/ sheep/ skeleton/ wolf/ creeper/ iron golem/ polar bear/ polar bear cub/ shulker/ cow/ guardian/ each other and it is thrown back by its own attack. Like they are being repelled. When I noticed this issue in survival I made a superflat for testing and had 8 at once bouncing off whatever they were attacking like they were tied on with elastic bands. I just went back in and made sure all other mods were taken out and it's definitely a prominent bug. Sometimes the bats will be thrown so far away from me that they will be sent to my inventory because of the distance. Not because the attack was sending them to my inventory. They are just beyond the distance threshold. And if you accidentally hit one of your own pet bats the rest target the one you hit.
I made the pit arena bigger and deeper to make it harder for them to get thrown out of for testing because otherwise I keep having to toss them out of my inventory and back into the battle.
Something else I noticed and I don't know if it was intended or not is that bats won't attack ghasts. I hit a ghast that's trapped below them and the bats just hang around doing nothing.
Gotta add that I can't thank you enough for updating this mod. It's a beautiful, wonderful little mod that I've had hours upon hours of fun with and I'll never get enough of it.
Ice and Fire: Dragons in a whole new light
Thank you for bringing this to my attention. Apparently there was a change in how knockback works for 1.10 and i never noticed. While i was at it i managed to make their observable movement much smoother.
Have version 1.4.4
That's wonderful, thank you very much. I'll try it right away.
Ice and Fire: Dragons in a whole new light
Thank you missed this mod so much.
Ported to 1.11. I don't expect any issues but ... well .. you are my testers.
The darkness is receding and hope has returned to the land, all thanks to you.
Ice and Fire: Dragons in a whole new light
Downloaded the 1.11 version.
Every time the bat dies OR the flute is used, the game crashes. I took out all mods including Optifine and the crashes continued.
Founder of the NerdNation Minecraft community.
Join us: https://discord.gg/BPvUr8T
I have just tried Pet Bats in 1.11.0 and was able to duplicate the crash trying to use the flute. No other mods are present. I did this in a super flat world created just to test this bug.
Here is the crash report.
---- Minecraft Crash Report ----
// There are four lights!
Time: 12/22/16 1:14 PM
Description: Ticking entity
java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at net.minecraft.util.NonNullList.remove(SourceFile:59)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at atomicstryker.petbat.common.PetBatMod.removeFluteFromPlayer(PetBatMod.java:400)
at atomicstryker.petbat.common.EntityPetBat.func_70071_h_(EntityPetBat.java:423)
at net.minecraft.world.World.func_72866_a(World.java:1987)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:839)
at net.minecraft.world.World.func_72870_g(World.java:1957)
at net.minecraft.world.World.func_72939_s(World.java:1773)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:620)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:720)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:624)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server thread
Stacktrace:
at java.util.AbstractList.remove(AbstractList.java:161)
at net.minecraft.util.NonNullList.remove(SourceFile:59)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at atomicstryker.petbat.common.PetBatMod.removeFluteFromPlayer(PetBatMod.java:400)
at atomicstryker.petbat.common.EntityPetBat.func_70071_h_(EntityPetBat.java:423)
at net.minecraft.world.World.func_72866_a(World.java:1987)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:839)
at net.minecraft.world.World.func_72870_g(World.java:1957)
-- Entity being ticked --
Details:
Entity Type: petbat:petbat (atomicstryker.petbat.common.EntityPetBat)
Entity ID: 15640
Entity Name: Lucius
Entity's Exact location: -375.84, 38.38, 893.32
Entity's Block location: World: (-376,38,893), Chunk: (at 8,2,13 in -24,55; contains blocks -384,0,880 to -369,255,895), Region: (-1,1; contains chunks -32,32 to -1,63, blocks -512,0,512 to -1,255,1023)
Entity's Momentum: -0.12, -0.01, -0.24
Entity's Passengers: []
Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1773)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:620)
-- Affected level --
Details:
Level name: 1.11.0_Mod Testing Flat-Bats
All players: 1 total; [EntityPlayerMP['Crafty_Angyl'/324, l='1.11.0_Mod Testing Flat-Bats', x=-379.30, y=34.00, z=893.70]]
Chunk stats: ServerChunkCache: 476 Drop: 0
Level seed: -971901656266500397
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 3;minecraft:bedrock,29*minecraft:stone,3*minecraft:dirt,minecraft:grass;1;village,biome_1,decoration,stronghold,mineshaft,lake,lava_lake,dungeon
Level spawn location: World: (-402,4,955), Chunk: (at 14,0,11 in -26,59; contains blocks -416,0,944 to -401,255,959), Region: (-1,1; contains chunks -32,32 to -1,63, blocks -512,0,512 to -1,255,1023)
Level time: 4224 game time, 4224 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 108705 (now: false), thunder time: 131433 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:720)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:624)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:149)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at java.lang.Thread.run(Thread.java:745)
-- System Details --
Details:
Minecraft Version: 1.11
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 322006224 bytes (307 MB) / 736743424 bytes (702 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.35 Powered by Forge 13.19.0.2149 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forge-1.11-13.19.0.2149.jar)
UCHIJAAAA forge{13.19.0.2149} [Minecraft Forge] (forge-1.11-13.19.0.2149.jar)
UCHIJAAAA petbat{1.4.4} [Pet Bat] (PetBat-1.11.jar)
Loaded coremods (and transformers):
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Player Count: 1 / 8; [EntityPlayerMP['Crafty_Angyl'/324, l='1.11.0_Mod Testing Flat-Bats', x=-379.30, y=34.00, z=893.70]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
Ice and Fire: Dragons in a whole new light
I'm testing further and hunting for more bugs. The attached images show one. The bats sometimes hang hovering below the block they are supposed to be hanging from.
Ice and Fire: Dragons in a whole new light
Aaaaand I even figured out a way to break the world with the bug. But I predicted that it was going to happen. Apparently the bug is caused by the bat item. I haven't completely tested this, since I didn't try taking a pet bat out of creative inventory yet and that was going to be the last bat-item-in-inventory test since RadiantSkies already stated that it also happens when they die, but I used /kill on myself when I had a whole bunch of bats and when I respawned I was far enough away that they all tried to go to my inventory. So now when I try to enter the world, whelp... Whenever I tried the flute or anything before this, when I came back into the world the flute was back and the bat was still flying about as though I hadn't used it, but because my character is now too far away the mod is trying to send them to inventory and the bug is immediately crashing. The crash report is no doubt the same, just with more bats!
When a fix is released I'll try opening the broken world with the new download.
Ice and Fire: Dragons in a whole new light
Thanks for the flute crash report, i pushed 1.4.5 to fix this
Works like a charm. Thanks so much!
Founder of the NerdNation Minecraft community.
Join us: https://discord.gg/BPvUr8T
Thank you very much! Off to see if I can reenter that world with the updated download.
Ice and Fire: Dragons in a whole new light
With this newest release I was able to reenter the broken world and it looks like it's running fine.
Ice and Fire: Dragons in a whole new light
I don't know if it's just for Creative mode but when I try taming it they always double... also it's on 1.10.2 btw
My friends and I are trying to use the mod on the server for 1.10.2. We're having trouble taming them. We have a few mods and it works in single player, but not in multiplayer. Anyone else having this issue?
Hello
I played your mod the whole of today and yesterday and it is definitely awesome!
One suggestion though, after the bats reached level 6, the mod don't seem to have any other fun things to do so I was thinking maybe increase the level cap more to something like I dunno maybe 100? I am a pokemon fan and reaching the max level so easily kinda gets me a little bored lol.
and also enableing different abilities that we can choose from after reaching a specific level or something?
Like maybe have your bat have lighting moves after reaching level 30 etc
And also you can put in a setting ish thing where those that don't want their bats using their moves can simply disable it.
I have no idea how to make a mod so I really don't know if what I suggested is possible. I'm just telling you some of the changes that would make me very happy XD
Once again your mod is awesome, keep it up~
just out of curiosity; what would one need to do to make an add-on for this mod; that is i want to make armor for my pet bat --- similar to how someone designed the mod that gives armor and inventory space to pet wolves -- that he can use to have at least some protection since his HP caps at 28 max at fully leveled.
-- at the least i want the little guy to be able to carry some items on himself at all items; - like a stack of pumpkin pies so he can eat when he needs to heal; maybe i'm just being too ambious now but i still think its very possible. - even if the add-on has to function via the "human-bat interface" (the screen that lets you rename your pet bat while its in item mode) in order to give the little guy items and or armor to equip.
You would require programming skills to do that and essentially rewrite parts of this mod. There is no "addon" way to do this, not really.