I have a few questions regarding having more than one mod.
Overall there will be 4 models.
Beehive without Honey (beehive_empty.qb) Craftable by Carpenter
Beehive with Honey. (beehive.qb)
Tree with Beehive. (beehive_tree.qb)
Honey Pot (honey_pot.qb)
The Beehive will need to be created by the carpenter. When certain parameters are met (Beehive Placed, Flowers near Beehive, time between 1 - 5 minutes.) Bee’s will occupy the beehive and start creating honey. I would like the beehive to function just like the berry bushes.
I’ve started having a go at how the files will look. Just let me know if I’m doing something wrong.
{
"info": {
"name": "beehive",
"version": 1
},
"aliases": {
"beehive": "file(entities/beehive/beehive.json)",
"honey_pot": "file(entities/beehive/honey_pot.json)",
"beehive_empty": "file(entities/beehive/beehive_empty.json)",
"beehive_tree": "file(entities/beehive/beehive_tree.json)"
},
"mixintos": {
"/stonehearth/jobs/carpenter/recipes/recipes.json": [
"file(mixins/carpenter_recipes.json)"
]
}
}
I’m guessing to replace the beehive_empty model with beehive model I will need to put that into the beehive_empty.json file. I’ve no idea how to do that, could anyone give me some pointers on how to do that?
I know nobody knows anything about tree’s yet, so that model can stay on the sidelines for now.
EDIT: Found this in the stonehearth folder.
{
"type": "entity",
"components": {
"model_variants": {
"default": {
"models": [
"file(berry_bush.qb)"
]
},
"depleted": {
"models": [
"file(berry_bush_empty.qb)"
]
}
},
"render_info" : {
"scale" : 0.15
},
"mob" : {
"model_origin" : { "x": -0.075, "y": 0, "z": 0.075 },
"region_origin" : { "x": 0.5, "y": 0, "z": 0.5 }
},
"region_collision_shape" : {
"region": [
{
"min" : { "x" : -1, "y" : 0, "z" : -1 },
"max" : { "x" : 2, "y" : 2, "z" : 2 }
}
]
},
"destination" : {
"region" : [
{
"min" : { "x" : -1, "y" : 0, "z" : -1 },
"max" : { "x" : 2, "y" : 1, "z" : 2 }
}
]
},
"unit_info": {
"name": "Berry Bush",
"description": "Harvestable for a meager food supply."
},
"stonehearth:renewable_resource_node": {
"task_group_name" : "stonehearth:task_group:harvest",
"resource" : "stonehearth:food:berries:berry_basket",
"renewal_time" : "22h",
"harvest_command" : "harvest_berries",
"unripe_description" : "Not yet ripe for harvest.",
"harvest_overlay_effect" : "/stonehearth/data/effects/harvest_plant_overlay_effect"
}
}
}
If I change the berry bush info to mine it should work? I don’t need the render info as I don’t want to scale the object.