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

make block change on right click?(with a certain item in player hand)[solved]


Recommended Posts

how would one go about making a block change on rightclick? I mean the proper way, i know some ways to do it (using worldgen to place the new block at the same location as the old block) but what method & parameter would i use to check the item in a payers hand?

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

EDIT:

i have found a way to get the item in hand, would the worldplacing method still work?

 
   public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer p5EP) {
    	if(p5EP.inventory.currentItem == 0){
    		//changeblock here
    	}
    }

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

you could either check from the block the player is right clicking on or you could use the following from your Item override class

 

public boolean onItemUse(ItemStack tool,
		EntityPlayer player, World world, int x, int y,
		int z, int par7, float xFloat, float yFloat, float zFloat)
{

	if (!player.canPlayerEdit(x, y, z, par7, tool))//can the player edit this block? if he cant then dont do anything
	{
		return false;
	}
world.setBlockAndMetadataWithNotify(x, y, z, 0, Block.blockDiamond.blockID); // sets the block to diamond block with the meta data 0 (used for setting metadata if the block needs it
	world.setBlockWithNotify(x, y, z, Block.blockDiamond.blockID); // sets the block to diamond block with no meta data
}

Link to post
Share on other sites

i got mine to work (mainly because i wanted to be able to select vanilla Items too not just my mod's items) and a peculiar error popped up:

 

2013-03-05 18:11:00 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.7.4.520 for Minecraft 1.4.7 loading

2013-03-05 18:11:02 [iNFO] [sTDOUT] 27 achievements

2013-03-05 18:11:02 [iNFO] [sTDOUT] 210 recipes

2013-03-05 18:11:02 [iNFO] [sTDOUT] Setting user: Player575, -

2013-03-05 18:11:02 [iNFO] [sTDERR] Client asked for parameter: server

2013-03-05 18:11:02 [iNFO] [sTDOUT] LWJGL Version: 2.4.2

2013-03-05 18:11:03 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2013-03-05 18:11:03 [iNFO] [sTDOUT] MinecraftForge v6.6.0.497 Initialized

2013-03-05 18:11:03 [iNFO] [ForgeModLoader] MinecraftForge v6.6.0.497 Initialized

2013-03-05 18:11:03 [iNFO] [sTDOUT] Replaced 84 ore recipies

2013-03-05 18:11:03 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2013-03-05 18:11:03 [iNFO] [ForgeModLoader] Searching C:\Users\gamer\MCP\jars\mods for mods

2013-03-05 18:11:04 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-03-05 18:11:04 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-03-05 18:11:04 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-03-05 18:11:05 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-03-05 18:11:05 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-03-05 18:11:05 [iNFO] [sTDOUT] OpenAL initialized.

2013-03-05 18:11:05 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-03-05 18:11:10 [iNFO] [ForgeModLoader] Loading dimension 0 (48698) (net.minecraft.server.integrated.IntegratedServer@10b5bcb)

2013-03-05 18:11:10 [iNFO] [ForgeModLoader] Loading dimension 1 (48698) (net.minecraft.server.integrated.IntegratedServer@10b5bcb)

2013-03-05 18:11:10 [iNFO] [ForgeModLoader] Loading dimension -1 (48698) (net.minecraft.server.integrated.IntegratedServer@10b5bcb)

2013-03-05 18:11:15 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:15 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:16 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:16 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:16 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:17 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:17 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:17 [iNFO] [sTDOUT] debug tick.

2013-03-05 18:11:26 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:64)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:108)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-03-05 18:11:26 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2013-03-05 18:11:26 [iNFO] [sTDERR] at tuskiomi.common.TGrayCobble.onBlockClicked(TGrayCobble.java:27)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.item.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:184)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.network.NetServerHandler.handleBlockDig(NetServerHandler.java:509)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.network.packet.Packet14BlockDig.processPacket(Packet14BlockDig.java:67)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:136)

2013-03-05 18:11:26 [iNFO] [sTDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:57)

2013-03-05 18:11:26 [iNFO] [sTDERR] ... 6 more

2013-03-05 18:11:27 [iNFO] [ForgeModLoader] Unloading dimension 0

2013-03-05 18:11:27 [iNFO] [ForgeModLoader] Unloading dimension -1

2013-03-05 18:11:27 [iNFO] [ForgeModLoader] Unloading dimension 1

2013-03-05 18:11:27 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue

2013-03-05 18:11:27 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

tuskiomi [hello, tuskiomis mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

2013-03-05 18:11:27 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-03-05 18:11:27 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException

2013-03-05 18:11:27 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)

2013-03-05 18:11:27 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:752)

2013-03-05 18:11:27 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:459)

2013-03-05 18:11:27 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559)

2013-03-05 18:11:27 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-03-05 18:11:28 [iNFO] [sTDERR] java.lang.NullPointerException

2013-03-05 18:11:28 [iNFO] [sTDERR] at tuskiomi.common.TGrayCobble.onBlockClicked(TGrayCobble.java:27)

2013-03-05 18:11:28 [iNFO] [sTDERR] at net.minecraft.client.multiplayer.PlayerControllerMP.clickBlock(PlayerControllerMP.java:205)

2013-03-05 18:11:28 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1320)

2013-03-05 18:11:28 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1805)

2013-03-05 18:11:28 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:846)

2013-03-05 18:11:28 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:771)

2013-03-05 18:11:28 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-03-05 18:11:38 [iNFO] [sTDOUT] Stopping!

2013-03-05 18:11:38 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-03-05 18:11:38 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-03-05 18:12:02 [iNFO] [sTDERR] Someone is closing me!

 

 

 

 

my block code:

 

 

package tuskiomi.common;

 

import org.lwjgl.Sys;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

 

public class TGrayCobble extends Block{

protected static final int BIDR = 3821;

public TGrayCobble(int par1) {

super(par1, Material.rock);

setTextureFile("/tuskiomi/painted blocks.png");

setHardness(5.0F);

setResistance(7.0F);

setBlockName("Gray Cobble");

setCreativeTab(CreativeTabs.tabAllSearch);

 

}

    public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)

    {

        return false;

    }

    public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer p5EP) {

    if(p5EP.inventory.getCurrentItem().itemID == 1){

    par1World.setBlockWithNotify(par2, par3, par4, 4);

   

    }

    System.out.println("debug tick.");

    }

    public int getBlockTextureFromSide(int par1)

    {

        return 116;//same texture for all sides

    }

 

 

}

 

 

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

the corect way would be

private Block toBlock = new BlockNewBlockHere()
public void onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer player) {
     if(player.inventory.currentItem == 0){
      par1World.setBlockId(par2,par3,par4,toBlock.blockID);
     }
    }

The Korecraft Mod

Link to post
Share on other sites

i get the same error:

2013-03-06 17:00:03 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.7.4.520 for Minecraft 1.4.7 loading
2013-03-06 17:00:05 [iNFO] [sTDOUT] 27 achievements
2013-03-06 17:00:05 [iNFO] [sTDOUT] 210 recipes
2013-03-06 17:00:05 [iNFO] [sTDOUT] Setting user: Player923, -
2013-03-06 17:00:05 [iNFO] [sTDERR] Client asked for parameter: server
2013-03-06 17:00:05 [iNFO] [sTDOUT] LWJGL Version: 2.4.2
2013-03-06 17:00:06 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2013-03-06 17:00:06 [iNFO] [sTDOUT] MinecraftForge v6.6.0.497 Initialized
2013-03-06 17:00:06 [iNFO] [ForgeModLoader] MinecraftForge v6.6.0.497 Initialized
2013-03-06 17:00:06 [iNFO] [sTDOUT] Replaced 84 ore recipies
2013-03-06 17:00:06 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2013-03-06 17:00:06 [iNFO] [ForgeModLoader] Searching C:\Users\gamer\MCP\jars\mods for mods
2013-03-06 17:00:07 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-03-06 17:00:08 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-03-06 17:00:08 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-03-06 17:00:08 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-03-06 17:00:08 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-03-06 17:00:09 [iNFO] [sTDOUT] OpenAL initialized.
2013-03-06 17:00:09 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-03-06 17:00:36 [iNFO] [ForgeModLoader] Loading dimension 0 (48698) (net.minecraft.server.integrated.IntegratedServer@178ef53)
2013-03-06 17:00:36 [iNFO] [ForgeModLoader] Loading dimension 1 (48698) (net.minecraft.server.integrated.IntegratedServer@178ef53)
2013-03-06 17:00:36 [iNFO] [ForgeModLoader] Loading dimension -1 (48698) (net.minecraft.server.integrated.IntegratedServer@178ef53)
2013-03-06 17:01:00 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:64)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:108)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-06 17:01:00 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at tuskiomi.common.TGrayCobble.onBlockClicked(TGrayCobble.java:27)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:184)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handleBlockDig(NetServerHandler.java:509)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet14BlockDig.processPacket(Packet14BlockDig.java:67)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:136)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:57)
2013-03-06 17:01:00 [iNFO] [sTDERR] 	... 6 more
2013-03-06 17:01:01 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-03-06 17:01:01 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-03-06 17:01:01 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-03-06 17:01:02 [iNFO] [sTDERR] java.lang.NullPointerException
2013-03-06 17:01:02 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at tuskiomi.common.TGrayCobble.onBlockClicked(TGrayCobble.java:27)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.client.multiplayer.PlayerControllerMP.clickBlock(PlayerControllerMP.java:205)
2013-03-06 17:01:02 [sEVERE] [ForgeModLoader] 
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
tuskiomi [hello, tuskiomis mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1320)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1805)
2013-03-06 17:01:02 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:846)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:771)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-03-06 17:01:02 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:752)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:459)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559)
2013-03-06 17:01:02 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-06 17:01:12 [iNFO] [sTDOUT] Stopping!
2013-03-06 17:01:12 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-03-06 17:01:12 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

just going on a hunch here, but have you tried using null checks (given that your error is caused by a null value) is just add a few bits like

if(player != null){

or

if(player.inventory.getCurrentItem() != null){

 

again this is just a hunch as i don't know what is on line 27 of TGrayCobble, where it seems throwing a null pointer exception

Link to post
Share on other sites

just going on a hunch here, but have you tried using null checks (given that your error is caused by a null value) is just add a few bits like

if(player != null){

or

if(player.inventory.getCurrentItem() != null){

 

again this is just a hunch as i don't know what is on line 27 of TGrayCobble, where it seems throwing a null pointer exception

if(p5EP.inventory.getCurrentItem().itemID == 1){

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

my code along w/ another error

 

package tuskiomi.common;

import org.lwjgl.Sys;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

public class TGrayCobble extends Block{
protected static final int BIDR = 3821;
public TGrayCobble(int par1) {
	super(par1, Material.rock);
	setTextureFile("/tuskiomi/painted blocks.png");
	setHardness(5.0F); 
	setResistance(7.0F);
	setBlockName("Gray Cobble");
	setCreativeTab(CreativeTabs.tabAllSearch);

}
    public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
    {
        return false;
    }
    public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer p5EP) {
    	if(p5EP.inventory.getCurrentItem().itemID == 1 && p5EP.inventory.getCurrentItem().itemID != 0 && p5EP != null && par2 * par3 != 0 && par2 * par4 != 0){
    		par1World.setBlock(par2, par3, par4, 4);
    		
    		}
    	System.out.println("debug tick.");
    }
    public int getBlockTextureFromSide(int par1)
    {
        return 116;//same texture for all sides
    }


}

 

 

 

ERROR:

 

2013-03-09 19:18:10 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.7.4.520 for Minecraft 1.4.7 loading
2013-03-09 19:18:11 [iNFO] [sTDOUT] 27 achievements
2013-03-09 19:18:11 [iNFO] [sTDOUT] 210 recipes
2013-03-09 19:18:12 [iNFO] [sTDOUT] Setting user: Player28, -
2013-03-09 19:18:12 [iNFO] [sTDERR] Client asked for parameter: server
2013-03-09 19:18:12 [iNFO] [sTDOUT] LWJGL Version: 2.4.2
2013-03-09 19:18:13 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2013-03-09 19:18:13 [iNFO] [sTDOUT] MinecraftForge v6.6.0.497 Initialized
2013-03-09 19:18:13 [iNFO] [ForgeModLoader] MinecraftForge v6.6.0.497 Initialized
2013-03-09 19:18:13 [iNFO] [sTDOUT] Replaced 84 ore recipies
2013-03-09 19:18:13 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2013-03-09 19:18:13 [iNFO] [ForgeModLoader] Searching C:\Users\gamer\MCP\jars\mods for mods
2013-03-09 19:18:14 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-03-09 19:18:14 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-03-09 19:18:14 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-03-09 19:18:15 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-03-09 19:18:15 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-03-09 19:18:15 [iNFO] [sTDOUT] OpenAL initialized.
2013-03-09 19:18:15 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-03-09 19:18:26 [iNFO] [ForgeModLoader] Loading dimension 0 (48698) (net.minecraft.server.integrated.IntegratedServer@dbc4bb)
2013-03-09 19:18:26 [iNFO] [ForgeModLoader] Loading dimension 1 (48698) (net.minecraft.server.integrated.IntegratedServer@dbc4bb)
2013-03-09 19:18:26 [iNFO] [ForgeModLoader] Loading dimension -1 (48698) (net.minecraft.server.integrated.IntegratedServer@dbc4bb)
2013-03-09 19:18:32 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:64)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:108)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-09 19:18:32 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at tuskiomi.common.TGrayCobble.onBlockClicked(TGrayCobble.java:27)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:184)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handleBlockDig(NetServerHandler.java:509)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet14BlockDig.processPacket(Packet14BlockDig.java:67)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:136)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:57)
2013-03-09 19:18:32 [iNFO] [sTDERR] 	... 6 more
2013-03-09 19:18:33 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-03-09 19:18:33 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-03-09 19:18:33 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-03-09 19:18:33 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue
2013-03-09 19:18:33 [sEVERE] [ForgeModLoader] 
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
tuskiomi [hello, tuskiomis mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-03-09 19:18:33 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-03-09 19:18:33 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException
2013-03-09 19:18:33 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
2013-03-09 19:18:33 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:752)
2013-03-09 19:18:33 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:459)
2013-03-09 19:18:33 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559)
2013-03-09 19:18:33 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-03-09 19:18:34 [iNFO] [sTDERR] java.lang.NullPointerException
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at tuskiomi.common.TGrayCobble.onBlockClicked(TGrayCobble.java:27)
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at net.minecraft.client.multiplayer.PlayerControllerMP.clickBlock(PlayerControllerMP.java:205)
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1320)
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1805)
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:846)
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:771)
2013-03-09 19:18:34 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)

 

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

you can do it two ways... one is to just on block activated then check the players current item and the other(more laggy unless is meant for more than 1 use) is to have a on right clicked in the item

The Korecraft Mod

Link to post
Share on other sites

is my error considered a bug? because i honestly have no clue here, i get the same error if i  try to place the block above it (which is air).

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites

If the player's hand is empty the ItemStack is null, not item ID 0. You can either null check or try/catch.

 

    public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer p5EP) {
     if( p5ep != null && && p5EP.inventory.getCurrentItem().itemID != null){
      if(p5EP.inventory.getCurrentItem().itemID == 1 && par2 * par3 != 0 && par2 * par4 != 0){
       par1World.setBlock(par2, par3, par4, 4);
      }
     }
     System.out.println("debug tick.");
    }

 

Thought I should add:

When null checking, go from least specific to most specific.

For example:

if(Object1.method1() != null && Object1 != null){
System.out.println(Object1.method1().toString());
}

This will cause a null pointer exception if Object1 is null because it is trying to call a method (method1) from a null object. However, if you did this:

if(Object1 != null && Object1.method1() != null){
System.out.println(Object1.method1().toString());
}

This will not cause a null pointer exception because it will break out of the if statement before it tries to call a method from a null object.

Link to post
Share on other sites

thanks :D really heped allot. also, i'm *relatively* new to java. i've bben doing the language for 6 months or so , thanks for the format tip!

Also, I should have you know that you are reading my signature.

Link to post
Share on other sites
Guest
This topic is now closed to further replies.


  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • What is this biome being created for? A custom dimension or a vanilla one (e.g. overworld, nether, end).
    • Hi so my friend and I have been doing a custom modpack and it recently started crashing whenever I try to start it (its a portforwarded server). I will provide down below the crash report I keep getting, I've never been able to read crash reports so it would be much appreciated if I could get some help I also apologize that its so long, I forgot how to get a significantly smaller crash report.   ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 5/11/21 4:01 PM Description: Watching Server java.lang.Error: ServerHangWatchdog detected that a single server tick took 60.00 seconds (should be max 0.05)     at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:43) [?:?] {re:classloading}     at java.lang.Thread.run(Unknown Source) [?:1.8.0_271] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Thread Dump -- Details:     Threads: "WorldEdit Session Manager" Id=103 TIMED_WAITING on java.util.TaskQueue@59c94513     at java.lang.Object.wait(Native Method)     -  waiting on java.util.TaskQueue@59c94513     at java.util.TimerThread.mainLoop(Unknown Source)     at java.util.TimerThread.run(Unknown Source) "Server Watchdog" Id=102 RUNNABLE     at sun.management.ThreadImpl.dumpThreads0(Native Method)     at sun.management.ThreadImpl.dumpAllThreads(Unknown Source)     at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:41)     at java.lang.Thread.run(Unknown Source) "Thread-8" Id=96 RUNNABLE (in native)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)     at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)     at java.lang.Thread.run(Unknown Source) "Netty Server IO #0" Id=95 RUNNABLE (in native)     at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)     at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)     at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)     at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)     at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)     -  locked io.netty.channel.nio.SelectedSelectionKeySet@570eb05a     -  locked java.util.Collections$UnmodifiableSet@53312e63     -  locked sun.nio.ch.WindowsSelectorImpl@1633ba61     at sun.nio.ch.SelectorImpl.select(Unknown Source)     at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)     at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)     ... "ObjectCleanerThread" Id=94 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@5c19469     at java.lang.Object.wait(Native Method)     -  waiting on java.lang.ref.ReferenceQueue$Lock@5c19469     at java.lang.ref.ReferenceQueue.remove(Unknown Source)     at io.netty.util.internal.ObjectCleaner$1.run(ObjectCleaner.java:54)     at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)     at java.lang.Thread.run(Unknown Source) "Server console handler" Id=93 RUNNABLE (in native)     at java.io.FileInputStream.readBytes(Native Method)     at java.io.FileInputStream.read(Unknown Source)     at java.io.BufferedInputStream.read1(Unknown Source)     at java.io.BufferedInputStream.read(Unknown Source)     -  locked java.io.BufferedInputStream@27ef68eb     at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)     at sun.nio.cs.StreamDecoder.implRead(Unknown Source)     at sun.nio.cs.StreamDecoder.read(Unknown Source)     -  locked java.io.InputStreamReader@7df71843     at java.io.InputStreamReader.read(Unknown Source)     ... "DestroyJavaVM" Id=92 RUNNABLE "Snooper Timer" Id=90 WAITING on java.util.TaskQueue@761c452e     at java.lang.Object.wait(Native Method)     -  waiting on java.util.TaskQueue@761c452e     at java.lang.Object.wait(Unknown Source)     at java.util.TimerThread.mainLoop(Unknown Source)     at java.util.TimerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-14" Id=77 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-3" Id=74 TIMED_WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-5" Id=76 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-10" Id=73 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-15" Id=69 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-8" Id=70 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "ForkJoinPool.commonPool-worker-13" Id=68 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "Thread-3" Id=51 RUNNABLE (in native)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)     at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)     at java.lang.Thread.run(Unknown Source) "modloading-worker-0" Id=50 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-5" Id=47 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-10" Id=44 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-1" Id=43 TIMED_WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-6" Id=40 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-15" Id=41 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-2" Id=36 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "modloading-worker-9" Id=35 WAITING on java.util.concurrent.ForkJoinPool@2303727d     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@2303727d     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "Timer hack thread" Id=34 TIMED_WAITING     at java.lang.Thread.sleep(Native Method)     at net.minecraft.util.Util$6.run(SourceFile:636) "Thread-2" Id=25 RUNNABLE (in native)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)     at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)     at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)     at java.lang.Thread.run(Unknown Source) "Thread-1" Id=24 TIMED_WAITING     at sun.misc.Unsafe.park(Native Method)     at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)     at com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:190) "ForkJoinPool.commonPool-worker-9" Id=23 WAITING on java.util.concurrent.ForkJoinPool@7ff7f558     at sun.misc.Unsafe.park(Native Method)     -  waiting on java.util.concurrent.ForkJoinPool@7ff7f558     at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)     at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)     at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) "Attach Listener" Id=5 RUNNABLE "Signal Dispatcher" Id=4 RUNNABLE "Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@66f3535e     at java.lang.Object.wait(Native Method)     -  waiting on java.lang.ref.ReferenceQueue$Lock@66f3535e     at java.lang.ref.ReferenceQueue.remove(Unknown Source)     at java.lang.ref.ReferenceQueue.remove(Unknown Source)     at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) "Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@72525f9b     at java.lang.Object.wait(Native Method)     -  waiting on java.lang.ref.Reference$Lock@72525f9b     at java.lang.Object.wait(Unknown Source)     at java.lang.ref.Reference.tryHandlePending(Unknown Source)     at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source) -- Performance stats -- Details:     Random tick rate: 3     Level stats: ResourceKey[minecraft:dimension / minecraft:overworld]: players: 0, entities: 162 [minecraft:sheep:38,minecraft:cow:22,minecraft:item:14,betteranimalsplus:songbird:11,minecraft:pig:10], block_entities: 480 [create:belt:68,create:simple_kinetic:59,create:chassis:49,create:drill:40,create:gearbox:36], block_ticks: 0, fluid_ticks: 0, chunk_source: ServerChunkCache: 3209, ResourceKey[minecraft:dimension / minecraft:the_nether]: players: 0, entities: 15 [minecraft:strider:11,minecraft:enderman:1,create:stationary_contraption:1,farmingforblockheads:merchant:1,dummmmmmy:target_dummy:1], block_entities: 485 [minecraft:chest:125,create:simple_kinetic:65,storagenetwork:filter_kabel:58,minecraft:hopper:43,create:gearbox:33], block_ticks: 9, fluid_ticks: 0, chunk_source: ServerChunkCache: 1334, ResourceKey[minecraft:dimension / minecraft:the_end]: players: 0, entities: 0 [], block_entities: 0 [], block_ticks: 0, fluid_ticks: 0, chunk_source: ServerChunkCache: 0 Stacktrace:     at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:43) [?:?] {re:classloading}     at java.lang.Thread.run(Unknown Source) [?:1.8.0_271] {} -- System Details -- Details:     Minecraft Version: 1.16.4     Minecraft Version ID: 1.16.4     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_271, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 3249213008 bytes (3098 MB) / 5115478016 bytes (4878 MB) up to 5115478016 bytes (4878 MB)     CPUs: 16     JVM Flags: 2 total; -Xms5120M -Xmx5120M     ModLauncher: 8.0.6+85+master.325de55     ModLauncher launch target: fmlserver     ModLauncher naming: srg     ModLauncher services:          /mixin-0.8.2.jar mixin PLUGINSERVICE          /eventbus-3.0.5-service.jar eventbus PLUGINSERVICE          /forge-1.16.4-35.1.10.jar object_holder_definalize PLUGINSERVICE          /forge-1.16.4-35.1.10.jar runtime_enum_extender PLUGINSERVICE          /accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE          /forge-1.16.4-35.1.10.jar capability_inject_definalize PLUGINSERVICE          /forge-1.16.4-35.1.10.jar runtimedistcleaner PLUGINSERVICE          /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE          /forge-1.16.4-35.1.10.jar fml TRANSFORMATIONSERVICE      FML: 35.1     Forge: net.minecraftforge:35.1.10     FML Language Providers:          javafml@35.1         minecraft@1     Mod List:          enchantedbookredesign-3.2.jar                     |Enchanted Book Redesign       |enchantedbookredesign         |3.2                 |DONE      |NOSIGNATURE         Instrumental-Mobs-1.16.3-1.3.1.jar                |Instrumental Mobs             |instrumentalmobs              |1.3.1               |DONE      |NOSIGNATURE         ftbessentials-1603.1.0.11.jar                     |FTB Essentials                |ftbessentials                 |1603.1.0.11         |DONE      |NOSIGNATURE         NetherPortalFix_1.16.3-7.2.1.jar                  |NetherPortalFix               |netherportalfix               |7.2.1               |DONE      |NOSIGNATURE         pamhc2trees-1.16.3-1.0.0.jar                      |Pam's HarvestCraft 2 Fruit Tre|pamhc2trees                   |1.0.0               |DONE      |NOSIGNATURE         mining-helmet-1.16.4-2.0.0.jar                    |Mining Helmet                 |mining_helmet                 |2.0.0               |DONE      |NOSIGNATURE         item-filters-1604.2.2.19.jar                      |Item Filters                  |itemfilters                   |1604.2.2.19         |DONE      |NOSIGNATURE         jei-1.16.4-7.6.1.65.jar                           |Just Enough Items             |jei                           |7.6.1.65            |DONE      |NOSIGNATURE         DoggyTalents-1.16.4-2.0.1.1.jar                   |Doggy Talents 2               |doggytalents                  |2.0.1.1             |DONE      |NOSIGNATURE         abnormals_core-1.16.4-3.0.6.jar                   |Abnormals Core                |abnormals_core                |3.0.6               |DONE      |NOSIGNATURE         mcw-windows-1.0.2-mc1.16.4.jar                    |Macaw's Windows               |mcwwindows                    |1.0.2               |DONE      |NOSIGNATURE         invtweaks-1.16.4-1.0.1.jar                        |Inventory Tweaks Renewed      |invtweaks                     |1.16.4-1.0.1        |DONE      |NOSIGNATURE         create-mc1.16.5_v0.3.1b.jar                       |Create                        |create                        |mc1.16.5_v0.3.1b+143|DONE      |NOSIGNATURE         BetterCaves-1.16.3-1.0.6.jar                      |YUNG's Better Caves           |bettercaves                   |1.16.3-1.0.6        |DONE      |NOSIGNATURE         ForgeEndertech-1.16.4-7.0.8.0-build.0028.jar      |Forge Endertech               |forgeendertech                |7.0.8.0             |DONE      |NOSIGNATURE         CookingForBlockheads_1.16.3-9.2.2.jar             |Cooking for Blockheads        |cookingforblockheads          |9.2.2               |DONE      |NOSIGNATURE         Placebo-1.16.3-4.3.3.jar                          |Placebo                       |placebo                       |4.3.3               |DONE      |NOSIGNATURE         tumbleweed-1.16-0.4.9.jar                         |Tumbleweed                    |tumbleweed                    |1.16-0.4.9          |DONE      |NOSIGNATURE         TravelersBackpack-1.16.4-5.3.4.jar                |Traveler's Backpack           |travelersbackpack             |5.3.4               |DONE      |NOSIGNATURE         NaturesCompass-1.16.4-1.8.6.jar                   |Nature's Compass              |naturescompass                |1.16.4-1.8.6        |DONE      |NOSIGNATURE         SimpleStorageNetwork-1.16.3-1.2.1.jar             |Simple Storage Network        |storagenetwork                |1.16.3-1.2.1        |DONE      |1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed         ftb-gui-library-1604.1.1.26.jar                   |FTB GUI Library               |ftbguilibrary                 |1604.1.1.26         |DONE      |NOSIGNATURE         decorative_blocks-1.16.4-1.7.0.jar                |Decorative Blocks             |decorative_blocks             |1.7.0               |DONE      |NOSIGNATURE         potionsmaster-0.1.34-1.16.4-35.1.13.jar           |Potions Master                |potionsmaster                 |0.1.34-1.16.4-35.1.1|DONE      |NOSIGNATURE         DungeonCrawl-1.16.3-2.2.3.jar                     |Dungeon Crawl                 |dungeoncrawl                  |2.2.3               |DONE      |NOSIGNATURE         betteranimalsplus-1.16.4-10.1.0.jar               |Better Animals Plus           |betteranimalsplus             |10.1.0              |DONE      |NOSIGNATURE         FarmingForBlockheads_1.16.3-7.2.1.jar             |Farming for Blockheads        |farmingforblockheads          |7.2.1               |DONE      |NOSIGNATURE         Bookshelf-1.16.4-9.3.18.jar                       |Bookshelf                     |bookshelf                     |9.3.18              |DONE      |ea:45:b3:82:b6:9d:50:16:95:e7:2e:34:e1:92:d5:b4:9b:69:90:d3:4f:2e:71:99:b0:be:40:80:27:1f:3e:b0         BotanyPots-1.16.4-6.0.7.jar                       |BotanyPots                    |botanypots                    |6.0.7               |DONE      |ea:45:b3:82:b6:9d:50:16:95:e7:2e:34:e1:92:d5:b4:9b:69:90:d3:4f:2e:71:99:b0:be:40:80:27:1f:3e:b0         guardvillagers-1.16.4-1.1.8.jar                   |Guard Villagers               |guardvillagers                |1.1.8               |DONE      |NOSIGNATURE         simpleplanes-1.16.3-3.2.0.3.jar                   |Simple Planes                 |simpleplanes                  |1.16.3-3.2.0.3      |DONE      |NOSIGNATURE         mcw-doors-1.0.1fix-mc1.16.4.jar                   |Macaw's Doors                 |mcwdoors                      |1.0.1               |DONE      |NOSIGNATURE         Morpheus-1.16.4-4.2.68.jar                        |Morpheus                      |morpheus                      |4.2.68              |DONE      |NOSIGNATURE         Toast-Control-1.16.3-4.3.0.jar                    |Toast Control                 |toastcontrol                  |4.3.0               |DONE      |NOSIGNATURE         iChunUtil-1.16.3-10.0.0.jar                       |iChunUtil                     |ichunutil                     |10.0.0              |DONE      |NOSIGNATURE         carryon-1.16.3-1.15.1.7.jar                       |Carry On                      |carryon                       |1.15.1.7            |DONE      |8c:03:ac:7d:21:62:65:e2:83:91:f3:22:57:99:ed:75:78:1e:db:de:03:99:ef:53:3b:59:95:18:01:bc:84:a9         ftb-teams-1604.1.0.13.jar                         |FTB Teams                     |ftbteams                      |1604.1.0.13         |DONE      |NOSIGNATURE         forge-1.16.4-35.1.10-universal.jar                |Forge                         |forge                         |35.1.10             |DONE      |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         [1.16.X-1.0.10] Dragon Mounts Legacy.jar          |Dragon Mounts: Legacy         |dragonmounts                  |1.0.10              |DONE      |NOSIGNATURE         MmmMmmMmmMmm-1.16-1.0.1.jar                       |MmmMmmMmmMmm                  |dummmmmmy                     |1.0.1               |DONE      |NOSIGNATURE         scuba-gear-1.16.4-1.0.1.jar                       |Scuba Gear                    |scuba_gear                    |1.0.1               |DONE      |NOSIGNATURE         Extractures_1.16.4.jar                            |extractures                   |extractures                   |1.0.0               |DONE      |NOSIGNATURE         emojiful-1.16.4-2.1.2.jar                         |Emojiful                      |emojiful                      |1.16.4-2.1.2        |DONE      |NOSIGNATURE         corpse-1.16.4-1.0.5.jar                           |Corpse                        |corpse                        |1.16.4-1.0.5        |DONE      |NOSIGNATURE         forge-1.16.4-35.1.10-server.jar                   |Minecraft                     |minecraft                     |1.16.4              |DONE      |NOSIGNATURE         endergetic-1.16.4-3.0.0.jar                       |The Endergetic Expansion      |endergetic                    |3.0.0               |DONE      |NOSIGNATURE         mcw-bridges-1.0.4-mc1.16.4.jar                    |Macaw's Bridges               |mcwbridges                    |1.0.4               |DONE      |NOSIGNATURE         repurposed_structures-1.16.4-2.3.3.jar            |Repurposed Structures         |repurposed_structures         |1.16.4-2.3.3        |DONE      |NOSIGNATURE         MouseTweaks-2.13-mc1.16.2.jar                     |Mouse Tweaks                  |mousetweaks                   |2.13                |DONE      |NOSIGNATURE         ToolBelt-1.16.3-1.15.2.jar                        |Tool Belt                     |toolbelt                      |1.15.2              |DONE      |NOSIGNATURE         ftb-quests-1604.1.1.21.jar                        |FTB Quests                    |ftbquests                     |1604.1.1.21         |DONE      |NOSIGNATURE         BiomesOPlenty-1.16.4-13.0.0.427-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.4-13.0.0.427   |DONE      |NOSIGNATURE         valhelsia_structures-16.0.5.jar                   |Valhelsia Structures          |valhelsia_structures          |16.0.5              |DONE      |NOSIGNATURE         pamhc2crops-1.16.3-1.0.1.jar                      |Pam's HarvestCraft 2 Crops    |pamhc2crops                   |version             |DONE      |NOSIGNATURE         CreativeCore_v2.0.10_mc1.16.4.jar                 |CreativeCore                  |creativecore                  |2.0.0               |DONE      |NOSIGNATURE         mcw-trapdors-1.0.0-mc1.16.4.jar                   |Macaw's Trapdoors             |mcwtrpdoors                   |1.0.0               |DONE      |NOSIGNATURE         AdLods-1.16.4-4.1.2.0-build.0027.jar              |Large Ore Deposits            |adlods                        |4.1.2.0             |DONE      |NOSIGNATURE         towers_of_the_wild-1.16.4-2.0.1.jar               |Towers Of The Wild            |towers_of_the_wild            |1.16.4-2.0.1        |DONE      |NOSIGNATURE         simplefarming-1.16.4-1.3.5.jar                    |Simple Farming                |simplefarming                 |1.16.4-1.3.5        |DONE      |NOSIGNATURE         pamhc2foodextended-1.16.3-1.0.0.jar               |Pam's HarvestCraft 2 Food Exte|pamhc2foodextended            |version             |DONE      |NOSIGNATURE         jeiintegration_1.16.4-6.1.1.11.jar                |JEI Integration               |jeiintegration                |6.1.1.11            |DONE      |NOSIGNATURE         randomenchants-4.0.4.jar                          |Random Enchants               |randomenchants                |4.0.4               |DONE      |NOSIGNATURE         curios-forge-1.16.4-4.0.3.3.jar                   |Curios API                    |curios                        |1.16.4-4.0.3.3      |DONE      |NOSIGNATURE         Artifacts-1.16.4-2.7.3.jar                        |Artifacts                     |artifacts                     |1.16.4-2.7.3        |DONE      |NOSIGNATURE         Mantle-1.16.4-1.6.52.jar                          |Mantle                        |mantle                        |1.6.52              |DONE      |NOSIGNATURE         pamhc2foodcore-1.16.3-1.0.0.jar                   |Pam's HarvestCraft 2 Food Core|pamhc2foodcore                |version             |DONE      |NOSIGNATURE         StorageDrawers-1.16.3-8.2.1.jar                   |Storage Drawers               |storagedrawers                |8.2.1               |DONE      |NOSIGNATURE         betteranimals-1.16.4-5.4.1.jar                    |Cyber's Better Animal Models  |betteranimals                 |5.4.1               |DONE      |NOSIGNATURE         SpawnInVillage-1.16.4-1.3.jar                     |Spawn in Village              |spawnvillage                  |1.3                 |DONE      |NOSIGNATURE         Ceramics-1.16.4-1.6.0.jar                         |Ceramics                      |ceramics                      |1.6.0               |DONE      |NOSIGNATURE         Animalium-0.6.3.jar                               |Animalium                     |animalium                     |0.6.3               |DONE      |NOSIGNATURE         ftb-ultimine-1603.1.1.13.jar                      |FTB Ultimine                  |ftbultimine                   |1603.1.1.13         |DONE      |NOSIGNATURE         buildersaddition-1.16.4-20201220b.jar             |Builders Crafts & Addition    |buildersaddition              |1.16.4-20201220b    |DONE      |NOSIGNATURE         worldedit-forge-mc1.16.3-7.2.1-dist.jar           |WorldEdit                     |worldedit                     |7.2.1+299386a       |DONE      |NOSIGNATURE         SpartanWeaponry-1.16.4-2.1.0-beta-2.jar           |Spartan Weaponry              |spartanweaponry               |2.1.0 beta 2        |DONE      |NOSIGNATURE         mcws-roofs-2.0.0-mc1.16.4.jar                     |Macaw's Roofs                 |mcwroofs                      |2.0.0               |DONE      |NOSIGNATURE         architectury-1.2.68-forge.jar                     |Architectury                  |architectury                  |1.2.68              |DONE      |NOSIGNATURE         AI-Improvements-1.16.2-0.3.0.jar                  |AI-Improvements               |aiimprovements                |0.3.0               |DONE      |NOSIGNATURE         globalxp-1.16.3-v1.4.15.jar                       |Global XP                     |globalxp                      |v1.4.15             |DONE      |NOSIGNATURE         light-overlay-5.6.1.jar                           |Light Overlay                 |lightoverlay                  |5.6.1               |DONE      |NOSIGNATURE         ItemPhysic_v1.4.14_mc1.16.4.jar                   |ItemPhysic                    |itemphysic                    |1.6.0               |DONE      |NOSIGNATURE         cloth-config-forge-4.1.3.jar                      |Cloth Config v4 API           |cloth-config                  |4.1.3               |DONE      |NOSIGNATURE         Aquaculture-1.16.4-2.1.11.jar                     |Aquaculture 2                 |aquaculture                   |1.16.4-2.1.11       |DONE      |NOSIGNATURE         FastLeafDecay-v25.jar                             |FastLeafDecay                 |fastleafdecay                 |v25                 |DONE      |NOSIGNATURE         CosmeticArmorReworked-1.16.4-v1.jar               |CosmeticArmorReworked         |cosmeticarmorreworked         |1.16.4-v1           |DONE      |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         CodeChickenLib-1.16.4-3.5.0.398-universal.jar     |CodeChicken Lib               |codechickenlib                |3.5.0.398           |DONE      |31:e6:db:63:47:4a:6e:e0:0a:2c:11:d1:76:db:4e:82:ff:56:2d:29:93:d2:e5:02:bd:d3:bd:9d:27:47:a5:71         EnderStorage-1.16.4-2.7.0.159-universal.jar       |EnderStorage                  |enderstorage                  |2.7.0.159           |DONE      |31:e6:db:63:47:4a:6e:e0:0a:2c:11:d1:76:db:4e:82:ff:56:2d:29:93:d2:e5:02:bd:d3:bd:9d:27:47:a5:71         BetterMineshafts-Forge-1.16.3-1.1.1.jar           |YUNG's Better Mineshafts      |bettermineshafts              |1.16.3-1.1.1        |DONE      |NOSIGNATURE     Crash Report UUID: a578d4d5-1b1c-435c-8d19-758d3fd00dfc     Player Count: 0 / 10; []     Data Packs: vanilla, mod:enchantedbookredesign (incompatible), mod:instrumentalmobs, mod:ftbessentials, mod:netherportalfix (incompatible), mod:pamhc2trees (incompatible), mod:mining_helmet (incompatible), mod:itemfilters (incompatible), mod:jei, mod:doggytalents (incompatible), mod:abnormals_core, mod:mcwwindows (incompatible), mod:create, mod:bettercaves (incompatible), mod:forgeendertech, mod:cookingforblockheads (incompatible), mod:placebo (incompatible), mod:tumbleweed (incompatible), mod:travelersbackpack (incompatible), mod:naturescompass (incompatible), mod:storagenetwork (incompatible), mod:ftbguilibrary (incompatible), mod:decorative_blocks, mod:potionsmaster, mod:dungeoncrawl, mod:betteranimalsplus (incompatible), mod:farmingforblockheads (incompatible), mod:bookshelf, mod:botanypots, mod:guardvillagers, mod:simpleplanes (incompatible), mod:mcwdoors, mod:morpheus (incompatible), mod:toastcontrol (incompatible), mod:ichunutil, mod:carryon, mod:ftbteams (incompatible), mod:forge, mod:dragonmounts, mod:dummmmmmy (incompatible), mod:scuba_gear (incompatible), mod:extractures, mod:emojiful (incompatible), mod:corpse, mod:endergetic, mod:mcwbridges (incompatible), mod:repurposed_structures, mod:mousetweaks, mod:toolbelt (incompatible), mod:ftbquests (incompatible), mod:biomesoplenty, mod:valhelsia_structures (incompatible), mod:pamhc2crops (incompatible), mod:creativecore, mod:mcwtrpdoors (incompatible), mod:adlods, mod:towers_of_the_wild, mod:simplefarming, mod:pamhc2foodextended (incompatible), mod:randomenchants (incompatible), mod:curios, mod:artifacts, mod:mantle (incompatible), mod:pamhc2foodcore (incompatible), mod:storagedrawers (incompatible), mod:betteranimals (incompatible), mod:spawnvillage (incompatible), mod:ceramics (incompatible), mod:animalium (incompatible), mod:ftbultimine (incompatible), mod:buildersaddition (incompatible), mod:worldedit (incompatible), mod:spartanweaponry, mod:mcwroofs (incompatible), mod:architectury, mod:aiimprovements, mod:globalxp, mod:lightoverlay (incompatible), mod:itemphysic, mod:cloth-config (incompatible), mod:aquaculture (incompatible), mod:fastleafdecay (incompatible), mod:cosmeticarmorreworked (incompatible), mod:bettermineshafts (incompatible), mod:invtweaks (incompatible), mod:jeiintegration, mod:codechickenlib (incompatible), mod:enderstorage (incompatible)     Is Modded: Definitely; Server brand changed to 'forge'     Type: Dedicated Server (map_server.txt)
    • How do you remove the shadows from a custom block that is a light source? The block in the picture has a light level of 6, and it emits light, but it has an odd shadow. 
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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