Browse Source

added pasta and spaghetti

master
TenPlus1 2 weeks ago
parent
commit
03d14b2b39
4 changed files with 52 additions and 2 deletions
  1. +1
    -1
      README.md
  2. +51
    -1
      food.lua
  3. BIN
      textures/farming_pasta.png
  4. BIN
      textures/farming_spaghetti.png

+ 1
- 1
README.md View File

@@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t

### Changelog:

- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice, added pasta and spaghetti
options, onion soup added (thanks edcrypt), Added apple pie, added wild cotton to savanna
- 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth, also thanks to TheDarkTiger for translation updates
- 1.43 - Scythe works on use instead of right-click, added seed=1 groups to actual seeds and seed=2 group for plantable food items.


+ 51
- 1
food.lua View File

@@ -242,7 +242,6 @@ minetest.register_craft({
minetest.register_craftitem("farming:cactus_juice", {
description = S("Cactus Juice"),
inventory_image = "farming_cactus_juice.png",
-- on_use = minetest.item_eat(2, "vessels:drinking_glass"),
groups = {vessel = 1},
on_use = function(itemstack, user, pointed_thing)
if user then
@@ -268,3 +267,54 @@ minetest.register_craft({
{"group:food_juicer", "farming:juicer"},
},
})

-- Pasta

minetest.register_craftitem("farming:pasta", {
description = S("Pasta"),
inventory_image = "farming_pasta.png",
groups = {food_pasta = 1},
})

if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then
minetest.register_craft({
output = "farming:pasta",
type = "shapeless",
recipe = {
"group:food_flour", "group:food_mixing_bowl",
"group:food_butter"
},
replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}}
})
else
minetest.register_craft({
output = "farming:pasta",
type = "shapeless",
recipe = {
"group:food_flour", "group:food_mixing_bowl",
"group:food_oil"
},
replacements = {
{"group:food_mixing_bowl", "farming:mixing_bowl"},
{"group:food_oil", "vessels:glass_bottle"},
}
})
end

-- Spaghetti

minetest.register_craftitem("farming:spaghetti", {
description = S("Spaghetti"),
inventory_image = "farming_spaghetti.png",
on_use = minetest.item_eat(8),
})

minetest.register_craft({
output = "farming:spaghetti",
type = "shapeless",
recipe = {
"group:food_pasta", "group:food_saucepan",
"group:food_tomato", "group:food_garlic_clove", "group:food_garlic_clove"
},
replacements = {{"group:food_saucepan", "farming:saucepan"}}
})

BIN
textures/farming_pasta.png View File

Before After
Width: 16  |  Height: 16  |  Size: 143B

BIN
textures/farming_spaghetti.png View File

Before After
Width: 24  |  Height: 24  |  Size: 242B

Loading…
Cancel
Save