Jump to content

[1.16.4] Loot Table not dropping custom block


Recommended Posts

Posted

Hello everyone, i'm extremely new to Java and minecraft modding, i've been following a tutorials steps to get into it but for some reason, when i mine the custom block, it won't drop anything unless i set it to drop an already existing minecraft block.
Also, for some reason my custom block doesn't have a texture when it's in my hand or is dropped, only when placed, i don't know if this has anything to do with the drop problem, here's my .json code: 

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

I don't know if i should look for the problem here or somewhere else.
And again, i'm really new to this so please don't bully me, i just couldn't find a solution anywhere.

Posted
2 hours ago, NeX40 said:

Also, for some reason my custom block doesn't have a texture when it's in my hand or is dropped, only when placed

you need to show more code to resolve this.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Here are the other .json files for the block: 

//assets.testmod.models.block
	{
  "parent": "block/cube_all",
  "textures": {
    "all": "testmod:blocks/custom_block"
  }
}

//assets.testmod.models.item
{
  "parent": "testmod:block/custom_block"
}

 

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.