diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-09-26 00:11:57 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-09-26 00:11:57 -0400 |
commit | 3d08b568ad1da1e3259a66cb91fd1039781c75cb (patch) | |
tree | 59c396f503f3946b8757093f5c90605fe9f91d07 /farming/cotton.lua | |
parent | 4aab7d0dbd782cf6741bdbba94440faf0c5c2e61 (diff) | |
download | dreambuilder_modpack-3d08b568ad1da1e3259a66cb91fd1039781c75cb.tar dreambuilder_modpack-3d08b568ad1da1e3259a66cb91fd1039781c75cb.tar.gz dreambuilder_modpack-3d08b568ad1da1e3259a66cb91fd1039781c75cb.tar.bz2 dreambuilder_modpack-3d08b568ad1da1e3259a66cb91fd1039781c75cb.tar.xz dreambuilder_modpack-3d08b568ad1da1e3259a66cb91fd1039781c75cb.zip |
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)
Diffstat (limited to 'farming/cotton.lua')
-rw-r--r-- | farming/cotton.lua | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/farming/cotton.lua b/farming/cotton.lua index eef6425..bf0412e 100644 --- a/farming/cotton.lua +++ b/farming/cotton.lua @@ -8,7 +8,7 @@ minetest.register_node("farming:seed_cotton", { inventory_image = "farming_cotton_seed.png", wield_image = "farming_cotton_seed.png", drawtype = "signlike", - groups = {seed = 1, snappy = 3, attached_node = 1}, + groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 4}, paramtype = "light", paramtype2 = "wallmounted", walkable = false, @@ -24,19 +24,46 @@ minetest.register_node("farming:seed_cotton", { minetest.register_craftitem("farming:cotton", { description = S("Cotton"), inventory_image = "farming_cotton.png", + groups = {flammable = 4}, }) -minetest.register_alias("farming:string", "farming:cotton") +minetest.register_craftitem("farming:string", { + description = S("String"), + inventory_image = "farming_string.png", + groups = {flammable = 2}, +}) -- cotton to wool minetest.register_craft({ output = "wool:white", recipe = { - {"farming:string", "farming:string"}, - {"farming:string", "farming:string"}, + {"farming:cotton", "farming:cotton"}, + {"farming:cotton", "farming:cotton"}, } }) +-- cotton to string +minetest.register_craft({ + output = "farming:string 2", + recipe = { + {"farming:cotton"}, + {"farming:cotton"}, + } +}) + +-- can be used as fuel +minetest.register_craft({ + type = "fuel", + recipe = "farming:string", + burntime = 1, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:cotton", + burntime = 1, +}) + -- cotton definition local crop_def = { drawtype = "plantlike", @@ -48,7 +75,7 @@ local crop_def = { drop = "", selection_box = farming.select, groups = { - snappy = 3, flammable = 2, plant = 1, attached_node = 1, + snappy = 3, flammable = 4, plant = 1, attached_node = 1, not_in_creative_inventory = 1, growing = 1 }, sounds = default.node_sound_leaves_defaults() @@ -105,9 +132,9 @@ crop_def.tiles = {"farming_cotton_8.png"} crop_def.groups.growing = 0 crop_def.drop = { items = { - {items = {"farming:string"}, rarity = 1}, - {items = {"farming:string"}, rarity = 2}, - {items = {"farming:string"}, rarity = 3}, + {items = {"farming:cotton"}, rarity = 1}, + {items = {"farming:cotton"}, rarity = 2}, + {items = {"farming:cotton"}, rarity = 3}, {items = {"farming:seed_cotton"}, rarity = 1}, {items = {"farming:seed_cotton"}, rarity = 2}, {items = {"farming:seed_cotton"}, rarity = 3}, |