Jump to content

[1.8.9] [Solved] Ignoring Json Properties for Multiple Blocks


Recommended Posts

Below is what I've been doing in order to remove properties I don't use in my Blockstates file for a door I have. I'm trying to do this with a block I'm testing that's a direct imitation of redstone, as I'm trying to copy the way it connects to itself. Only problem I'm facing right now is that I'm not too keen on how the StateMaps work, and if I try to ignore any properties after the first thing I try to ignore they aren't ignored. For example, my door works fine if it's line is put first, but when I put my imitation redstone "glowstone_trail" first the door does not render correctly. 


public static void registerCustomStateMaps() {
		StateMap.Builder cSM = new StateMap.Builder();
		ModelLoader.setCustomStateMapper(SeBlocks.glowstone_trail, (cSM).ignore(new IProperty[] {BlockGlowstone_Trail.POWER}).build());
		ModelLoader.setCustomStateMapper(SeBlocks.unbreakable_door, (cSM).ignore(new IProperty[] {BlockUnbreakable_Door.POWERED}).build());


Edited by DanielDawn
Link to comment
Share on other sites

public static void registerCustomStateMaps() {
		ModelLoader.setCustomStateMapper(SeBlocks.glowstone_trail, new StateMap.Builder().ignore(new IProperty[] {BlockGlowstone_Trail.POWER}).build());
		ModelLoader.setCustomStateMapper(SeBlocks.unbreakable_door, new StateMap.Builder().ignore(new IProperty[] {BlockUnbreakable_Door.POWERED}).build());

If I create a new instance neither of them work. How can I get both of these blocks to have ignored properties?

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.

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.

  • Create New...

Important Information

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