MOD: Item Spawner [Download now]

Item Spawner mod

I created a mod that enable you to spawn almost any item or mob in game.
Requires RP Loader!
Requires Alpha 1 Release 14!

Showcase video:
This a little preview (outdated) .


Mod adds to campstand two new buttons with enable you to spawn : Spawner and Spawner2.Spawners can change in to most of items or mobs in game ,spawners in to furniture and nature ,spawners-2 in to bolts,toys and creatures.

After spawner changed into something else doesn’t use his popup menu that stays.


  • 1.1.2
  • Optimization


How to install :

  1. Download RP Loader
  2. Download mod
  3. Copy RP Loader to [your Stonehearth installation folder]\mods
  4. Unpack mod to [your Stonehearth installation folder]\mods(not \mods\too_many_items !!!)
  5. Run Stonehearth and enjoy mod :wink:

Planned features:

  • Special spawner for modders to spawn their mods items

  • More items nad mobs

Known bugs:

  • Icons in spawners sometimes change order

  • After spawner changes to something else popup menu stays


This is probubly one of the most awesome things ever. this will be amazing when the full game is out!


so, you basically just gave us “creative mode”… :question:

congratulations, i now love you marginally more than i do @Geoffers747:heartpulse: :wink:


Yes I did . I think it will be helpful for mod and alpha testing.


This is very cool and fun to use :smile:

Do you know how to make it generate a list of items for usage at runtime? and how were you planning on dealing with the potentially hundreds of items by full release? It should be possible to make a list of items at least, I know that the code can find a list of the factions so it should be feasible at least.


For now,no but i will find a way. The problem is items have no things like tags i will need to find way to filter them,also some items require special spawn atributs.

I think i will do a interface similar to that from workshop with categories.

1 Like

I might a shot at trying to get a list of items, I have some ideas. The interface idea seems sound.

1 Like

I would probably try reading the manifest’s entities section and work with a few white/blacklists, for example excluding all _proxy entities, while including only those within entities/construction, entities/furniture et cetera. That should get you the majority of all items.


I created a simple mod that create manifest.log file with list of all entities that are not _proxy ,it is quite messy code so i will need to clean it up but it work.
(This just for demonstration if you are not a moder don’t use it !)
Require RP loader

1 Like

Wooo! Now I want one of these for our test worlds! :smile:


Heh, not quite the most elegant reason but I can see where I have to add work ;). In the current repos version of RP I’ve added access to all mods that are recognized (i.e. all mods with a manifest) to be saved within rp.available_mods. This way, the manifests are already there for you (and you don’t need to dir). A few things, however (keep in mind - just tips!):

  • io.output() sets the output for everything. This means that RP would now log into your manifest.log too. It’s better to'manifest.log', 'w') and use the file handle returned by that to log your process (using a local print version similar to what you do). I really wish we had the loggers available to us, but alas. I might add something rp-ish to make this process easier.
  • The check for manifest.rp is going to fail for Stonehearth because it (obviously) isn’t using rp. Simply checking for manifest.radiant and manifest.radiant.entities should do the trick.
  • for key,value in pairs(requirement) do: pairs already gives you value (which is identical to requirement[key]. You don’t need to save it in another variable (s)
  • Splitting is not required. What you will need is the entity name (i.e. the key; “dining_table” for example would then resolve to “stonehearth:dining_table”, not any part of the path.

I’ll give an item spawner a shot. It will be nice to see if I can get the JS integration a bit further (and to mess around with commands).

I would do the exact same, however - modifying other’s code is a great way to learn a language (or concepts). So far I’ve been the one modifying however, I haven’t seen anyone doing this on my code… Feels a bit odd :smiley:

1 Like

I just did a quick “mod spotlight” of this. Very fun and promising, so keep it up and I will gladly try out later releases as well :blush: Hope you enjoy the video, I sure enjoyed the mod!

Of course, creds to @RepeatPan for the RP Loader.


Thanks for tips ,they are very useful for me . I just started programing lua ,i know only how to program in C# .

1 Like

Working On 2.0 version :smile:

Seed are not working :frowning: i was just playing with menus but check button stays :smiley:


i dont really think squeeeee! is sufficient, but its all i can muster right now (my head is pounding)…

cant wait to see more! :smile:

1 Like

How’d you enable that? Was it through a separate mod or within the stonehearth mod?

I should start poking around the files… I have some knowledge of Lua thanks to the ComputerCraft mod for Minecraft, although different and somewhat out of date most of the concepts still apply, Either way very lovely mod! If I could thumbs up more than once well… :boom:

the link for rp loader doesn’t bring you anywhere where you should be able to download it, and also the mod link doesn’t work

Both mods haven’t been maintained for ages. They’re not usable anymore.