Set 2d by default

This commit is contained in:
rubenwardy 2014-04-10 19:12:56 +01:00
parent 674ce00011
commit 6b35bbb367

View File

@ -1,4 +1,4 @@
-- SWEET FOOD MOD -- SWEET FOODS
-- A mod written by rubenwardy that adds -- A mod written by rubenwardy that adds
-- sweet food to the minetest game -- sweet food to the minetest game
-- ===================================== -- =====================================
@ -7,6 +7,8 @@
-- things -- things
-- ===================================== -- =====================================
print("Sweet Foods - Version 0.1")
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S local S
if (minetest.get_modpath("intllib")) then if (minetest.get_modpath("intllib")) then
@ -20,6 +22,11 @@ food.support("strawberry","farming_plus","farming_plus:strawberry_item")
food.support("strawberry","plantlib","plantlib:strawberry") food.support("strawberry","plantlib","plantlib:strawberry")
food.support("rhubarb","farming_plus","farming_plus:rhubarb_item") food.support("rhubarb","farming_plus","farming_plus:rhubarb_item")
if minetest.setting_get("food_sweet_use_2d")==nil then
minetest.setting_set("food_sweet_use_2d", "1")
end
food.asupport("walnut",function() food.asupport("walnut",function()
minetest.register_craftitem("food_sweet:walnut", { minetest.register_craftitem("food_sweet:walnut", {
description = S("Walnut"), description = S("Walnut"),
@ -109,7 +116,7 @@ food.register("food_sweet:cake_walnut_coffee",{
{0.1875,0.0625,-0.3125,0.3125,0.1875,-0.1875}, --NodeBox5 {0.1875,0.0625,-0.3125,0.3125,0.1875,-0.1875}, --NodeBox5
} }
} }
}) },"sweet")
minetest.register_craftitem("food_sweet:cakemix_walnut_coffee",{ minetest.register_craftitem("food_sweet:cakemix_walnut_coffee",{
description = S("Walnut and Coffee Cake Mix"), description = S("Walnut and Coffee Cake Mix"),
inventory_image = "food_sweet_cakemix_walnut_coffee.png" inventory_image = "food_sweet_cakemix_walnut_coffee.png"