Jump to content

Problems updating to 1.10


alexschopbarteld

Recommended Posts

Hey, i am currently in the process of updating my mod from 1.8 to 1.10, it has been a long process and after finally removing all the errors and following a lot of tutorials i am finally done. Well, i started my game, it crashes on init, i hope someone can help me fixt it.

 

 

modstuff:

 

 

Ref:

 

package com.runecraft;

 

public class Reference {

public static final String MOD_ID = "rc";

public static final String MOD_NAME = "Runecraft";

public static final String VERSION = "1.0";

public static final String CLIENT_PROXY_CLASS = "com.runecraft.proxy.ClientProxy";

public static final String SERVER_PROXY_CLASS = "com.runecraft.proxy.CommonProxy";

}

 

 

 

Main mod init

 

package com.runecraft;

 

 

import com.runecraft.CreativeTabs.RunecraftBlocksTab;

import com.runecraft.CreativeTabs.RunecraftEquipmentTab;

import com.runecraft.CreativeTabs.RunecraftItemsTab;

import com.runecraft.init.RunecraftArmour;

import com.runecraft.init.RunecraftBlocks;

import com.runecraft.init.RunecraftItems;

import com.runecraft.proxy.CommonProxy;

 

import net.minecraftforge.fml.common.Mod;

import net.minecraftforge.fml.common.Mod.EventHandler;

import net.minecraftforge.fml.common.SidedProxy;

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

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

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

 

 

 

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)

public class Runecraft {

 

@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)

public static CommonProxy proxy;

 

 

    @Mod.Instance(Reference.MOD_ID)

    public static Runecraft instance;

   

public static final RunecraftBlocksTab Runecraft_Blocks = new RunecraftBlocksTab("Runecraft_Blocks");

public static final RunecraftItemsTab Runecraft_Items = new RunecraftItemsTab("Runecraft_Items");

public static final RunecraftEquipmentTab Runecraft_Equipment = new RunecraftEquipmentTab("Runecraft_Equipment");

 

    public static final String MODID = Reference.MOD_ID;

    public static final String VERSION = Reference.VERSION;

 

 

 

//public static BlockBar

 

@EventHandler

public void preInit(FMLPreInitializationEvent event)

{

RunecraftBlocks.init();

RunecraftBlocks.register();

RunecraftItems.init();

RunecraftItems.register();

RunecraftArmour.init();

RunecraftArmour.register();

}

 

@EventHandler

public void init(FMLInitializationEvent event)

{

proxy.registerRenders();

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event)

{

 

}

 

}

 

 

 

block classes:

 

blockbar

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

import net.minecraft.block.material.Material;

import net.minecraft.block.properties.IProperty;

import net.minecraft.block.properties.PropertyDirection;

import net.minecraft.block.properties.PropertyEnum;

import net.minecraft.block.state.BlockStateContainer;

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweBlockBar extends Block implements IMetaBlockName{

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

 

 

 

public nieuweBlockBar(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

drawers

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

import net.minecraft.block.material.Material;

import net.minecraft.block.properties.IProperty;

import net.minecraft.block.properties.PropertyDirection;

import net.minecraft.block.properties.PropertyEnum;

import net.minecraft.block.state.BlockStateContainer;

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweDrawers extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

 

 

 

public nieuweDrawers (String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

lantern

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

import net.minecraft.block.material.Material;

import net.minecraft.block.properties.IProperty;

import net.minecraft.block.properties.PropertyDirection;

import net.minecraft.block.properties.PropertyEnum;

import net.minecraft.block.state.BlockStateContainer;

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweHangingLantern  extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

 

 

 

public nieuweHangingLantern(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

kruk

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

import net.minecraft.block.material.Material;

import net.minecraft.block.properties.IProperty;

import net.minecraft.block.properties.PropertyDirection;

import net.minecraft.block.properties.PropertyEnum;

import net.minecraft.block.state.BlockStateContainer;

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuwekruk  extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

 

 

 

public nieuwekruk(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

swordcase

 

package com.runecraft.blocks;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.item.IMetaBlockName;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockPistonBase;

import net.minecraft.block.material.Material;

import net.minecraft.block.properties.IProperty;

import net.minecraft.block.properties.PropertyDirection;

import net.minecraft.block.properties.PropertyEnum;

import net.minecraft.block.state.BlockStateContainer;

import net.minecraft.block.state.IBlockState;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.EnumFacing;

import net.minecraft.util.ResourceLocation;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.World;

 

public class nieuweSwordCase  extends Block implements IMetaBlockName {

 

public static final PropertyEnum TYPE = PropertyEnum.create("type", ChipTypes.class);

public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

 

 

 

public nieuweSwordCase(String unlocalizedName) {

super(Material.WOOD);

this.setUnlocalizedName(unlocalizedName);

this.setCreativeTab(Runecraft.Runecraft_Blocks);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedName));

this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChipTypes.BASIC).withProperty(FACING, EnumFacing.NORTH));

 

}

 

@Override

protected BlockStateContainer createBlockState() {

return new BlockStateContainer(this, new IProperty[] {TYPE});

}

 

@Override

public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ,

int meta, EntityLivingBase placer) {

return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer);

}

 

@Override

public int getMetaFromState(IBlockState state) {

ChipTypes type = (ChipTypes) state.getValue(TYPE);

return type.getID();

}

 

@Override

public IBlockState getStateFromMeta(int meta) {

return this.getDefaultState().withProperty(TYPE, ChipTypes.values()[meta]);

}

 

@Override

public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) {

for(int i = 0;i < ChipTypes.values().length; i++) {

list.add(new ItemStack(itemIn, 1, i));

}

}

 

@Override

public String getSpecialName(ItemStack stack) {

return ChipTypes.values()[stack.getItemDamage()].getName();

}

}

 

 

 

 

 

imetablockname

 

package com.runecraft.blocks.item;

 

import net.minecraft.item.ItemStack;

 

public interface IMetaBlockName {

 

 

String getSpecialName(ItemStack stack);

 

}

 

 

itemBlock

 

package com.runecraft.blocks.item;

 

import net.minecraft.block.Block;

import net.minecraft.item.ItemBlock;

import net.minecraft.item.ItemStack;

 

public class ItemBlockBar extends ItemBlock {

 

public ItemBlockBar(Block block) {

super(block);

if(!(block instanceof IMetaBlockName)) {

throw new IllegalArgumentException(String.format("Hey mongool Block %s is niet in IMetaBlockName!", block.getUnlocalizedName()));

}

this.setHasSubtypes(true);

this.setMaxDamage(0);

}

 

@Override

public String getUnlocalizedName(ItemStack stack) {

return super.getUnlocalizedName() + '.' + ((IMetaBlockName) this.block).getSpecialName(stack);

}

 

}

 

 

 

EnumHandler:

 

package com.runecraft.handlers;

 

import net.minecraft.util.IStringSerializable;

 

public class EnumHandler {

 

public static enum ChipTypes implements IStringSerializable {

BASIC("basic", 0),

ADVANCED("advanced", 1);

 

private int ID;

private String name;

 

private ChipTypes(String name, int ID) {

this.ID = ID;

this.name = name;

}

 

@Override

public String getName() {

return null;

}

 

public int getID() {

return ID;

}

 

@Override

public String toString() {

return getName();

}

 

}

 

}

 

 

 

runecraftBlocks(blocksinit)

 

package com.runecraft.init;

 

import com.runecraft.Reference;

import com.runecraft.Runecraft;

import com.runecraft.blocks.nieuweBlockBar;

import com.runecraft.blocks.nieuweDrawers;

import com.runecraft.blocks.nieuweHangingLantern;

import com.runecraft.blocks.nieuweSwordCase;

import com.runecraft.blocks.nieuwekruk;

import com.runecraft.blocks.item.ItemBlockBar;

import com.runecraft.handlers.EnumHandler;

 

import net.minecraft.block.Block;

import net.minecraft.client.renderer.block.model.ModelResourceLocation;

import net.minecraft.item.Item;

import net.minecraft.item.ItemBlock;

import net.minecraftforge.client.model.ModelLoader;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class RunecraftBlocks {

 

public static Block bar;

public static Block kruk;

public static Block lantern;

public static Block sword_case;

public static Block Drawers;

 

 

public static void init()

{

bar = new nieuweBlockBar("bar");

kruk = new nieuwekruk("kruk");

lantern = new nieuweHangingLantern("lantern");

sword_case = new nieuweSwordCase("sword_case");

Drawers = new nieuweDrawers("Drawers");

 

 

}

 

public static void register()

{

registerBlock(bar, new ItemBlockBar(bar));

registerBlock(kruk, new ItemBlockBar(kruk));

registerBlock(lantern, new ItemBlockBar(lantern));

registerBlock(sword_case, new ItemBlockBar(sword_case));

registerBlock(Drawers, new ItemBlockBar(Drawers));

 

 

}

 

public static void registerRenders()

{

for(int i = 0; i < EnumHandler.ChipTypes.values().length; i++) {

registerRender(bar, i, "bar_" + EnumHandler.ChipTypes.values().getName());

registerRender(kruk, i, "kruk_" + EnumHandler.ChipTypes.values().getName());

registerRender(lantern, i, "lantern_" + EnumHandler.ChipTypes.values().getName());

registerRender(sword_case, i, "sword_case_" + EnumHandler.ChipTypes.values().getName());

registerRender(Drawers, i, "Drawers_" + EnumHandler.ChipTypes.values().getName());

}

 

}

 

public static void registerBlock(Block block) {

block.setCreativeTab(Runecraft.Runecraft_Blocks);

GameRegistry.register(block);

GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName()));

}

 

public static void registerBlock(Block block, ItemBlock nieuweBlockBar) {

block.setCreativeTab(Runecraft.Runecraft_Blocks);

GameRegistry.register(block);

GameRegistry.register(nieuweBlockBar.setRegistryName(block.getRegistryName()));

}

 

 

public static void registerRender(Block block, int meta, String string)

{

ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(Reference.MOD_ID + ":" + block.getUnlocalizedName().substring(5), "inventory"));

}

 

public static void registerRender1(Block block, int meta, String filename) {

ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), meta, new ModelResourceLocation(Reference.MOD_ID + ":" + block.getUnlocalizedName(), "inventory"));

}

}

 

 

itemchip

 

package com.runecraft.items;

 

import java.util.List;

 

import com.runecraft.Reference;

import com.runecraft.handlers.EnumHandler.ChipTypes;

 

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.util.ResourceLocation;

 

public class ItemChip extends Item {

 

 

public ItemChip(String unlocalizedname) {

this.setUnlocalizedName(unlocalizedname);

this.setRegistryName(new ResourceLocation(Reference.MOD_ID, unlocalizedname));

this.setHasSubtypes(true);

 

}

 

@Override

public void getSubItems(Item item, CreativeTabs tab, List<ItemStack> items) {

for(int i = 0; i < ChipTypes.values().length; i++) {

items.add(new ItemStack(item, 1, i));

}

}

 

@Override

public String getUnlocalizedName(ItemStack stack) {

for(int i = 0; i < ChipTypes.values().length; i++) {

if(stack.getItemDamage() ==i) {

return this.getUnlocalizedName() + "." + ChipTypes.values().getName();

}

else {

continue;

}

}

return this.getUnlocalizedName() + "." + ChipTypes.BASIC.getName();

 

}

}

 

 

 

proxies:

 

common

 

package com.runecraft.proxy;

 

 

public class CommonProxy {

 

public void registerRenders() {

}

 

public void registerModelBakeryStuff() {

 

 

}

 

}

 

 

client

 

package com.runecraft.proxy;

 

import com.runecraft.Reference;

import com.runecraft.init.RunecraftArmour;

import com.runecraft.init.RunecraftBlocks;

import com.runecraft.init.RunecraftItems;

 

import net.minecraft.client.renderer.block.model.ModelBakery;

import net.minecraft.item.Item;

import net.minecraft.util.ResourceLocation;

 

public class ClientProxy extends CommonProxy{

 

@Override

public void registerRenders() {

RunecraftBlocks.registerRenders();

RunecraftItems.registerRenders();

RunecraftArmour.registerRenders();

}

 

@Override

public void registerModelBakeryStuff() {

ModelBakery.registerItemVariants(Item.getItemFromBlock(RunecraftBlocks.bar), new ResourceLocation(Reference.MOD_ID, "block_bar_basic"), new ResourceLocation(Reference.MOD_ID, "block_bar_advanced"));

}

 

}

 

 

 

 

crashreport:

 

[20:44:11] [Client thread/ERROR]: Caught exception from rc

java.lang.ExceptionInInitializerError

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31) ~[bin/:?]

at com.runecraft.Runecraft.preInit(Runecraft.java:45) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:351) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

Caused by: java.lang.IllegalArgumentException: Multiple values have the same name 'null'

at net.minecraft.block.properties.PropertyEnum.<init>(SourceFile:26) ~[PropertyEnum.class:?]

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:82) ~[PropertyEnum.class:?]

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:74) ~[PropertyEnum.class:?]

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:70) ~[PropertyEnum.class:?]

at com.runecraft.blocks.nieuweBlockBar.<clinit>(nieuweBlockBar.java:29) ~[nieuweBlockBar.class:?]

... 45 more

[20:44:11] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:560]: ---- Minecraft Crash Report ----

// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

 

Time: 17-11-16 20:44

Description: There was a severe problem during mod loading that has caused the game to fail

 

net.minecraftforge.fml.common.LoaderException: java.lang.ExceptionInInitializerError

at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:186)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:612)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439)

at net.minecraft.client.Minecraft.run(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

Caused by: java.lang.ExceptionInInitializerError

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31)

at com.runecraft.Runecraft.preInit(Runecraft.java:45)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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.preinitializeMods(Loader.java:609)

... 16 more

Caused by: java.lang.IllegalArgumentException: Multiple values have the same name 'null'

at net.minecraft.block.properties.PropertyEnum.<init>(SourceFile:26)

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:82)

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:74)

at net.minecraft.block.properties.PropertyEnum.create(SourceFile:70)

at com.runecraft.blocks.nieuweBlockBar.<clinit>(nieuweBlockBar.java:29)

... 45 more

 

 

 

the crash report is from runecraftblocksinit but i dont know how to fixt it.

 

please help,

 

alex.

Link to comment
Share on other sites

Your enums have this method:

 

@Override
      public String getName() {
         return null;
      }

 

You cannot return null here.

 

Looks like an error on line 31 of your blockInit class

RunecraftBlocks.init();

 

look at that line and or post the block init method in that class

 

Actually, that line is unhelpful. It's just a "new MyBlock()" line.  The important bit is this bit:

 

Caused by: java.lang.IllegalArgumentException: Multiple values have the same name 'null'

  at net.minecraft.block.properties.PropertyEnum.<init>(SourceFile:26)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

changed return null;

to

return name;

 

fixed  few errors but still gives me these:

 

 

[21:42:25] [Client thread/ERROR]: Caught exception from rc

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=null, properties=[type]}

at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:210) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at com.runecraft.blocks.nieuweBlockBar.<init>(nieuweBlockBar.java:39) ~[bin/:?]

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31) ~[bin/:?]

at com.runecraft.Runecraft.preInit(Runecraft.java:45) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forgeBin-1.10.2-12.18.2.2099.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:351) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

[21:42:25] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:560]: ---- Minecraft Crash Report ----

// Ouch. That hurt :(

 

Time: 17-11-16 21:42

Description: Initializing game

 

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=null, properties=[type]}

at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:210)

at com.runecraft.blocks.nieuweBlockBar.<init>(nieuweBlockBar.java:39)

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31)

at com.runecraft.Runecraft.preInit(Runecraft.java:45)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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.preinitializeMods(Loader.java:609)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439)

at net.minecraft.client.Minecraft.run(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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 net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:210)

at com.runecraft.blocks.nieuweBlockBar.<init>(nieuweBlockBar.java:39)

at com.runecraft.init.RunecraftBlocks.init(RunecraftBlocks.java:31)

at com.runecraft.Runecraft.preInit(Runecraft.java:45)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:597)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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.preinitializeMods(Loader.java:609)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:439)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

Link to comment
Share on other sites

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=null, properties=[type]}

 

Your BlockStateContainer method doesn't declare that it has a FACING property:

   @Override
   protected BlockStateContainer createBlockState() {
      return new BlockStateContainer(this, new IProperty[] {TYPE});
   }

You need:

   @Override
   protected BlockStateContainer createBlockState() {
      return new BlockStateContainer(this, new IProperty[] {TYPE, BlockHorizontal.FACING});
   }

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Description of issue: Tried to run MC client, crashing with java.lang.NoSuchFieldError. I Went into SRG fields, found that f_271198 does exist, but Forge thinks this field does not exist.   Crash Report: ---- Minecraft Crash Report ---- // I let you down. Sorry Time: 2024-02-22 09:21:29 Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed     at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:48) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading}     at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:119) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.lambda$new$6(Minecraft.java:611) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.Util.ifElse(Util.java:432) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading}     at net.minecraft.client.Minecraft.lambda$new$7(Minecraft.java:602) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraftforge.client.loading.ForgeLoadingOverlay.render(ForgeLoadingOverlay.java:146) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading}     at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:931) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.runTick(Minecraft.java:1250) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.run(Minecraft.java:801) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:234) ~[forge-1.20.4-49.0.30_mapped_official_1.20.4.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:91) ~[fmlloader-1.20.4-49.0.30.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$makeService$0(CommonLaunchHandler.java:75) ~[fmlloader-1.20.4-49.0.30.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) ~[modlauncher-10.1.2.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:74) ~[modlauncher-10.1.2.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:114) ~[modlauncher-10.1.2.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:73) ~[modlauncher-10.1.2.jar:?] {}     at cpw.mods.modlauncher.BootstrapEntry.main(BootstrapEntry.java:17) ~[modlauncher-10.1.2.jar:?] {}     at net.minecraftforge.bootstrap.Bootstrap.moduleMain(Bootstrap.java:97) ~[bootstrap-2.0.0.jar!/:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.bootstrap.Bootstrap.start(Bootstrap.java:48) ~[bootstrap-2.0.0.jar!/:?] {}     at net.minecraftforge.bootstrap.ForgeBootstrap.main(ForgeBootstrap.java:18) ~[bootstrap-2.0.0.jar!/:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Suspected Mod:      Better Biomes (betterbiomes), Version: 0.1.4.3         at TRANSFORMER/betterbiomes@0.1.4.3/net.crypticverse.betterbiomes.util.BetterBiomeWoodTypes.<clinit>(BetterBiomeWoodTypes.java:8) Stacktrace:     at net.crypticverse.betterbiomes.util.BetterBiomeWoodTypes.<clinit>(BetterBiomeWoodTypes.java:8) ~[betterbiomes-forge-2.1.4.6-1.20.4.jar!/:2.1.4.6-1.20.4] {re:classloading} -- MOD betterbiomes -- Details:     Mod File: /C:/Users/myUser/BetterBiomes-Forge/run/mods/betterbiomes-forge-2.1.4.6-1.20.4.jar     Failure message: Better Biomes (betterbiomes) has failed to load correctly         java.lang.NoSuchFieldError: f_271198_     Mod Version: 0.1.4.3     Mod Issue URL: NOT PROVIDED     Exception message: java.lang.NoSuchFieldError: f_271198_ Stacktrace:     at net.crypticverse.betterbiomes.util.BetterBiomeWoodTypes.<clinit>(BetterBiomeWoodTypes.java:8) ~[main/:?] {re:classloading}     at net.crypticverse.betterbiomes.BetterBiomes.<init>(BetterBiomes.java:55) ~[main/:?] {re:classloading}     at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {}     at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {}     at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {}     at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:66) ~[javafmllanguage-1.20.4-49.0.30.jar!/:49.0.30] {}     at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$5(ModContainer.java:125) ~[fmlcore-1.20.4-49.0.30.jar!/:1.0] {}     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}     at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {}     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}     at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}     at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {}     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {}     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {} -- System Details -- Details:     Minecraft Version: 1.20.4     Minecraft Version ID: 1.20.4     Operating System: Windows 10 (amd64) version 10.0     Java Version: 17.0.9, Eclipse Adoptium     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium     Memory: 578548144 bytes (551 MiB) / 1128267776 bytes (1076 MiB) up to 8522825728 bytes (8128 MiB)     CPUs: 20     Processor Vendor: GenuineIntel     Processor Name: 12th Gen Intel(R) Core(TM) i7-12700K     Identifier: Intel64 Family 6 Model 151 Stepping 2     Microarchitecture: Alder Lake     Frequency (GHz): 3.61     Number of physical packages: 1     Number of physical CPUs: 12     Number of logical CPUs: 20     Graphics card #0 name: NVIDIA GeForce RTX 3070 Ti     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x2482     Graphics card #0 versionInfo: DriverVersion=31.0.15.3699     Memory slot #0 capacity (MB): 16384.00     Memory slot #0 clockSpeed (GHz): 4.80     Memory slot #0 type: Unknown     Memory slot #1 capacity (MB): 16384.00     Memory slot #1 clockSpeed (GHz): 4.80     Memory slot #1 type: Unknown     Virtual memory max (MB): 37373.42     Virtual memory used (MB): 22391.79     Swap memory total (MB): 4864.00     Swap memory used (MB): 95.69     JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump     ModLauncher: 10.1.2     ModLauncher launch target: forge_userdev_client     ModLauncher naming: mcp     ModLauncher services:          / slf4jfixer PLUGINSERVICE          / runtimedistcleaner PLUGINSERVICE          / runtime_enum_extender PLUGINSERVICE          / object_holder_definalize PLUGINSERVICE          / capability_token_subclass PLUGINSERVICE          / accesstransformer PLUGINSERVICE          / eventbus PLUGINSERVICE          / mixin PLUGINSERVICE          / fml TRANSFORMATIONSERVICE          / mixin TRANSFORMATIONSERVICE      FML Language Providers:          lowcodefml@49         minecraft@1.0         javafml@49.0.30     Mod List:                                                            |Minecraft                     |minecraft                     |1.20.4              |COMMON_SET|Manifest: NOSIGNATURE         TerraBlender-forge-1.20.4-3.3.0.12_mapped_official|TerraBlender                  |terrablender                  |3.3.0.12            |COMMON_SET|Manifest: NOSIGNATURE                                                           |Forge                         |forge                         |49.0.30             |COMMON_SET|Manifest: NOSIGNATURE         betterbiomes-forge-2.1.4.6-1.20.4.jar             |Better Biomes                 |betterbiomes                  |0.1.4.3             |ERROR     |Manifest: NOSIGNATURE         Notebook-api-forge-1.20.4-1.1.0.4_mapped_official_|Notebook                      |notebook                      |1.1.0.4             |COMMON_SET|Manifest: NOSIGNATURE     Crash Report UUID: ad19c004-038a-4777-adbc-0504acf15d93     FML: 0.0     Forge: net.minecraftforge:49.0.30
    • Some kind of issue/conflict with eureka - also try other builds of it
    • doesn't work But after trying to make a boat with Valkyrien Skies, I got this : https://pastebin.com/bxnDcHr3 maybe the problem comes from valkyrien skies itself ?
    • yeah, I was about to try other builds for Valkyrien Skies but i'm scared of breaking everything again
  • Topics

×
×
  • Create New...

Important Information

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