Skip to content

Commit

Permalink
added wild cotton to savanna
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed Jun 12, 2020
1 parent bed986a commit 84d9ca7
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ This mod works by adding your new plant to the {growing=1} group and numbering t

### Changelog:

- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base
options, onion soup added (thanks edcrypt), Added apple pie
- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base
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.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.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block.
Expand Down
21 changes: 21 additions & 0 deletions crops/cotton.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@

local S = farming.intllib

-- wild cotton as a source of cotton seed
minetest.register_node("farming:cotton_wild", {
description = S("Wild Cotton"),
drawtype = "plantlike",
waving = 1,
tiles = {"farming_cotton_wild.png"},
inventory_image = "farming_cotton_wild.png",
wield_image = "farming_cotton_wild.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, attached_node = 1, flammable = 4},
drop = "farming:seed_cotton",
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-6 / 16, -8 / 16, -6 / 16, 6 / 16, 5 / 16, 6 / 16},
},
})

-- cotton seeds
minetest.register_node("farming:seed_cotton", {
description = S("Cotton Seed"),
Expand Down
21 changes: 20 additions & 1 deletion mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ register_plant("onion_5", 5, 22, nil, "", -1, farming.onion)
register_plant("garlic_5", 3, 30, nil, "group:tree", 1, farming.garlic)
register_plant("pea_5", 25, 50, nil, "", -1, farming.peas)
register_plant("beetroot_5", 1, 15, nil, "", -1, farming.beetroot)
register_plant("mint_4", 1, 75, {"default:dirt_with_grass",
register_plant("mint_4", 1, 75, {"default:dirt_with_grass",
"default:dirt_with_coniferous_litter"}, "group:water", 1, farming.mint)


Expand Down Expand Up @@ -147,3 +147,22 @@ minetest.register_decoration({
decoration = {"farming:pineapple_8"},
})
end

minetest.register_decoration({
name = "farming:cotton_wild",
deco_type = "simple",
place_on = {"default:dry_dirt_with_dry_grass"},
sidelen = 16,
noise_params = {
offset = -0.1,
scale = 0.1,
spread = {x = 50, y = 50, z = 50},
seed = 4242,
octaves = 3,
persist = 0.7
},
biomes = {"savanna"},
y_max = 31000,
y_min = 1,
decoration = "farming:cotton_wild",
})
Binary file added textures/farming_cotton_wild.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84d9ca7

Please sign in to comment.