October 4, 201510 yr Author you were right! Now the error changed to the line that i put in my block's class: Cannot set property PropertyEnum{name=part, clazz=class tutorial.generic.railControlBlock$EnumPartType, values=[middle, left, right]} to 0 on block generic:railControlBlock, it is not an allowed value here is the function that breaks it: @Override public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos){ return state.withProperty(PART, this.part); } PART is a PropertyEnum of EnumPartType , but you're trying to assign an int value to it ( this.part ). i saw that too, so I made this and it works! Thanks for all your help! @Override public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos){ if(this.part == 2){ return state.withProperty(PART, EnumPartType.RIGHT); }else if(this.part == 1){ return state.withProperty(PART, EnumPartType.LEFT); }else{ return state.withProperty(PART, EnumPartType.MIDDLE); } } I'm working on something big! As long as there arent alot of big issues... [D
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.