forked from nalc/food_sweet
Set 2d by default
This commit is contained in:
parent
674ce00011
commit
6b35bbb367
11
init.lua
11
init.lua
|
@ -1,4 +1,4 @@
|
|||
-- SWEET FOOD MOD
|
||||
-- SWEET FOODS
|
||||
-- A mod written by rubenwardy that adds
|
||||
-- sweet food to the minetest game
|
||||
-- =====================================
|
||||
|
@ -7,6 +7,8 @@
|
|||
-- things
|
||||
-- =====================================
|
||||
|
||||
print("Sweet Foods - Version 0.1")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
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("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()
|
||||
minetest.register_craftitem("food_sweet: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
|
||||
}
|
||||
}
|
||||
})
|
||||
},"sweet")
|
||||
minetest.register_craftitem("food_sweet:cakemix_walnut_coffee",{
|
||||
description = S("Walnut and Coffee Cake Mix"),
|
||||
inventory_image = "food_sweet_cakemix_walnut_coffee.png"
|
||||
|
|
Loading…
Reference in New Issue
Block a user