Help me with "mixintypes" remove


#1

I’m working in a new kingdom and this new update bugged then with the addition of the magnificent_beard trait, because my guys don’t have beards in their customization. Easy fix, I made this:

{
	"traits":{
		"mixintypes":{
			"stonehearth:traits:magnificent_beard": "remove"
		}
	}
}

It worked as expected.
I then decided to also remove the jobs traits, as they will not be used in this kingdom. Changing the file to this:

{
	"groups": {
		"mixintypes":{
			"passion_jobs": "remove"
		}
	},
	"traits":{
		"mixintypes":{
			"stonehearth:traits:magnificent_beard": "remove"
		}
	}
}

But that mixintypes to remove the passion jobs is not working. They still can have those traits.


#2

Did you try removing those from the “excludes” section of heart of a crafter too?


#3

I tested with this, but didn’t worked.

{
	"groups": {
		"mixintypes":{
			"passion_jobs": "remove"
		}
	},
	"traits":{
		"mixintypes":{
			"stonehearth:traits:magnificent_beard": "remove",
			"stonehearth:traits:heart_of_a_crafter": "remove"
		}
	}
}

#4

I tested with:

{
	"groups": {
		"mixintypes":{
			"passion_jobs": "remove"
		}
	},
	"traits": {
		"stonehearth:traits:heart_of_a_crafter": {
			"mixintypes":{
         			"excludes": "remove"
			}
      		}
	}
}

And I think that it worked.


#5

Oh, I just noticed something.
I’m doing this in the kingdom manifest (loaded when you select it, like the Rayya’s)

When I add my mixin to the main mod manifest it works. (But I can’t do this, else it erases the traits of all kingdoms)


#6

Ah yeah. Then it might be like all those other cases you reported that mixins don’t work correctly for hotloaded manifests :confused:


#7

That is ok. I hope the team can fix it later. For now, I can simple ignore it as the mod is nowhere near to finish. For a drastic solution, I guess I can override it.


#8

bit of thread necro but:
does this also mean i could us mixins to remove default buildable items for a custom race?
for instance

“iron_mail”: {
“recipe”: “remove” }

or “iron_mail”: { remove }

from a blacksmiths recipes.json?


#9

Yes, that is how Rayya removes the winter outfit from the weaver recipe list.
https://stonehearth.github.io/modding_guide/modding_guide/essentials/removing/index.html


#10

thanks (and now i know where to look for an example! x2 awsomeness multiplier bruno :smiley: )


#11

it works but im confused: why is it for removal you give the item name…while for adding you give the recipe name. (wtf…)


#12

The remove does not remove the actual item. It removes the piece of json that was going to add the item. So that is the name that you need to use, the name of the json section you are removing.


#13

… i must admit i read the words but did not understood what you said bruno :sweat_smile: sorry