SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

"TerrainFeature Broken" / "TerrainFeature Removed" event

kd8lvt opened this issue ยท 2 comments

commented

Emitted whenever a TerrainFeature (like debris, trees, bushes, etc) are broken. Args would include the feature broken, as well as with what tool (you can break the little bush debris with all the tools except fishing rod) This would allow for mods to add new skills, like logging. Could also be cancellable to prevent vanilla XP gain (?). Just a quick little idea that popped into my head :) This is as far as I have thought into it.

commented

@kd8lvt You can use the CollectionChanged events on the terrainFeatures to get this sort of information.

commented

Closed per @LeonBlade's comment.