#Loot table dropping wrong amount of items
1 messages · Page 1 of 1 (latest)
Can I embed code in discord?
you can drag and drop entire files
Oh fair enough, hold on a tick
you can also use
```json
{
"json":"code"
}
```
for
{
"json":"code"
}
What I am trying to do is up the top. Just the pool with set_count. All the rest is the original code.
can you maybe send it as text like this, i can't open the file because i am on mobile rn
if not that's fine too I'll help you once i am home later then :)
{
"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.
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