Second Life Food

admin 11/23/2021

One of the ways you make money in Second Life is to sell pet food. Without food, your quails will die. As you feed the quail, they breed and make more pets that can be sold. Yet each pet quail still needs food, and they have to get it from you. Keep food in covered containers. Keep cooking and eating utensils clean. Throw away any food that has come into contact with contaminated flood water. Throw away any food that has been at room temperature for two hours or more. Throw away any food that has an unusual odor, color or texture. Use ready-to-feed formula.

This is Part 1 - Making a food bowl for a breedable pet in Second Life.

Previous: Making a breedable pet in Second Life

This first lesson will show you how to make a set of basic pet food bowls for your breedable XS Pet quail.

One of the ways you make money in Second Life is to sell pet food. Without food, your quails will die. As you feed the quail, they breed and make more pets that can be sold. Yet each pet quail still needs food, and they have to get it from you. This pet food bowl will have 168 units of food in it. As the food is used, a pie-shaped wedge appears in the inner part of the food bowl:

Pie shaped food bowl ( untextured ) with 10% of the food eaten

Step 1 - Make a prim

Create a prim, and in the object tab, set the Building Block Type to Sculpted. Right-click and save this sculpted bowl texture to your hard disk.

Upload this texture to Second Life and drag it onto the sculpted texture window, or click the texture and then browse to the texture that you uploaded. A bowl shape will appear.

Click the button for 'Inside-Out'.

In this photo, I colored the bowl blue.

Now make a cylinder prim:

Right-click and save this food texture to your hard disk. Upload this texture to Second Life and set the texture on this prim by browsing to the texture that you uploaded.

Position and size the two prims so that they make up a food bowl and food. In my food bowl, I used the texture properties to add bumpiness of bricks and a low shine on the bowl, and I also added a steel texture with some blue coloring to the bowl to make it pop and have some roughness.

This is the completed food bowl:

Edit the two pieces of the bowl and select the food bowl last. Link them together with Ctrl + L.

Now you can add the food animation script to the food prim. We will add the scripts in the last step.

You can also make this bowl another shape:

I decided to make this one look like a can that the birds have discovered and are eating from.

It is made from two prims, just like before, only this time they are both cylinders. The bowl has a hollow so that the rim will peek over it:


Here is the label for the outer bowl:

Second Life Food

I used a round cylinder instead of a sculpt, with a hollow to allow the food cylinder to show as if the can was left out and the birds have discovered it.

Food Bowl Script

Put the food bowl animation script in the food prim, and then put the food bowl script in the pan.

Be sure to change the string SECRET_PASSWORD = 'top secret'; to something else!

You can also edit the xs_foodbowl script and change the FOOD_TYPE to 1. Type 0 is normal food. Type 1 will make your pet glow when it is eaten.

If you are using the original code, be sure to change the key YOUR_UUID = '00000000-0000-0000-0000-000000000000'; to your avatar key. If you are using my modified scripts, you can skip this step.

Open both Food Bowl scripts and change UNITS_OF_FOOD to equal how many units the food bowl shoukd contain before it is empty. 168 is the default, but you can set any amount.

Food Food Bowl script


When you reset the food bowl, you should see it count up to a full bowl. When you (and only you) reset the food bowl, the food is filled in. The food bowl is ready to sell after it is full. You really should test this after you finish the tutorial with an alt or a trusted friend.

When you touch the food bowl, you should see it show the units of food in hovertest

This short video shows what happens when you reset the script.


Be sure to make the food bowl Non-Copy and No-Mod! Make the scripts no copy and no mod, too. Always make these permission changes while the bowl is in-world, and never in inventory. If you change permissions in inventory, they will not take effect until after they are rezzed by your buyer. So the copy/mod/transfer switches on the one they purchased will still be at the default permissions, and they have unlimited food bowls.

Second Life Food

Next - Part 2 - Making a bird homing post

According to the Food and Agriculture Organisation of the United Nations (FAO), a third of the world’s food output is lost or wasted between the time it is produced and the time it is consumed.

This statistic is all the more alarming given that agriculture and food are major industries in terms of energy consumption, environmental impacts (CO2 emissions, pesticide use, etc.) and health issues. Food waste is also a social problem: while four million people in France cope with food insecurity and have to rely on food banks, more than 2 billion euros’ worth of food is thrown away each year by retailers.

In economic terms, according to a study conducted for Ademe (the French environment and energy management agency), the losses related to food waste in France represent an economic value of 16 billion euros – a figure equal to a third of the amount spent servicing the national debt.

Regulatory framework incentives

The waste produced by our industrial food system constitutes a major challenge, one that national and supra-national decision-makers need to address.

At the international level, the fight against food waste can play a major role in achieving the UN’s sustainable development goals. The European Union is committed to halving food waste by 2030 and actively supports the transition to a circular economy through several research projects financed by the H2020 programme.

In France, major legislation passed in 2015 on the energy transition was a first significant step in raising public awareness about the issue of waste and moving toward a more circular economy. With its “National Pact to Combat Food Waste” in 2016, France made a commitment to reduce the phenomenon by half by 2025. The first national law against food waste, known as the “Loi Garot”, establishes a set of measures to reduce and manage this problem, particularly at the food retailing level.

This law establishes a hierarchy of priorities. First of all, it is vital to curb food waste at the source (for example, by selling products that are usually rejected). Second, unsold food items that are approaching their best-before date should be repurposed/recycled either through donation or transformation (by allowing foraging or the transformation of produce into compost). Third, some produce can be converted into animal feeds. And lastly, there is composting and energy recovery, notably through methanation.

This law introduces a new regulatory constraint: it is now illegal for retailers to discard unsold (before sell-by date) food items. This rule reinforces the aims of an existing tax incentive introduced in 1981 under the “Coluche law”, which provides for a 60% tax deduction for food retailers and producers who donate foodstuffs instead of generating waste. This measure highlights the central role of regulation in the innovation process. And it illustrates the hypothesis of Porter and Van der Linde, according to which properly crafted environmental regulations not only help to reduce environmental externalities, but they can also lead to profits for innovative companies.

Second Life Junk Food

Nevertheless, the fight against food waste should not only be considered from the angle of public policy initiatives. There should also be innovation-based approaches spearheaded by entrepreneurs and private-sector actors.

The emergence of “mission-driven platforms”

In recent years, numerous start-ups or citizens’ initiatives have been launched to curb food waste.

One of them is Phenix, a firm that “helps companies to reduce waste by tapping into the potential of what they throw away”. Launched in 2015, this start-up organises and optimises redistribution flows for unsold food items. It has experienced rapid growth and highlights the new logics of innovation at work in this field.

Phenix initially developed around a digital platform that connects distributors (firms that generate unsold food items) with various organisations that receive these flows (food banks, associations, or the animal feed industry). The initiative subscribes to a business logic, with profit and growth objectives, while at the same time pursuing an environmental and social mission. It is therefore an example of what is known as a “mission platform”, built on a hybrid model that combines different action logics.

While developing Phenix, cofounders Jean Moreau and Baptiste Corval first focused on building the two sides of their digital platform. They targeted the biggest players in food retailing, whose unsold food items are valued at between 500 and 2,000 euros daily per retail outlet. In less than four years, they gathered 900 stores, which are now using solutions developed by Phenix to optimise the process of using/reusing, repurposing or recycling unsold items and waste.

At the same time, the two entrepreneurs managed to bring on board numerous charitable organisations involved in food donations and distribution, such as Banque alimentaire (food bank), Secours Populaire Français (major non-profit that combats poverty and discrimination) or Restos du Cœur (chain of French meal centres/soup kitchens), by organising the collection of food donations free of charge.

Particularly in rural areas, there are few associations that have sufficient physical means to collect donations from large and medium-sized supermarkets. The Phenix platform is therefore gaining a foothold as an intermediary that can enable connections in real time between supply (unsold items) and demand (food needs) by structuring the way exchanges are carried out between two completely different organisational worlds.

From an economic point of view, the platform’s suppliers gain several advantages: they reduce their waste disposal costs, which are traditionally paid to garbage collection companies and organisations (Veolia, Suez, Paprec, etc.), and benefit from a tax deduction on any donations they make. For example, if a store offers 1,000 euros’ worth of bottled milk via the platform and an association accepts the donation, the store can deduct 600 euros from its taxable revenue – out of which Phenix collects a commission.

The architect of an ecosystem

The role of this company is not confined however to that of a dematerialised intermediary. Phenix is building and structuring its own “business ecosystem”, i.e. the relationships between companies and the various stakeholders involved in food donations – through several mechanisms.

In many cases, Phenix sets up, manages and operates the physical and logistics flows of food aid. Although the founders had a light structure in mind when they launched the initiative, they gradually came to understand the importance of developing logistics and operational expertise, which entailed the creation of jobs to operate the local collection and distribution networks.

In 2017, of the 75 people employed by Phenix, 50 are dedicated to working with clients on the ground to reduce their waste. The substantial “thickness of intermediation” (not only digital, but also logistic and human) deployed by Phenix is a major factor in its success.

Phenix also plays a structuring role by developing partnerships and innovation projects related to food waste. The company is extending its model and developing a capacity for coordination vis-à-vis the other actors in the ecosystem in order to reduce waste at the source.

For example, since 2017 Phenix has been working with Zéro-Gâchisto make full use of products that are close to their sell-by date on retailers’ shelves.

The company has also created a Phenix Lab, an initiative to incubate and support the next wave of start-ups in the circular economy. Through its “studies and consulting” wing, the company is also developing relations with public-sector actors, producers and industrial companies that want to reduce food waste further upstream in the value chain.

Future challenges

Since its founding, Phenix has doubled its revenues every year, attaining 4.5 million euros in 2017 – developed through a portfolio of 900 clients and 550 associations. To finance its growth, the start-up has raised 2.5 million euros and is getting ready to launch another funding round this year.

Industry diversification constitutes one avenue for future growth. First they would have to open the model to non-food waste, strengthen their research and consulting activities, and also innovate in the retailing industry. The capacity of charitable associations to absorb the flows collected seems destined to reach its limits, and the company will need to find new outlets.

In terms of geographic diversification, the company is now present in France, Spain and Portugal, and has plans to expand to new countries. Nevertheless, this strategy raises the question of whether the model can be replicated in other legislative and competitive contexts.

In the United Kingdom, where public authorities prioritise competition and the voluntary initiatives of businesses in the ecosystem, Tesco stores are considered one of the pioneers in this area and are preparing to launch their own platform, FoodCloud, which aims to facilitate connections between the supply of food retailers and the demand of local associations. It remains to be seen whether FoodCloud will go as far as Phenix in its role as architect of relations and flows, or if the UK will see the emergence of a multitude of more fragmented initiatives.

A final challenge, and not the least of them, concerns the ability of Phenix to remain a “mission platform” while developing its model. At the heart of the company is a hybrid mission that combines social and environmental benefits with ambitious goals for growth and profitability.

Second Life Fast Food

The Phenix case is currently the focus of a study being carried out within the framework of the R2π European research project.The case of the start-up Phenix shows that the fight to reduce food waste requires a regulatory context that encourages innovation at the level of the business ecosystem.