Skip to content

Commit 6fb072e

Browse files
paramatsfan5
authored andcommittedNov 30, 2014
Pine tree, pine needles, pine sapling and pinewood nodes, including textures by Splizard and Cisoun
1 parent 8007c14 commit 6fb072e

9 files changed

+86
-0
lines changed
 

‎mods/default/README.txt

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Cisoun's WTFPL texture pack:
3434
default_tree_top.png
3535
default_water.png
3636

37+
Cisoun's conifers mod (WTFPL):
38+
default_pine_needles.png
39+
3740
Originating from G4JC's Almost MC Texture Pack:
3841
default_torch.png
3942
default_torch_on_ceiling.png
@@ -94,6 +97,7 @@ Splizard (CC BY-SA 3.0):
9497
default_snow.png
9598
default_snow_side.png
9699
default_ice.png
100+
default_pine_sapling.png
97101

98102
Zeg9 (CC BY-SA 3.0):
99103
default_coal_block.png
@@ -104,6 +108,9 @@ Zeg9 (CC BY-SA 3.0):
104108

105109
paramat (CC BY-SA 3.0):
106110
wieldhand.png, based on character.png by Jordach (CC BY-SA 3.0)
111+
default_pinetree.png
112+
default_pinetree_top.png
113+
default_pinewood.png
107114

108115
brunob.santos (CC BY-SA 4.0):
109116
default_desert_cobble.png

‎mods/default/crafting.lua

+14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ minetest.register_craft({
1414
}
1515
})
1616

17+
minetest.register_craft({
18+
output = 'default:pinewood 4',
19+
recipe = {
20+
{'default:pinetree'},
21+
}
22+
})
23+
1724
minetest.register_craft({
1825
output = 'default:stick 4',
1926
recipe = {
@@ -800,3 +807,10 @@ minetest.register_craft({
800807
recipe = "default:grass_1",
801808
burntime = 2,
802809
})
810+
811+
minetest.register_craft({
812+
type = "fuel",
813+
recipe = "default:pine_sapling",
814+
burntime = 10,
815+
})
816+

‎mods/default/nodes.lua

+57
Original file line numberDiff line numberDiff line change
@@ -1478,3 +1478,60 @@ minetest.register_node("default:snowblock", {
14781478
dug = {name="default_snow_footstep", gain=0.75},
14791479
}),
14801480
})
1481+
1482+
minetest.register_node("default:pine_needles",{
1483+
description = "Pine Needles",
1484+
drawtype = "allfaces_optional",
1485+
visual_scale = 1.3,
1486+
tiles = {"default_pine_needles.png"},
1487+
waving = 1,
1488+
paramtype = "light",
1489+
groups = {snappy=3,leafdecay=3,leaves=1},
1490+
drop = {
1491+
max_items = 1,
1492+
items = {
1493+
{
1494+
-- player will get sapling with 1/20 chance
1495+
items = {"default:pine_sapling"},
1496+
rarity = 20,
1497+
},
1498+
{
1499+
-- player will get leaves only if he get no saplings,
1500+
-- this is because max_items is 1
1501+
items = {"default:pine_needles"},
1502+
}
1503+
}
1504+
},
1505+
sounds = default.node_sound_leaves_defaults(),
1506+
})
1507+
1508+
minetest.register_node("default:pine_sapling", {
1509+
description = "Pine Sapling",
1510+
drawtype = "plantlike",
1511+
visual_scale = 1.0,
1512+
tiles = {"default_pine_sapling.png"},
1513+
inventory_image = "default_pine_sapling.png",
1514+
wield_image = "default_pine_sapling.png",
1515+
paramtype = "light",
1516+
walkable = false,
1517+
groups = {snappy=2,dig_immediate=3},
1518+
sounds = default.node_sound_defaults(),
1519+
})
1520+
1521+
minetest.register_node("default:pinetree", {
1522+
description = "Pine Tree",
1523+
tiles = {"default_pinetree_top.png", "default_pinetree_top.png", "default_pinetree.png"},
1524+
paramtype2 = "facedir",
1525+
is_ground_content = false,
1526+
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
1527+
sounds = default.node_sound_wood_defaults(),
1528+
on_place = minetest.rotate_node
1529+
})
1530+
1531+
minetest.register_node("default:pinewood", {
1532+
description = "Pinewood Planks",
1533+
tiles = {"default_pinewood.png"},
1534+
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
1535+
sounds = default.node_sound_wood_defaults(),
1536+
})
1537+
512 Bytes
Loading
406 Bytes
Loading
693 Bytes
Loading
802 Bytes
Loading
455 Bytes
Loading

‎mods/stairs/init.lua

+8
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,11 @@ stairs.register_stair_and_slab("stonebrick", "default:stonebrick",
288288
"Stone Brick Stair",
289289
"Stone Brick Slab",
290290
default.node_sound_stone_defaults())
291+
292+
stairs.register_stair_and_slab("pinewood", "default:pinewood",
293+
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3},
294+
{"default_pinewood.png"},
295+
"Pinewood Stair",
296+
"Pinewood Slab",
297+
default.node_sound_wood_defaults())
298+

2 commit comments

Comments
 (2)

LazyJ commented on Dec 1, 2014

@LazyJ
Contributor

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

paramat commented on Dec 3, 2014

@paramat
ContributorAuthor

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.