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

[1.21.1][Neoforge] Game fails to open world when EMI Loot is installed #100

Open
ffuentesm opened this issue Nov 19, 2024 · 8 comments
Open

Comments

@ffuentesm
Copy link

ffuentesm commented Nov 19, 2024

emi_loot-0.7.4+1.21+neoforge
emi-1.1.18+1.21.1+neoforge
Neoforge: 21.1.79
Latest Log: https://api.mclo.gs/1/raw/MREIxPP

For some reason when I try to join a single player world I get this message
image

The game does not create a crash log, so is hard to locate the issue, but from what I see from the log, it's a range error about a bone item.

[minecraft/Util]: Error saving [177 minecraft:bone]. Original cause: java.lang.IllegalStateException: Value must be within range [1;99]: 177
With components:
{
minecraft:max_stack_size=>64
minecraft:lore=>ItemLore[lines=[], styledLines=[]]
minecraft:enchantments=>ItemEnchantments{enchantments={}, showInTooltip=true}
minecraft:repair_cost=>0
minecraft:attribute_modifiers=>ItemAttributeModifiers[modifiers=[], showInTooltip=true]
minecraft:rarity=>COMMON
}

Then when I disable EMI loot from the load order, the game works without problems

@Chifilly
Copy link

I have the exact same issue! Except I get an Invalid Player Data error, but the error logs are identical.

@ffuentesm
Copy link
Author

I was getting that error too sometimes.
image

@srimpsrimp
Copy link

Same issue, "Invalid player data" with same error about 177 bones in logs. Disabling EMI Loot fixes the issue for me.

@Spulcr
Copy link

Spulcr commented Dec 5, 2024

same issue got the "Disconnected" error

@unilock
Copy link
Contributor

unilock commented Dec 12, 2024

Twilight Forest includes a loot table which provides 177 bones, for some ungodly reason. EMI Loot cannot handle this.

Here's a datapack that works around the issue by setting it to 17 bones, which is probably what was originally intended: tf.zip

@GizmoTheMoonPig
Copy link

GizmoTheMoonPig commented Dec 12, 2024

177 actually is intended! (I made the loot table!)
I will look into a workaround from my end but it would be nice if emi loot could serialize stacks higher than 99. The vanilla itemstack codec clamps the stack size to be 99, but if its just used for displaying purposes it would be nice to allow any number

@ffuentesm
Copy link
Author

Twilight Forest includes a loot table which provides 177 bones, for some ungodly reason. EMI Loot cannot handle this.

Here's a datapack that works around the issue by setting it to 17 bones, which is probably what was originally intended: [tf.zip]

I tried the Datapack, but does not seem to be working. I still get the 177 bones error.
I tried adding the pack to my current world, as well as make a new one with the pack

@2el222
Copy link

2el222 commented Dec 14, 2024

use this now

twilight forest fix.zip

Twilight Forest includes a loot table which provides 177 bones, for some ungodly reason. EMI Loot cannot handle this.

Here's a datapack that works around the issue by setting it to 17 bones, which is probably what was originally intended: [tf.zip]

I tried the Datapack, but does not seem to be working. I still get the 177 bones error. I tried adding the pack to my current world, as well as make a new one with the pack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants