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

[Solved][1.7.10]Machine which can hold fluids


grand_mind1
 Share

Recommended Posts

Hi, I'm trying to create a tile entity machine which can store fluids and items. I think the best way to explain what I am trying to do is to show a picture of the GUI I want to try to use.

http://puu.sh/d3f3U/ea21cb1e3f.png

At the moment, I am just focussing on getting the ability to store liquids and make the correct amount show up in the GUI. I'm wondering what classes to implement or extend in my block class.

Thanks!

 

Link to comment
Share on other sites

Take a look at the

TileFluidHandler

class provided as an example by Forge.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Thank you for your reply. I've taken a look at the TileFluidHandler example and edited my TileEntity accordingly. From reading the documentation in IFluidHandler, I think I know what each of them do. My next question is how would I now utilize these new methods. For example, I want the left tank in the GUI to be able to hold water. How would I go about allowing water in the tank?

Link to comment
Share on other sites

In your fill method, you can check if

FluidStack#fluid==FluidRegistry.WATER/tt].

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Ah, derp. Completely missed that. I have one more question if you don't mind. Do you know if mods that add fluid pipes such as Ender IO automatically accommodate for tile entities that implement the FluidHandler, or would I have to somehow build interaction for that myself?

Edit: Also, how would I go about changing the GUI texture to represent the amount of fluid in a tank?

Link to comment
Share on other sites

For the fluid displaying in the gui, I use this code (from TE3). It is somewhat complicated, but not to hard:

public static void drawFluidTank(IFluidTank tank, int x, int y)
    {
        FluidStack fluid = tank.getFluid(); //Gets the FluidStack from the tank
        TextureManager manager = Minecraft.getMinecraft().renderEngine; //Gets the TextureManager
        if (fluid != null) //Check if the fluid is no null i.e. there is something in the tank
        {
            manager.bindTexture(manager.getResourceLocation(0)); //Bind the blocks texture map
            float amount = fluid.amount; //The amount of fluid in the tank
            float capacity = tank.getCapacity(); //The max capacity of the tank
            float scale = amount / capacity; // The 'scale' of the fluid, ranging from 0 to 1, with 0 being empty, and 1 being full
            int fluidTankHeight = 60;  // The max height of which the fluid can be drawed, i use 60, so the fluid is drawn max 60 pixels high
            int fluidAmount = (int) (scale * fluidTankHeight); // The amount of pixels the fluid has to be drawn on
            drawFluid(x, y + fluidTankHeight - fluidAmount, fluid.getFluid().getIcon(fluid), 16, fluidAmount); //Actually draw the fluid
        }
    }
    
    private static 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) // Loop through the width, with steps of 16
        {
            for (j = 0; j < height; j += 16) // Loop through the height, with steps of 16
            {
                drawWidth = Math.min(width - i, 16); // The draw width, for how much of the icon has to be drawn from
                drawHeight = Math.min(height - j, 16); // The draw height, for how much of the icon has to be drawn from
                drawRectangleFromIcon(x + i, y + j, icon, drawWidth, drawHeight); //Actually draw (part of) the icon on the gui
            }
        }
    }
    
    private static void drawRectangleFromIcon(int x, int y, IIcon icon, int width, int height)
    {
        if (icon == null) return; //Make sure the IIcon is nut null
        double minU = icon.getMinU(); //The minimun U-coordinate
        double maxU = icon.getMaxU(); //The maximum U-coordinate
        double minV = icon.getMinV(); //The minimun V-coordinate
        double maxV = icon.getMaxV(); //The maximum V-coordinate
        
        Tessellator tessellator = Tessellator.instance; //Get the Tessellator
        tessellator.startDrawingQuads(); //Start drawing a rectangle
        tessellator.addVertexWithUV(x + 0, y + height, 0, minU, minV + (maxV - minV) * height / 16.0D); // First vertex on the screen
        tessellator.addVertexWithUV(x + width, y + height, 0, minU + (maxU - minU) * width / 16.0D, minV + (maxV - minV) * height / 16.0D);// Secons vertex on the screen
        tessellator.addVertexWithUV(x + width, y + 0, 0, minU + (maxU - minU) * width / 16.0D, minV);// Third vertex on the screen
        tessellator.addVertexWithUV(x + 0, y + 0, 0, minU, minV);// Fourth vertex on the screen
        tessellator.draw(); //Draw everything on the Tessellator (the four vertices)
    }

I suggest you actually read the comments on it, or else you won't learn anything from it.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Thank you for your reply. I have tried to follow your instructions, however I think I have done something incorrectly. At the moment, I don't think my tile entity is accepting water.

 

This is my Block class:

 

public class BlockCoffeeMaker extends BlockACOJ implements ITileEntityProvider
{
    public BlockCoffeeMaker()
    {
        super(Material.rock);
        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 TileEntity createNewTileEntity(World world, int meta)
    {
        return new TileEntityCoffeeMaker();
    }

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

 

My tileentity class:

 

public class TileEntityCoffeeMaker extends TileEntity implements IFluidHandler
{
    public static String getName()
    {
        return Names.TILE_COFFEE_MAKER;
    }

    protected FluidTank waterTank = new FluidTank(10000);

    @Override
    public void readFromNBT(NBTTagCompound tag)
    {
        super.readFromNBT(tag);
        waterTank.readFromNBT(tag);
    }

    @Override
    public void writeToNBT(NBTTagCompound tag)
    {
        super.writeToNBT(tag);
        waterTank.writeToNBT(tag);
    }

    @Override
    public int fill(ForgeDirection from, FluidStack resource, boolean doFill)
    {
        if (resource.equals(FluidRegistry.WATER))
        {
            return waterTank.fill(resource, doFill);
        }
        return 0;
    }

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

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

    @Override
    public boolean canFill(ForgeDirection from, Fluid fluid)
    {
        if (fluid == FluidRegistry.WATER)
        {
            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() };
    }
}

 

And my Gui class:

 

public class GuiCoffeeMaker extends GuiScreen
{
    private int x, y, z;
    private EntityPlayer entityPlayer;
    private World world;
    private int xSize, ySize;
    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)
    {
        this.x = x;
        this.y = y;
        this.z = z;
        this.entityPlayer = entityPlayer;
        this.world = world;
        xSize = 176;
        ySize = 166;
    }

    @Override
    public void drawScreen(int mouseX, int mouseY, float renderPartialTicks)
    {
        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);
        fontRendererObj.drawString(StatCollector.translateToLocal("acoj.inv.coffeeMaker"), x+60, y+4, 0x313131);
        fontRendererObj.drawString(StatCollector.translateToLocal("acoj.inv.Inventory"), x+9, y+74, 0x313131);

    }

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

    public static 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 static 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 static void drawRectangleFromIcon(int x, int y, IIcon icon, int width, int height)
    {
        if (icon == 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 + 0, 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, 0, minU + (maxU - minU) * width / 16.0D, minV);
        tessellator.addVertexWithUV(x + 0, y + 0, 0, minU, minV);
        tessellator.draw();
    }
}

 

If I am missing any relevant code, please tell me. I know for sure that I have made a mistake or do not understand something. If you could please point out what I may have done wrong, please tell me.

Thanks! :D

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

    • C:\Users\namno\Desktop\Nobec>REM Forge requires a configured set of both JVM and program arguments. C:\Users\namno\Desktop\Nobec>REM Add custom JVM arguments to the user_jvm_args.txt C:\Users\namno\Desktop\Nobec>REM Add custom program arguments {such as nogui} to this file in the next line before the  or C:\Users\namno\Desktop\Nobec>REM  pass them to this script directly C:\Users\namno\Desktop\Nobec>java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.18-38.0.14/win_args.txt Error: Could not find or load main class @user_jvm_args.txt C:\Users\namno\Desktop\Nobec>pause Press any key to continue . . . I get this when i try to start my 1.18 server
    • Ok, here's what I've come up with. For some reason, I can't put the potions in the brewing stand though, they're not recognized as ingredients, I guess. I think I need to initialize the super with something other than "null", but I don't know what to put there, it's expecting a Stream<IItemList> package com.derpyninjafrog.worldoffood.init; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; import net.minecraft.item.crafting.Ingredient; import net.minecraftforge.common.brewing.IBrewingRecipe; import java.util.function.Predicate; public class PotionIngredient extends Ingredient implements Predicate<ItemStack> { String potion; public PotionIngredient(String potion) { super(null); this.potion = potion; } @Override public boolean test(ItemStack itemStack) { return itemStack.getTag().getString("Potion").equals(this.potion); } @Override public Predicate<ItemStack> and(Predicate<? super ItemStack> other) { return Predicate.super.and(other); } }  
    • I'm using MCP fields  ObfuscationReflectionHelper.getPrivateValue(AnyClass.class, foo, "bar") The generated jar (build/libs/example.jar) has no converted fields (errors: [net.minecraftforge.fml.util.ObfuscationReflectionHelper/REFLECTION]: Unable to locate field ...). For the jar build I tried ./gradlew build and intellij idea. What have I missed or could have done wrong? version: client: 1.18 forge: 38.0.14
    • Okay, tested a new world and it worked just fine then loaded into my old one and it crashed instantly, here's the part of the log that's relevant to the old world: [06Dec2021 02:45:23.768] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Stopping singleplayer server as player logged out [06Dec2021 02:45:23.804] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server [06Dec2021 02:45:23.805] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players [06Dec2021 02:45:23.805] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds [06Dec2021 02:45:23.805] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld [06Dec2021 02:45:23.975] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World): All chunks are saved [06Dec2021 02:45:23.976] [Server thread/DEBUG] [net.minecraftforge.fml.FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save New World [06Dec2021 02:45:24.042] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World): All chunks are saved [06Dec2021 02:45:24.123] [Server thread/DEBUG] [net.minecraftforge.registries.ClearableRegistry/REGISTRY]: minecraft:feature: Clearing registry [06Dec2021 02:45:25.748] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:tree_hopper for public static net.minecraft.entity.EntityType com.mushroom.midnight.common.registry.MidnightEntities.TREE_HOPPER. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.749] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:fish_fillet for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.FISH_FILLET. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.749] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:nessage_in_a_bottle for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NESSAGE_IN_A_BOTTLE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.749] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_death for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_DEATH. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.749] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:cooked_fillet for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.COOKED_FILLET. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.749] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:frog_legs for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.FROG_LEGS. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.749] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup snowundertrees:snow_under_trees for public static net.minecraft.world.gen.feature.Feature bl4ckscor3.mod.snowundertrees.SnowUnderTrees.SNOW_UNDER_TREES. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.750] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:dead_viridshroom_and_cache for public static net.minecraft.world.gen.feature.Feature com.mushroom.midnight.common.registry.MidnightFeatures.DEAD_VIRIDSHROOM_AND_CACHE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.750] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:neptunium_legs for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NEPTUNIUM_LEGS. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.750] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:neptinium_fillet_knife for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NEPTINIUM_FILLET_KNIFE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.751] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_baby_ambient for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_BABY_AMBIENT. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.751] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:penumbrian for public static net.minecraft.entity.EntityType com.mushroom.midnight.common.registry.MidnightEntities.PENUMBRIAN. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.751] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:neptunium_plate for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NEPTUNIUM_PLATE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.751] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:shade_squirrel for public static net.minecraft.entity.EntityType com.mushroom.midnight.common.registry.MidnightEntities.SHADE_SQUIRREL. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.751] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup essentialfeatures:portable_jukebox for public static net.minecraft.item.Item its_meow.betteranimalsplus.common.CommonEventHandler.PORTABLE_JUKEBOX. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.752] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:cooked_frog_legs for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.COOKED_FROG_LEGS. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.752] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_ambient for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_AMBIENT. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.752] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_hurt for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_HURT. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:25.756] [Server thread/DEBUG] [com.direwolf20.buildinggadgets.common.BuildingGadgets/]: Clearing save caches [06Dec2021 02:45:25.756] [Server thread/DEBUG] [com.direwolf20.buildinggadgets.common.BuildingGadgets/]: Finished clearing save caches [06Dec2021 02:45:25.756] [Server thread/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing serverconfig directory : F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\New World\serverconfig [06Dec2021 02:45:25.756] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigTracker/CONFIG]: Unloading configs type SERVER [06Dec2021 02:45:25.757] [Thread-1/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Config file mining_dimension-server.toml changed, sending notifies [06Dec2021 02:45:25.757] [Thread-1/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Config file mining_dimension-server.toml changed, sending notifies [06Dec2021 02:45:25.919] [Render thread/DEBUG] [IPCClient/]: Sending RichPresence to discord: {"assets":{"small_image":"uteamcore","small_text":"U-Team Core","large_image":"minecraft","large_text":"Minecraft"},"instance":false,"timestamps":{"start":1638709383},"details":"1.15.2 with 109 Mods","state":"Idling in menu","secrets":{}} [06Dec2021 02:45:25.920] [Render thread/DEBUG] [IPCClient/]: Sent packet: Pkt:FRAME{"args":{"activity":{"assets":{"small_image":"uteamcore","small_text":"U-Team Core","large_image":"minecraft","large_text":"Minecraft"},"instance":false,"timestamps":{"start":1638709383},"details":"1.15.2 with 109 Mods","state":"Idling in menu","secrets":{}},"pid":9856},"cmd":"SET_ACTIVITY","nonce":"b9a90fd3-4c82-43b5-8150-cd6a4b67b83f"} [06Dec2021 02:45:25.964] [Thread-26/DEBUG] [IPCClient/]: Received packet: Pkt:FRAME{"evt":null,"data":{"assets":{"small_image":"449588211862208512","small_text":"U-Team Core","large_image":"427223277530906624","large_text":"Minecraft"},"timestamps":{"start":1638709383000},"name":"Minecraft","details":"1.15.2 with 109 Mods","state":"Idling in menu","type":0,"secrets":{},"application_id":"427196986064764928"},"cmd":"SET_ACTIVITY","nonce":"b9a90fd3-4c82-43b5-8150-cd6a4b67b83f"} [06Dec2021 02:45:46.611] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [06Dec2021 02:45:46.612] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [06Dec2021 02:45:46.612] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [06Dec2021 02:45:46.613] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [06Dec2021 02:45:46.614] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [06Dec2021 02:45:46.616] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.15.2 [06Dec2021 02:45:46.616] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Generating keypair [06Dec2021 02:45:46.695] [Server thread/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing serverconfig directory : F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig [06Dec2021 02:45:46.695] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigTracker/CONFIG]: Loading configs type SERVER [06Dec2021 02:45:46.695] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\mining_dimension-server.toml [06Dec2021 02:45:46.696] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\mining_dimension-server.toml [06Dec2021 02:45:46.697] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\mining_dimension-server.toml for changes [06Dec2021 02:45:46.698] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Content.toml [06Dec2021 02:45:46.700] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Content.toml [06Dec2021 02:45:46.701] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Content.toml for changes [06Dec2021 02:45:46.703] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Enchanting.toml [06Dec2021 02:45:46.705] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Enchanting.toml [06Dec2021 02:45:46.705] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Enchanting.toml for changes [06Dec2021 02:45:46.707] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Loot.toml [06Dec2021 02:45:46.708] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Loot.toml [06Dec2021 02:45:46.709] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Loot.toml for changes [06Dec2021 02:45:46.710] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Crafting.toml [06Dec2021 02:45:46.711] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Crafting.toml [06Dec2021 02:45:46.712] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Crafting.toml for changes [06Dec2021 02:45:46.713] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Tweaks.toml [06Dec2021 02:45:46.719] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Tweaks.toml [06Dec2021 02:45:46.719] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\Tweaks.toml for changes [06Dec2021 02:45:46.735] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\world.toml [06Dec2021 02:45:46.736] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\world.toml [06Dec2021 02:45:46.736] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\config\vanillatweaks\world.toml for changes [06Dec2021 02:45:46.745] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\essentials-server.toml [06Dec2021 02:45:46.746] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\essentials-server.toml [06Dec2021 02:45:46.746] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Watching TOML config file F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\essentials-server.toml for changes [06Dec2021 02:45:46.747] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\morpheus-server.toml [06Dec2021 02:45:46.748] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception com.electronwill.nightconfig.core.io.ParsingException: Invalid bare key: INDX( at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:175) ~[toml-3.6.2.jar:?] at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[toml-3.6.2.jar:?] at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[toml-3.6.2.jar:?] at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[toml-3.6.2.jar:?] at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.2.jar:?] at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.2.jar:?] at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:53) ~[?:?] at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104) ~[?:?] at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83) ~[?:?] at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_311] at java.util.Collections$SynchronizedCollection.forEach(Unknown Source) ~[?:1.8.0_311] at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83) ~[?:?] at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:87) ~[?:?] at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:95) ~[?:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:613) [?:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_311] [06Dec2021 02:45:46.756] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: This crash report has been saved to: F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\crash-reports\crash-2021-12-06_02.45.46-server.txt [06Dec2021 02:45:46.757] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server [06Dec2021 02:45:46.757] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players [06Dec2021 02:45:46.757] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds [06Dec2021 02:45:46.758] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Exception stopping the server java.lang.IllegalArgumentException: Can not hotload overworld. This must be loaded at all times by main Server. at org.apache.commons.lang3.Validate.isTrue(Validate.java:158) ~[commons-lang3-3.5.jar:3.5] at net.minecraftforge.common.DimensionManager.initWorld(DimensionManager.java:274) ~[?:?] at net.minecraftforge.common.DimensionManager.getWorld(DimensionManager.java:208) ~[?:?] at net.minecraft.server.MinecraftServer.func_71218_a(MinecraftServer.java:1004) ~[?:?] at net.minecraft.server.MinecraftServer.func_213211_a(MinecraftServer.java:536) ~[?:?] at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java:568) ~[?:?] at net.minecraft.server.integrated.IntegratedServer.func_71260_j(IntegratedServer.java:216) ~[?:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:676) [?:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_311] [06Dec2021 02:45:46.802] [Server thread/DEBUG] [net.minecraftforge.registries.ClearableRegistry/REGISTRY]: minecraft:feature: Clearing registry [06Dec2021 02:45:48.620] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:tree_hopper for public static net.minecraft.entity.EntityType com.mushroom.midnight.common.registry.MidnightEntities.TREE_HOPPER. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.620] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:fish_fillet for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.FISH_FILLET. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.620] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:nessage_in_a_bottle for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NESSAGE_IN_A_BOTTLE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.621] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_death for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_DEATH. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.621] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:cooked_fillet for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.COOKED_FILLET. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.621] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:frog_legs for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.FROG_LEGS. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.621] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup snowundertrees:snow_under_trees for public static net.minecraft.world.gen.feature.Feature bl4ckscor3.mod.snowundertrees.SnowUnderTrees.SNOW_UNDER_TREES. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.621] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:dead_viridshroom_and_cache for public static net.minecraft.world.gen.feature.Feature com.mushroom.midnight.common.registry.MidnightFeatures.DEAD_VIRIDSHROOM_AND_CACHE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.621] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:neptunium_legs for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NEPTUNIUM_LEGS. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.622] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:neptinium_fillet_knife for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NEPTINIUM_FILLET_KNIFE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.622] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_baby_ambient for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_BABY_AMBIENT. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.622] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:penumbrian for public static net.minecraft.entity.EntityType com.mushroom.midnight.common.registry.MidnightEntities.PENUMBRIAN. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.622] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:neptunium_plate for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.NEPTUNIUM_PLATE. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.622] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup midnight:shade_squirrel for public static net.minecraft.entity.EntityType com.mushroom.midnight.common.registry.MidnightEntities.SHADE_SQUIRREL. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.623] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup essentialfeatures:portable_jukebox for public static net.minecraft.item.Item its_meow.betteranimalsplus.common.CommonEventHandler.PORTABLE_JUKEBOX. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.623] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup aquaculture:cooked_frog_legs for public static net.minecraft.item.Item com.teammetallurgy.aquaculture.init.AquaItems.COOKED_FROG_LEGS. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.623] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_ambient for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_AMBIENT. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.623] [Server thread/DEBUG] [net.minecraftforge.registries.ObjectHolderRef/]: Unable to lookup waddles:adelie_hurt for public static net.minecraft.util.SoundEvent com.girafi.waddles.init.WaddlesSounds.ADELIE_HURT. This means the object wasn't registered. It's likely just mod options. [06Dec2021 02:45:48.623] [Server thread/DEBUG] [com.direwolf20.buildinggadgets.common.BuildingGadgets/]: Clearing save caches [06Dec2021 02:45:48.623] [Server thread/DEBUG] [com.direwolf20.buildinggadgets.common.BuildingGadgets/]: Finished clearing save caches [06Dec2021 02:45:48.623] [Server thread/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing serverconfig directory : F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig [06Dec2021 02:45:48.623] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigTracker/CONFIG]: Unloading configs type SERVER what stands out to me is this: [06Dec2021 02:45:46.748] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception com.electronwill.nightconfig.core.io.ParsingException: Invalid bare key: INDX( which on the crash report which i've opened with notepad++ shows Invalid bare key: INDX(  as in a null value or the "NUL" black rectangle. Starting to feel that my issue is a differnet one but just gives the same end result of a crash as soon as I click "Play Selected World"
    • Don't directly modify the mod jars.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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