Jump to content

Recommended Posts

Posted

I just started updating my main mod to 1.8 but no matter what I do, minecraft always crashes with:

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 BlockState{block=null, properties=[]}

 

I want to make ( /update) a simple Block with textures that should rotate depending on a Direction.

 

Here is my main mod file:

 

  Reveal hidden contents

 

 

My block file:

 

 

  Reveal hidden contents

 

 

My TE:

 

 

  Reveal hidden contents

 

 

Blockstates Active:

 

  Reveal hidden contents

 

 

Blockstates Idle:

 

  Reveal hidden contents

 

 

BlockModel Active

 

  Reveal hidden contents

 

 

 

BlockModel Idle

 

  Reveal hidden contents

 

 

 

 

Full crash:

 

  Reveal hidden contents

 

 

And here is a link to my github project: https://github.com/Jacky2611/DimensionShiftCore

 

Any ideas what I am doing wrong?

Here could be your advertisement!

Posted

Yeah, I had that idea when i started to work with blockstates. However, as long as I can't even get the basic stuff working it makes no sense to try something new.

Here could be your advertisement!

Posted

I already got everything working in 1.7.10. (2 block stuff, you should be able to change the branch on github to see it)

But now in 1.8 I have to change my texture rotation.

The problem is that minecraft crashes because something with my new blockstate property is not wrong.

Here could be your advertisement!

Posted

I still have this problem.

Whenever I try to launch the game I get the error that there are no properties defined in my blockstate file. I already checked my path and the names.

Has anyone an idea why this is happening?

 

EDIT: Could it be that I have to register this property somewhere at the client side?

Here could be your advertisement!

Posted

To your block class you need to add

protected BlockState createBlockState()
    {
        return new BlockState(this, new IProperty[]{FACING});
    }

as you haven't told Minecraft that there actually is a blockstate for the block but you are using it anyway.

Did you really need to know?

Posted

I already read your example mod (1-3) and tried to make my code as similar as just possible to yours. Was the first thing I did when I failed the first time.

 

EDIT: I register my blocks and the necessary client stuff in DimensionShiftBlocks. Please ignore the fact that everything related to my blockSimpleController is commented out.

https://github.com/Jacky2611/DimensionShiftCore/blob/master/src/main/java/net/dimensionshift/mod/DimensionShiftBlocks.java

Here could be your advertisement!

Posted
  On 1/25/2015 at 10:29 PM, Voltab said:

To your block class you need to add

protected BlockState createBlockState()
    {
        return new BlockState(this, new IProperty[]{FACING});
    }

as you haven't told Minecraft that there actually is a blockstate for the block but you are using it anyway.

Did you really need to know?

Posted
  On 1/26/2015 at 6:30 AM, Jacky2611 said:

I already read your example mod (1-3) and tried to make my code as similar as just possible to yours. Was the first thing I did when I failed the first time.

What Voltab said :)

 

-TGG

  • 2 years later...
Posted
  On 1/25/2015 at 10:29 PM, CoderAtParadise said:

To your block class you need to add

 

protected BlockState createBlockState()
    {
        return new BlockState(this, new IProperty[]{FACING});
    }
 

 

as you haven't told Minecraft that there actually is a blockstate for the block but you are using it anyway.

Expand  

My code has that, but still doesn't load the block states. Here is my github, you could make a pull request if you find the error https://github.com/bignose956/bignose956

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



×
×
  • Create New...

Important Information

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