You said, "I should replace X with Y?"
And I said, "No, the opposite of that" because I told you not to use Y.
What's the opposite of replace X with Y?
Why, replace Y with X.
No, World is not only for the client. Minecraft is only for the client. As a result the world the client knows about is the client world.
https://github.com/Leonardlasardine/Erasium/blob/d0ff39994f1143c3fd847bc8d9b9f3b290859986/src/main/java/fr/leonard/erasium/quarry/QuarryTileEntity.java#L68
That line is not needed. And do not use assert in runtime code.
Also. What's this? A WORLD OBJECT? Gosh I wonder if it exists in the same context as the method you wrote...
https://github.com/Leonardlasardine/Erasium/blob/d0ff39994f1143c3fd847bc8d9b9f3b290859986/src/main/java/fr/leonard/erasium/quarry/QuarryTileEntity.java#L69-L79
Don't do this. You're effectively reaching across sides. This will crash the dedicated server because those lines reference your QuaryScreen class, which references this:
https://github.com/Leonardlasardine/Erasium/blob/d0ff39994f1143c3fd847bc8d9b9f3b290859986/src/main/java/fr/leonard/erasium/quarry/QuarryScreen.java#L6
Which is client side only.
You indicated that you were following that video. Yet if I look at your code and compare it to his at about 19:30, he does something that you haven't done.
So no, you haven't
Several
https://github.com/TheGreyGhost/MinecraftByExample
https://github.com/Choonster-Minecraft-Mods (Choonster hasn't updated in a while, but he does have Things, and stuff in 1.14 is going to have a lot of similarities to 1.16)
If you want a 1x1x1 sized block that hurts you when you walk or rub your face on it, set its voxel shape bounds to something like (0.001,0.001,0.001,0.999,0.999,0.999).
Barring weird things like cross dimensional renderers (Looking Glass, Immersive Portals). But the mechanics those mods use to handle the extra data isn't backbone.
Don't recreate this array every time. Create it once.
Use an || and do this as the first thing you do, so you don't create local unused variables for the garbage collector to clean up.
Oh, you actually don't care about living entities, you care about AnimalEntities. Why the fuck didn't you use this as your early exit condition?
Not that either are related to your issue, but good coding practices should still be followed.
Word == Dimension.
Attaching a capability to a world is the same as attaching it to a dimension. The "collection of dimensions that are a save file" does not have its own capability attachment point AFAIK.
(FWIW, there's no "one block" solution: the game doesn't know that the upper half is occupied, so you can place other blocks there and mobs will pathfind through it)
Please do not send me private messages.
You fix file-not-found errors by making the file exist. If you think it does and the game is complaining, then one of the two of you is wrong somewhere (and it ain't the game).