Jump to content

Problem with Crop Drops


Just A Normal User

Recommended Posts

Hello Comunity,

I have a problem with Crop block drops, everything works exept for the loot (other block loots work for me). Here is the code of the .json file for the block drop from the Crop.

 

The files named is "block_crop_strawberry.json", that is the name of the Crop itsself, and there is an item for the crop, called item_crop_strawberry.

 

Thanks A lot for your help

 

{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1.0,
      "entries": [
        {
          "type": "minecraft:alternatives",
          "children": [
            {
              "type": "minecraft:item",
              "conditions": [
                {
                  "condition": "minecraft:block_state_property",
                  "block": "neworesmod:block_crop_strawberry",
                  "properties": {
                    "age": "7"
                  }
                }
              ],
              "name": "neworesmod:block_crop_strawberry"
            },
            {
              "type": "minecraft:item",
              "name": "neworesmod:item_crop_strawberry"
            }
          ]
        }
      ]
    },
    {
      "rolls": 1.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:apply_bonus",
              "enchantment": "minecraft:fortune",
              "formula": "minecraft:binomial_with_bonus_count",
              "parameters": {
                "extra": 3,
                "probability": 0.5714286
              }
            }
          ],
          "name": "neworesmod:item_crop_strawberry"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:block_state_property",
          "block": "neworesmod:block_crop_strawberry",
          "properties": {
            "age": "7"
          }
        }
      ]
    }
  ],
  "functions": [
    {
      "function": "minecraft:explosion_decay"
    }
  ]
}

help2.png.76c97add2bf60fe7a3f794ee65c59fc7.png Help1.PNG.52f2cd4f207fc1d9a7182cf1f9368b08.PNG

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.