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. 二进制
      mods/onions/textures/onion_potato_salad.png
  4. 二进制
      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",

二进制
mods/onions/textures/onion_potato_salad.png


二进制
mods/onions/textures/sauteed_onions.png