Jump to content

Material.IRON and other crash! 1.12.2, 2705.


MairwunNx

Recommended Posts

Hello dudes, help me please, I'm doing the mod for the first time on the Forge API, and I've made a block, normal, when you run the project with Intellij Idea, the maincraft opens and Forge quietly loads the block. But when I copy for Java format and transfer the mod to the mods folder, I have it crashing.

 

package com.mairwunnx.mnxemeralds.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;

public class emeraldhardblock extends Block
{
    public emeraldhardblock(String name)
    {
        super(Material.IRON);
        this.setRegistryName(name);
        this.setUnlocalizedName(name);
        this.blockHardness = 13.5F;
        this.blockResistance = 20.0F;
        this.blockSoundType = SoundType.METAL;
    }

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

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

 

But is caused to crash, please, help me! 

 

crash log: 

crash-2018-08-01_23.17.39-client.txt

Edited by MairwunNx
Link to comment
Share on other sites

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.