# Modding in new scripts and functions

**URL:** <https://discourse.stonehearth.net/t/modding-in-new-scripts-and-functions/36254>\
**Category:** Scripting & Code\
**Created:** [June 23, 2018, 2:14pm UTC](https://discourse.stonehearth.net/t/modding-in-new-scripts-and-functions/36254 "2018-06-23T14:14:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amnaa](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/amnaa/32/60874_2.png) [@Amnaa](https://discourse.stonehearth.net/u/Amnaa)\
**Post date:** [June 23, 2018, 2:14pm UTC](https://discourse.stonehearth.net/t/modding-in-new-scripts-and-functions/36254/1 "2018-06-23T14:14:18Z")

</div>

Hi!

I’m thinking about adding a new script to StoneHearth to essentially change models on command. From what I understand, I would need to create a new script, a new command, and a new function.

Since I’m maybe just a little tad above being a noob when it comes to code, I don’t know if I’m even capable of that 🤔 What would it take to try and do something like that? Is it even possible?

---

<div class="post-metadata">

**Author:** ![Amnaa](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/amnaa/32/60874_2.png) [@Amnaa](https://discourse.stonehearth.net/u/Amnaa)\
**Post date:** [June 24, 2018, 6:01am UTC](https://discourse.stonehearth.net/t/modding-in-new-scripts-and-functions/36254/2 "2018-06-24T06:01:08Z")

</div>

Or, I was trying to pick apart the renewable resource component. Trying to get rid of the resource and timer and only keeping the function that switches models. I always break it though and the thing does not get marked for harvest in game.
