2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
local S = farming.intllib
|
|
|
|
|
|
|
|
-- barley seeds
|
|
|
|
minetest.register_node("farming:seed_barley", {
|
|
|
|
description = S("Barley Seed"),
|
|
|
|
tiles = {"farming_barley_seed.png"},
|
|
|
|
inventory_image = "farming_barley_seed.png",
|
|
|
|
wield_image = "farming_barley_seed.png",
|
|
|
|
drawtype = "signlike",
|
|
|
|
groups = {seed = 1, snappy = 3, attached_node = 1},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
walkable = false,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
selection_box = farming.select,
|
|
|
|
on_place = function(itemstack, placer, pointed_thing)
|
|
|
|
return farming.place_seed(itemstack, placer, pointed_thing, "farming:barley_1")
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
end
|
2017-02-19 12:01:09 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
-- harvested barley
|
|
|
|
minetest.register_craftitem("farming:barley", {
|
|
|
|
description = S("Barley"),
|
|
|
|
inventory_image = "farming_barley.png",
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
groups = {food_barley = 1, flammable = 2}
|
2017-02-19 12:01:09 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
-- flour
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "farming:flour",
|
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo,
jumping, maptools, mesecons, moreblocks, moretrees, pipeworks,
signs_lib, technic, unified_dyes
Deleted the peaceful_npc mod, as it is broken and unmaintained.
2018-05-11 10:22:53 -04:00
|
|
|
recipe = {
|
|
|
|
"farming:barley", "farming:barley", "farming:barley",
|
|
|
|
"farming:barley", "farming:mortar_pestle"
|
|
|
|
},
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}}
|
2017-02-19 12:01:09 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
-- barley definition
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
local def = {
|
2017-02-19 12:01:09 -05:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"farming_barley_1.png"},
|
|
|
|
paramtype = "light",
|
update castles modpack, boost_cart, homedecor, currency, farming redo,
framed glass, gloopblocks, mesecons, moreblocks, pipeworks, signs_lib,
technic, unified mesecons, and worldedit
created a new tag for this release (this will be standard procedure from
now on)
2017-09-26 00:11:57 -04:00
|
|
|
paramtype2 = "meshoptions",
|
|
|
|
place_param2 = 3,
|
2017-02-19 12:01:09 -05:00
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drop = "",
|
|
|
|
selection_box = farming.select,
|
|
|
|
groups = {
|
|
|
|
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
|
|
|
not_in_creative_inventory = 1, growing = 1
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults()
|
|
|
|
}
|
|
|
|
|
|
|
|
-- stage 1
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
minetest.register_node("farming:barley_1", table.copy(def))
|
2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
-- stage 2
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
def.tiles = {"farming_barley_2.png"}
|
|
|
|
minetest.register_node("farming:barley_2", table.copy(def))
|
2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
-- stage 3
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
def.tiles = {"farming_barley_3.png"}
|
|
|
|
minetest.register_node("farming:barley_3", table.copy(def))
|
2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
-- stage 4
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
def.tiles = {"farming_barley_4.png"}
|
|
|
|
minetest.register_node("farming:barley_4", table.copy(def))
|
2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
-- stage 5
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
def.tiles = {"farming_barley_5.png"}
|
|
|
|
def.drop = {
|
2017-02-19 12:01:09 -05:00
|
|
|
items = {
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
{items = {"farming:barley"}, rarity = 2},
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
{items = {"farming:seed_barley"}, rarity = 2}
|
2017-02-19 12:01:09 -05:00
|
|
|
}
|
|
|
|
}
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
minetest.register_node("farming:barley_5", table.copy(def))
|
2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
-- stage 6
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
def.tiles = {"farming_barley_6.png"}
|
|
|
|
def.drop = {
|
2017-02-19 12:01:09 -05:00
|
|
|
items = {
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
{items = {"farming:barley"}, rarity = 2},
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
{items = {"farming:seed_barley"}, rarity = 1}
|
2017-02-19 12:01:09 -05:00
|
|
|
}
|
|
|
|
}
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
minetest.register_node("farming:barley_6", table.copy(def))
|
2017-02-19 12:01:09 -05:00
|
|
|
|
|
|
|
-- stage 7 (final)
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
def.tiles = {"farming_barley_7.png"}
|
|
|
|
def.groups.growing = nil
|
|
|
|
def.drop = {
|
2017-02-19 12:01:09 -05:00
|
|
|
items = {
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
{items = {"farming:barley"}, rarity = 1},
|
|
|
|
{items = {"farming:barley"}, rarity = 3},
|
|
|
|
{items = {"farming:seed_barley"}, rarity = 1},
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
{items = {"farming:seed_barley"}, rarity = 3}
|
2017-02-19 12:01:09 -05:00
|
|
|
}
|
|
|
|
}
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
minetest.register_node("farming:barley_7", table.copy(def))
|
2018-10-12 07:57:26 -04:00
|
|
|
|
|
|
|
-- add to registered_plants
|
|
|
|
farming.registered_plants["farming:barley"] = {
|
|
|
|
crop = "farming:barley",
|
|
|
|
seed = "farming:seed_barley",
|
|
|
|
minlight = 13,
|
|
|
|
maxlight = 15,
|
updated cottages, areasprotector, bees, biome_lib, technic, facade,
farming redo, homedecor, maptools, mesecons, moreblocks, moreores,
pipeworks, quartz, travelnet, unified_inventory, unifieddyes, xban2
delete the playeranim mod, not 5.0.0 compatible.
2019-03-06 17:01:02 -05:00
|
|
|
steps = 7
|
2018-10-12 07:57:26 -04:00
|
|
|
}
|
updated cottages, areasprotector, bees, biome_lib, technic, facade,
farming redo, homedecor, maptools, mesecons, moreblocks, moreores,
pipeworks, quartz, travelnet, unified_inventory, unifieddyes, xban2
delete the playeranim mod, not 5.0.0 compatible.
2019-03-06 17:01:02 -05:00
|
|
|
|
|
|
|
-- Fuel
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "farming:barley",
|
update bakedclay, basic_materials, bonemeal, currency, farming_redo,
maptools, mesecons, moreblocks, moreores, new_campfire, cool_trees,
pipeworks, staines_glass, technic, unified_inventory, and unifieddyes.
2020-07-12 08:03:52 -04:00
|
|
|
burntime = 1
|
updated cottages, areasprotector, bees, biome_lib, technic, facade,
farming redo, homedecor, maptools, mesecons, moreblocks, moreores,
pipeworks, quartz, travelnet, unified_inventory, unifieddyes, xban2
delete the playeranim mod, not 5.0.0 compatible.
2019-03-06 17:01:02 -05:00
|
|
|
})
|