pinata
Objects or mobs with this component will drop items when taking damage.
Vars | |
candy | A list of "candy" items that can be dropped when taking damage |
---|---|
death_drop | Number of "candy" items dropped when the structure is destroyed/mob is killed, set to 0 if none. drop_chance and minimum damage are not applied. |
drop_chance | What is the likelihood some "candy" should drop when attacked. |
minimum_damage | How much damage does an attack need to do to have a chance to drop "candy" |
Var Details
candy
A list of "candy" items that can be dropped when taking damage
death_drop
Number of "candy" items dropped when the structure is destroyed/mob is killed, set to 0 if none. drop_chance and minimum damage are not applied.
drop_chance
What is the likelihood some "candy" should drop when attacked.
minimum_damage
How much damage does an attack need to do to have a chance to drop "candy"