mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-25 18:20:19 +01:00
added cactus juice (thanks OgelGames)
This commit is contained in:
parent
84d9ca7beb
commit
b3f69171c3
@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
|
|||||||
|
|
||||||
### Changelog:
|
### Changelog:
|
||||||
|
|
||||||
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base
|
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice
|
||||||
options, onion soup added (thanks edcrypt), Added apple pie, added wild cotton to savanna
|
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.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.
|
- 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.
|
||||||
|
32
food.lua
32
food.lua
@ -236,3 +236,35 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Cactus Juice
|
||||||
|
|
||||||
|
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
|
||||||
|
if math.random(1, 5) == 1 then
|
||||||
|
return minetest.do_item_eat(-1, "vessels:drinking_glass",
|
||||||
|
itemstack, user, pointed_thing)
|
||||||
|
else
|
||||||
|
return minetest.do_item_eat(2, "vessels:drinking_glass",
|
||||||
|
itemstack, user, pointed_thing)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:cactus_juice 2",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {
|
||||||
|
"vessels:drinking_glass", "vessels:drinking_glass",
|
||||||
|
"default:cactus", "farming:juicer"
|
||||||
|
},
|
||||||
|
replacements = {
|
||||||
|
{"group:food_juicer", "farming:juicer"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
BIN
textures/farming_cactus_juice.png
Normal file
BIN
textures/farming_cactus_juice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 167 B |
Loading…
Reference in New Issue
Block a user