Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. 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.
  2. NO! THE OPPOSITE OF THAT!
  3. 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.
  4. If only there was some documentation about that...
  5. Containers don't exist unless the player is actively looking at it. You want your TileEntity to generate the effect.
  6. Because :: is not literal Java syntax. https://stackoverflow.com/questions/27015495/meaning-of-in-java-syntax
  7. Examine existing usages using your IDE? Right click -> Find all References
  8. 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
  9. Error seems pretty self explanatory to me.
  10. 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)
  11. 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).
  12. This is pointless. If damage exceeds max damage, the item is broken and removed from your inventory.
  13. You need to use multiple hitboxes, like the dragon.
  14. Local variables are never given "deobfuscated" names.
  15. Or looking at the DeferredRegister class itself to see where the constructor is called from...
  16. Literally 9 posts down:
  17. 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.
  18. 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.
  19. 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.
  20. (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)
  21. 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).
  22. Well, if you aren't using either nor Your loot table doesn't drop anything.
  23. No, because a Minecraft day isn't 4000 ticks long.
  24. Check the world time and % by the length of a day.
  25. I see FileNotFoundExceptions.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.