Jump to content

bread88993

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by bread88993

  1. Thanks for your help! I have found my fault in my Blockentity file. It is because when I save the nbt, the compound is named "inventory". But when I load the compound it will load the nbt "Inventory". It can not find "Inventory" so my slots were cleaned. //This is the code when I save compound @Override protected void saveAdditional(@NotNull CompoundTag tag) { tag.put("inventory", itemHandler.serializeNBT()); } //This is the code when I load nbt @Override public void load(CompoundTag compound) { super.load(compound); itemHandler.deserializeNBT(compound.getCompound("Inventory")); }
  2. When I kill myself and return to the container's chunk, the items inside disappear. If I close the GUI and open it, the items do not disappear. If I do not leave the loading chunk, the container works normally and does not lose anything. This is the code of Blockentity of the container: https://github.com/bread88993/Mystiasdelight-1.19.2-Forge/blob/1.19.2/src/main/java/com/bread88993/mystiasdelight/block/entity/custom/BarbecuenetBlockEntity.java This is the menu of the container: https://github.com/bread88993/Mystiasdelight-1.19.2-Forge/blob/1.19.2/src/main/java/com/bread88993/mystiasdelight/screen/BarbecuenetMenu.java
  3. Thanks! I have solved this problem!
  4. I write a Forge Mod for Minecraft 1.19.2. The version of Forge is 43.2.0. I can run my Mod on the client but I can not run it on Server. It said the eventBus or Registery have errors. I update this mod from 1.18.2 to 1.19.2, and I can run this Mod on the 1.18.2 Server before I updated it. The core of the Server is 43.2.0, I also tried 43.2.8 but it also shut down. I will submit my GitHub Project and the log of the server shutdown is contained in the GitHub. This Mod depends on vectorwing's Farmer's Delight. https://github.com/bread88993/Mystiasdelight-1.19.2-Forge
×
×
  • Create New...

Important Information

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