Everything posted by dumplings in cutlet
-
[1.9.4]When you add a rotation options block model with a model disappears.
It seems to do everything right, but nothing works.
-
[1.9.4]When you add a rotation options block model with a model disappears.
I tried to record in the proxy init and preInit, but nothing happened, only just missing model in hand. public static void registerRender(Block block) { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); }
-
chicken bones left the modding?
I heard from direwolf20 that great chicken bones will not release not that true?
-
[1.9.4]When you add a rotation options block model with a model disappears.
I tried using ModelLoader method, but I could not call him. I tried to call him, but could not find where it should be called.
-
[1.9.4]When you add a rotation options block model with a model disappears.
When I made this way: Minecraft.getMinecraft().getRenderItem().setCustomModelResourceLocation().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); He became red highlight as an error: .setCustomModelResourceLocation()
-
[1.9.4]When you add a rotation options block model with a model disappears.
public static Block Head = new BlockHead(); public static void init() { GameRegistry.register(Head); } public static void initRender() { registerRender(Head); } public static void registerRender(Block block) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); }
-
[1.9.4]When you add a rotation options block model with a model disappears.
- [1.9.4]When you add a rotation options block model with a model disappears.
Unfortunately the unit still does not have a model. I have noticed that some methods look as outdated, and that's just in my class in grade stove cover those practices look normal.- [1.9.4]When you add a rotation options block model with a model disappears.
What's the worst thing that a simple model is displayed normally, but with turns not want , can json model can not rotate, no nonsense said full ...- [1.9.4]When you add a rotation options block model with a model disappears.
Block class public class BlockHead extends Block { public BlockHead() { super(Material.WOOD); setRegistryName("Head"); setUnlocalizedName("head"); setCreativeTab(DECreativeTab.DE_tabBlocks); GameRegistry.register(this); GameRegistry.register(new ItemBlock(this), this.getRegistryName()); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); } public boolean isOpaqueCube(IBlockState state) { return false; } public boolean isFullCube(IBlockState state) { return false; } public static final PropertyDirection FACING = BlockHorizontal.FACING; private static boolean keepInventory; public boolean canPlaceBlockAt(World worldIn, BlockPos pos) { return worldIn.getBlockState(pos).getBlock().isReplaceable(worldIn, pos) && worldIn.getBlockState(pos.down()).isSideSolid(worldIn, pos, EnumFacing.UP); } public IBlockState withRotation(IBlockState state, Rotation rot) { return state.withProperty(FACING, rot.rotate((EnumFacing)state.getValue(FACING))); } public IBlockState withMirror(IBlockState state, Mirror mirrorIn) { return state.withRotation(mirrorIn.toRotation((EnumFacing)state.getValue(FACING))); } public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); } public IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta)); } public int getMetaFromState(IBlockState state) { return ((EnumFacing)state.getValue(FACING)).getHorizontalIndex(); } protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); } } blockstates { "variants": { "facing=south": { "model": "DecorativeExpansion:Head" }, "facing=west": { "model": "DecorativeExpansion:Head", "y": 90 }, "facing=north": { "model": "DecorativeExpansion:Head", "y": 180 }, "facing=east": { "model": "DecorativeExpansion:Head", "y": 270 } } } Model { "parent": "block/block", "ambientocclusion": false, "textures": { "particle": "blocks/glass", "glass": "blocks/glass", "obsidian": "blocks/obsidian", "beacon": "blocks/beacon" }, "elements": [ { "__comment": "Glass shell", "from": [ 0, 0, 0 ], "to": [ 16, 16, 16 ], "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#glass" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#glass" }, "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#glass" }, "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#glass" }, "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#glass" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#glass" } } }, { "__comment": "Obsidian base", "from": [ 2, 0.1, 2 ], "to": [ 14, 3, 14 ], "faces": { "down": { "uv": [ 2, 2, 14, 14 ], "texture": "#obsidian" }, "up": { "uv": [ 2, 2, 14, 14 ], "texture": "#obsidian" }, "north": { "uv": [ 2, 13, 14, 16 ], "texture": "#obsidian" }, "south": { "uv": [ 2, 13, 14, 16 ], "texture": "#obsidian" }, "west": { "uv": [ 2, 13, 14, 16 ], "texture": "#obsidian" }, "east": { "uv": [ 2, 13, 14, 16 ], "texture": "#obsidian" } } }, { "__comment": "Inner beacon texture", "from": [ 3, 3, 3 ], "to": [ 13, 14, 13 ], "faces": { "down": { "uv": [ 3, 3, 13, 13 ], "texture": "#beacon" }, "up": { "uv": [ 3, 3, 13, 13 ], "texture": "#beacon" }, "north": { "uv": [ 3, 2, 13, 13 ], "texture": "#beacon" }, "south": { "uv": [ 3, 2, 13, 13 ], "texture": "#beacon" }, "west": { "uv": [ 3, 2, 13, 13 ], "texture": "#beacon" }, "east": { "uv": [ 3, 2, 13, 13 ], "texture": "#beacon" } } } ] }- [1.9.4]When you add a rotation options block model with a model disappears.
When I try to make a turn to the block with the model he lost model and texture. But when I remove the options, turn the unit rendered properly, the model and texture. - [1.9.4]When you add a rotation options block model with a model disappears.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.