#Loot table dropping wrong amount of items

1 messages · Page 1 of 1 (latest)

tacit palm
#

Can you maybe send the entire loot table? :)

#

Loot table dropping wrong amount of items

rich sapphire
#

Can I embed code in discord?

shrewd edge
#

you can drag and drop entire files

rich sapphire
#

Oh fair enough, hold on a tick

tacit palm
#

you can also use
```json
{
"json":"code"
}
```
for

{
   "json":"code"
}
rich sapphire
#

What I am trying to do is up the top. Just the pool with set_count. All the rest is the original code.

tacit palm
#

if not that's fine too I'll help you once i am home later then :)

rich sapphire
#
{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:stick",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:alternatives",
          "children": [
            {
              "type": "minecraft:item",
              "name": "minecraft:dead_bush",
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": 1,
                  "add": false
                }
              ],
              "conditions": [
                {
                  "condition": "minecraft:match_tool",
                  "predicate": {
                    "tag": "forge:shears"
                  }
                }
              ]
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:block_state_property",
          "block": "environmental:tall_dead_bush",
          "properties": {
            "half": "upper"
          }
        },
        {
          "condition": "minecraft:location_check",
          "offsetY": -1,
          "predicate": {
            "block": {
              "blocks": [
                "environmental:tall_dead_bush"
              ],
              "state": {
                "half": "lower"
              }
            }
          }
        }
      ]
    }
  ]
}
#

Did that work?

#

P.S I have no idea what I am doing... Brand new and learning as I'm going. I've started using misode loot table generator for reliability but I don't know how to resolve things when they go wrong. Like now.

tacit palm
#

okay lemme see hmm

#

no idea why that wouldn't work, sorry

#

lemme try in game

#

oh hmmm

#

is it possible that breaking a tall_dead_bush breaks both parts of it

#

thus dropping twice the intended amount

rich sapphire
#

but wouldn't 2 drop 4 and 1 drop 2

#

Just confused as to what is causing it to drop 6

#

Although I thought that could be happening as well which is why I tried setting it to 1. But I got 3 and I just got even more confused.

tacit palm
#

hmmm yea that's defenitely weird

#

probably more a problem on the mods side than on the datapack here tho