Jump to content

Recommended Posts

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 :)

Posted

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

Posted

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 :)

Posted

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

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