2 Ревизии 384c09a352 ... 0413b4fb77

Автор SHA1 Съобщение Дата
  Nakilashiva 0413b4fb77 Merge https://notabug.org/alauer/musttest_game преди 4 години
  alauer a80bb71c6e new food and coffe mod преди 4 години
променени са 4 файла, в които са добавени 17 реда и са изтрити 1 реда
  1. 2 1
      mods/coffee_bush/init.lua
  2. 15 0
      mods/onions/init.lua
  3. BIN
      mods/onions/textures/onion_potato_salad.png
  4. BIN
      mods/onions/textures/sauteed_onions.png

+ 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