master
v-rob 2017-11-19 13:08:02 -08:00 committed by GitHub
parent 02e3dd8948
commit 264140281b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 58 additions and 5 deletions

View File

@ -15,7 +15,7 @@ farming.register_plant("grains:rye", {
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
fertility = {"savannah"},
groups = {flammable = 4},
place_param2 = 3,
})
@ -42,7 +42,7 @@ farming.register_plant("grains:oat", {
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
fertility = {"savannah"},
groups = {flammable = 4},
place_param2 = 3,
})
@ -87,6 +87,33 @@ minetest.register_craftitem("grains:barley_flour", {
groups = {flammable = 1},
})
-- RICE
farming.register_plant("grains:rice", {
description = "Rice grains",
paramtype2 = "meshoptions",
inventory_image = "grains_rice_seed.png",
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"savannah"},
groups = {flammable = 4},
place_param2 = 3,
})
minetest.register_craftitem("grains:rice_bread", {
description = "Rice Bread",
inventory_image = "grains_rice_bread.png",
on_use = minetest.item_eat(5),
groups = {flammable = 2},
})
minetest.register_craftitem("grains:rice_flour", {
description = "Rice Flour",
inventory_image = "grains_rice_flour.png",
groups = {flammable = 1},
})
-- Cooking
minetest.register_craft({
@ -115,17 +142,30 @@ minetest.register_craft({
recipe = "grains:oat_flour"
})
minetest.register_craft({
type = "cooking",
cooktime = 15,
output = "grains:barley_bread",
recipe = "grains:barley_flour"
})
minetest.register_craft({
type = "shapeless",
output = "grains:barley_flour",
recipe = {"grains:barley", "grains:barley", "grains:barley", "grains:barley"}
})
minetest.register_craft({
type = "shapeless",
output = "grains:rice_flour",
recipe = {"grains:rice", "grains:rice", "grains:rice", "grains:rice"}
})
minetest.register_craft({
type = "cooking",
cooktime = 15,
output = "grains:barley_bread",
recipe = "grains:barley_flour"
output = "grains:rice_bread",
recipe = "grains:rice_flour"
})
-- Fuels
@ -153,6 +193,12 @@ minetest.register_craft({
burntime = 1,
})
minetest.register_craft({
type = "fuel",
recipe = "grains:rice_bread",
burntime = 1,
})
minetest.register_craft({
type = "fuel",
recipe = "farming:wheat",
@ -177,6 +223,12 @@ minetest.register_craft({
burntime = 1,
})
minetest.register_craft({
type = "fuel",
recipe = "grains:rice",
burntime = 1,
})
-- Seed gathering
for i = 1, 5 do
@ -195,7 +247,8 @@ for i = 1, 5 do
max_items = 1,
items = {
{items = {'grains:seed_rye'},rarity = 10},
{items = {'grains:seed_oat'},rarity = 20},
{items = {'grains:seed_rice'},rarity = 20},
{items = {'grains:seed_oat'},rarity = 15},
{items = {'default:dry_grass_1'}},
}
}})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 575 B

BIN
textures/grains_rice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

BIN
textures/grains_rice_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

BIN
textures/grains_rice_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

BIN
textures/grains_rice_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

BIN
textures/grains_rice_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

BIN
textures/grains_rice_5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

BIN
textures/grains_rice_6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

BIN
textures/grains_rice_7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

BIN
textures/grains_rice_8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B