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

[1.7.10]Make Block Face Player


grand_mind1
 Share

Recommended Posts

Hi, I'm trying to make my block with a TileEntitySpecialRenderer face the player when he places it. I've looked into the furnace and anvil code to try to replicate it. At the moment, I'm not sure if it's the actual block not facing the correct direction or the model. I think it is probably the model, because the bounding box seems to change the correct orientation even when the model does not.

 

My Block Class:

 

public class BlockPoweredAnvil extends BlockContainer implements ITileEntityProvider
{
    private Random rand = new Random();

    public IIcon[] icons = new IIcon[2];

    public BlockPoweredAnvil()
    {
        super(Material.rock);
        this.setCreativeTab(CreativeTabPandM.PANDM_TAB);
        this.setBlockName(Names.POWERED_ANVIL);
        this.setBlockTextureName(this.getUnwrappedUnlocalizedName(this.getUnlocalizedName()));
    }

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

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

    @Override
    public int getRenderType()
    {
        return -1;
    }

    @Override
    public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityLivingBase, ItemStack itemStack)
    {
        LogHelper.info("Block Placed");
        int l = MathHelper.floor_double((double)(entityLivingBase.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
        int i1 = world.getBlockMetadata(x, y, z) >> 2;
        ++l;
        l %= 4;

        if (l == 0)
        {
            LogHelper.info("0");
            world.setBlockMetadataWithNotify(x, y, z, 2 | i1 << 2, 2);
        }

        if (l == 1)
        {
            LogHelper.info("1");
            world.setBlockMetadataWithNotify(x, y, z, 3 | i1 << 2, 2);
        }

        if (l == 2)
        {
            LogHelper.info("2");
            world.setBlockMetadataWithNotify(x, y, z, 0 | i1 << 2, 2);
        }

        if (l == 3)
        {
            LogHelper.info("3");
            world.setBlockMetadataWithNotify(x, y, z, 1 | i1 << 2, 2);
        }
    }

    public void setBlockBoundsBasedOnState(IBlockAccess iBlockAccess, int x, int y, int z)
    {
        int l = iBlockAccess.getBlockMetadata(x, y, z) & 3;

        if (l != 3 && l != 1)
        {
            this.setBlockBounds(0.125F, 0.0F, 0.0F, 0.875F, 1.0F, 1.0F);
        }
        else
        {
            this.setBlockBounds(0.0F, 0.0F, 0.125F, 1.0F, 1.0F, 0.875F);
        }
    }

    @Override
    public void registerBlockIcons(IIconRegister iconRegister)
    {
        for (int i = 0; i < 2; i ++)
        {
            this.icons[i] = iconRegister.registerIcon(this.textureName + i);
        }
    }

    @Override
    public IIcon getIcon(int side, int meta)
    {
        if (side == 1)
        {
            return icons[0];
        }
        return icons[1];
    }

    @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 TileEntityPoweredAnvil)
        {
            entityPlayer.openGui(PandM.instance, GUIs.POWERED_ANVIL.ordinal(), world, x, y, z);
        }
        return true;
    }

    @Override
    public void breakBlock(World world, int x, int y, int z, Block block, int meta)
    {
        TileEntityPoweredAnvil poweredAnvil = (TileEntityPoweredAnvil) world.getTileEntity(x, y, z);
        if (poweredAnvil != null)
        {
            for (int i = 0; i < poweredAnvil.getSizeInventory(); i++)
            {
                ItemStack itemStack = poweredAnvil.getStackInSlot(i);
                if (itemStack != null)
                {
                    float f = this.rand.nextFloat() * 0.8F + 0.1F;
                    float f1 = this.rand.nextFloat() * 0.8F + 0.1F;
                    float f2 = this.rand.nextFloat() * 0.8F + 0.1F;

                    while (itemStack.stackSize > 0)
                    {
                        int j = this.rand.nextInt(21) + 10;

                        if (j > itemStack.stackSize)
                        {
                            j = itemStack.stackSize;
                        }
                        itemStack.stackSize -= j;
                        EntityItem entityitem = new EntityItem(world, (double) ((float) x + f), (double) ((float) y + f1), (double) ((float) z + f2), new ItemStack(itemStack.getItem(), j, itemStack.getItemDamage()));

                        if (itemStack.hasTagCompound())
                        {
                            entityitem.getEntityItem().setTagCompound((NBTTagCompound) itemStack.getTagCompound().copy());
                        }

                        float f3 = 0.05F;
                        entityitem.motionX = (double) ((float) this.rand.nextGaussian() * f3);
                        entityitem.motionY = (double) ((float) this.rand.nextGaussian() * f3 + 0.2F);
                        entityitem.motionZ = (double) ((float) this.rand.nextGaussian() * f3);
                        world.spawnEntityInWorld(entityitem);
                    }
                }
            }
            world.func_147453_f(x, y, z, block);
        }
        super.breakBlock(world, x, y, z, block, meta);
    }

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

    @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);
    }
}

 

 

Some screenshots to hopefully better explain what I'm talking about:

http://puu.sh/eI4Zr/e42a09109e.jpg

http://puu.sh/eI52X/7306221137.jpg

The models on both are facing the same direction, however the bounding box is different depending on which direction I was facing when I placed it.

If you need to see any other classes, I can provide the code for them.

Any help is appreciated!

Thanks!

Link to comment
Share on other sites

This is probably not the most efficient way to do it, but I have managed to get my models to rotate depending on the placed direction.

 

Block code : https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/blocks/BlockSteamMachine.java#L151-190

 

Render code: https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/client/renders/RenderSteamSmeltry.java

 

Hope that helps!

Link to comment
Share on other sites

Block

public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack)
    {
//This gets the direction the player is facing as an int from 0 to 3
int dir = MathHelper.floor_double((player.rotationYaw * 4F) / 360F + 0.5D) & 3;
//You can use the block metadata to save the direction
world.setBlockMetadataWithNotify(x, y, z, dir, 3);
//Or you can save it in a tile entity if you are using one
createNewTileEntity(world, world.getBlockMetadata(x, y, z));
}

 

Custom Renderer

//Stuff to get the dir int, from the block metadata or the tile or whatever
//Check the dir and apply rotations

        if (dir == 0)
        {
            GL11.glRotatef(-180F, 0.0F, 1.0F, 0.0F);
        }

        if (dir % 2 != 0)
        {
            GL11.glRotatef(dir * (-90F), 0.0F, 1.0F, 0.0F);
        }

        if (dir % 2 == 0)
        {
            GL11.glRotatef(dir * (-180F), 0.0F, 1.0F, 0.0F);
        }

This probably can be optimized a bit more, but this way its readable

This is so commonly asked that it should be stickied somewhere ._.

Link to comment
Share on other sites

Thanks for your reply! I tried this, but I think I either implemented it incorrectly or I need extra code for it to work with my ItemRenderer for the block. My game crashes with the following report:

http://pastebin.com/b1V6yaU8

This is that class:

 

package com.darichey.PandM.item.itemRenderer;

import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.common.util.ForgeDirection;
import org.lwjgl.opengl.GL11;

public class ItemRendererPoweredAnvil implements IItemRenderer
{
    private TileEntity tileEntity;
    private TileEntitySpecialRenderer renderer;

    public ItemRendererPoweredAnvil(TileEntitySpecialRenderer renderer, TileEntity tileEntity)
    {
        this.tileEntity = tileEntity;
        this.renderer = renderer;
    }

    @Override
    public boolean handleRenderType(ItemStack item, ItemRenderType type)
    {
        return true;
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper)
    {
        return true;
    }

    @Override
    public void renderItem(ItemRenderType type, ItemStack item, Object... data)
    {
        if (type == IItemRenderer.ItemRenderType.ENTITY)
        {
            GL11.glTranslatef(-0.5F, 0.0F, -0.5F);
        }
        this.tileEntity.blockMetadata = 0;
        this.renderer.renderTileEntityAt(this.tileEntity, 0.0D, 0.0D, 0.0D, 0.0F);
    }
}

 

 

 

package com.darichey.PandM.tileEntity.specialRenderer;

import com.darichey.PandM.model.ModelPoweredAnvil;
import com.darichey.PandM.reference.ResourceLocations;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import org.lwjgl.opengl.GL11;

public class RenderPoweredAnvil extends TileEntitySpecialRenderer
{
    private ModelPoweredAnvil modelPoweredAnvil;

    public RenderPoweredAnvil()
    {
        this.modelPoweredAnvil = new ModelPoweredAnvil();
    }

    private void RotateModelBasedOnMeta(World world, int x, int y, int z)
    {
        int meta = world.getBlockMetadata(x, y, z);

        if (meta == 0)
        {
            GL11.glRotatef(-180F, 0.0F, 1.0F, 0.0F);
        }

        if (meta % 2 != 0)
        {
            GL11.glRotatef(meta * (-90F), 0.0F, 1.0F, 0.0F);
        }

        if (meta % 2 == 0)
        {
            GL11.glRotatef(meta * (-180F), 0.0F, 1.0F, 0.0F);
        }
    }

    @Override
    public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float f)
    {
        GL11.glPushMatrix();
        GL11.glTranslatef((float) x + 0.5F, (float) y - 0.5F, (float) z + 0.5F);
        RotateModelBasedOnMeta(tileEntity.getWorldObj(), tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord);
        this.bindTexture(ResourceLocations.PoweredAnvilModelTexture);
        GL11.glPushMatrix();
        this.modelPoweredAnvil.renderModel(0.0625F);
        GL11.glPopMatrix();
        GL11.glPopMatrix();
    }
}

 

Link to comment
Share on other sites

You are using it wrong.

 

You should override the whole render code in IItemRenderer to render in the inventory, not use the tile entity renderer.

 

Somewheree in your initialization you should have something like this:

ClientRegistry.bindTileEntitySpecialRenderer(MyTileEntity.class, new MyTileEntityRenderer());

 

 

http://www.minecraftforge.net/wiki/Custom_Tile_Entity_Renderer

Link to comment
Share on other sites

Um no, I have both. The TileEntitySpecialRenderer is used to render the block in the world and ItemRender is used to render it in an inventory, right? I've included that second class in my previous reply if you need to look at it.

 

EDIT: What do you mean by overriding the whole render code in IItemRenderer?

Link to comment
Share on other sites

Yeah, my bad, i didn't see the second one.

 

It appears to me that the tileentityrenderer won't work for the inventory you have to do the rendering yerself.

 

You are looking for something along these lines. This is not actual code, you need to adapt it for your personal circumstances.

public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data)
    {
///blahblahblah get the texture get the model etc
case INVENTORY:
                Minecraft.getMinecraft().renderEngine.bindTexture(modelTexture);
            {
                GL11.glPushMatrix();
                GL11.glColor4f(1, 1, 1, 128);

                GL11.glPushMatrix();
                GL11.glTranslatef(-0.5f, 0f, -0.5f);

//This one is important because the model renders upside down because of reasons
                GL11.glPushMatrix();
                GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);

                GL11.glPushMatrix();
                GL11.glScalef(1.9f, 1.9f, 1.9f);

                model.render(null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.05F, other arguments, whatevers);

                GL11.glPopMatrix();
                GL11.glPopMatrix();
                GL11.glPopMatrix();
                GL11.glPopMatrix();
            }

 

and for entity items

 

  case ENTITY:
                Minecraft.getMinecraft().renderEngine.bindTexture(modelTexture);
            {
                GL11.glPushMatrix();
                GL11.glColor4f(1, 1, 1, 128);

                GL11.glPushMatrix();
                GL11.glTranslatef(0f, 1f, 0f);

                GL11.glPushMatrix();
                GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);

                GL11.glPushMatrix();
                GL11.glScalef(1.2f, 1.2f, 1.2f);

                model.render(null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.05F, again some extra stuff if you want);

                GL11.glPopMatrix();
                GL11.glPopMatrix();
                GL11.glPopMatrix();
                GL11.glPopMatrix();
            }

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

    • Error in Aquaculture, the mod does not use the Forge Registry System correctly. I would recommend you to report the bug to the mod author.
    • basic java is required for modding minecraft  Also coremodding/mixin is not supported on this Forum, if you have a real case to use mixin, refer to the Forge Discord into the channel non-api-modding
    • For next time do not create a new Thread, since the Moderators can move a Thread into the correct Sub Forum
    • Right so I've tri this, and I got the exact same crash as before. Here's the log: [06Dec2021 16:19:32.734] [Render thread/INFO] [journeymap/]: PostInit [06Dec2021 16:19:32.902] [Render thread/INFO] [journeymap/]: JourneyMap log initialized. [06Dec2021 16:19:32.903] [Render thread/INFO] [journeymap/]: initialize ENTER [06Dec2021 16:19:33.087] [Render thread/WARN] [journeymap/]: core (Initialized) Bad configField entry during updateFrom(): optionsManagerViewed=null [06Dec2021 16:19:33.087] [Render thread/WARN] [journeymap/]: core (Initialized) Bad configField entry during updateFrom(): splashViewed=null [06Dec2021 16:19:33.154] [Render thread/WARN] [journeymap/]: Couldn't determine locale from game settings, defaulting to en_AU [06Dec2021 16:19:33.184] [Render thread/INFO] [journeymap/]: [ClientAPI] built with JourneyMap API 1.5-SNAPSHOT [06Dec2021 16:19:33.185] [Render thread/INFO] [journeymap/]: Initializing plugins with Client API: journeymap.client.api.impl.ClientAPI [06Dec2021 16:19:33.185] [Render thread/INFO] [journeymap/]: initialize EXIT, elapsed count 0 avg ?ms [06Dec2021 16:19:33.185] [Render thread/DEBUG] [journeymap/]: postInitialize ENTER [06Dec2021 16:19:33.415] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.KeyEventHandler [06Dec2021 16:19:33.420] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.ChatEventHandler [06Dec2021 16:19:33.425] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.StateTickHandler [06Dec2021 16:19:33.430] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.WorldEventHandler [06Dec2021 16:19:33.436] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.WaypointBeaconHandler [06Dec2021 16:19:33.439] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.TextureAtlasHandler [06Dec2021 16:19:33.440] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.MiniMapOverlayHandler [06Dec2021 16:19:33.445] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.forge.event.PlayerConnectHandler [06Dec2021 16:19:33.451] [Render thread/DEBUG] [journeymap/]: Handler registered: journeymap.client.world.ChunkMonitor [06Dec2021 16:19:33.460] [Render thread/ERROR] [journeymap/]: Couldn't locate icons for Default: F:\Games\MultiMC\instances\HR-%20New%20Beginnings\minecraft\mods\journeymap-1.15.2-5.7.0b3.jar\assets\journeymap\icon\entity [06Dec2021 16:19:33.460] [Render thread/INFO] [journeymap/]: Added entity icons from journeymap:icon/entity. Success: false [06Dec2021 16:19:33.468] [Render thread/ERROR] [journeymap/]: Couldn't locate icons for flat: F:\Games\MultiMC\instances\HR-%20New%20Beginnings\minecraft\mods\journeymap-1.15.2-5.7.0b3.jar\assets\journeymap\theme\flat [06Dec2021 16:19:33.489] [Render thread/INFO] [journeymap/]: Preloaded theme textures: 0 [06Dec2021 16:19:33.502] [Render thread/DEBUG] [journeymap/]: postInitialize EXIT, elapsed count 1 avg 315.56ms [06Dec2021 16:19:33.502] [Server-Worker-9/INFO] [net.minecraftforge.fml.DeferredWorkQueue/LOADING]: Synchronous work queue completed in 00:00:00.783 [06Dec2021 16:19:33.582] [Server-Worker-9/DEBUG] [net.minecraftforge.registries.ClearableRegistry/REGISTRY]: minecraft:feature: Clearing registry [06Dec2021 16:19:33.609] [Server-Worker-9/DEBUG] [mixin/]: Mixing block.MixinBlockStateCache from phosphor.mixins.json into net.minecraft.block.BlockState$Cache [06Dec2021 16:19:34.400] [JM-VersionCheck-1/INFO] [journeymap/]: Newer version online: JourneyMap 5.7.0beta1.jar for Minecraft 1.15.2 on http://minecraft.curseforge.com/projects/journeymap/files/2894436 [06Dec2021 16:19:51.702] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized. [06Dec2021 16:19:51.703] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started [06Dec2021 16:19:52.096] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x0 jei:textures/atlas/gui.png-atlas [06Dec2021 16:19:52.156] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 2048x2048x4 minecraft:textures/atlas/blocks.png-atlas [06Dec2021 16:19:52.312] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/signs.png-atlas [06Dec2021 16:19:52.322] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas [06Dec2021 16:19:52.323] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas [06Dec2021 16:19:52.324] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x1024x4 minecraft:textures/atlas/chest.png-atlas [06Dec2021 16:19:52.327] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas [06Dec2021 16:19:52.330] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas [06Dec2021 16:20:00.187] [Render thread/INFO] [Mystical Agriculture/]: Model replacement took 17 ms [06Dec2021 16:20:01.930] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas [06Dec2021 16:20:01.932] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [06Dec2021 16:20:01.932] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/mob_effects.png-atlas [06Dec2021 16:20:02.110] [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":1638767898},"details":"1.15.2 with 109 Mods","state":"Idling in menu","secrets":{}} [06Dec2021 16:20:02.111] [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":1638767898},"details":"1.15.2 with 109 Mods","state":"Idling in menu","secrets":{}},"pid":2572},"cmd":"SET_ACTIVITY","nonce":"e355ceb5-f647-4c46-83d3-de91be75778c"} [06Dec2021 16:20:02.118] [Render thread/DEBUG] [mixin/]: Mixing ClientRecipeBookMixin from midnight.mixins.json into net.minecraft.client.util.ClientRecipeBook [06Dec2021 16:20:02.121] [Render thread/DEBUG] [mixin/]: Renaming synthetic method lambda$newRecipeList$1(Lnet/minecraft/client/util/RecipeBookCategories;)Ljava/util/List; to mdad46f9$lambda$newRecipeList$1$0 in midnight.mixins.json:ClientRecipeBookMixin [06Dec2021 16:20:02.121] [Render thread/DEBUG] [mixin/]: Renaming synthetic method lambda$newRecipeList$0(Lnet/minecraft/client/util/RecipeBookCategories;)Ljava/util/List; to mdad46f9$lambda$newRecipeList$0$1 in midnight.mixins.json:ClientRecipeBookMixin [06Dec2021 16:20:02.132] [Render thread/WARN] [mixin/]: @Final field field_197931_e:Ljava/util/Map; in midnight.mixins.json:ClientRecipeBookMixin should be final [06Dec2021 16:20:02.132] [Render thread/WARN] [mixin/]: @Final field field_197932_f:Ljava/util/List; in midnight.mixins.json:ClientRecipeBookMixin should be final [06Dec2021 16:20:02.162] [Thread-25/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":1638767898000},"name":"Minecraft","details":"1.15.2 with 109 Mods","state":"Idling in menu","type":0,"secrets":{},"application_id":"427196986064764928"},"cmd":"SET_ACTIVITY","nonce":"e355ceb5-f647-4c46-83d3-de91be75778c"} [06Dec2021 16:20:02.179] [Render thread/INFO] [com.tmtravlr.soundfilters.SoundFiltersMod/]: Sound Filters successfully loaded the sound channels [06Dec2021 16:20:02.215] [Render thread/INFO] [ambientsounds/]: Successfully loaded sound engine. 11 dimension(s) and 32 region(s) [06Dec2021 16:20:13.629] [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 16:20:13.630] [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 16:20:13.632] [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 16:20:13.633] [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 16:20:13.634] [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 16:20:13.701] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.15.2 [06Dec2021 16:20:13.701] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Generating keypair [06Dec2021 16:20:13.797] [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 16:20:13.797] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigTracker/CONFIG]: Loading configs type SERVER [06Dec2021 16:20:13.797] [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 16:20:13.797] [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 16:20:13.798] [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 16:20:13.800] [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 16:20:13.801] [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 16:20:13.801] [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 16:20:13.803] [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 16:20:13.805] [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 16:20:13.806] [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 16:20:13.808] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Built TOML config for F:\Games\MultiMC\instances\HR- New Beginnings\minecraft\saves\Wooooorld\serverconfig\midnight-server.toml [06Dec2021 16:20:13.809] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception com.electronwill.nightconfig.core.io.ParsingException: Not enough data available at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123) ~[core-3.6.2.jar:?] at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166) ~[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.TableParser.parseNormal(TableParser.java:101) ~[toml-3.6.2.jar:?] at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:88) ~[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 16:20:13.843] [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_16.20.13-server.txt [06Dec2021 16:20:13.844] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server [06Dec2021 16:20:13.844] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players [06Dec2021 16:20:13.844] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds [06Dec2021 16:20:13.865] [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 16:20:13.896] [Server thread/DEBUG] [net.minecraftforge.registries.ClearableRegistry/REGISTRY]: minecraft:feature: Clearing registry [06Dec2021 16:20:15.736] [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 16:20:15.737] [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 16:20:15.737] [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 16:20:15.738] [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 16:20:15.738] [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 16:20:15.738] [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 16:20:15.739] [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 16:20:15.739] [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 16:20:15.739] [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 16:20:15.741] [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 16:20:15.741] [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 16:20:15.742] [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 16:20:15.742] [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 16:20:15.743] [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 16:20:15.744] [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 16:20:15.745] [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 16:20:15.745] [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 16:20:15.745] [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 16:20:15.754] [Server thread/DEBUG] [com.direwolf20.buildinggadgets.common.BuildingGadgets/]: Clearing save caches [06Dec2021 16:20:15.754] [Server thread/DEBUG] [com.direwolf20.buildinggadgets.common.BuildingGadgets/]: Finished clearing save caches [06Dec2021 16:20:15.754] [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 16:20:15.754] [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigTracker/CONFIG]: Unloading configs type SERVER [06Dec2021 16:20:19.556] [Discord Rich Presence Timer 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":1638767898},"details":"1.15.2 with 109 Mods","state":"Idling in menu","secrets":{}} [06Dec2021 16:20:19.557] [Discord Rich Presence Timer 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":1638767898},"details":"1.15.2 with 109 Mods","state":"Idling in menu","secrets":{}},"pid":2572},"cmd":"SET_ACTIVITY","nonce":"a2147afd-261d-450b-959d-5d5fec73e6cf"} [06Dec2021 16:20:19.581] [Thread-25/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":1638767898000},"name":"Minecraft","details":"1.15.2 with 109 Mods","state":"Idling in menu","type":0,"secrets":{},"application_id":"427196986064764928"},"cmd":"SET_ACTIVITY","nonce":"a2147afd-261d-450b-959d-5d5fec73e6cf"} This should be all relevant log info. I've no idea what's causing this issue. Perhaps the worlds just fucked and I have to say goodbye to my hard work; it could have been an issue caused by the fact that this is all saved on an external hard drive. Any help is appreciated
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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