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

So i was trying to update my stairs from 1.8 but seems something has changed in rendering. This is how they looks if placed upside

sAYz9GY.png

And this is my stairs code, i've tried adding the isOpaqueCube function but it seems to change nothing

package com.mineworld.blocks;

import com.mineworld.core.MWTabs;

import net.minecraft.block.Block;
import net.minecraft.block.BlockStairs;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;

public class BlockStairsMW extends BlockStairs{

public BlockStairsMW(Block block) {
	this(block.getDefaultState());
}

public BlockStairsMW(Block block, int meta) {
	this(block.getStateFromMeta(meta));
}


public BlockStairsMW(IBlockState state) {
	super(state);
	this.setHardness(3.0F);
	this.setResistance(5.0F);
	if(state.getBlock().getMaterial(state).equals(Material.wood))
		this.setStepSound(SoundType.WOOD);
	else
		this.setStepSound(SoundType.METAL);
	this.setCreativeTab(MWTabs.tabBlock);
	this.setLightOpacity(0);
}

@Override
public boolean isOpaqueCube(IBlockState state) {
	return false;
}
}

Don't blame me if i always ask for your help. I just want to learn to be better :)

  • Author

Doesn't work. Also slabs has the same problem

Wp61Fk1.png

Don't blame me if i always ask for your help. I just want to learn to be better :)

Hi

 

I haven't started with 1.9 yet; I would suggest you should look at the vanilla stairs and/or slabs Block to see how they're different from your block; and how they're different to stairs from vanilla 1.8

You should probably also look in the json model files for anything different.

 

-TGG

  • Author

Appearently from rendering side nothing has changed in  both json files and classes :/

Don't blame me if i always ask for your help. I just want to learn to be better :)

  • Author

So upgrading Forge to a newer version (when available) will sove the problem? Good to know :) And thanks for response

Don't blame me if i always ask for your help. I just want to learn to be better :)

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.