mschae23 / grind-enchantments

Put enchantments back on a book using a grindstone.
https://legacy.curseforge.com/minecraft/mc-mods/grind-enchantments
GNU Lesser General Public License v3.0
12 stars 13 forks source link

Can't see or collect an enchanted book. User error? #61

Closed ejm554 closed 1 month ago

ejm554 commented 1 month ago

Hello. I've been trying this mod for the first time, but I'm having trouble collecting an enchanted book. I can briefly get the enchanted book to appear, but it disappears a fraction of a second after I add a regular book to the grindstone.

I don't have a lot of experience adding mods to my server, so I'm not sure if these issues are a result of bug(s), or if they are due to user error.

See video for details. (13 seconds)

Also, I cannot locate a config file anywhere.

Specs:

Logs:

mschae23 commented 1 month ago

Hello! Thank you for the detailed report.

The mod is required on the server, and optional on the client. I believe Paper does not support Fabric mods, which means it will just be ignored there. The consequence is that it is only installed on the client – that is what causes these flashes of the enchantment book appearing, since the client thinks that's what's supposed to happen, but then the server sends back the vanilla result.

You probably only have two options if you do want to have this functionality:

  1. Search for a Paper plugin that does this (I'm not familiar with those, so I can't point you to one, unfortunately).
  2. Install Fabric on the server instead of Paper.

Also, I cannot locate a config file anywhere.

The config file is only generated on the logical server side, so it wouldn't appear on your dedicated server. However, it should be there on your client, at .minecraft/config/grindenchantments.json. Note that changing it on the client will only have an effect on the displayed XP cost, not the actual one.

[...] lines 219-220 shows codec-config-api 2.0.0 1.20.5-rc3 as a subitem to the mod. Is it okay that the API is not referring to 1.20.6?

That library only touches a small part of Minecraft that rarely changes, so it usually works across versions.