Initial commit
7
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
# Compiled
|
*.el
|
||||||
*.elc
|
*~
|
||||||
|
*.autosave
|
||||||
|
|
||||||
# Packaging
|
|
||||||
.cask
|
|
||||||
|
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
moreflowers
|
||||||
|
farming
|
44
init.lua
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
-- carrot
|
||||||
|
minetest.override_item("moreflowers:wild_carrot",
|
||||||
|
{
|
||||||
|
drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{ items = {"morefarming:seed_carrot"}, rarity = 8},
|
||||||
|
{ items = {"moreflowers:wild_carrot"}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
farming.register_plant("morefarming:carrot",
|
||||||
|
{
|
||||||
|
description = "Carrot seed",
|
||||||
|
paramtype2 = "meshoptions",
|
||||||
|
inventory_image = "morefarming_carrot_seed.png",
|
||||||
|
steps = 8,
|
||||||
|
minlight = 13,
|
||||||
|
maxlight = default.LIGHT_MAX,
|
||||||
|
fertility = {"grassland"},
|
||||||
|
groups = {flammable = 4},
|
||||||
|
place_param2 = 3,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.override_item("morefarming:carrot",
|
||||||
|
{
|
||||||
|
on_use = minetest.item_eat(4)
|
||||||
|
})
|
||||||
|
|
||||||
|
-- golden carrot
|
||||||
|
minetest.register_craftitem("morefarming:carrot_gold", {
|
||||||
|
description = "Golden Carrot",
|
||||||
|
inventory_image = "morefarming_carrot_gold.png",
|
||||||
|
on_use = minetest.item_eat(6),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "morefarming:carrot_gold",
|
||||||
|
recipe = {
|
||||||
|
{"", "default:gold_lump", ""},
|
||||||
|
{"default:gold_lump", "morefarming:carrot", "default:gold_lump"},
|
||||||
|
{"", "default:gold_lump", ""},
|
||||||
|
}
|
||||||
|
})
|
BIN
textures/morefarming_carrot.png
Normal file
After Width: | Height: | Size: 181 B |
BIN
textures/morefarming_carrot_1.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
textures/morefarming_carrot_2.png
Normal file
After Width: | Height: | Size: 112 B |
BIN
textures/morefarming_carrot_3.png
Normal file
After Width: | Height: | Size: 112 B |
BIN
textures/morefarming_carrot_4.png
Normal file
After Width: | Height: | Size: 119 B |
BIN
textures/morefarming_carrot_5.png
Normal file
After Width: | Height: | Size: 122 B |
BIN
textures/morefarming_carrot_6.png
Normal file
After Width: | Height: | Size: 126 B |
BIN
textures/morefarming_carrot_7.png
Normal file
After Width: | Height: | Size: 127 B |
BIN
textures/morefarming_carrot_8.png
Normal file
After Width: | Height: | Size: 145 B |
BIN
textures/morefarming_carrot_gold.png
Normal file
After Width: | Height: | Size: 181 B |
BIN
textures/morefarming_carrot_seed.png
Normal file
After Width: | Height: | Size: 213 B |