For reference, here is the EDB entry for mines which shows how you use resources(scroll right):
Code:
building hinterland_mines
{
convert_to hinterland_castle_mines
levels mines mines+1
{
mines city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
{
convert_to 0
capability
{
mine_resource 4
}
material wooden
construction 2
cost 2000
settlement_min large_town
upgrades
{
mines+1
}
}
mines+1 city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and resource silver or resource gold or resource tin or resource iron or resource sulfur or resource marble or resource coal
{
convert_to 1
capability
{
mine_resource 7
}
material wooden
construction 3
cost 3500
settlement_min city
upgrades
{
}
}
}
plugins
{
}
}
I don't recall vanilla examples of hidden resources, but it's essentially the same thing except with hidden_ in front and you have to define it at the top of the file in this list:
Code:
hidden_resources sparta rome italy america atlantic explorers_guild swordsmiths_guild etc. etc. your_resource