Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NBT tag that was too big #3411

Closed
FalseMSP opened this issue Jul 17, 2022 · 15 comments
Closed

NBT tag that was too big #3411

FalseMSP opened this issue Jul 17, 2022 · 15 comments
Labels
type: bug Issue where something isn't working

Comments

@FalseMSP
Copy link

Describe the Bug

I built a auto miner to get resources but then when i picked up the drill, it kicked me with an error, and now i am banned from my own server B)

Reproduction Steps

  1. Make an auto mining drill
  2. Mine for a while
  3. If it is big enough, when you pick it up it will kick you from the server
    ...

Expected Result

I should have the item lol

Screenshots and Videos

image

Crash Report or Log

no crash, just kick

Operating System

Windows 11

Mod Version

0.5.0c

Minecraft Version

1.18.2

Forge Version

40.1.60

Other Mods

image

Additional Context

Just a server, will wipe my playerdata so its not a big deal, but should be resolved nonetheless

@FalseMSP FalseMSP added the type: bug Issue where something isn't working label Jul 17, 2022
@github-actions github-actions bot added the 1.18 label Jul 17, 2022
@Jmooroof
Copy link

Jmooroof commented Jul 18, 2022

This isn't a bug with Create.

Minecraft will kick you if you have too much data.
When you play modded Minecraft, make sure you don't have too much data in your inventory.

(don't ask me anything about Create. I am not a developer)

@FalseMSP
Copy link
Author

yea i realize that, i just assumed that they should do something to make sure the minecart contraption never pushes that limit which is y i put it here

@MrRedRhino
Copy link

#3001

@mcspacecash
Copy link

mcspacecash commented Nov 24, 2022

Is there any way to search in NBT Explorer* for that contraption and edit it to get it down to a size that won't boot the player? I unfortunately didn't backup my single player world and now can't get in. I'd rather not start over. If I can find this contraption and edit it, hopefully I can load in and correct it.

I believe where I went wrong was too many chests each with a single block in each cell. I was using that was a way to filter the blocks I would collect (ie double chests of only cobble, dirt, gravel, etc.).

*When I try to search "contraption" in NBTExplorer the program freezes and then crashes. I'm wondering if there's a specific name/value I could query to find a contraption.

@FalseMSP
Copy link
Author

Hey ik this is old but here's my weird solutions...

if its in your inventory than just look thorugh ur inventory and there are some tags that you can delete
if its still placed I just found that /kill works well in console (This is on a server, idk if it works on singleplayer)
IDK how helpful this is 🤷

@mcspacecash
Copy link

It's not in my inventory, unfortunately. It happened the second I flipped the lever to turn it from a contraption in the world to an entity. I'm assuming that when I did that it turned into a single entity with too many NBT tags. Unfortunately, I believe I would have to find the chunk where that entity is, but I don't know how/where. If I knew what to search for in NBT Explorer and if NBT Explorer wouldn't crash when searching I could probably do that.. :-(

@TankMissile
Copy link

Same thing happened on my server. It would be nice if there was some safeguard against it, such as an error notice and preventing you from creating the entity or picking it up when the NBT is too big. It's very easy to nuke a world unexpectedly.

@muriplz
Copy link
Contributor

muriplz commented Jun 26, 2023

i made a client side mod that can solve it, and also XLPackets works to solve it (i think). Here is the mod in question https://modrinth.com/mod/create-big-contraptions Would love to see a fix in base Create though!

@LaidBackSloth
Copy link

For me, neither CreateBigContraptions nor XLPackets did work, but https://www.curseforge.com/minecraft/mc-mods/packet-fixer did

@PiTheGuy
Copy link
Contributor

Create already has a check that's supposed to prevent this, but it clearly doesn't work every time

@KakashoLin
Copy link

Server seemed to have issues after using Create's Item Vault and hooking chests to it. Getting the exact error message above.

@muriplz
Copy link
Contributor

muriplz commented Apr 16, 2024

Server seemed to have issues after using Create's Item Vault and hooking chests to it. Getting the exact error message above.

not sure if you will find it useful, but I made a mod that fixes this client side, called Create: Big Contraptions. XLPackets I think also fixes this issue

@DereC4
Copy link

DereC4 commented Apr 16, 2024

Happening on my side too; anyone have luck using nbt explorer to fix this?

@IThundxr
Copy link
Member

There's a check that prevents this

@Decryptu
Copy link

Decryptu commented Dec 1, 2024

If anyone runs into this NBT allocation error, I created a simple Python tool to help diagnose the issue: minecraft-nbt-depth-checker

It analyzes your level.dat file and shows you exactly which NBT tags are reaching problematic depths. Then you can delete the problematic tags with an NBT explorer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issue where something isn't working
Projects
None yet
Development

No branches or pull requests