Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • Author
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?

  • Author

I've resolved the issue. Instead I'm just individually setting Custom State Mappers right before each block is registered. Thanks for your help though.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.