# Pawel's Mod Corner: Autoharvest, Biome Crops, LostEms & others

**URL:** <https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504>\
**Category:** Current Mods\
**Created:** [November 2, 2016, 6:33pm UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504 "2016-11-02T18:33:49Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Auryanna](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@Auryanna](https://discourse.stonehearth.net/u/Auryanna)\
**Post date:** [October 15, 2017, 4:51pm UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/87 "2017-10-15T16:51:20Z")

</div>

Awesome thanks I’ll DL it & try it 🙂

---

<div class="post-metadata">

**Author:** ![Auryanna](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@Auryanna](https://discourse.stonehearth.net/u/Auryanna)\
**Post date:** [October 16, 2017, 11:40am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/88 "2017-10-16T11:40:53Z")

</div>

Now I’m getting this error for the pine saplings it seems:

release-763 (x64)[M]  
std::exception: '‘finetems’ has no alias named ‘trees:pine:sapling’ in the manifest.'  
stack traceback:  
[C]: in function 'create\_entity’  
radiant/modules/entities.lua:24: in function 'create\_entity’  
stonehearth/ai/actions/harvest\_crop\_adjacent.lua:98: in function '\_harvest\_one\_time’  
stonehearth/ai/actions/harvest\_crop\_adjacent.lua:136: in function \<stonehearth/ai/actions/harvest\_crop\_adjacent.lua:127\>  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: ?  
[C]: in function ‘run’  
…tonehearth/services/server/tasks/run\_task\_action.lua:143: in function \<…tonehearth/services/server/tasks/run\_task\_action.lua:141\>  
[C]: ?  
…  
[C]: in function 'run’  
stonehearth/components/ai/ai\_component.lua:607: in function \<stonehearth/components/ai/ai\_component.lua:591\>  
[C]: in function 'xpcall’  
radiant/modules/common.lua:265: in function 'xpcall’  
stonehearth/components/ai/ai\_component.lua:591: in function '\_thread\_main’  
stonehearth/services/server/threads/thread.lua:273: in function \<stonehearth/services/server/threads/thread.lua:270\>  
[C]: in function 'xpcall’  
radiant/modules/common.lua:265: in function 'xpcall’  
stonehearth/services/server/threads/thread.lua:270: in function 'f’  
radiant/lib/env.lua:15: in function \<radiant/lib/env.lua:14\>

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 16, 2017, 2:15pm UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/89 "2017-10-16T14:15:31Z")

</div>

Whoops, that was a .json error. Fixed in 1.1c.

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 8:07am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/90 "2017-10-18T08:07:35Z")

</div>

sorry to bother you again, I just noticed, the “wooden archway” now works with the finetems mod, but for som reason the “robust door” form the decoration mod now does NOT have the margin for the walls removed

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 8:39am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/91 "2017-10-18T08:39:40Z")

</div>

The only mod supported now is the doorways mod. Doors and windows from other mods will keep the margins. I decided to do it that way because some creators may actually want to keep the margins. If they want to remove them then all they have to do is to add margin table with all margins set to 0 and they don’t even need the API to do so. Alternatively, you can make a mod with a manifest only, mixing in /pawel\_API/mixins/fixture/margin\_removal.json into ghost.json files.

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 8:40am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/92 "2017-10-18T08:40:56Z")

</div>

How do I add the marign table? I just copy and paste the “set margins” doc into the “Settlement Decor” mod?

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 8:44am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/93 "2017-10-18T08:44:40Z")

</div>

Your manifest.json should look like this:

```auto
{
   "info" : {
      "name" : "my_margin_removal_mod", 
      "version" : 3
   },
   "mixintos" : {
      "/mod_name/entities/construction/door_name/door_name_ghost.json": "/pawel_API/mixins/fixture/margin_removal.json",
      "/mod_name/entities/construction/door_name/door_name_ghost.json": "/pawel_API/mixins/fixture/margin_removal.json",
      "/mod_name/entities/construction/door_name/door_name_ghost.json": "/pawel_API/mixins/fixture/margin_removal.json"
   }
}

```

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 8:50am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/94 "2017-10-18T08:50:04Z")

</div>

I have no idea what I am doing.

I made my own mod and copied and pasted what you typed, and I cannto activate it, it keeps telling me invalid manifest

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 8:54am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/95 "2017-10-18T08:54:53Z")

</div>

is there any way of setting it so it does this to ALL contruction items? or will I have to make this for EVERY item for EVERY mod I install?

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 9:11am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/96 "2017-10-18T09:11:04Z")

</div>

For every item your mods add.

You have to put the manifest.json in a folder named my\_margin\_removal\_mod. When mod name in the manifest is different from the folder name the game refuses to load a mod.

I see you like having fun with mods, I think you should learn some modding basics so you can at least fix some compatibility issues yourself when you play with many mods at once. You don’t have to learn the advanced stuff, coding the manifest and adding entities should be enough for you. It also makes interpreting the error logs easier. It took me one evening to learn the basics, Stonehearth is really modder-friendly.

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 9:12am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/97 "2017-10-18T09:12:40Z")

</div>

I actually dont. I am getting very frustrated at this Manifest file.

I just want to remove all margins, like your older Finetems mod allowed me to. I loved making mini houses that allowed me to put windows next to each other

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 9:13am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/98 "2017-10-18T09:13:17Z")

</div>

and that is exactly what I did. it keeps telling me invalid manifest

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 9:14am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/99 "2017-10-18T09:14:47Z")

</div>

Windows need to have the margin removal applied directly anyway as they don’t use a mixin file like doors do.

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 9:14am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/100 "2017-10-18T09:14:49Z")

</div>

is there a way I can set it up so it autimatically removes margins from all building items in the game? a rpevious version of finetems mod allowed me to do just taht, and I loved it.

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 9:15am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/101 "2017-10-18T09:15:55Z")

</div>

Well, technically there is a simple Lua way to do that, I can wrap it up for you in a few minutes. I don’t implement it in the API because it is a very invasive approach, but it will work.

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 9:16am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/102 "2017-10-18T09:16:50Z")

</div>

thank you so much.

I had this little setup and everything in my houses. It would be a door right next to a window, it looks so cute.

Ill send you a picture of it once I can re-make it with the new API option

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 9:17am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/103 "2017-10-18T09:17:47Z")

</div>

its nice to have as an option, maybe just keep it separate form the regular mod? That way, we can have the best of both worlds

Thanks ever so much for this, you are amazing.

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 10:30am UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/104 "2017-10-18T10:30:18Z")

</div>

So this is way more complicated than I thought. It will take some more time to do that properly.

---

<div class="post-metadata">

**Author:** ![TheRedBaron91](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theredbaron91/32/68363_2.png) [@TheRedBaron91](https://discourse.stonehearth.net/u/TheRedBaron91)\
**Post date:** [October 18, 2017, 3:12pm UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/105 "2017-10-18T15:12:48Z")

</div>

roger that.

Just wondering, what did you do before that allowed you to do this? I remember being able to do so ins the last version of “finetems” before “Pawel API” was introduced.

---

<div class="post-metadata">

**Author:** ![Pawel\_Malecki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/pawel_malecki/32/52928_2.png) [@Pawel\_Malecki](https://discourse.stonehearth.net/u/Pawel_Malecki)\
**Post date:** [October 18, 2017, 4:19pm UTC](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504/106 "2017-10-18T16:19:41Z")

</div>

Windows had the fix applied per item, doors had the basic door mixin in stonehearth.smod altered but it causes an error so I changed that.

[Previous page](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504.md?page=4)

[Next page](https://discourse.stonehearth.net/t/pawels-mod-corner-autoharvest-biome-crops-lostems-others/26504.md?page=6)
