Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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!

  • Author

it says "BlockPos" cannot be resolved as a type which is weird for me ...

 

for the other stuff, thanks i try to fix the problems!

another problem is that "BlockPos" dont work anymore,

 

any idea from someone?

BlockPos

was moved to the

net.minecraft.util.math

package.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.