I want to know if it is possible that by harvesting an object I can define in which order the items will appear.
For example I want to harvest a stone pile and the first 5 resources that will fall from is stone and the last 1 log.
-----FR-----
j’aimerais savoir si c’est possible quand on récolter un tas de bois qu’on puisse définir l’ordre dans lequel les ressources son extrait.
Par exemple : j’ai un tas de bois et j’aimerais que les 5 premiers items, soient extrait soit du bois mais que le 6e soit du fer et le 7e de l’or. Après cela le tas de bois disparaît, comme pour les arbres.
I think the closest you can get to this is to add both a resource_node and a loot_drops components. The resource node will be the first items to drop while the worker is harvesting it, and when it finishes, the lootdrop will drop the other item.
I think you can also use a “resource_loot_table” inside the resource_node / renewable_resource_node component (which would be just like any other Loot table):
That however will make those loots drop alongside/randomly with the resource node collection, no? For example, for trees, every chop has also a chance to drop a seed.
Bruno’s suggestion is interesting because it allows the item to follow some sort of order although not really complex (just a certain item after the resources themselves have been collected and the item disappears)
Since it is basically loot from death/destruction, however, it would only work with non renewable resources.
For the very specific purpose of the OP - several different resources in a specific order - I’m afraid it would require a new component
You’re right, that was with every chop
It can be done that the chance is 100% but that would drop them all at the same time, not every resource in a specific order.