Compare commits

...

2 Commits

Author SHA1 Message Date
trans_soup b0e1280566 create mcl_tomato mod.
it currently takes textures from the soy mod. some textures are left
completely non-existent. (this will probably change soon.)

adds tomato plants, tomato sauce, noodles, and pasta with tomato sauce.
2023-07-17 00:57:51 +02:00
trans_soup 25dc22eae8 fix bug in mcl_vegan_utils.
a variable name was written a wrong way.
2023-07-17 00:41:02 +02:00
19 changed files with 125 additions and 1 deletions

38
mcl_tomato/craft.lua Normal file
View File

@ -0,0 +1,38 @@
local modname = minetest.get_current_modname()
local tomato = modname .. ":tomato"
local seeds = modname .. ":seeds"
local sauce = modname .. ":sauce"
local wheat = "mcl_farming:wheat_item"
local pasta = modname .. ":pasta"
local pasta_with_sauce = modname .. ":pasta_with_sauce"
minetest.register_craft({
type = "shapeless",
output = seeds .. " 4",
recipe = { tomato },
})
minetest.register_craft({
output = sauce,
recipe = {
{ tomato },
{ "mcl_potions:glass_bottle" },
},
})
minetest.register_craft({
output = pasta,
recipe = {
{ wheat, wheat },
{ wheat, wheat },
},
})
minetest.register_craft({
type = "shapeless",
output = pasta_with_sauce,
recipe = { pasta, sauce },
})

5
mcl_tomato/depends.txt Normal file
View File

@ -0,0 +1,5 @@
mcl_vegan_utils
mcl_core
mcl_farming
mcl_sounds
mcl_potions

3
mcl_tomato/init.lua Normal file
View File

@ -0,0 +1,3 @@
include("item")
include("node")
include("craft")

47
mcl_tomato/item.lua Normal file
View File

@ -0,0 +1,47 @@
local modname = minetest.get_current_modname()
mcl_vegan.register_plant_items(modname, "tomato", {
seed = "seeds",
descriptions = {
base = "Tomato",
},
food_strength = 2.0,
})
minetest.register_craftitem(modname .. ":pasta", {
description = "Noddles :3",
inventory_image = modname .. "_pasta.png",
groups = {
craftitem = 1,
food = 1,
eatable = 3,
},
_mcl_saturation = 3.0,
on_place = minetest.item_eat(3),
on_secondary_use = minetest.item_eat(3),
})
minetest.register_craftitem(modname .. ":sauce", {
description = "Tomato Sauce",
inventory_image = modname .. "_sauce.png",
groups = {
craftitem = 1,
food = 1,
eatable = 2,
},
_mcl_saturation = 2.0,
on_place = minetest.item_eat(2),
on_secondary_use = minetest.item_eat(2),
})
minetest.register_craftitem(modname .. ":pasta_with_sauce", {
description = "Noddles with Tomato Sauce",
inventory_image = modname .. "_pasta_with_sauce.png",
groups = {
food = 2,
eatable = 8,
},
_mcl_saturation = 8.0,
on_place = minetest.item_eat(8),
on_secondary_use = minetest.item_eat(8),
})

3
mcl_tomato/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = mcl_tomato
description = adds tomatoes and tomato sauce to mineclone2.
title = tomatoes for mineclone2

28
mcl_tomato/node.lua Normal file
View File

@ -0,0 +1,28 @@
local modname = minetest.get_current_modname()
local tomato = modname .. ":tomato"
local seeds = modname .. ":seeds"
local final_drops = {
max_items = 4,
items = {
{ items = { seeds } },
{ items = { tomato } },
{ items = { tomato .. " 2" }, rarity = 2 },
{ items = { seeds .. " 2" }, rarity = 2 },
{ items = { tomato .. " 3" }, rarity = 4 },
{ items = { tomato } },
{ items = { seeds }, rarity = 2 },
},
}
mcl_vegan.register_basic_plant(modname, "tomato", {
seed = "seeds",
descriptions = {
crop = "Tomato Plant",
},
drops = final_drops,
growth_interval = 5,
growth_chance = 1,
can_forage = true,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -55,7 +55,7 @@ function mcl_vegan.register_plant_items (own_mod_name, base_name, def)
groups = {
craftitem = 1,
},
inventory_image = modname .. "_" .. seed .. ".png",
inventory_image = own_mod_name .. "_" .. seed .. ".png",
on_place = plant_seed,
})
end