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.
38
mcl_tomato/craft.lua
Normal 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
|
@ -0,0 +1,5 @@
|
|||
mcl_vegan_utils
|
||||
mcl_core
|
||||
mcl_farming
|
||||
mcl_sounds
|
||||
mcl_potions
|
3
mcl_tomato/init.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
include("item")
|
||||
include("node")
|
||||
include("craft")
|
47
mcl_tomato/item.lua
Normal 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
|
@ -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
|
@ -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,
|
||||
})
|
BIN
mcl_tomato/textures/mcl_tomato_pasta.png
Normal file
After Width: | Height: | Size: 780 B |
BIN
mcl_tomato/textures/mcl_tomato_pasta_with_sauce.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
mcl_tomato/textures/mcl_tomato_sauce.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_0.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_1.png
Normal file
After Width: | Height: | Size: 5 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_2.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_3.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_4.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_5.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_6.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
mcl_tomato/textures/mcl_tomato_tomato_stage_7.png
Normal file
After Width: | Height: | Size: 6.8 KiB |