Harvest an pile get its resources in a certain order

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):

"stonehearth:renewable_resource_node": {
   "resource": "silent_woods:resources:biolumin_essence:essence",
   "category": "harvest",
   "renewal_time": "22h+2h",
   "unripe_description": "i18n(silent_woods:entities.nightdew.unripe_description)",
   "harvest_overlay_effect": "stonehearth:effects:harvest_plant_overlay_effect",
   "resource_loot_table": {
      "entries": {
         "first_entry": {
            "num_rolls": {
               "min": 1,
               "max": 1
            },
            "items": {
               "an_extra_item": {
                  "uri": "stonehearth:resources:herb:brightbell",
                  "weight": 1
               }
            }
         },
         "second_entry": {
            "num_rolls": {
               "min": 3,
               "max": 3
            },
            "items": {
               "seed": {
                  "uri": "silentwood:plants:nightdew:seed",
                  "weight": 1
               }
            }
         }
      }
   }
}
1 Like

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 :stuck_out_tongue: 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 :frowning:

1 Like

You’re right, that was with every chop :thinking:
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.

ok I’ll experiment on my side and I’ll tell you if it worked

after what try I can not do like BrunoSupremo
said. where I was wrong, I can not find

when I do it’s only giving me one of each. and not 18 of one and 1 of the other

"stonehearth:resource_node": {
     "task_group_name": "stonehearth:task_group:harvest",
     "resource": "stonehearth:refined:cloth_bolt",
     "harvest_overlay_effect": "stonehearth:effects:mine_overlay_effect",
     "harvester_effect": "mine",
     "description": "chop_tree",
     "durability": 18
	 },
"stonehearth:loot_drops": {
     "entries": {
        "default": {
           "num_rolls": {
              "min": 1,
              "max": 1
           },
           "items": {
              "a_container": {
                 "uri": "age_of_giant-piles:container:a_container",
                 "weight": 1
              }
           }
        }
     }
  }