Jump to content

[1.10.2] updating my mod, some small problems which i cant fix ...


terraya

Recommended Posts

Hello Dear Forum,

 

im upgrading my MOD from 1.8.9 to 1.10.2

i got still couple of problems,

 

 

1. my transcluent blocks arent working bcuz

package ArturFarid.BlockUpdate.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.BlockStainedGlass;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.EnumWorldBlockLayer;

public class BlockUpdateGlassClass extends Block{

 public BlockUpdateGlassClass(String unlocalizedName, Material materialIn, float hardness, float resistance){
 super(materialIn);
 this.setUnlocalizedName(unlocalizedName);
 this.setCreativeTab(CreativeTabs.MATERIALS);
 this.setHardness(hardness);
 this.setResistance(resistance);
 }

public boolean isOpaqueCube() { 
	return false; }

    public boolean isFullCube() { 
    	return false; }

    @Override
    public boolean isVisuallyOpaque() { 
    	return false; }
    
    @Override
    public EnumWorldBlockLayer getBlockLayer(){
        return EnumWorldBlockLayer.TRANSLUCENT;
    }
}

 

the problem here is at the "Enum World Block Layer" ... what can i do , to replace it?

 

another problem is that "BlockPos" dont work anymore,

 

package Items;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.world.World;
import java.util.Random;
import java.util.concurrent.TimeUnit;

import ArturFarid.BlockUpdate.BlocksUpdate;
import gnu.trove.impl.hash.THash;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;

public class TestDevilFruitClass extends Item {

private long lastUse = 0;

public TestDevilFruitClass() {
	super();
}

public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side,
		float hitX, float hitY, float hitZ) {

	return true;
}

public ItemStack onItemRightClick(ItemStack itemStackIn, World world, EntityPlayer playerIn) {

	if (System.currentTimeMillis() - lastUse > TimeUnit.SECONDS.toMillis(1)) {

		BlockPos pos = playerIn.getPosition();
		Vec3 lookVec = playerIn.getLookVec();

		double distance = 6;

		double xLook = lookVec.xCoord * distance;
		double yLook = lookVec.yCoord * distance;
		double zLook = lookVec.zCoord * distance;

		int x = (int) (pos.getX() + xLook);
		int y = (int) (pos.getY() + yLook);
		int z = (int) (pos.getZ() + zLook);

		//int width = 25;
		// for (int _x = 0; _x <= width; _x++) {
		// for (int _y = 0; _y <= width; _y++) {
		// for (int _z = 0; _z <= width; _z++) {
		// if (_y == 0 || _y == width || _x == 0 || _x == width || _z == 0
		// || _z == width) {
		// world.setBlockState(new BlockPos(x + _x, y + _y, z + _z),
		// Blocks.planks.getDefaultState());
		// }
		// }
		// }
		// }

		// Y: Von oben nach unten(die höhe der blöcke wo sie entstehen sollen , z.b 3 ... dan wird der block 3blöcke hochgehen 
		//X: Links nach rechts gleiches prinzip wie bei "Y"
		// Y: Von oben nach unten(die höhe der blöcke wo sie entstehen sollen , z.b 3 ... dan wird der block 3blöcke hochgehen 
		// X: nach vorne/hinten 
		// Z: Links nach rechts

		world.setBlockState(new BlockPos(x , y + 6, z +1  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 6, z -1 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 6, z  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y - 2, z +1  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y - 2, z -1 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y - 2, z  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 5, z +2  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 5, z -2 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 4, z +3  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 4, z -3 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 3, z +4  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 3, z -4 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 2, z +4  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 2, z -4 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 1, z +4  ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 1, z -4 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y , z - 3 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y , z + 3 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y - 1, z - 2 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y - 1, z + 2 ), Blocks.GLASS.getDefaultState());

		world.setBlockState(new BlockPos(x + 1, y + 5, z +1  ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 5, z -1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 5, z ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 5, z +1  ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 5, z -1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 5, z ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y - 1, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y - 1, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y - 1, z ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y - 1, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y - 1, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y - 1, z ), Blocks.STONE.getDefaultState());

		world.setBlockState(new BlockPos(x - 1, y , z - 2 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y , z + 2 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y , z - 2 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y , z + 2 ), Blocks.STONE.getDefaultState());

		world.setBlockState(new BlockPos(x - 1, y + 1, z - 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 1, z + 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 1, z - 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 1, z + 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 2, z - 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 2, z + 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 2, z - 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 2, z + 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 3, z - 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 3, z + 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 3, z - 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 3, z + 3 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 4, z - 2 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 4, z + 2 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 4, z - 2 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 4, z + 2 ), Blocks.STONE.getDefaultState());

		world.setBlockState(new BlockPos(x - 2, y + 4, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 4, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 4, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 4, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 4, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 4, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 3, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 3, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 3, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 3, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 3, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 3, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 2, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 2, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 2, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 2, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 2, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 2, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 1, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 1, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 1, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 1, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 1, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 1, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y, z - 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y, z + 1 ), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y, z), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y, z), Blocks.STONE.getDefaultState());

		world.setBlockState(new BlockPos(x - 2, y + 1, z + 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 1, z + 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 2, z + 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 2, z + 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 3, z + 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 3, z + 2), Blocks.STONE.getDefaultState());

		world.setBlockState(new BlockPos(x - 2, y + 1, z - 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 1, z - 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 2, z - 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 2, z - 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x - 2, y + 3, z - 2), Blocks.STONE.getDefaultState());
		world.setBlockState(new BlockPos(x + 2, y + 3, z - 2), Blocks.STONE.getDefaultState());

		world.setBlockState(new BlockPos(x , y + 5, z -5 ), Blocks.GLASS.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 5, z -6 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 6, z -7 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7, z -7 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z -6 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z -5 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7, z -4 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 6, z -4 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 7, z - 5 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 6, z - 5 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 7, z - 6 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 6, z - 6 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 7, z - 5 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 6, z - 5 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 7, z - 6 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 6, z - 6 ), Blocks.stone.getDefaultState());

		world.setBlockState(new BlockPos(x , y + 8, z - 3 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 9, z - 3 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 10, z - 2 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 10, z - 1 ), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 9, z), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7,z - 1), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7,z - 2), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 8, z - 2 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 9, z - 2 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 8, z - 1 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 9, z - 1 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 8, z - 2 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 9, z - 2 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 8, z - 1 ), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 9, z - 1 ), Blocks.stone.getDefaultState());

		world.setBlockState(new BlockPos(x , y + 9, z), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 10, z + 1), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 10, z + 2), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 9, z + 3), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z + 3), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7, z + 2), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7, z + 1), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 9, z + 2), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 8, z + 2), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 9, z + 1), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 8, z + 1), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 9, z + 2), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 8, z + 2), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 9, z + 1), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 8, z + 1), Blocks.stone.getDefaultState());

		world.setBlockState(new BlockPos(x , y + 7, z + 4), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 6, z + 4), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z + 5), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 8, z + 6), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 7, z + 7), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 6, z + 7), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 5, z + 5), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x , y + 5, z + 6), Blocks.glass.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 6, z + 6), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 6, z + 5), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 7, z + 6), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x + 1, y + 7, z + 5), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 6, z + 6), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 6, z + 5), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 7, z + 6), Blocks.stone.getDefaultState());
		world.setBlockState(new BlockPos(x - 1, y + 7, z + 5), Blocks.stone.getDefaultState());

//------------------------------------------------------------------------------------------------------------------------



//-------------------------------------------------------------------------------------------------------------------------------------------



//-------------------------------------------------------------------------------------------------------------------------------------------



		lastUse = System.currentTimeMillis();
	}
	return itemStackIn;
}
@Override
public CreativeTabs getCreativeTab() {
	return BlocksUpdate.devil_fruit_tab;
}

}

 

any idea from someone?

 

last problem is here:

Good_Bread = new BlockUpdateFoodClass( "Good_Bread", 0, 0f, false, new PotionEffect(Potion.regeneration.id,50, 1));

 

Potion.regeneration is not anymore aviable...

 

i know its much, im very thankful for any help!

Link to comment
Share on other sites

still have a small error on starting minecraft itself over eclipse ...

 

thats the error

 

---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 20.09.16 16:23
Description: Initializing game

java.lang.IllegalArgumentException: Can not set static ArturFarid.BlockUpdate.BlocksUpdate field ArturFarid.BlockUpdate.BlocksUpdate.instance to com.example.examplemod.ExampleMod
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
at java.lang.reflect.Field.set(Unknown Source)
at net.minecraftforge.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:487)
at net.minecraftforge.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:418)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:545)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:477)
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
at java.lang.reflect.Field.set(Unknown Source)
at net.minecraftforge.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:487)
at net.minecraftforge.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:418)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:545)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:477)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:386)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:26)

 

that one here:

java.lang.IllegalArgumentException: Can not set static ArturFarid.BlockUpdate.BlocksUpdate field ArturFarid.BlockUpdate.BlocksUpdate.instance to com.example.examplemod.ExampleMod

 

i replaced the "SRC" folder from 1.8.9 with the one from 1.10.2 ,

 

it started at the start before "replacing" it and nowafter fixing all the "errors" it wont start,

 

also probably , the json files have to be changed, i hear that the json files changed from 1.8.9 to 1.10.2 ,

and as i can remember, always when a json file wasnt right, the game crashed.

 

but still, the error says nothing about json.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • हथियार व्यापारियों की चमक आज के समय में भारत और दुनिया के विभिन्न हिस्सों में तेजी से बढ़ रही है। स्वीडन की स्थित संस्था सिपरी की नवीनतम रिपोर्ट के अनुसार, विश्व भर में विभिन्न देश अब पूर्व कभी नहीं देखे गए हथियारों और सैन्य सामग्रियों पर धन का व्यय कर रहे हैं। वैश्विक संघर्षों के बढ़ते संकेतों के कारण, विश्व के कई हिस्सों में युद्ध की संभावनाएं बढ़ रही हैं। पश्चिमी एशिया में युद्ध की आग फैल रही है, जबकि दक्षिण चीन सागर और ताइवान में भी तनाव बढ़ रहा है। भारत-चीन सीमा पर भी स्थिति चिंताजनक है। इन घटनाओं के परिणामस्वरूप, विभिन्न देशों की प्राथमिकताएं बदल रही हैं, और हथियार व्यापारियों का धंधा आजकल चमक उठा है। सिपरी की रिपोर्ट के अनुसार, 2023 में वैश्विक सैन्य खर्च एक नया रिकॉर्ड स्थापित किया गया है। 2022 की तुलना में, 2023 में सैन्य खर्च 6.8 फीसदी बढ़कर 24.4 ट्रिलियन डॉलर पर पहुंच गया। इसके पीछे कुछ विशेष कारण हैं, जिनमें दुनिया भर में तनाव बढ़ना और अद्यतित सैन्य तैयारियों की आवश्यकता शामिल है। इस वृद्धि में, भारत जैसे देशों का योगदान भी अधिक है। भारत ने भी अपने सैन्य खर्चों में वृद्धि की है, और यह दुनिया के सबसे बड़े और सबसे प्रभावशाली राष्ट्रों में एक बन गया है। इसके अलावा, अमेरिका, चीन, और रूस भी सैन्य खर्च में वृद्धि की हैं, जिससे विश्व सुरक्षा में नए दायरे खुले हैं। संभावनाओं के इस नए मंच पर, दुनिया के सक्षम देश अब अपने सैन्य तैयारियों में ज्यादा ध्यान दे रहे हैं। यह वृद्धि विकास और प्रगति के बजट पर भी प्रभाव डाल रही है, जिससे विभिन्न देशों के आर्थिक प्रगति में बदलाव आ सकता है।   https://www.nayaindia.com/editorial-column/editorial1/arms-sales-increased-in-the-world-454072.html
    • Hello, Hi and I am making a forge 1.12.2 mod and also trying to get a custom model helmet item (I made a joker mask) and exported it to .json format and put it in the ~/namespace/models/item folder. Though, I'm struggling to get the item to render what I want it to be rendered like as I've positioned it in the 'head' window view in blockbench. How did you render out your model? I checked your code and it looks like no references to the actual model are being made. I'm new to this forge modding stuff (was a fabric modder) and I desperately need some help. Is there a way to standardly render out armor models made using blockbench? any methods that one can use? My model in JSON: ```json { "credit": "Made with Blockbench", "texture_size": [160, 160], "textures": { "0": "ydyrn:items/joker_mask_texture", "particle": "ydyrn:items/joker_mask_texture" }, "elements": [ { "from": [0, 0, 0], "to": [16, 16, 1], "faces": { "north": {"uv": [0, 1.7, 16, 14.2], "texture": "#0"}, "east": {"uv": [0, 4, 0.9, 5.6], "texture": "#0"}, "south": {"uv": [0, 5.8, 1.6, 7.4], "texture": "#0"}, "west": {"uv": [0, 1.9, 1.3, 3.5], "texture": "#0"}, "up": {"uv": [0, 3.4, 1.6, 4.2], "texture": "#0"}, "down": {"uv": [0, 9, 1.6, 9.7], "texture": "#0"} } }, { "from": [15.8, 11, 0.5], "to": [16.2, 13, 15], "faces": { "north": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "east": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "south": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "west": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "up": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"}, "down": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"} } }, { "from": [0.2, 11, 14.6], "to": [15.8, 13, 15], "faces": { "north": {"uv": [7.9, 7.9, 9.46, 8.1], "texture": "#0"}, "east": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "south": {"uv": [7.9, 7.9, 9.46, 8.1], "texture": "#0"}, "west": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "up": {"uv": [7.9, 7.9, 9.46, 7.94], "texture": "#0"}, "down": {"uv": [7.9, 7.9, 9.46, 7.94], "texture": "#0"} } }, { "from": [-0.2, 11, 0.5], "to": [0.2, 13, 15], "faces": { "north": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "east": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "south": {"uv": [7.9, 7.9, 7.94, 8.1], "texture": "#0"}, "west": {"uv": [7.9, 7.9, 9.35, 8.1], "texture": "#0"}, "up": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"}, "down": {"uv": [7.9, 7.9, 7.94, 9.35], "texture": "#0"} } } ], "display": { "thirdperson_righthand": { "translation": [-0.25, -2.75, 0], "scale": [0.3, 0.3, 0.3] }, "thirdperson_lefthand": { "translation": [-0.25, -2.75, 0], "scale": [0.3, 0.3, 0.3] }, "firstperson_righthand": { "rotation": [-9, 115, 15], "translation": [0, 1.25, -1.75], "scale": [0.5, 0.5, 0.5] }, "firstperson_lefthand": { "rotation": [-9, 115, 15], "translation": [0, 1.25, -1.75], "scale": [0.5, 0.5, 0.5] }, "ground": { "rotation": [40, 0, 0], "translation": [0, -2.5, 0], "scale": [0.5, 0.5, 0.5] }, "gui": { "rotation": [0, 180, 0] }, "head": { "translation": [0, 0, 0.25], "scale": [0.82773, 0.73594, 0.9] }, "fixed": { "translation": [0, 0, 8.75] } }, "groups": [ 0, { "name": "straps", "origin": [0, 0, 0], "color": 0, "children": [1, 2, 3] } ] } ```
    • Add the crash-report or latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • In your config folder, delete the sophisticatedcore-common.toml file and test it again
  • Topics

×
×
  • Create New...

Important Information

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