Can I have some help?

Started by Billy-Joe on

Topic category: Advanced modding

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I have some help?
Thu, 08/09/2018 - 23:19 (edited)

Hello everyone!
Can someone please help with my code? I get an error and would really appreciate any help I could get.

The code that has the error:

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

The error:

C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_chair.java:122: error: cannot find symbol
protected BlockStateContainer createBlockState() ;
          ^
symbol:   class BlockStateContainer
location: class BlockChair

Thank you for any help I get or if someone can help fix it but need to see the full code <3

Edited by Billy-Joe on Thu, 08/09/2018 - 23:19
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You have to import the class.
Thu, 08/09/2018 - 23:40

You have to import the class.

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, may I have a bit more…
Sun, 08/19/2018 - 06:15

Hi, may I have a bit more help? Sorry if It annoys you...
I tested out your Advanced Bounding boxes and It came up with this error:

C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_chair.java:127: error: method does not override or implement a method from a supertype
      @Override
      ^

With code:

@Override
		public void addCollisionBoxToList(IBlockState state, World world, BlockPos pos, AxisAlignedBB mask, List<AxisAlignedBB> list,
				@Nullable Entity entity) {

Please, may I get some help?

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
remove this: @Override
Sat, 09/08/2018 - 11:59

remove this: @Override