2 Commits 384c09a352 ... 0413b4fb77

Author SHA1 Message Date
  Nakilashiva 0413b4fb77 Merge https://notabug.org/alauer/musttest_game 4 years ago
  alauer a80bb71c6e new food and coffe mod 4 years ago

+ 2 - 1
mods/coffee_bush/init.lua

@@ -1,7 +1,4 @@
+
 local math_random = math.random
 
 -- This is both seed and edible Bean.
@@ -32,7 +29,7 @@ minetest.register_node("coffee_bush:seeds", {
     dug = {name = "default_grass_footstep", gain = 0.2},
     place = {name = "default_place_node", gain = 0.25},
   }),
-  on_use = minetest.item_eat(1),
+  on_use = minetest.item_eat(4),
 })
 
 

+ 15 - 0
mods/onions/init.lua

@@ -77,6 +77,21 @@ minetest.register_craft({
 	}
 })
 
+-- sauted onions
+minetest.register_craftitem("onion:suateed_onions", {
+	description = S("Suateed Onions"),
+	inventory_image = "suateed_onions.png",
+	on_use = minetest.item_eat(8),
+	groups = {foodrot=1},
+})
+
+minetest.register_craft({
+	type = "cooking",
+	cooktime = 10,
+	output = "onion:suateed_onions",
+	recipe = "onion:wild_onion"
+})
+
 -- onion definition
 local crop_def = {
 	drawtype = "plantlike",

BIN
mods/onions/textures/onion_potato_salad.png


BIN
mods/onions/textures/sauteed_onions.png