Skip to content

Commit

Permalink
Pine tree, pine needles, pine sapling and pinewood nodes, including t…
Browse files Browse the repository at this point in the history
…extures by Splizard and Cisoun
  • Loading branch information
paramat authored and sfan5 committed Nov 30, 2014
1 parent 8007c14 commit 6fb072e
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mods/default/README.txt
Expand Up @@ -34,6 +34,9 @@ Cisoun's WTFPL texture pack:
default_tree_top.png default_tree_top.png
default_water.png default_water.png


Cisoun's conifers mod (WTFPL):
default_pine_needles.png

Originating from G4JC's Almost MC Texture Pack: Originating from G4JC's Almost MC Texture Pack:
default_torch.png default_torch.png
default_torch_on_ceiling.png default_torch_on_ceiling.png
Expand Down Expand Up @@ -94,6 +97,7 @@ Splizard (CC BY-SA 3.0):
default_snow.png default_snow.png
default_snow_side.png default_snow_side.png
default_ice.png default_ice.png
default_pine_sapling.png


Zeg9 (CC BY-SA 3.0): Zeg9 (CC BY-SA 3.0):
default_coal_block.png default_coal_block.png
Expand All @@ -104,6 +108,9 @@ Zeg9 (CC BY-SA 3.0):


paramat (CC BY-SA 3.0): paramat (CC BY-SA 3.0):
wieldhand.png, based on character.png by Jordach (CC BY-SA 3.0) wieldhand.png, based on character.png by Jordach (CC BY-SA 3.0)
default_pinetree.png
default_pinetree_top.png
default_pinewood.png


brunob.santos (CC BY-SA 4.0): brunob.santos (CC BY-SA 4.0):
default_desert_cobble.png default_desert_cobble.png
Expand Down
14 changes: 14 additions & 0 deletions mods/default/crafting.lua
Expand Up @@ -14,6 +14,13 @@ minetest.register_craft({
} }
}) })


minetest.register_craft({
output = 'default:pinewood 4',
recipe = {
{'default:pinetree'},
}
})

minetest.register_craft({ minetest.register_craft({
output = 'default:stick 4', output = 'default:stick 4',
recipe = { recipe = {
Expand Down Expand Up @@ -800,3 +807,10 @@ minetest.register_craft({
recipe = "default:grass_1", recipe = "default:grass_1",
burntime = 2, burntime = 2,
}) })

minetest.register_craft({
type = "fuel",
recipe = "default:pine_sapling",
burntime = 10,
})

57 changes: 57 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -1478,3 +1478,60 @@ minetest.register_node("default:snowblock", {
dug = {name="default_snow_footstep", gain=0.75}, dug = {name="default_snow_footstep", gain=0.75},
}), }),
}) })

minetest.register_node("default:pine_needles",{
description = "Pine Needles",
drawtype = "allfaces_optional",
visual_scale = 1.3,
tiles = {"default_pine_needles.png"},
waving = 1,
paramtype = "light",
groups = {snappy=3,leafdecay=3,leaves=1},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/20 chance
items = {"default:pine_sapling"},
rarity = 20,
},
{
-- player will get leaves only if he get no saplings,
-- this is because max_items is 1
items = {"default:pine_needles"},
}
}
},
sounds = default.node_sound_leaves_defaults(),
})

minetest.register_node("default:pine_sapling", {
description = "Pine Sapling",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"default_pine_sapling.png"},
inventory_image = "default_pine_sapling.png",
wield_image = "default_pine_sapling.png",
paramtype = "light",
walkable = false,
groups = {snappy=2,dig_immediate=3},
sounds = default.node_sound_defaults(),
})

minetest.register_node("default:pinetree", {
description = "Pine Tree",
tiles = {"default_pinetree_top.png", "default_pinetree_top.png", "default_pinetree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})

minetest.register_node("default:pinewood", {
description = "Pinewood Planks",
tiles = {"default_pinewood.png"},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
})

Binary file added mods/default/textures/default_pine_needles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mods/default/textures/default_pine_sapling.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mods/default/textures/default_pinetree.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mods/default/textures/default_pinetree_top.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mods/default/textures/default_pinewood.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions mods/stairs/init.lua
Expand Up @@ -288,3 +288,11 @@ stairs.register_stair_and_slab("stonebrick", "default:stonebrick",
"Stone Brick Stair", "Stone Brick Stair",
"Stone Brick Slab", "Stone Brick Slab",
default.node_sound_stone_defaults()) default.node_sound_stone_defaults())

stairs.register_stair_and_slab("pinewood", "default:pinewood",
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3},
{"default_pinewood.png"},
"Pinewood Stair",
"Pinewood Slab",
default.node_sound_wood_defaults())

2 comments on commit 6fb072e

@LazyJ
Copy link
Contributor

@LazyJ LazyJ commented on 6fb072e Dec 1, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the code to grow pine sapling into trees and to generate pine trees at mapgen still in the works?

@paramat
Copy link
Contributor Author

@paramat paramat commented on 6fb072e Dec 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pine tree schematics, sapling growing is coming for 0.4.11, hopefully also biomes for mgv5/v7 including snow biomes and pines. Snow biomes in mgv6 comes later as an option.

Please sign in to comment.