I have a mod that makes trees drop a second item when harvested. However, doing this…
"stonehearth:resource_node": {
"resource": "stonehearth:resources:wood:oak_log",
"resource": "Flora_Galore:resources:leaves:oak_leaves",
"durability": 6
},
makes it so that the trees only drop leaves, and not wood. I tried making it using the loot table from the stone golem, and it works in the form of dropping all resources at the end of the tree, but the hearthlings won’t pick them up automatically, they have to be ordered using the loot tool. @BrunoSupremo have you done anything like this in your modding?
1 Like
Yes, I have. (It is not online yet)
This is from one of my new trees:
"stonehearth:resource_node": {
"resource": "stonehearth:resources:wood:oak_log",
"durability": 5,
"resource_loot_table": {
"entries": {
"coconut": {
"items": {
"coconut": {
"uri": "archipelago_biome:food:coconut:coconut_basket",
"weight": 1
}
}
}
}
}
},
The durability is how many times they will axe the tree, and each time it drops the resources. You can add an empty item with a high weight if you want a chance to not drop anything. (Similar to the ores mechanics)
3 Likes
Cool, I didn’t think of combining the first bit and a loot table. Thanks
How would I add another item with weight so the leaves don’t always drop but the log do? I tried adding another entry but that didn’t work.
I didn’t tested, but I guess something like this (from poyo):
"resource_loot_table": {
"entries": {
"pelt": {
"items": {
"none": {
"uri": "",
"weight": 1
},
"pelt": {
"uri": "stonehearth:resources:feathers:poyo_feathers",
"weight": 1
}
}
}
}
}
1 Like