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

[1.8] (SOLVED) Making an item throw able


GenFrogKing
 Share

Recommended Posts

Ok, so I've been trying to make this simple rock throwable.  My problem is this: Why isn't it working?  :o

 

Here's my code thus far:

 

Mod Class:

package genfrogking.supercraft;

import genfrogking.supercraft.init.SupercraftBlocks;
import genfrogking.supercraft.init.SupercraftEntities;
import genfrogking.supercraft.init.SupercraftItems;
import genfrogking.supercraft.init.SupercraftRecipes;
import genfrogking.supercraft.proxy.CommonProxy;
import genfrogking.supercraft.worldGen.WorldRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
public class SupercraftMod {

@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
public static CommonProxy proxy;

public static final SupercraftTab tabSupercraft = new SupercraftTab("tabSupercraft");

@EventHandler
// This is called when Forge is setting up.
public void preInit(FMLPreInitializationEvent PreEvent)
{
	// Object init and registering
	// Config handling
	SupercraftBlocks.init();
	SupercraftBlocks.register();
	SupercraftItems.init();
	SupercraftItems.register();
	SupercraftEntities.init();
	SupercraftEntities.register();
	SupercraftRecipes.addRecipes();
	WorldRegister.MainRegistry();
}

@EventHandler
public void Init(FMLInitializationEvent Event)
{
	// Proxy, TileEntity, entity, GUI, Sounds, Packet Registering
	proxy.registerRenders();
	proxy.registerSounds();
}

@EventHandler
public void PostInit(FMLPostInitializationEvent PostEvent)
{

}
}

 

Entities Class:

package genfrogking.supercraft.init;

import genfrogking.supercraft.Reference;
import genfrogking.supercraft.client.renderer.entity.RenderStoneRock;
import genfrogking.supercraft.init.entity.projectile.EntityStoneRock;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.registry.EntityRegistry;

public class SupercraftEntities 
{
public static Entity stone_rock;

public static void init()
{

}

public static void register()
{
	EntityRegistry.registerModEntity(EntityStoneRock.class, "stone_rock", 4, 0, 80, 3, true);
}

public static void registerRenders()
{
	RenderingRegistry.registerEntityRenderingHandler(EntityStoneRock.class, new RenderStoneRock(stone_rock));
}

public static void registerRender(Entity entity)
{

}
}

 

In that last class, Eclipse is throwing a red flag on line 30 (where I start with RenderingRegistry) and is underlining RenderStoneRock(stone_rock) as the problem source at the moment.  It says that there is no constructor that takes the same parameters which is true; I'm guessing things changed in 1.8.  (I've been following a 1.7.10- tutorial on throwable items).  Here is the RenderStoneRock class.

 

RenderStone Rock class:

 

package genfrogking.supercraft.client.renderer.entity;

import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.Entity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class RenderStoneRock extends Render
{
protected final Item something;
private final RenderItem somethingElse;
private static final String  reallyDontKnow = "someString";

public RenderStoneRock(RenderManager renderManager, Item item, RenderItem renderItem)
{
	super(renderManager);
	this.something = item;
	this.somethingElse = renderItem;
}

public ItemStack func_177082_d(Entity entity)
{
	return new ItemStack(this.something, 1, 0);
}

    public void doRender(Entity entity, double x, double y, double z, float p_76986_8_, float partialTicks)
    {
        GlStateManager.pushMatrix();
        GlStateManager.translate((float)x, (float)y, (float)z);
        GlStateManager.enableRescaleNormal();
        GlStateManager.scale(0.5F, 0.5F, 0.5F);
        GlStateManager.rotate(-this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
        GlStateManager.rotate(this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
        this.bindTexture(TextureMap.locationBlocksTexture);
        this.somethingElse.renderItemModel(this.func_177082_d(entity));
        GlStateManager.disableRescaleNormal();
        GlStateManager.popMatrix();
        super.doRender(entity, x, y, z, p_76986_8_, partialTicks);
    }

@Override
protected ResourceLocation getEntityTexture(Entity entity) 
{
	return null;
        //return TextureMap.locationBlocksTexture;
}

}

 

So the RenderStoneRock() method now takes three objects.  How do I account for these in my Entities class file?

 

I can provide more code of what's going on in my other class files if need be.  However, since the red flag is in the Entities class, I'm guessing once that's solved, it will work.

Link to comment
Share on other sites

Thanks for the reply.  Upon getting the RenderManager, the error disappeared.

 

However, the item is still not rendering upon right clicking.  In fact, only while I'm in creative mode does my avatar's arm twitch at all.  I've scanned and compared my Item's class to other's.  I can't seem to find an error.

 

Stone Rock Entity class:

 

package genfrogking.supercraft.entity.projectile;

import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityTameable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class EntityStoneRock extends EntityThrowable
{
private int randomTilt;

public EntityStoneRock(World worldIn)
{
	super(worldIn);
	randomTilt = rand.nextInt(360);
}

public EntityStoneRock(World worldIn, EntityLivingBase entity)
{
	super(worldIn, entity);
	randomTilt = rand.nextInt(360);
}

public EntityStoneRock(World worldIn, double x, double y, double z)
{
	super(worldIn, x, y, z);
	randomTilt = rand.nextInt(360);
}

public int getRandomTilt()
{
	return randomTilt;
}

public void setRandomTilt(int angle)
{
	randomTilt = angle;
}

private void InflictDamage(MovingObjectPosition movingObjectPos)
{
	movingObjectPos.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 1);
}

private void DestroySelf()
{
	this.setDead();
}

protected void onImpact(MovingObjectPosition movingObjectPos)
{
	if (movingObjectPos.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)
	{
		Block block = this.worldObj.getBlockState(movingObjectPos.getBlockPos()).getBlock();

		if(block == Blocks.tallgrass || block == Blocks.vine || block == Blocks.red_flower || block == Blocks.yellow_flower || block == Blocks.brown_mushroom_block || block == Blocks.red_mushroom || block == Blocks.reeds || block == Blocks.double_plant || block == Blocks.deadbush || block == Blocks.brown_mushroom_block || block == Blocks.wheat || block == Blocks.waterlily || block == Blocks.carrots || block == Blocks.potatoes || block == Blocks.snow_layer)
		{
			BlockPos blockPos = movingObjectPos.getBlockPos();
			IBlockState blockstate = this.worldObj.getBlockState(blockPos);
			TileEntity tile_entity = this.worldObj.getTileEntity(blockPos);

			if(this.getThrower() instanceof EntityPlayer)
			{
				EntityPlayer player = (EntityPlayer)this.getThrower();
				this.worldObj.destroyBlock(blockPos, false);
				block.harvestBlock(this.worldObj, player, blockPos, blockstate, tile_entity); //allows blocks to drop the items they would normally drop if harvested with a tool
			}
			else if(this.getThrower() instanceof EntityTameable)
			{
				EntityTameable tameableEntity = (EntityTameable)this.getThrower();
				if(tameableEntity != null && tameableEntity.isTamed())
				{
					EntityPlayer player = (EntityPlayer)tameableEntity.getOwner();

					if(player != null)
					{
						this.worldObj.destroyBlock(blockPos, false);
						block.harvestBlock(this.worldObj, player, blockPos, blockstate, tile_entity);
					}
				}
			}
		}
		else
		{
			this.DestroySelf();
		}
	}
	else
	{
		if (movingObjectPos.entityHit != null)
		{
			if(this.getThrower() instanceof EntityPlayer)
			{
				this.InflictDamage(movingObjectPos);
			}
			else if(this.getThrower() instanceof EntityTameable)
			{
				//ensures other tameable creatures will not be hurt by stray thrown rocks thrown by an Entity
				if(movingObjectPos.entityHit instanceof EntityTameable)
				{
					EntityTameable tameableEntity = (EntityTameable)movingObjectPos.entityHit;
					if(tameableEntity != null && !tameableEntity.isTamed())
					{
						this.InflictDamage(movingObjectPos);
					}
				}
				//ensures other players will not be harmed by a tameable creatures thrown rocks!
				else if((movingObjectPos.entityHit instanceof EntityPlayer) == false)
				{
					this.InflictDamage(movingObjectPos);
				}
			}

			this.DestroySelf();
		}
	}
}
}

 

 

I really don't think the problem is in this class, but rather in the way I'm handling the rendering of the entity.  The problem must still lie in one of my main mod classes.  :P

 

Main mod class:

 

package genfrogking.supercraft;

import genfrogking.supercraft.creativetab.SCCreativeTabs;
import genfrogking.supercraft.proxy.CommonProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = Main.MOD_ID, name = Main.MOD_NAME, version = Main.VERSION, dependencies="required-after:FML")
public class Main {

public static final String MOD_ID = "sc";
public static final String MOD_NAME = "Supercraft Mod";
public static final String VERSION = "1.0";
public static final String CLIENT_PROXY_CLASS = "genfrogking.supercraft.proxy.ClientProxy";
public static final String SERVER_PROXY_CLASS = "genfrogking.supercraft.proxy.ServerProxy";

@Instance(value = MOD_ID)
public static Main instance;

@SidedProxy(modId= MOD_ID, clientSide = Main.CLIENT_PROXY_CLASS, serverSide = Main.SERVER_PROXY_CLASS)
public static CommonProxy proxy;

public static final SCCreativeTabs tabSupercraft = new SCCreativeTabs("tabSupercraft");

@EventHandler
public void preInit(FMLPreInitializationEvent PreEvent)
{
	proxy.preInit(PreEvent);
}

@EventHandler
public void Init(FMLInitializationEvent Event)
{
	proxy.registerRenders();
	proxy.Init(Event);
}

@EventHandler
public void PostInit(FMLPostInitializationEvent PostEvent)
{
	proxy.PostInit(PostEvent);
}
}

 

 

Common Proxy class:

 

package genfrogking.supercraft.proxy;

import genfrogking.supercraft.init.SupercraftBlocks;
import genfrogking.supercraft.init.SupercraftEntities;
import genfrogking.supercraft.init.SupercraftItems;
import genfrogking.supercraft.init.SupercraftRecipes;
import genfrogking.supercraft.worldGen.WorldRegister;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class CommonProxy
{
public void preInit(FMLPreInitializationEvent PreEvent)
{
	SupercraftBlocks.init();
	SupercraftBlocks.register();
	SupercraftItems.init();
	SupercraftItems.register();
	SupercraftEntities.init();
	SupercraftEntities.register();
	SupercraftRecipes.addRecipes();
	WorldRegister.MainRegistry();
}

public void Init(FMLInitializationEvent Event)
{

}

public void PostInit(FMLPostInitializationEvent PostEvent)
{

}

public void registerRenders() 
{

}

public void registerSounds()
{

}
}

 

 

Server Proxy Class:

 

package genfrogking.supercraft.proxy;

import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class ServerProxy extends CommonProxy
{
@Override
public void preInit(FMLPreInitializationEvent PreEvent)
{
	super.preInit(PreEvent);
}

@Override
public void Init(FMLInitializationEvent Event)
{
	super.Init(Event);
}

@Override
public void PostInit(FMLPostInitializationEvent PostEvent)
{
	super.PostInit(PostEvent);
}

@Override
public void registerRenders()
{

}

@Override
public void registerSounds()
{

}
}

 

 

Client Proxy Class:

 

package genfrogking.supercraft.proxy;

import genfrogking.supercraft.init.SupercraftBlocks;
import genfrogking.supercraft.init.SupercraftEntities;
import genfrogking.supercraft.init.SupercraftItems;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class ClientProxy extends CommonProxy
{
@Override
public void preInit(FMLPreInitializationEvent PreEvent)
{
	super.preInit(PreEvent);
}

@Override
public void Init(FMLInitializationEvent Event)
{
	super.Init(Event);
}

@Override
public void PostInit(FMLPostInitializationEvent PostEvent)
{
	super.PostInit(PostEvent);
}

@Override
public void registerRenders()
{
	SupercraftBlocks.registerRenders();
	SupercraftItems.registerRenders();
	SupercraftEntities.registerRenders();
}

@Override
public void registerSounds()
{

}
}

 

 

Entities Class:

 

package genfrogking.supercraft.init;

import genfrogking.supercraft.Main;
import genfrogking.supercraft.client.renderer.entity.RenderStoneRock;
import genfrogking.supercraft.entity.projectile.EntityStoneRock;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.registry.EntityRegistry;

public class SupercraftEntities 
{			
public static void init()
{

}

public static void register()
{
	EntityRegistry.registerModEntity(EntityStoneRock.class, "stone_rock", 4, Main.instance, 80, 3, true);
}

public static void registerRenders()
{
	RenderingRegistry.registerEntityRenderingHandler(EntityStoneRock.class, new RenderStoneRock(Minecraft.getMinecraft().getRenderManager()));
}

public static void registerRender(Block block)
{

}
}

 

 

Stone Rock Item:

 

package genfrogking.supercraft.item;

import genfrogking.supercraft.entity.projectile.EntityStoneRock;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

public class ItemStoneRock extends Item
{
public ItemStoneRock()
{
	this.setMaxStackSize(16);
}

public boolean canHarvestBlock(Block blockIn)
{
	return false;
}

public boolean getIsRepairable(ItemStack toRepair,ItemStack repair)
{
	return false;
}

public ItemStack onRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
{
	if (!playerIn.capabilities.isCreativeMode)
        {        	
		--itemStackIn.stackSize;
        }
        
	playerIn.swingItem();
	playerIn.setItemInUse(itemStackIn, this.getMaxItemUseDuration(itemStackIn));
        worldIn.playSoundAtEntity(playerIn, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));

        if (!worldIn.isRemote)
        {
        	//worldIn.spawnEntityInWorld(new EntitySnowball(worldIn, playerIn));
        	EntityStoneRock stone_rock = new EntityStoneRock(worldIn, playerIn);
        	stone_rock.motionX *= 2;
        	stone_rock.motionY *= 2;
        	stone_rock.motionZ *= 2;
        	worldIn.spawnEntityInWorld(stone_rock);
        }
        
	return itemStackIn;
}
}

 

 

Any help is greatly appreciated!

Link to comment
Share on other sites

Thank you very much for the replies!

 

Okay, so upon searching for onRightClick in Item class, I discovered that it didn't exist.  I scrolled down and found onItemRightClick.  Quite a silly blunder!  :o  I bet you guys saw it and were just waiting to see how long it would take me.  ;)  I also commented out the part TrashCaster mentioned.  The rock is mostly throw-able now.

 

However, now my rock isn't rendering properly.  It's just a black and purple checker box when it leaves the character's hands.  It probably has something to do with the Entities class.  I suspect I'm registering the renders wrong.  It also could very well have something to do with the way my proxies relate to the Main class.

 

Either way, somehow RenderStoneRock isn't being called right.  I'm troubleshooting, but will have more time this coming weekend to really look into it if I don't solve it tonight.

Link to comment
Share on other sites

Thank you very much for the replies!

 

Okay, so upon searching for onRightClick in Item class, I discovered that it didn't exist.  I scrolled down and found onItemRightClick.  Quite a silly blunder!  :o  I bet you guys saw it and were just waiting to see how long it would take me.  ;)  I also commented out the part TrashCaster mentioned.  The rock is mostly throw-able now.

 

However, now my rock isn't rendering properly.  It's just a black and purple checker box when it leaves the character's hands.  It probably has something to do with the Entities class.  I suspect I'm registering the renders wrong.  It also could very well have something to do with the way my proxies relate to the Main class.

 

Either way, somehow RenderStoneRock isn't being called right.  I'm troubleshooting, but will have more time this coming weekend to really look into it if I don't solve it tonight.

If it's rendering a purple and black checker box, that means it cannot find the texture..
Link to comment
Share on other sites

Thank you very much for the replies!

 

Okay, so upon searching for onRightClick in Item class, I discovered that it didn't exist.  I scrolled down and found onItemRightClick.  Quite a silly blunder!  :o  I bet you guys saw it and were just waiting to see how long it would take me.  ;)  I also commented out the part TrashCaster mentioned.  The rock is mostly throw-able now.

This is exactly why you should ALWAYS use the @Override annotation on any inherited method - it will tell you right away in your IDE that the method does not exist if the signature is incorrect, which you fix not by removing @Override, but by finding the correct method signature ;)

Link to comment
Share on other sites

Hey, thanks all again for the replies.

 

If it's rendering a purple and black checker box, that means it cannot find the texture..

 

If what you're saying is true, then the problem should be in how I'm calling the texture in my Render class, right?

 

RenderStoneRock class:

 

package genfrogking.supercraft.client.renderer.entity;

import genfrogking.supercraft.entity.projectile.EntityStoneRock;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldRenderer;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;

import org.lwjgl.opengl.GL11;

public class RenderStoneRock extends Render
{
public RenderStoneRock(RenderManager renderManager) 
{
	super(renderManager);
}

private static final ResourceLocation stoneRockTexture = new ResourceLocation("textures/items/stone_rock.png");

protected ResourceLocation getEntityTexture(EntityStoneRock rock)
{
	return stoneRockTexture;
}

protected ResourceLocation getEntityTexture(Entity entity) 
{
	return this.getEntityTexture((EntityStoneRock)entity);
}

public void doRender(Entity entity, double transX, double transY, double transZ, float param5, float dir)
{
	this.doRender((EntityStoneRock)entity, transX, transY, transZ, param5, dir);
}

public void doRender(EntityStoneRock rock, double transX, double transY, double transZ, float param5, float dir)
{
	this.bindEntityTexture(rock);
	GlStateManager.color(1.0F, 1.0F, 1.0F);
	GlStateManager.pushMatrix();
	GlStateManager.translate((float)transX, (float)transY, (float)transZ);
	GlStateManager.rotate(rock.prevRotationYaw + (rock.rotationYaw - rock.prevRotationYaw) * dir - 90.0F, 0.0F, 1.0F, 0.0F);
	GlStateManager.rotate(rock.getRandomTilt(), 1.0F, 0.0F, 0.0F);
	Tessellator tessellator = Tessellator.getInstance();
	WorldRenderer worldRenderer = tessellator.getWorldRenderer();
	GlStateManager.enableRescaleNormal();
	float scale = 0.5F;
	GlStateManager.scale(scale, scale, scale);
	GL11.glNormal3f(0.0F, 0.0F, scale);

	worldRenderer.startDrawingQuads();
	worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 0);
	worldRenderer.addVertexWithUV(2.0D, -2.0D, 0.0D, 1, 0);
	worldRenderer.addVertexWithUV(2.0D, 2.0D, 0.0D, 1, 1);
	worldRenderer.addVertexWithUV(-2.0D, 2.0D, 0.0D, 0, 1);
	tessellator.draw();

	GlStateManager.rotate(180.0F, 1.0F, 0.0F, 0.0F);

	worldRenderer.startDrawingQuads();
	worldRenderer.addVertexWithUV(-2.0D, -2.0D, 0.0D, 0, 0);
	worldRenderer.addVertexWithUV(2.0D, -2.0D, 0.0D, 1, 0);
	worldRenderer.addVertexWithUV(2.0D, 2.0D, 0.0D, 1, 1);
	worldRenderer.addVertexWithUV(-2.0D, 2.0D, 0.0D, 0, 1);
	tessellator.draw();

	GlStateManager.disableRescaleNormal();
	GlStateManager.popMatrix();

	super.doRender(rock, transX, transY, transZ, param5, dir);
}
}

 

 

Upon putting an Override annotation on the first getEntityTexture method, I receive an error stating that that specific method is nonexistent in the extended class for the given parameters.  That should be fine for custom methods, though... right?  I tested this class with several System.out.println's and I know for a fact that everything here is being called including this unrecognized method.

 

However, there is an error upon "throwing" the rock:

 

 

[03:33:00] [Client thread/WARN]: Failed to load texture: minecraft:textures/items/stone_rock.png

java.io.FileNotFoundException: minecraft:textures/items/stone_rock.png

 

 

It would appear you're right, gegy1000.  I've tried modifying the load path with no success thus far.  I'm sure it's something simple from here, though.  I'm investigating.

 

Or use your IDE to override for you in the first place ;)

 

Alright, alright, you caught me again, but I thought you said Eclipse didn't offer automated overriding... ;)

Link to comment
Share on other sites

Alright, alright, you caught me again, but I thought you said Eclipse didn't offer automated overriding... ;)

I am not going into the Eclipse vs IntelliJ discussion, but Source > Override/Implement Methods sucks when you have Ctrl-O :P

 

For your error, you forgot your ModID in the ResourceLocation.

Link to comment
Share on other sites

I am not going into the Eclipse vs IntelliJ discussion, but Source > Override/Implement Methods sucks when you have Ctrl-O :P

 

Lol, I don't wish a heated debate this early in my Java career.

 

For your error, you forgot your ModID in the ResourceLocation.

 

Included it, but still no go.

 

private static final ResourceLocation stoneRockTexture = new ResourceLocation(Main.MOD_ID + "/textures/items/stone_rock.png");

 

Hmmmm...  :-\

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

    • Hi, I have been on hosting a modded minecraft server with 16 gb ram and using the Better minecraft mod pack in version 1.16.5. Recently the server has been crashing and the server refuses to give a crash report. I have the debug log before it shuts off, but am uncertain what the reason is. I tried deactivating the max tick time which didn't seem to have helped. Here is what the debug report gave before it crashed.   [23May2022 01:40:40.756] [Server thread/DEBUG] [net.minecraftforge.fml.FMLWorldPersistenceHook/WP]: Gathering id map for writing to world save world [23May2022 01:40:40.777] [Server thread/DEBUG] [net.minecraftforge.fml.FMLWorldPersistenceHook/WP]: ID Map collection complete world [23May2022 01:40:40.779] [Server thread/ERROR] [net.minecraft.world.storage.SaveFormat/]: Failed to save level ./world java.io.IOException: No space left on device     at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[?:1.8.0_311]     at java.io.File.createTempFile(File.java:2061) ~[?:1.8.0_311]     at net.minecraft.world.storage.SaveFormat$LevelSave.func_237288_a_(SaveFormat.java:348) ~[?:?]     at net.minecraft.server.MinecraftServer.func_213211_a(MinecraftServer.java:540) ~[?:?]     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:807) ~[?:?]     at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) ~[?:?]     at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.482] [IO-Worker-504/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-24, 74] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:772) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:758) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFile.func_227135_a_(SourceFile:377) ~[?:?]     at net.minecraft.world.chunk.storage.RegionFile$ChunkBuffer.close(SourceFile:350) ~[?:?]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFileCache.func_219100_a(SourceFile:64) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_227091_a_(SourceFile:144) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_235978_b_(SourceFile:134) ~[?:?]     at net.minecraft.util.concurrent.ITaskQueue$RunnableWithPriority.run(SourceFile:54) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:94) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:137) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:105) [?:?]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.489] [IO-Worker-536/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-24, 75] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:772) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:758) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFile.func_227135_a_(SourceFile:377) ~[?:?]     at net.minecraft.world.chunk.storage.RegionFile$ChunkBuffer.close(SourceFile:350) ~[?:?]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFileCache.func_219100_a(SourceFile:64) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_227091_a_(SourceFile:144) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_235978_b_(SourceFile:134) ~[?:?]     at net.minecraft.util.concurrent.ITaskQueue$RunnableWithPriority.run(SourceFile:54) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:94) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:137) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:105) [?:?]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.496] [IO-Worker-504/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-21, 71] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:772) ~[?:1.8.0_311]     at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:758) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFile.func_227135_a_(SourceFile:377) ~[?:?]     at net.minecraft.world.chunk.storage.RegionFile$ChunkBuffer.close(SourceFile:350) ~[?:?]     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at java.io.FilterOutputStream.close(FilterOutputStream.java:159) ~[?:1.8.0_311]     at net.minecraft.world.chunk.storage.RegionFileCache.func_219100_a(SourceFile:64) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_227091_a_(SourceFile:144) ~[?:?]     at net.minecraft.world.chunk.storage.IOWorker.func_235978_b_(SourceFile:134) ~[?:?]     at net.minecraft.util.concurrent.ITaskQueue$RunnableWithPriority.run(SourceFile:54) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:94) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:137) [?:?]     at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:105) [?:?]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311] [23May2022 01:40:43.508] [IO-Worker-536/ERROR] [net.minecraft.world.chunk.storage.IOWorker/]: Failed to store chunk [-24, 77] java.io.IOException: No space left on device     at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) ~[?:1.8.0_311]     at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) ~[?:1.8.0_311]     at sun.nio.ch.IOUtil.[23May2022 01:45:40.411] [Thread-1/DEBUG] [net.minecraftforge.fml.config.ConfigFileTypeHandler/CONFIG]: Config file corpse-server.toml changed, sending notifies [23May2022 01:45:40.414] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: com.electronwill.nightconfig.core.io.WritingException: Failed to flush the writer  
    • ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 5/22/22 8:33 PM Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed     at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) [?:?] {re:classloading}     at net.minecraftforge.fml.client.ClientModLoader.completeModLoading(ClientModLoader.java:188) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.lambda$null$1(Minecraft.java:508) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft$$Lambda$7680/333960151.run(Unknown Source) [?:?] {}     at net.minecraft.util.Util.func_215077_a(Util.java:320) [?:?] {re:classloading,re:mixin}     at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:504) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft$$Lambda$6454/1659479517.accept(Unknown Source) [?:?] {}     at net.minecraft.client.gui.ResourceLoadProgressGui.func_230430_a_(ResourceLoadProgressGui.java:113) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:481) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:shouldersurfing.mixins.json:MixinGameRenderer,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftClient,pl:mixin:APP:sodium.mixins.json:features.options.MixinMinecraftAccessor,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.2.23.jar:36.2] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$457/688581408.call(Unknown Source) [forge-1.16.5-36.2.23.jar:36.2] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {re:classloading}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {re:classloading} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {} -- MOD jeitweaker -- Details:     Caused by 0: java.lang.NoClassDefFoundError: mezz/jei/api/runtime/IIngredientManager         at com.blamejared.jeitweaker.implementation.RegistrationManager.registerIngredientType(RegistrationManager.java:34) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.api.IngredientTypeHolder.lambda$of$0(IngredientTypeHolder.java:74) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.api.IngredientTypeHolder$$Lambda$7398/1688682661.apply(Unknown Source) ~[?:?] {}         at com.blamejared.jeitweaker.api.IngredientTypeHolder.registerTo(IngredientTypeHolder.java:104) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.plugin.DefaultJeiTweakerPluginProvider.registerIngredientTypes(DefaultJeiTweakerPluginProvider.java:27) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.lambda$registerData$1(JeiTweakerInitializer.java:67) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer$$Lambda$7381/2136356486.accept(Unknown Source) ~[?:?] {}         at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51] {}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.registerData(JeiTweakerInitializer.java:66) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.initialize(JeiTweakerInitializer.java:22) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.JEITweaker.setupClient(JEITweaker.java:23) ~[?:1.1.0.49] {re:classloading}         at com.blamejared.jeitweaker.JEITweaker$$Lambda$3363/1135877283.accept(Unknown Source) ~[?:?] {}         at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?] {}         at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?] {}         at net.minecraftforge.eventbus.EventBus$$Lambda$2955/1066270324.invoke(Unknown Source) ~[?:?] {}         at net.minecraftforge.eventbus.EventBus$$Lambda$3134/132326253.invoke(Unknown Source) ~[?:?] {}         at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}         at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}         at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[?:36.2] {re:classloading}         at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) ~[?:?] {re:classloading}         at net.minecraftforge.fml.ModContainer$$Lambda$3168/79283217.run(Unknown Source) ~[?:?] {}         at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}         at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {}         at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {}     Mod File: JEITweaker-1.16.5-1.1.0.49.jar     Failure message: JEI Tweaker (jeitweaker) encountered an error during the sided_setup event phase         java.lang.NoClassDefFoundError: mezz/jei/api/runtime/IIngredientManager     Mod Version: 1.1.0.49     Mod Issue URL: NOT PROVIDED     Exception message: java.lang.ClassNotFoundException: mezz.jei.api.runtime.IIngredientManager Stacktrace:     at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {}     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:106) ~[modlauncher-8.0.9.jar:?] {re:classloading}     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}     at com.blamejared.jeitweaker.implementation.RegistrationManager.registerIngredientType(RegistrationManager.java:34) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.api.IngredientTypeHolder.lambda$of$0(IngredientTypeHolder.java:74) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.api.IngredientTypeHolder$$Lambda$7398/1688682661.apply(Unknown Source) ~[?:?] {}     at com.blamejared.jeitweaker.api.IngredientTypeHolder.registerTo(IngredientTypeHolder.java:104) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.plugin.DefaultJeiTweakerPluginProvider.registerIngredientTypes(DefaultJeiTweakerPluginProvider.java:27) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.lambda$registerData$1(JeiTweakerInitializer.java:67) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer$$Lambda$7381/2136356486.accept(Unknown Source) ~[?:?] {}     at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51] {}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.registerData(JeiTweakerInitializer.java:66) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.implementation.JeiTweakerInitializer.initialize(JeiTweakerInitializer.java:22) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.JEITweaker.setupClient(JEITweaker.java:23) ~[?:1.1.0.49] {re:classloading}     at com.blamejared.jeitweaker.JEITweaker$$Lambda$3363/1135877283.accept(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$2955/1066270324.invoke(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$3134/132326253.invoke(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[?:36.2] {re:classloading}     at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModContainer$$Lambda$3168/79283217.run(Unknown Source) ~[?:?] {}     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) ~[?:1.8.0_51] {}     at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {}     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {} -- System Details -- Details:     Minecraft Version: 1.16.5     Minecraft Version ID: 1.16.5     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 708782032 bytes (675 MB) / 1947205632 bytes (1857 MB) up to 3817865216 bytes (3641 MB)     CPUs: 12     JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m     ModLauncher: 8.0.9+86+master.3cf110c     ModLauncher launch target: fmlclient     ModLauncher naming: srg     ModLauncher services:          /mixin-0.8.4.jar mixin PLUGINSERVICE          /eventbus-4.0.0.jar eventbus PLUGINSERVICE          /forge-1.16.5-36.2.23.jar object_holder_definalize PLUGINSERVICE          /forge-1.16.5-36.2.23.jar runtime_enum_extender PLUGINSERVICE          /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE          /forge-1.16.5-36.2.23.jar capability_inject_definalize PLUGINSERVICE          /forge-1.16.5-36.2.23.jar runtimedistcleaner PLUGINSERVICE          /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE          /forge-1.16.5-36.2.23.jar fml TRANSFORMATIONSERVICE      FML: 36.2     Forge: net.minecraftforge:36.2.23     FML Language Providers:          javafml@36.2         minecraft@1     Mod List:          forge-1.16.5-36.2.23-client.jar                   |Minecraft                     |minecraft                     |1.16.5              |ENQUEUE_IM|Manifest: NOSIGNATURE         TConstruct-1.16.5-3.3.2.324.jar                   |Tinkers' Construct            |tconstruct                    |3.3.2.324           |ENQUEUE_IM|Manifest: NOSIGNATURE         useful_backpacks-1.16.5-1.12.1.90.jar             |Useful Backpacks              |usefulbackpacks               |1.12.1.90           |ENQUEUE_IM|Manifest: f4:a6:0b:ee:cb:8a:1a:ea:9f:9d:45:91:8f:8b:b3:ae:26:f3:bf:05:86:1d:90:9e:f6:32:2a:1a:ed:1d:ce:b0         TreeChop-1.16.4-0.14.6-fixed.jar                  |HT's TreeChop                 |treechop                      |0.14.6              |ENQUEUE_IM|Manifest: NOSIGNATURE         MouseTweaks-2.14-mc1.16.2.jar                     |Mouse Tweaks                  |mousetweaks                   |2.14                |ENQUEUE_IM|Manifest: NOSIGNATURE         pamhc2trees-1.16.3-1.0.1.jar                      |Pam's HarvestCraft 2 Fruit Tre|pamhc2trees                   |1.0.1               |ENQUEUE_IM|Manifest: NOSIGNATURE         BiomesOPlenty-1.16.5-13.1.0.477-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.5-13.1.0.477   |ENQUEUE_IM|Manifest: NOSIGNATURE         ShoulderSurfing-1.16.5-2.2.1.jar                  |Shoulder Surfing              |shouldersurfing               |1.16.5-2.2.1        |ENQUEUE_IM|Manifest: NOSIGNATURE         Neat 1.7-27.jar                                   |Neat                          |neat                          |1.7-27              |ENQUEUE_IM|Manifest: NOSIGNATURE         Mantle-1.16.5-1.6.152.jar                         |Mantle                        |mantle                        |1.6.152             |ENQUEUE_IM|Manifest: NOSIGNATURE         Waystones_1.16.5-7.6.4.jar                        |Waystones                     |waystones                     |7.6.4               |ENQUEUE_IM|Manifest: NOSIGNATURE         gravestone-1.16.5-1.0.6.jar                       |Gravestone Mod                |gravestone                    |1.16.5-1.0.6        |ENQUEUE_IM|Manifest: NOSIGNATURE         Clumps-6.0.0.27.jar                               |Clumps                        |clumps                        |6.0.0.27            |ENQUEUE_IM|Manifest: NOSIGNATURE         XaerosWorldMap_1.19.1_Forge_1.16.5.jar            |Xaero's World Map             |xaeroworldmap                 |1.19.1              |ENQUEUE_IM|Manifest: NOSIGNATURE         citadel-1.8.1-1.16.5.jar                          |Citadel                       |citadel                       |1.8.1               |ENQUEUE_IM|Manifest: NOSIGNATURE         alexsmobs-1.12.1.jar                              |Alex's Mobs                   |alexsmobs                     |1.12.1              |ENQUEUE_IM|Manifest: NOSIGNATURE         NaturesCompass-1.16.5-1.9.1-forge.jar             |Nature's Compass              |naturescompass                |1.16.5-1.9.1-forge  |ENQUEUE_IM|Manifest: NOSIGNATURE         obfuscate-0.6.2-1.16.3.jar                        |Obfuscate                     |obfuscate                     |0.6.2               |ENQUEUE_IM|Manifest: e1:59:1a:56:ec:97:b3:d0:b3:4b:25:06:1f:83:b0:f4:fd:0c:24:e3:6d:ea:94:b1:9f:22:b0:38:13:60:88:ea         u_team_core-1.16.5-3.2.1.196.jar                  |U Team Core                   |uteamcore                     |3.2.1.196           |ENQUEUE_IM|Manifest: f4:a6:0b:ee:cb:8a:1a:ea:9f:9d:45:91:8f:8b:b3:ae:26:f3:bf:05:86:1d:90:9e:f6:32:2a:1a:ed:1d:ce:b0         JEITweaker-1.16.5-1.1.0.49.jar                    |JEI Tweaker                   |jeitweaker                    |1.1.0.49            |ERROR     |Manifest: NOSIGNATURE         sodium-forge-2.9.10+rev.ea6353c.jar               |SodiumReforged                |sodium                        |2.9.10+rev.ea6353c  |ENQUEUE_IM|Manifest: NOSIGNATURE         CraftTweaker-1.16.5-7.1.2.489.jar                 |CraftTweaker                  |crafttweaker                  |7.1.2.489           |ENQUEUE_IM|Manifest: NOSIGNATURE         KimetsuAnimation_1.16.5_ver3.jar                  |kimetsuAnimationPlayer        |kimetsuanimationplayer        |1.0.0               |ENQUEUE_IM|Manifest: NOSIGNATURE         KimetsunoYaiba_1.16.5_ver35.jar                   |Kimetsunoyaiba                |kimetsunoyaiba                |1.0.0               |ENQUEUE_IM|Manifest: NOSIGNATURE         forge-1.16.5-36.2.23-universal.jar                |Forge                         |forge                         |36.2.23             |ENQUEUE_IM|Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90         appleskin-forge-mc1.16.x-2.2.0.jar                |AppleSkin                     |appleskin                     |mc1.16.4-2.2.0      |ENQUEUE_IM|Manifest: NOSIGNATURE         Aquaculture-1.16.5-2.1.21.jar                     |Aquaculture 2                 |aquaculture                   |1.16.5-2.1.21       |ENQUEUE_IM|Manifest: NOSIGNATURE         CosmeticArmorReworked-1.16.5-v4a.jar              |CosmeticArmorReworked         |cosmeticarmorreworked         |1.16.5-v4a          |ENQUEUE_IM|Manifest: 5e:ed:25:99:e4:44:14:c0:dd:89:c1:a9:4c:10:b5:0d:e4:b1:52:50:45:82:13:d8:d0:32:89:67:56:57:01:53         DynamicSurroundings-1.16.5-4.0.5.0.jar            |§3Dynamic Surroundings        |dsurround                     |4.0.5.0             |ENQUEUE_IM|Manifest: NOSIGNATURE     Crash Report UUID: c7f4603b-fec8-48b4-9dd2-260ae74bc6b9
    • https://github.com/ImpactDevelopment/ImpactIssues/issues/new?assignees=&labels=Bug&template=bug_report.md&title=Minecraft+crash+when+clicking+on+alts+button Here - make an issue on Impact Client's issue form. That area is where the developers of impact can see your post
    • ---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic. Time: 5/23/22 7:22 AM Description: mouseClicked event handler java.lang.NullPointerException: mouseClicked event handler     at net.impactclient.34V.2(34V.java:15)     at net.impactclient.34P.b(34P.java:24)     at dot.b(SourceFile:325)     at djz.a(SourceFile:922)     at net.impactclient.2T.8(2T.java:46)     at net.impactclient.2T$$Lambda$3632/1642244192.onPress(Unknown Source)     at dlj.b(SourceFile:33)     at dld.a(SourceFile:16)     at dlh.a(SourceFile:149)     at dmh.a(SourceFile:27)     at dka.b(SourceFile:92)     at dka$$Lambda$3621/25741263.run(Unknown Source)     at dot.a(SourceFile:435)     at dka.a(SourceFile:92)     at dka.c(SourceFile:162)     at dka$$Lambda$3620/764692091.run(Unknown Source)     at aob.execute(ThreadTaskExecutor.java:104)     at dka.b(SourceFile:162)     at dka$$Lambda$2354/1214025054.invoke(Unknown Source)     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)     at org.lwjgl.system.JNI.invokeV(Native Method)     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174)     at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:127)     at djz.e(SourceFile:1071)     at djz.e(SourceFile:681)     at net.minecraft.client.main.Main.main(SourceFile:215)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)     at net.minecraft.launchwrapper.Launch.main(Launch.java:30) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at net.impactclient.34V.2(34V.java:15)     at net.impactclient.34P.b(34P.java:24)     at dot.b(SourceFile:325)     at djz.a(SourceFile:922)     at net.impactclient.2T.8(2T.java:46)     at net.impactclient.2T$$Lambda$3632/1642244192.onPress(Unknown Source)     at dlj.b(SourceFile:33)     at dld.a(SourceFile:16)     at dlh.a(SourceFile:149)     at dmh.a(SourceFile:27)     at dka.b(SourceFile:92)     at dka$$Lambda$3621/25741263.run(Unknown Source) -- Affected screen -- Details:     Screen name: net.impactclient.2T Stacktrace:     at dot.a(SourceFile:435)     at dka.a(SourceFile:92)     at dka.c(SourceFile:162)     at dka$$Lambda$3620/764692091.run(Unknown Source)     at aob.execute(ThreadTaskExecutor.java:104)     at dka.b(SourceFile:162)     at dka$$Lambda$2354/1214025054.invoke(Unknown Source)     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)     at org.lwjgl.system.JNI.invokeV(Native Method)     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174)     at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:127)     at djz.e(SourceFile:1071)     at djz.e(SourceFile:681)     at net.minecraft.client.main.Main.main(SourceFile:215)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)     at net.minecraft.launchwrapper.Launch.main(Launch.java:30) -- System Details -- Details:     Minecraft Version: 1.16.5     Minecraft Version ID: 1.16.5     Operating System: Windows 8 (amd64) version 6.2     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 2105089736 bytes (2007 MB) / 3892314112 bytes (3712 MB) up to 4294967296 bytes (4096 MB)     CPUs: 4     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Launched Version: 1.16.5-Impact_4.9.1-OptiFine_HD_U_G6     Backend library: LWJGL version 3.2.2 build 10     Backend API: Intel(R) HD Graphics 2000 GL version 3.1.0 - Build 9.17.10.4459, Intel     GL Caps: Using framebuffer using OpenGL 3.0     Using VBOs: Yes     Is Modded: Very likely; Jar signature invalidated     Type: Client (map_client.txt)     Graphics mode: fancy     Resource Packs:      Current Language: English (US)     CPU: 4x Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz     OptiFine Version: OptiFine_1.16.5_HD_U_G6     OptiFine Build: 20210117-013236     Render Distance Chunks: 16     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: null     OpenGlVersion: 3.1.0 - Build 9.17.10.4459     OpenGlRenderer: Intel(R) HD Graphics 2000     OpenGlVendor: Intel     CpuCount: 4     The exit code i got: The game crashed whilst mouseclicked event handler Error: java.lang.NullPointerException: mouseClicked event handler Exit Code: -1  
    • i cant run forge on my computer it crashes every time...i have contacted Minecraft themselves and they haven't helped forge the website doesn't seem to have contact info and i have indulged in watching a large number of videos and read many articles on what to do to fix these problems and none whatsoever have done anything at all...i would really appreaciate a call so i can give a better rundown  my phone number is 8102800545
  • Topics

×
×
  • Create New...

Important Information

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