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

I am trying to make the belgium flag as 3D model but when i place it it doesn't render the blocks behind the flag, here's is my flag's code:

package com.Egietje.degeweldigemod.init;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class BelgiumFlag extends Block {

public BelgiumFlag() {
	super(Material.CLOTH);
}

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

@Override
public BlockRenderLayer getBlockLayer() {
	return BlockRenderLayer.CUTOUT;
}
}

And also: isOpaqueCube can't be overridden with @Override without the IBlockState state

im really new to forge but i know the game alot and any blockmodel that needs to show the sides of other blocks such as glass, slabs, stairs, torches and such need to be transperent blocks

a block that is not transperent will not render the sides of the blocks beside it to help performence

i think your first step should be looking how to make a block transperent...

Doing stuff n' things

Just override the isFullyOpaque method:

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

 

For my mod it works

Guest
This topic is now closed to further replies.

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.