Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.10]Saving Tile Entity Data


grand_mind1
 Share

Recommended Posts

Hey, I'm trying to get my tile entity to save its data so it doesn't reset when the world is reloaded. I'm having a lot of trouble understand NBT, so it isn't going too well. I thought this read and write code would work, however it doesn't seem to do anything at all. If someone could explain this to me, it would be greatly appreciated.

My tile entity class:

 

public class TileEntityCoffeeMaker extends TileEntityInventory implements IFluidHandler
{

    public TileEntityCoffeeMaker()
    {
        super();
        this.size = 4;
        this.invName = Names.COFFEE_MAKER;
    }

    public static String getName()
    {
        return Names.TILE_COFFEE_MAKER;
    }

    @Override
    public void updateEntity()
    {
        if (getStackInSlot(0) != null)
        {
            if (getStackInSlot(0).isItemEqual(new ItemStack(Items.water_bucket)))
            {
                decrStackSize(0, 1);
                setInventorySlotContents(0, new ItemStack(Items.bucket));
                fill(ForgeDirection.EAST, new FluidStack(FluidRegistry.WATER, 1000), true);
            }
        }
        if (getStackInSlot(3) != null)
        {
            if (getStackInSlot(3).isItemEqual(new ItemStack(ModItems.ItemCoffeeMug)))
            {
                if (getCoffeeTank().getFluidAmount() >= 1000)
                {
                    decrStackSize(3, 1);
                    setInventorySlotContents(3, new ItemStack(ModItems.BeverageBlackCoffee));
                    drain(ForgeDirection.EAST, new FluidStack(ModFluids.LiquidCoffee, 1000), true);
                }
            }
        }
    }

    public FluidTank waterTank = new FluidTank(12000);
    public FluidTank coffeeTank = new FluidTank(12000);

    public FluidTank getWaterTank()
    {
        return waterTank;
    }

    public FluidTank getCoffeeTank()
    {
        return coffeeTank;
    }

    @Override
    public void readFromNBT(NBTTagCompound tag)
    {
        super.readFromNBT(tag);
        if (tag.hasKey("WaterTank"))
            waterTank = waterTank.readFromNBT(tag.getCompoundTag("WaterTank"));
        if (tag.hasKey("CoffeeTank"))
            coffeeTank = coffeeTank.readFromNBT(tag.getCompoundTag("CoffeeTank"));
    }

    @Override
    public void writeToNBT(NBTTagCompound tag)
    {
        super.writeToNBT(tag);
        NBTTagCompound waterTankNBT = new NBTTagCompound();
        waterTank.writeToNBT(waterTankNBT);
        NBTTagCompound coffeeTankNBT = new NBTTagCompound();
        coffeeTank.writeToNBT(coffeeTankNBT);
        tag.setTag("WaterTank", waterTankNBT);
        tag.setTag("CoffeeTank", coffeeTankNBT);
        tag.setString("A_Warning", "Don't let looks fool you, that panda eating bamboo over there is crazy");
    }

    @Override
    public int fill(ForgeDirection from, FluidStack resource, boolean doFill)
    {
        if (resource.isFluidEqual(new FluidStack(FluidRegistry.WATER, 1)))
        {
            return waterTank.fill(resource, doFill);
        } else if (resource.isFluidEqual(new FluidStack(ModFluids.LiquidCoffee, 1)))
        {
            return coffeeTank.fill(resource, doFill);
        }
        return 0;
    }

    @Override
    public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain)
    {
        if (resource == null || !resource.isFluidEqual(waterTank.getFluid()) || !resource.isFluidEqual(coffeeTank.getFluid()))
        {
            return null;
        } else if (resource.isFluidEqual(waterTank.getFluid()))
        {
            return waterTank.drain(resource.amount, doDrain);
        } else if (resource.isFluidEqual(coffeeTank.getFluid()))
        {
            return coffeeTank.drain(resource.amount, doDrain);
        }
        return null;
    }

    @Override
    public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain)
    {
        if (from.equals(ForgeDirection.EAST))
        {
            return waterTank.drain(maxDrain, doDrain);
        }
        return coffeeTank.drain(maxDrain, doDrain);
    }

    @Override
    public boolean canFill(ForgeDirection from, Fluid fluid)
    {
        if (fluid == FluidRegistry.WATER || fluid == ModFluids.LiquidCoffee)
        {
            return true;
        }
        return false;
    }

    @Override
    public boolean canDrain(ForgeDirection from, Fluid fluid)
    {
        return true;
    }

    @Override
    public FluidTankInfo[] getTankInfo(ForgeDirection from)
    {
        return new FluidTankInfo[]{waterTank.getInfo(), coffeeTank.getInfo()};
    }
}

 

I'm pretty sure you only need the read and write from NBT methods, but I've included the whole class just in case. If you need anything else, please tell me.

Thanks! :D

Link to comment
Share on other sites

Ah, interesting point. Yes, I am going completely off the GUI. Would you say that the problem is related to the GUI and not the actual tile entity?

This is the GUI class:

 

public class GuiCoffeeMaker extends GuiContainer
{
    private int x, y, z;
    private EntityPlayer entityPlayer;
    private World world;
    private int xSize, ySize;
    private TileEntityCoffeeMaker instance;
    private ResourceLocation backgroundImage = new ResourceLocation(Reference.MOD_ID.toLowerCase() + ":textures/gui/GuiCoffeeMaker.png");

    public GuiCoffeeMaker(EntityPlayer entityPlayer, World world, int x, int y, int z)
    {
        super(new ContainerCofffeeMaker(entityPlayer, (IInventory) world.getTileEntity(x, y, z), 176, 170));
        this.x = x;
        this.y = y;
        this.z = z;
        this.entityPlayer = entityPlayer;
        this.world = world;
        this.instance = (TileEntityCoffeeMaker)world.getTileEntity(x, y, z);
        xSize = 176;
        ySize = 170;

    }

    @Override
    protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_)
    {
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        this.mc.getTextureManager().bindTexture(backgroundImage);
        int x = (this.width - xSize) / 2;
        int y = (this.height - ySize) / 2;
        drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
        drawFluidTank(instance.getWaterTank(), x + 35, y + 17);
        drawFluidTank(instance.getCoffeeTank(), x + 126, y + 17);
        fontRendererObj.drawString(StatCollector.translateToLocal("acoj.inv.coffeeMaker"), x + 56, y + 4, 0x313131);
        fontRendererObj.drawString(StatCollector.translateToLocal("acoj.inv.Inventory"), x + 9, y + 79, 0x313131);
    }

    @Override
    public boolean doesGuiPauseGame()
    {
        return false;
    }

    public void drawFluidTank(IFluidTank tank, int x, int y)
    {
        FluidStack fluid = tank.getFluid();
        TextureManager manager = Minecraft.getMinecraft().renderEngine;
        if (fluid != null)
        {
            manager.bindTexture(manager.getResourceLocation(0));
            float amount = fluid.amount;
            float capacity = tank.getCapacity();
            float scale = amount / capacity;
            int fluidTankHeight = 60;
            int fluidAmount = (int) (scale * fluidTankHeight);
            drawFluid(x, y + fluidTankHeight - fluidAmount, fluid.getFluid().getIcon(fluid), 16, fluidAmount);
        }
    }

    private void drawFluid(int x, int y, IIcon icon, int width, int height)
    {
        int i = 0;
        int j = 0;

        int drawHeight = 0;
        int drawWidth = 0;

        for (i = 0; i < width; i += 16)
        {
            for (j = 0; j < height; j += 16)
            {
                drawWidth = Math.min(width - i, 16);
                drawHeight = Math.min(height - j, 16);
                drawRectangleFromIcon(x + i, y + j, icon, drawWidth, drawHeight);
            }
        }
    }

    private void drawRectangleFromIcon(int x, int y, IIcon icon, int width, int height)
    {
        if (icon == null)
        {
            LogHelper.info("Null");
            return;
        }
        double minU = icon.getMinU();
        double maxU = icon.getMaxU();
        double minV = icon.getMinV();
        double maxV = icon.getMaxV();

        Tessellator tessellator = Tessellator.instance;
        tessellator.startDrawingQuads();
        tessellator.addVertexWithUV(x, y + height, 0, minU, minV + (maxV - minV) * height / 16.0D);
        tessellator.addVertexWithUV(x + width, y + height, 0, minU + (maxU - minU) * width / 16.0D, minV + (maxV - minV) * height / 16.0D);
        tessellator.addVertexWithUV(x + width, y, 0, minU + (maxU - minU) * width / 16.0D, minV);
        tessellator.addVertexWithUV(x, y, 0, minU, minV);
        tessellator.draw();
    }
}

 

Link to comment
Share on other sites

Any TileEntity data needs to be synchronized if it is needed on the Client. In this case use detectAndSendChanges / addCraftingToCrafters in your Container. addCraftingToCrafters is called once when the Gui is opened, send all the data to the player in there (use an instanceof check to see if the ICrafting is a player). detectAndSendChanges is called every tick. Check if the data has changed since the last tick (you'll need "lastTick****" fields in your Container for that) and if so, update it.

Both of those go via packets.

Link to comment
Share on other sites

Hey, thanks for the solution. After doing a bit of research on your suggestion, I found that I could properly sync my tank data by using getDescriptionPacket() and onDataPacket(). However, I believe I still need your solution for the actual container. I have a couple questions, if you don't mind. While looking at the code for detectAndSendChanges() and addCraftingToCrafters(), I saw that the default methods in the Container class already should do what I want them to. That is, of course, if I understand the methods fully. Is there a reason why these don't seem to be working?

Link to comment
Share on other sites

a) Don't use the description packet for this, it causes too much network load if the values change often and also causes strain on the client (it will re-render the chunk usually when the packet is received).

 

b) No, the default detectAndSendChanges / addCraftingToCrafters only synchronizes the Items in the inventory, nothing else.

Link to comment
Share on other sites

Yeah, that's what I thought. Would you mind taking a look at my container class?

 

 

public class ContainerCofffeeMaker extends Container

{

    private EntityPlayer entityPlayer;

    private IInventory inv;

 

    private final int bucketSlotX = 10;

    private final int bucketSlotY = 59;

 

    private final int coffeeSlotX = 80;

    private final int coffeeSlotY = 12;

 

    private final int filterSlotX = 80;

    private final int filterSlotY = 52;

 

    private final int mugSlotX = 151;

    private final int mugSlotY = 59;

 

    public ContainerCofffeeMaker(EntityPlayer entityPlayer, IInventory inv, int xSize, int ySize)

    {

        this.entityPlayer = entityPlayer;

        this.inv = inv;

        inv.openInventory();

        layout(xSize, ySize);

    }

 

    protected void layout(int xSize, int ySize)

    {

        addSlotToContainer(new Slot(inv, 0, bucketSlotX, bucketSlotY));

        addSlotToContainer(new Slot(inv, 1, coffeeSlotX, coffeeSlotY));

        addSlotToContainer(new Slot(inv, 2, filterSlotX, filterSlotY));

        addSlotToContainer(new Slot(inv, 3, mugSlotX, mugSlotY));

 

        int leftCol = (xSize - 162) / 2 + 1;

        for (int playerInvRow = 0; playerInvRow < 3; playerInvRow++)

        {

            for (int playerInvCol = 0; playerInvCol < 9; playerInvCol++)

            {

                addSlotToContainer(new Slot(entityPlayer.inventory, playerInvCol + playerInvRow * 9 + 9, leftCol + playerInvCol * 18, ySize - (4 - playerInvRow) * 18 - 11));

            }

        }

        for (int hotbarSlot = 0; hotbarSlot < 9; hotbarSlot++)

        {

            addSlotToContainer(new Slot(entityPlayer.inventory, hotbarSlot, leftCol + hotbarSlot * 18, ySize - 25));

        }

    }

 

    @Override

    public ItemStack transferStackInSlot(EntityPlayer entityPlayer, int slot)

    {

        ItemStack var2 = null;

        Slot var3 = (Slot) this.inventorySlots.get(slot);

 

        if (var3 != null && var3.getHasStack())

        {

            ItemStack var4 = var3.getStack();

            var2 = var4.copy();

 

            if (slot < 4)

            {

                if (!this.mergeItemStack(var4, 1, this.inventorySlots.size(), true))

                {

                    return null;

                }

            } else if (!this.mergeItemStack(var4, 0, 1, false)) return null;

 

            if (var4.stackSize == 0) var3.putStack((ItemStack) null);

            else var3.onSlotChanged();

        }

 

        return var2;

    }

 

    @Override

    public boolean canInteractWith(EntityPlayer entityPlayer)

    {

        return inv.isUseableByPlayer(entityPlayer);

    }

}

 

 

Link to comment
Share on other sites

Again, I'm going off the of the GUI so I assumed it was a problem with syncing again. If I understand you correctly, I open it just by right-clicking. This is the block class where I do that:

 

public class BlockCoffeeMaker extends BlockContainer implements ITileEntityProvider
{
    TileEntityCoffeeMaker instance;

    public BlockCoffeeMaker()
    {
        super(Material.rock);
        this.setCreativeTab(CreativeTabACOJ.ACOJ_TAB);
        this.setBlockName(Names.COFFEE_MAKER);
    }

    @Override
    public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entityPlayer, int meta, float hitX, float hitY, float hitZ)
    {
        if (!world.isRemote && world.getTileEntity(x, y, z) instanceof TileEntityCoffeeMaker)
        {
            entityPlayer.openGui(ACOJ.instance, GUIs.COFFEE_MAKER.ordinal(), world, x, y, z);
        }
        return true;
    }

    @Override
    public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)
    {
        ArrayList<ItemStack> itemStacks = Lists.newArrayList();
        ItemStack itemStack = new ItemStack(ModBlocks.BlockCoffeeMaker, 1, metadata);
        itemStacks.add(itemStack);
        TileEntityCoffeeMaker coffeeMaker = getInstance();
        if (coffeeMaker.getStackInSlot(0) != null) itemStacks.add(coffeeMaker.getStackInSlot(0));
        if (coffeeMaker.getStackInSlot(1) != null) itemStacks.add(coffeeMaker.getStackInSlot(1));
        if (coffeeMaker.getStackInSlot(2) != null) itemStacks.add(coffeeMaker.getStackInSlot(2));
        if (coffeeMaker.getStackInSlot(3) != null) itemStacks.add(coffeeMaker.getStackInSlot(3));
        return itemStacks;
    }

    @Override
    public TileEntity createNewTileEntity(World world, int meta)
    {
        instance = new TileEntityCoffeeMaker();
        return instance;
    }

    @Override
    public boolean hasTileEntity()
    {
        return true;
    }
    public TileEntityCoffeeMaker getInstance()
    {
        return instance;
    }

    @Override
    public String getUnlocalizedName()
    {
        return String.format("tile.%s%s", Reference.MOD_ID.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
    }

    protected String getUnwrappedUnlocalizedName(String unlocalizedName)
    {
        return unlocalizedName.substring(unlocalizedName.indexOf(".") + 1);
    }
}

 

It has pahimar's name code that I know you love :P Haven't gotten around to fixing that yet.

Link to comment
Share on other sites

But I want my $200! D: I thought I could get around that problem by returning a new instance of the tile entity in createNewTileEntity(). Suppose not.

So now I have two questions:

 

1) So without the instance, how can I get the current instance of the tile entity for getDrops()?

2) Removing the instance, did not allow for the tile entity to sync properly. The items still do not appear to save in the container. Is there something else I must do?

Link to comment
Share on other sites

Ah ok, sorry. Man do I feel dumb, saw the mistake in my writeToNBT method right away :/

Thanks for the help with that. So now back to the original question...

 

In order to sync my fluid amounts, I should override detectAndSendChanges() and addCraftingToCrafters() in my Container class. Would you mind explaining how to use these a bit more? I didn't really understand what you meant with the lastTick field. I've also not done anything with packets whatsoever. Do you know of a good tutorial I could read to gain an understanding of how to use them? Thanks!

Link to comment
Share on other sites

In order to sync my fluid amounts, I should override detectAndSendChanges() and addCraftingToCrafters() in my Container class. Would you mind explaining how to use these a bit more? I didn't really understand what you meant with the lastTick field.
So, in addCraftingToCrafters you basically send all the data. The method is called when the Gui is opened. Then in detectAndSendChanges you do something like this:

 

int someValueLastTick;

void detectAndSendChanges() {
    if (myTile.someValue != someValueLastTick) {
        // value has changed, so re-send the packet
        // the player is somewhere in this.crafters, use instanceof to find it

        // now update the value
        someValueLastTick = myTile.someValue;
    }
}

 

With tanks (which are basically FluidStacks) it's a bit more complicated. You will have to copy the FluidStack (it has a method for it) before storing it in the last tick field, otherwise you won't detect any changes at all. For sending FluidStacks in packets send the fluidId, the amount and the NBT data.

 

I've also not done anything with packets whatsoever. Do you know of a good tutorial I could read to gain an understanding of how to use them? Thanks!

I actually do.
Link to comment
Share on other sites

Thanks so much! I'm a bit confused on how to get the old fluidstack and copy it. I tried this:

 

private FluidStack oldWater = coffeeMaker.getWaterTank().getFluid().copy();

but it crashed with this error:

Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
at com.darichey.ACOJ.tileentity.containers.ContainerCofffeeMaker.<init>(ContainerCofffeeMaker.java:105)
at com.darichey.ACOJ.handler.GuiHandler.getServerGuiElement(GuiHandler.java:18)
at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:241)
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
at com.darichey.ACOJ.block.BlockCoffeeMaker.onBlockActivated(BlockCoffeeMaker.java:45)
at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

I'm sure I just misunderstood something.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • ItemStack#getTag can return null, you must handle this. Passing null to super will immediately crash. You must pass an empty list at least. You must implement getSerializer for custom ingredients and register your serializer with CraftingHelper. Use PotionUtils.getPotion(ItemStack) instead of just comparing the strings.
    • [05dic.2021 14:15:01.428] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Khada, --version, 1.17.1-forge-37.0.95, --gameDir, C:\Users\Khada\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Khada\AppData\Roaming\.minecraft\assets, --assetIndex, 1.17, --uuid, 9608e0fd413340908cb072ee9bb0b635, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 925, --height, 530, --launchTarget, forgeclient, --fml.forgeVersion, 37.0.95, --fml.mcVersion, 1.17.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210706.113038] [05dic.2021 14:15:01.436] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.0.7+91+master.8569cdf starting: java version 16.0.1 by Microsoft [05dic.2021 14:15:01.614] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=union:/C:/Users/Khada/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar%2318! Service=ModLauncher Env=CLIENT [05dic.2021 14:15:03.902] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, 1.17.1-forge-37.0.95, --gameDir, C:\Users\Khada\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Khada\AppData\Roaming\.minecraft\assets, --uuid, 9608e0fd413340908cb072ee9bb0b635, --username, Khada, --assetIndex, 1.17, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 925, --height, 530] [14:15:13] [Render thread/WARN]: Assets URL 'union:/C:/Users/Khada/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.17.1-20210706.113038/client-1.17.1-20210706.113038-srg.jar%2362!/assets/.mcassetsroot' uses unexpected schema [14:15:13] [Render thread/WARN]: Assets URL 'union:/C:/Users/Khada/AppData/Roaming/.minecraft/libraries/net/minecraft/client/1.17.1-20210706.113038/client-1.17.1-20210706.113038-srg.jar%2362!/data/.mcassetsroot' uses unexpected schema [05dic.2021 14:15:13.314] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:15:14] [Render thread/ERROR]: Failed to verify authentication com.mojang.authlib.exceptions.InvalidCredentialsException: Status: 401     at com.mojang.authlib.exceptions.MinecraftClientHttpException.toAuthenticationException(MinecraftClientHttpException.java:56) ~[authlib-2.3.31.jar%2342!:?]     at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:112) ~[authlib-2.3.31.jar%2342!:?]     at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:42) ~[authlib-2.3.31.jar%2342!:?]     at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:151) ~[authlib-2.3.31.jar%2342!:?]     at net.minecraft.client.Minecraft.m_91130_(Minecraft.java:601) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.<init>(Minecraft.java:404) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.main.Main.main(Main.java:151) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.95.jar%2322!:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401     at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:77) ~[authlib-2.3.31.jar%2342!:?]     at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:47) ~[authlib-2.3.31.jar%2342!:?]     at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:104) ~[authlib-2.3.31.jar%2342!:?]     ... 18 more [14:15:14] [Render thread/INFO]: Setting user: Khada [14:15:14] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 SNAPSHOT [14:15:16] [modloading-worker-2/INFO]: Here we go! Launching Dungeon Crawl 2.3.2... [14:15:16] [modloading-worker-1/INFO]: Forge mod loading, version 37.0.95, for MC 1.17.1 with MCP 20210706.113038 [14:15:16] [modloading-worker-1/INFO]: MinecraftForge v37.0.95 Initialized [14:15:16] [modloading-worker-0/INFO]: Registered the class com.tiviacz.travelersbackpack.fluids.effects.WaterEffect as a FluidEffect for Water with the ID 0 [14:15:16] [modloading-worker-0/INFO]: Registered the class com.tiviacz.travelersbackpack.fluids.effects.LavaEffect as a FluidEffect for Lava with the ID 1 [14:15:17] [modloading-worker-3/INFO]: Skipped compatibility for mod immersiveengineering. [05dic.2021 14:15:21.084] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded [14:15:21] [Render thread/INFO]: Reloading ResourceManager: Mod Resources, Default, 1.17.zip [14:15:21] [Worker-Main-6/INFO]: Common Setup [14:15:21] [Worker-Main-6/INFO]: Whitelisted Dimensions: [14:15:21] [Worker-Main-6/INFO]: minecraft:overworld [05dic.2021 14:15:21.933] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json [05dic.2021 14:15:22.763] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: OUTDATED Current: 37.0.95 Target: 37.1.0 [05dic.2021 14:15:22.763] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [twilightforest] Starting version check at https://raw.githubusercontent.com/TeamTwilight/twilightforest/1.17.x/update.json [05dic.2021 14:15:23.061] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [twilightforest] Found status: BETA Current: 4.0.849 Target: null [05dic.2021 14:15:23.062] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [travelersbackpack] Starting version check at https://gist.githubusercontent.com/Tiviacz1337/906937677aa472285dff9d6c2a189d5e/raw [05dic.2021 14:15:23.308] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [travelersbackpack] Found status: OUTDATED Current: 6.0.3 Target: 6.0.5 [14:15:34] [Render thread/INFO]: Registering Structure Piece Types [14:15:34] [Worker-Main-4/WARN]: Unused frames in sprite minecraft:entity/conduit/wind: [22, 23, 24, 25, 26, 27, 28, 29, 30, 31] [14:15:34] [Worker-Main-5/WARN]: Unused frames in sprite minecraft:entity/conduit/wind_vertical: [22, 23, 24, 25, 26, 27, 28, 29, 30, 31] [14:15:37] [Render thread/INFO]: OpenAL initialized. [14:15:37] [Render thread/INFO]: Sound engine started [14:15:37] [Render thread/INFO]: Created: 2048x1024x4 minecraft:textures/atlas/blocks.png-atlas [14:15:37] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/signs.png-atlas [14:15:37] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/shield_patterns.png-atlas [14:15:37] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/banner_patterns.png-atlas [14:15:37] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/chest.png-atlas [14:15:37] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/beds.png-atlas [14:15:37] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/shulker_boxes.png-atlas [14:15:40] [Render thread/INFO]: Created: 512x512x0 minecraft:textures/atlas/particles.png-atlas [14:15:40] [Render thread/INFO]: Created: 512x512x0 minecraft:textures/atlas/paintings.png-atlas [14:15:40] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/mob_effects.png-atlas [14:15:48] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [14:16:22] [Render thread/INFO]: Connecting to 192.168.1.6, 52745 [14:16:24] [Downloader 0/WARN]: Error al iniciar sesión: Sesión no válida (prueba a reiniciar el juego y el lanzador) [14:16:25] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [14:16:26] [Netty Client IO #0/INFO]: Connected to a modded server. [05dic.2021 14:16:28.915] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:16:28] [Render thread/FATAL]: Error executing task on Client java.util.NoSuchElementException: packet_handler     at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?]     at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraftforge.fmllegacy.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraft.client.multiplayer.ClientPacketListener.m_5998_(ClientPacketListener.java:374) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:100) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:18) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.PacketUtils.m_131356_(SourceFile:21) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(SourceFile:151) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(SourceFile:23) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(SourceFile:125) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_18699_(SourceFile:110) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1009) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.95.jar%2322!:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] [14:16:34] [Render thread/INFO]: Connecting to 192.168.1.6, 52745 [14:16:35] [Downloader 0/WARN]: Error al iniciar sesión: Sesión no válida (prueba a reiniciar el juego y el lanzador) [14:16:36] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [14:16:37] [Netty Client IO #1/INFO]: Connected to a modded server. [05dic.2021 14:16:39.528] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:16:39] [Render thread/FATAL]: Error executing task on Client java.util.NoSuchElementException: packet_handler     at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?]     at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraftforge.fmllegacy.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraft.client.multiplayer.ClientPacketListener.m_5998_(ClientPacketListener.java:374) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:100) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:18) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.PacketUtils.m_131356_(SourceFile:21) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(SourceFile:151) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(SourceFile:23) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(SourceFile:125) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_18699_(SourceFile:110) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1009) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.95.jar%2322!:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] [14:16:51] [Render thread/INFO]: Connecting to 192.168.1.6, 52745 [14:16:51] [Downloader 0/WARN]: Error al iniciar sesión: Sesión no válida (prueba a reiniciar el juego y el lanzador) [14:16:52] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [14:16:53] [Netty Client IO #2/INFO]: Connected to a modded server. [05dic.2021 14:16:55.584] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:16:55] [Render thread/FATAL]: Error executing task on Client java.util.NoSuchElementException: packet_handler     at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?]     at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraftforge.fmllegacy.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraft.client.multiplayer.ClientPacketListener.m_5998_(ClientPacketListener.java:374) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:100) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:18) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.PacketUtils.m_131356_(SourceFile:21) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(SourceFile:151) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(SourceFile:23) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(SourceFile:125) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_18699_(SourceFile:110) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1009) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.95.jar%2322!:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] [14:18:26] [Render thread/INFO]: Connecting to 192.168.1.6, 52745 [14:18:27] [Downloader 1/WARN]: Error al iniciar sesión: Sesión no válida (prueba a reiniciar el juego y el lanzador) [14:18:28] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [14:18:29] [Netty Client IO #3/INFO]: Connected to a modded server. [05dic.2021 14:18:31.070] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:18:31] [Render thread/FATAL]: Error executing task on Client java.util.NoSuchElementException: packet_handler     at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?]     at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraftforge.fmllegacy.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraft.client.multiplayer.ClientPacketListener.m_5998_(ClientPacketListener.java:374) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:100) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:18) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.PacketUtils.m_131356_(SourceFile:21) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(SourceFile:151) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(SourceFile:23) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(SourceFile:125) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_18699_(SourceFile:110) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1009) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.95.jar%2322!:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] [14:18:45] [Render thread/INFO]: Connecting to 192.168.1.6, 52745 [14:18:46] [Downloader 1/WARN]: Error al iniciar sesión: Sesión no válida (prueba a reiniciar el juego y el lanzador) [14:18:47] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [14:18:48] [Netty Client IO #4/INFO]: Connected to a modded server. [05dic.2021 14:18:50.052] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:18:50] [Render thread/FATAL]: Error executing task on Client java.util.NoSuchElementException: packet_handler     at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar%2332!:4.1.25.Final]     at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?]     at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraftforge.fmllegacy.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[forge-1.17.1-37.0.95-universal.jar%2366!:?]     at net.minecraft.client.multiplayer.ClientPacketListener.m_5998_(ClientPacketListener.java:374) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:100) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.game.ClientboundLoginPacket.m_5797_(SourceFile:18) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.network.protocol.PacketUtils.m_131356_(SourceFile:21) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(SourceFile:151) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(SourceFile:23) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(SourceFile:125) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.util.thread.BlockableEventLoop.m_18699_(SourceFile:110) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1009) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%2362!:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.95.jar%2322!:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] [14:20:32] [Render thread/INFO]: Connecting to 192.168.1.6, 52745 [14:20:33] [Downloader 2/WARN]: Error al iniciar sesión: Sesión no válida (prueba a reiniciar el juego y el lanzador) [14:20:34] [Render thread/INFO]: Injecting existing registry data into this CLIENT instance [14:20:35] [Netty Client IO #5/INFO]: Connected to a modded server. [05dic.2021 14:20:37.178] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:20:38] [Render thread/INFO]: Loaded 213 advancements [14:21:22] [Render thread/INFO]: Stopping!         This is?
    • Update... I still can't figure it out. So, since the blockmodels are super custom while the blockstates and item models are your average ones, I have come up with the idea of only doing datagen for those two and just referencing the pre-made blockmodels which I will put into a subfolder of the models/block directory. It will still be a little bit of pain, but at least my resources folder will stay organized which was my original goal.  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.