mirror of
https://github.com/rubenwardy/food_sweet.git
synced 2025-06-28 22:36:21 +02:00
Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
55be412c84 | |||
5b6b552232 | |||
b611935ae2 | |||
5b184eae72 | |||
5c9966d9a4 | |||
88b2f0ed55 | |||
1719cf77fa | |||
25cf50389e | |||
8eea730420 | |||
68b6f42f4c | |||
4197db0eac | |||
71574c570c | |||
9af285084e |
@ -1,5 +0,0 @@
|
||||
food
|
||||
farming_plus?
|
||||
plantlib?
|
||||
bushes_classic?
|
||||
bushes?
|
@ -1 +0,0 @@
|
||||
Expansion pack for the food mod. Adds cakes, buns and tarts.
|
25
init.lua
25
init.lua
@ -15,18 +15,30 @@ end
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
food.support("strawberry", {"farming_plus:strawberry_item", "plantlib:strawberry", "bushes:strawberry"})
|
||||
food.support("strawberry", {
|
||||
"farming_plus:strawberry_item",
|
||||
"plantlib:strawberry",
|
||||
"bushes:strawberry",
|
||||
"ethereal:strawberry"
|
||||
})
|
||||
|
||||
food.support("blueberry", {"default:blueberries", "bushes:blueberry"})
|
||||
|
||||
food.support("rhubarb", "farming_plus:rhubarb_item")
|
||||
|
||||
if minetest.setting_get("food_sweet_use_2d")==nil then
|
||||
minetest.setting_set("food_sweet_use_2d", "1")
|
||||
if farming and farming.mod == "redo" then
|
||||
food.support("rhubarb", "farming:rhubarb")
|
||||
food.support("blueberry", "farming:blueberries")
|
||||
end
|
||||
|
||||
if minetest.settings:get("food_sweet_use_2d")==nil then
|
||||
minetest.settings:set("food_sweet_use_2d", "1")
|
||||
end
|
||||
|
||||
food.module("walnut",function()
|
||||
@ -426,3 +438,4 @@ food.module("muffin_choco", function()
|
||||
})
|
||||
end)
|
||||
|
||||
minetest.log("action", "[food_sweet] loaded.")
|
||||
|
4
mod.conf
Normal file
4
mod.conf
Normal file
@ -0,0 +1,4 @@
|
||||
name = food_sweet
|
||||
title = Food Sweet
|
||||
description = Adds cakes, buns and tarts. Expansion pack for the food mod.
|
||||
depends = food_basic
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
BIN
textures/food_strawberry.png
Normal file
BIN
textures/food_strawberry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 250 B |
Reference in New Issue
Block a user