Jump to content

Recommended Posts

Posted
public class RubyBlock extends Block {

    public RubyBlock() {
        super(Properties.create(Material.IRON)
                .hardnessAndResistance(6.5f, 6.0f)
                .sound(SoundType.METAL)
                .harvestLevel(2)
                .harvestTool(ToolType.PICKAXE)

        );
    }
}

this is my properties for block

 

{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "mcthinks:ruby_block"
        }
      ]
    }
  ]
}

this is my loot table for block

 

my block should only drop of it's a pickaxe and made of iron

 

but he dropped in the test, even if it was anything a although it was not made of iron

 

I watch tutorials and proceeded step by step, but it still didn't work for me

 

my forge is forge-1.16.3-34.1.0-mdk

Posted (edited)
58 minutes ago, Beethoven92 said:

You also need to chain the setRequiresTool() method when creating the block properties in your RubyBlock class

but setRequiresTool() "Cannot resolve method" it say and it's error

Edited by Gabryelcz

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.