Jump to content

HELP! Block rotations are messing up, 1.6.2 specific.


kris91268
 Share

Recommended Posts

Hello to anyone reading this,

 

I am kris91268, the creator of Light bridges and doors, if you may know

 

On a previous version of Minecraft (1.5.2) My light door rotated correctly when you place it on the underside of a block.

 

But in the 1.6 versions, it doesn't do this anymore, and only can rotate in one way (I would of said one direction, but I don't want to).

I was wandering if anyone on the forums could help me with this dilemma. Below is the source code of the whole BlockLightDoorSource file, any help would be much appreciated.

 

BlockLightDoorSource.java

package kris91268.lbd.Blocks;

import java.util.Random;

import kris91268.lbd.ModLBD;
import kris91268.lbd.Tileentity.TileEntityLightDoorSource;
import cpw.mods.fml.common.registry.BlockProxy;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLiving;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import static net.minecraftforge.common.ForgeDirection.*;

/**
* 
* @author Arbiter
*
*/
public class BlockLightDoorSource extends BlockContainer implements BlockProxy
{
public final boolean powered;

public BlockLightDoorSource(int par1, boolean par2)
{
	super(par1, Material.iron);
	powered = par2;
	setHardness(1.5F);
	setResistance(0.5F);
	setStepSound(Block.soundMetalFootstep);
	setUnlocalizedName("lightDoorSource");
	setCreativeTab(CreativeTabs.tabRedstone);
}
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
    {
        return false;
    }
public int getRenderBlockPass()
{
	return 1;
}
public void onBlockAdded(World par1World, int par2, int par3, int par4)
{
	if (par1World.getBlockMetadata(par2, par3, par4) == 0)
	{
		if (par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
		{
			par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2);
		}
		else if (par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
		{
			par1World.setBlockMetadataWithNotify(par2, par3, par4, 1, 2);
		}
		else if (par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
		{
			par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2);
		}
		else if (par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
		{
			par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2);
		}
		else
		{
			this.dropLightDoorIfCantStay(par1World, par2, par3, par4);
		}
	}
	if (par1World.isRemote)
	{
		if (this.powered && !par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
		{
			par1World.scheduleBlockUpdate(par2, par3, par4, this.blockID, 4);
		}
		else if (!this.powered && par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
		{
			int par5 = par1World.getBlockMetadata(par2, par3, par4);
			if (par5 == 5)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 5, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 0, 2);
					}
					else
					{
						break;
					}
				}
			}
			if (par5 == 1)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 1, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 1, 2);
					}
					else
					{
						break;
					}
				}
			}
			if (par5 == 2)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 2, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 2, 2);
					}
					else
					{
						break;
					}
				}
			}
			if (par5 == 3)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 3, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 3, 2);
					}
					else
					{
						break;
					}
				}
			}
		}
	}
}
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
{
	return par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true);
}
public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
{
	int par10 = par9;
	if (par9 == 1 && par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
	{
		par10 = 1;
	}
	if (par9 == 3 && par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
	{
		par10 = 3;
	}
	if (par9 == 5 && par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
	{
		par10 = 5;
	}
	if (par9 == 2 && par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true))
	{
		par10 = 2;
	}
	return par10;
}
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
{
	int par5 = par1IBlockAccess.getBlockMetadata(par2, par3, par4);
    float par6 = 0.625F;
    float par7 = 0.575F;
    if (par5 == 5)
    {
    	// Shorter side facing west
    	setBlockBounds(1.0F - par6, 1.0F, 0.0F, 0.55F, 0.8F, 1.0F);
    }
    if (par5 == 1)
    {
    	// Shorter side facing north
    	setBlockBounds(0.0F, 1.0F, 1.0F - par7, 1.0F, 0.8F, 0.625F);
    }
    if (par5 == 2)
    {
    	// Shorter side facing east
    	setBlockBounds(1.0F - par7, 1.0F, 0.0F, 0.625F, 0.8F, 1.0F);
    }
    if (par5 == 3)
    {
    	// Shorter side facing south
    	setBlockBounds(0.0F, 1.0F, 1.0F - par6, 1.0F, 0.8F, 0.55F);
    }
}
protected boolean dropLightDoorIfCantStay(World par1World, int par2, int par3, int par4)
{
	if (!this.canPlaceBlockAt(par1World, par2, par3, par4))
	{
		if (par1World.getBlockId(par2, par3, par4) == this.blockID)
		{
			this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
			par1World.setBlockToAir(par2, par3, par4);
		}
		return false;
	}
	else
	{
		return true;
	}
}
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
{
	if (this.dropLightDoorIfCantStay(par1World, par2, par3, par4))
	{
		int par6 = par1World.getBlockMetadata(par2, par3, par4);
		boolean flag = false;
		if (!par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true) && par6 == 5)
		{
			flag = true;
		}
		if (!par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true) && par6 == 2)
		{
			flag = true;
		}
		if (!par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true) && par6 == 3)
		{
			flag = true;
		}
		if (!par1World.isBlockSolidOnSide(par2, par3 + 1, par4, DOWN, true) && par6 == 1)
		{
			flag = true;
		}
		if (flag)
		{
			this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
			par1World.setBlockToAir(par2, par3, par4);
		}
	}
	if (!par1World.isRemote)
	{
		if (this.powered && !par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
		{
			par1World.scheduleBlockUpdate(par2, par3, par4, this.blockID, 4);
		}
		else if (!this.powered && par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
		{
			int par6 = par1World.getBlockMetadata(par2, par3, par4);
			if (par6 == 5)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 5, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 0, 2);
					}
					else
					{
						break;
					}
				}
			}
			if (par6 == 1)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 1, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 1, 2);
					}
					else
					{
						break;
					}
				}
			}
			if (par6 == 2)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 2, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 2, 2);
					}
					else
					{
						break;
					}
				}
			}
			if (par6 == 3)
			{
				par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSourceActive.blockID, 3, 2);
				for (int par7 = par3 - 1; par7 >= par3 - 50; --par7)
				{
					if (par1World.isAirBlock(par2, par7, par4))
					{
						par1World.setBlock(par2, par7, par4, ModLBD.lightDoorSection.blockID, 3, 2);
					}
					else
					{
						break;
					}
				}
			}
		}
	}
}
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
	if (!par1World.isRemote && this.powered && !par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
	{
		int par6 = par1World.getBlockMetadata(par2, par3, par4);
		if (par6 == 5)
		{
			par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSource.blockID, 5, 2);
		}
		if (par6 == 1)
		{
			par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSource.blockID, 1, 2);
		}
		if (par6 == 2)
		{
			par1World.setBlock(par2, par3, par4, ModLBD.lightBridgeSource.blockID, 2, 2);
		}
		if (par6 == 3)
		{
			par1World.setBlock(par2, par3, par4, ModLBD.lightDoorSource.blockID, 3, 2);
		}
	}
}
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
{
	int par7 = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
	if (par7 == 0)
	{
		par1World.setBlockMetadataWithNotify(par2, par3, par4, 1, 2);
	}
	if (par7 == 1)
	{
		par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2);
	}
	if (par7 == 2)
	{
		par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2);
	}
	if (par7 == 3)
	{
		par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2);
	}
	if (par6ItemStack.hasDisplayName())
	{
		((TileEntityLightDoorSource)par1World.getBlockTileEntity(par2, par3, par4)).func_91249_a(par6ItemStack.getDisplayName());
	}
}
public int quantityDropped(Random par1Random)
{
	return 1;
}
public boolean isOpaqueCube()
{
	return false;
}
public boolean renderAsNormalBlock()
{
	return false;
}
public int getRenderType()
{
	return -1;
}
public TileEntity getBlockEntity()
{
	return new TileEntityLightDoorSource();
}
public TileEntity createNewTileEntity(World par1World)
{
	return new TileEntityLightDoorSource();
}
}

 

Thanks

kris91268

Link to comment
Share on other sites

Change this Line:

public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)

into this Line:

public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack)

Link to comment
Share on other sites

You could have figured this out much earlier (and on your own) if you had used @Override.

 

Sorry, but I am not that good with annotations, it never occurs to me to use the @Override annotation.

 

But I do feel stupid about myself because I didn't see this

Link to comment
Share on other sites

Change this Line:

public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)

into this Line:

public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack)

 

Thank you so much, you are amazing.

I would of figured this out myself, but I did not see that the other method was a new one (notch changed the onBlockPlacedBy method), but anyway, thanks so much. +Thank you

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

    • I can't connect to the forge server with online-mode=true and false. nothing works logs: https://pastebin.com/wwjH6XHb
    • Couldnt create new tool tier because of that. public class ODToolTier { public static Tier END_WOOD; static { END_WOOD = TierSortingRegistry.registerTier( new ForgeTier(0,59,2.0F,0.0F,22, () -> {return Ingredient.of(ODBlocks.PALE_PLANKS);}) ); } } The problem is that method Ingredient.of() couldnt accept ODBlocks.PALE_PLANKS because it is RegistryObject<Block>
    • Please help me     [05févr.2023 12:45:16.527] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Xorix_12, --version, 1.16.5-forge-36.2.35, --gameDir, C:\Users\dcraf\AppData\Roaming\.minecraft, --assetsDir, C:\Users\dcraf\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, fa45ebd2aba74a18945b3b5cf846e45e, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.35, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [05févr.2023 12:45:16.531] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 1.8.0_51 by Oracle Corporation [05févr.2023 12:45:16.551] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [05févr.2023 12:45:16.697] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.onLoad [05févr.2023 12:45:16.698] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFine ZIP file: C:\Users\dcraf\AppData\Roaming\.minecraft\mods\OptiFine.jar [05févr.2023 12:45:16.700] [main/INFO] [optifine.OptiFineTransformer/]: Target.PRE_CLASS is available [05févr.2023 12:45:16.788] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [05févr.2023 12:45:16.829] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/dcraf/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=CLIENT [05févr.2023 12:45:16.840] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.initialize [05févr.2023 12:45:18.465] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 13:0 token recognition error at: '`' [05févr.2023 12:45:18.552] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 1:0 token recognition error at: '~' [05févr.2023 12:45:18.570] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.transformers [05févr.2023 12:45:18.592] [main/INFO] [optifine.OptiFineTransformer/]: Targets: 311 [05févr.2023 12:45:19.628] [main/INFO] [optifine.OptiFineTransformationService/]: additionalClassesLocator: [optifine., net.optifine.] [05févr.2023 12:45:19.785] [main/ERROR] [mixin/]: Mixin config mixins.moddedmainmenu.json does not specify "minVersion" property [05févr.2023 12:45:19.889] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [vazkii.botania.common.MixinConnector] [05févr.2023 12:45:19.891] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [vazkii.patchouli.common.MixinConnector] [05févr.2023 12:45:19.895] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.16.5-forge-36.2.35, --gameDir, C:\Users\dcraf\AppData\Roaming\.minecraft, --assetsDir, C:\Users\dcraf\AppData\Roaming\.minecraft\assets, --uuid, fa45ebd2aba74a18945b3b5cf846e45e, --username, Xorix_12, --assetIndex, 1.16, --accessToken, ????????, --userType, msa, --versionType, release] [05févr.2023 12:45:19.909] [main/WARN] [mixin/]: Reference map 'forgecef-refmap.json' for forgecef.mixins.json could not be read. If this is a development environment you can ignore this message [05févr.2023 12:45:20.210] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching LivingEntity#attackEntityFrom [05févr.2023 12:45:20.296] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching LivingEntity#blockUsingShield [05févr.2023 12:45:20.308] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching LivingEntity#applyPotionDamageCalculations [05févr.2023 12:45:20.477] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching FishingBobberEntity#catchingFish [05févr.2023 12:45:21.250] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching net/minecraft/item/EnchantedBookItem [05févr.2023 12:45:21.407] [main/ERROR] [net.minecraftforge.coremod.transformer.CoreModBaseTransformer/COREMOD]: Error occurred applying transform of coremod META-INF/asm/multipart.js function render java.lang.NullPointerException: null     at org.objectweb.asm.tree.InsnList.insert(InsnList.java:343) ~[asm-tree-9.1.jar:9.1]     at jdk.nashorn.internal.scripts.Script$Recompilation$118$5956A$\^eval\_.initializeCoreMod$transformer-3(<eval>:135) ~[?:?]     at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:638) ~[nashorn.jar:?]     at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229) ~[nashorn.jar:?]     at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387) ~[nashorn.jar:?]     at jdk.nashorn.api.scripting.ScriptObjectMirror.call(ScriptObjectMirror.java:110) ~[nashorn.jar:?]     at net.minecraftforge.coremod.NashornFactory.lambda$getFunction$0(NashornFactory.java:18) ~[coremods-4.0.6.jar:4.0.6+14+master.c21a551]     at net.minecraftforge.coremod.NashornFactory$$Lambda$445/407380973.apply(Unknown Source) ~[?:?]     at net.minecraftforge.coremod.transformer.CoreModMethodTransformer.runCoremod(CoreModMethodTransformer.java:18) ~[coremods-4.0.6.jar:?]     at net.minecraftforge.coremod.transformer.CoreModMethodTransformer.runCoremod(CoreModMethodTransformer.java:10) ~[coremods-4.0.6.jar:?]     at net.minecraftforge.coremod.transformer.CoreModBaseTransformer.transform(CoreModBaseTransformer.java:38) [coremods-4.0.6.jar:?]     at cpw.mods.modlauncher.TransformerHolder.transform(TransformerHolder.java:41) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.ClassTransformer.performVote(ClassTransformer.java:179) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:111) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.buildTransformedClassNodeFor(TransformingClassLoader.java:142) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.LaunchPluginHandler.lambda$null$8(LaunchPluginHandler.java:97) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.LaunchPluginHandler$$Lambda$472/1677960357.buildTransformedClassNodeFor(Unknown Source) [modlauncher-8.1.3.jar:?]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.getClassNode(MixinLaunchPluginLegacy.java:222) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.getClassNode(MixinLaunchPluginLegacy.java:207) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.ClassInfo.forName(ClassInfo.java:2005) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinInfo.getTargetClass(MixinInfo.java:1017) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinInfo.readTargetClasses(MixinInfo.java:1007) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinInfo.parseTargets(MixinInfo.java:895) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinConfig.prepareMixins(MixinConfig.java:867) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinConfig.prepare(MixinConfig.java:779) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:539) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4]     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [modlauncher-8.1.3.jar:8.1.3+8.1.3+main-8.1.x.c94d18ec]     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.1.3.jar:?]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_51]     at java.lang.Class.forName0(Native Method) ~[?:1.8.0_51]     at java.lang.Class.forName(Class.java:348) [?:1.8.0_51]     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [forge-1.16.5-36.2.35.jar:36.2]     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$507/1014698874.call(Unknown Source) [forge-1.16.5-36.2.35.jar:36.2]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] [05févr.2023 12:45:21.792] [main/WARN] [mixin/]: Error loading class: me/cominixo/betterf3/modules/TargetModule (java.lang.ClassNotFoundException: null) [05févr.2023 12:45:21.792] [main/WARN] [mixin/]: @Mixin target me.cominixo.betterf3.modules.TargetModule was not found securitycraft.mixins.json:f3.BetterF3TargetModuleMixin [05févr.2023 12:45:21.871] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EnchantmentHelper#getEnchantmentModifierDamage [05févr.2023 12:45:21.878] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EnchantmentHelper#getModifierForCreature [05févr.2023 12:45:21.886] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EnchantmentHelper#applyThornEnchantments [05févr.2023 12:45:21.892] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EnchantmentHelper#applyArthropodEnchantments [05févr.2023 12:45:21.900] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching buildEnchantmentList for the Enchantability affix. [05févr.2023 12:45:21.907] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EnchantmentHelper#getEnchantmentDatas [05févr.2023 12:45:21.918] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching ItemStack#onItemUse [05févr.2023 12:45:22.000] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching TemptGoal#isTempting [05févr.2023 12:45:22.445] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching LivingEntity#attackEntityFrom [05févr.2023 12:45:22.455] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching LivingEntity#blockUsingShield [05févr.2023 12:45:22.456] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching LivingEntity#applyPotionDamageCalculations [05févr.2023 12:45:22.609] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching ModelBakery#<init> [05févr.2023 12:45:23.495] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching BlockModelShapes#getModelLocation [05févr.2023 12:45:23.593] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching LivingEntity#attackEntityFrom [05févr.2023 12:45:23.601] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching LivingEntity#blockUsingShield [05févr.2023 12:45:23.602] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching LivingEntity#applyPotionDamageCalculations [05févr.2023 12:45:23.674] [main/ERROR] [net.minecraftforge.coremod.transformer.CoreModBaseTransformer/COREMOD]: Error occurred applying transform of coremod META-INF/asm/multipart.js function render java.lang.NullPointerException: null     at org.objectweb.asm.tree.InsnList.insert(InsnList.java:343) ~[asm-tree-9.1.jar:9.1]     at jdk.nashorn.internal.scripts.Script$Recompilation$118$5956A$\^eval\_.initializeCoreMod$transformer-3(<eval>:135) ~[?:?]     at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:638) ~[nashorn.jar:?]     at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229) ~[nashorn.jar:?]     at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387) ~[nashorn.jar:?]     at jdk.nashorn.api.scripting.ScriptObjectMirror.call(ScriptObjectMirror.java:110) ~[nashorn.jar:?]     at net.minecraftforge.coremod.NashornFactory.lambda$getFunction$0(NashornFactory.java:18) ~[coremods-4.0.6.jar:4.0.6+14+master.c21a551]     at net.minecraftforge.coremod.NashornFactory$$Lambda$445/407380973.apply(Unknown Source) ~[?:?]     at net.minecraftforge.coremod.transformer.CoreModMethodTransformer.runCoremod(CoreModMethodTransformer.java:18) ~[coremods-4.0.6.jar:?]     at net.minecraftforge.coremod.transformer.CoreModMethodTransformer.runCoremod(CoreModMethodTransformer.java:10) ~[coremods-4.0.6.jar:?]     at net.minecraftforge.coremod.transformer.CoreModBaseTransformer.transform(CoreModBaseTransformer.java:38) [coremods-4.0.6.jar:?]     at cpw.mods.modlauncher.TransformerHolder.transform(TransformerHolder.java:41) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.ClassTransformer.performVote(ClassTransformer.java:179) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:111) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.1.3.jar:?]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_51]     at net.optifine.reflect.Reflector.<clinit>(Reflector.java:307) [?:?]     at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:101) [?:?]     at net.minecraft.crash.CrashReport.<init>(CrashReport.java:54) [?:?]     at net.minecraft.crash.CrashReport.func_230188_h_(CrashReport.java:425) [?:?]     at net.minecraft.client.main.Main.main(Main.java:122) [?:?]     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:37) [forge-1.16.5-36.2.35.jar:36.2]     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$507/1014698874.call(Unknown Source) [forge-1.16.5-36.2.35.jar:36.2]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] [05févr.2023 12:45:23.796] [main/WARN] [mixin/]: @ModifyConstant conflict. Skipping assets/botania/botania.mixins.json:MixinWorldRenderer->@ModifyConstant::makeSunBigger(F)F with priority 1000, already redirected by mythicbotany.mixins.json:MixinWorldRenderer->@ModifyConstant::makeSunBigger(F)F with priority 1000 [05févr.2023 12:45:23.799] [main/WARN] [mixin/]: @ModifyConstant conflict. Skipping assets/botania/botania.mixins.json:MixinWorldRenderer->@ModifyConstant::makeMoonBigger(F)F with priority 1000, already redirected by mythicbotany.mixins.json:MixinWorldRenderer->@ModifyConstant::makeMoonBigger(F)F with priority 1000 [05févr.2023 12:45:23.845] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching ItemStack#onItemUse [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [05févr.2023 12:45:24.183] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at java.lang.reflect.Method.invoke(Method.java:497) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$507/1014698874.call(Unknown Source) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     ... 4 more [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/client/Minecraft has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0 [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at java.lang.ClassLoader.defineClass1(Native Method) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:138) [05févr.2023 12:45:24.184] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [05févr.2023 12:45:24.185] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [05févr.2023 12:45:24.185] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at net.optifine.reflect.Reflector.<clinit>(Reflector.java:529) [05févr.2023 12:45:24.186] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:101) [05févr.2023 12:45:24.187] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at net.minecraft.crash.CrashReport.<init>(CrashReport.java:54) [05févr.2023 12:45:24.187] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at net.minecraft.crash.CrashReport.func_230188_h_(CrashReport.java:425) [05févr.2023 12:45:24.188] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     at net.minecraft.client.main.Main.main(Main.java:122) [05févr.2023 12:45:24.188] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]:     ... 11 more          
    • Hello, I am currently trying to publish my mod. It works fine apart from that, but when publishing following error comes up: Execution failed for task ':publishMavenJavaPublicationToMavenRepository'. > Failed to publish publication 'mavenJava' to repository 'maven' > Invalid publication 'mavenJava': artifactId (AbsolutelyUnbreakable - 1.18.2) is not a valid Maven identifier ([A-Za-z0-9_\-.]+). I don't know what causes this as it definitely used to work completely fine.   I appreciate any help
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.