Don't Starve

Don't Starve

Customize your wilderness adventure!
Create and upload new mods to add new characters, items, and game mechanics to Don't Starve. Explore new ways to survive in the wilderness, or create new challenges for yourself and others. Click here to learn more and get started!
Yisus Senpai 31 Mar, 2021 @ 12:49am
Help with finishing a simple structure mod
Hello to ya'all, after several hours figuring why is not a mod for craftable killer beehives for regular dont starve, I got the idea to do it miself...

It worked!

At least almost all what i intended worked, I am now able to craft killer beehives, but not in the way in intended.

I got two issues:

The first one is that the icon for the hive is not displayed correctly (this issue isnt important for me), it just gets the icon from the item that is above of him.

The second and real problem is when i craft the beehive, it is placed imediatelly where i crafted it. It doesnt allows me to choose where to put it like a normal structure. Im "noob" programmer on this game, and i mean i just started about one hour ago.

That would be nice if someone more knowledge on thi could help to solve this problems. thanks ya'all.

PD: Here is the code :P



STRINGS = GLOBAL.STRINGS
RECIPETABS = GLOBAL.RECIPETABS
Recipe = GLOBAL.Recipe
Ingredient = GLOBAL.Ingredient
TECH = GLOBAL.TECH

STRINGS.RECIPE_DESC.WASPHIVE = "Protect a zone from even yourself"


Recipe("wasphive", { Ingredient("killerbee", 4, Ingredient("honey", 10), Ingredient("honeycomb", 3) }, RECIPETABS.TOWN, TECH.SCIENCE_ONE )