2f39cad09b
This converts the call to minetest.register() for the default fence node, so it can be called by other mods to quickly setup other fences. Since this creates an API, insert it into the game_api.txt. The api looks like minetest.register(name, {def}), and has two uncommon fields: "texture" and "material". Any normal nodedef property can be passed through, except "drawtype". The "fence" group will always be added. The default fence recipe is modified to be as follows: wood, stick, wood wood, stick, wood This recipe yields 4 fence nodes. This allows us to create according recipes for acacia, pine, aspen, and junglewood fences without adding new stick types: pine wood, stick, pine wood pine wood, stick, pine wood This is a from-scratch implementation, written by heart but inspired by (#665 - Add many wooden fences). Stick and fences nodes are named in a consistent way. |
||
---|---|---|
.. | ||
models | ||
schematics | ||
sounds | ||
textures | ||
aliases.lua | ||
crafting.lua | ||
craftitems.lua | ||
functions.lua | ||
furnace.lua | ||
init.lua | ||
legacy.lua | ||
mapgen.lua | ||
nodes.lua | ||
player.lua | ||
README.txt | ||
tools.lua | ||
trees.lua |
Minetest Game mod: default ========================== License of source code: ----------------------- Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. http://www.gnu.org/licenses/lgpl-2.1.html License of media (textures and sounds) -------------------------------------- Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) http://creativecommons.org/licenses/by-sa/3.0/ Authors of media files ----------------------- Everything not listed in here: Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com> Cisoun's WTFPL texture pack: default_jungletree.png default_lava.png default_leaves.png default_sapling.png default_sign_wall.png default_stone.png default_tree.png default_tree_top.png default_water.png Cisoun's conifers mod (WTFPL): default_pine_needles.png Originating from G4JC's Almost MC Texture Pack: default_torch.png default_torch_on_ceiling.png default_torch_on_floor.png VanessaE's animated torches (WTFPL): default_torch_animated.png default_torch_on_ceiling_animated.png default_torch_on_floor_animated.png default_torch_on_floor.png RealBadAngel's animated water (WTFPL): default_water_source_animated.png default_water_flowing_animated.png VanessaE (WTFPL): default_nc_back.png default_nc_front.png default_nc_rb.png default_nc_side.png default_desert_sand.png default_desert_stone.png default_sand.png default_jungletree_top.png Calinou (CC BY-SA): default_brick.png default_papyrus.png default_mineral_copper.png default_glass_detail.png MirceaKitsune (WTFPL): character.x Jordach (CC BY-SA 3.0): character.png PilzAdam (WTFPL): default_jungleleaves.png default_junglesapling.png default_obsidian_glass.png default_obsidian_shard.png default_mineral_gold.png default_snowball.png jojoa1997 (WTFPL): default_obsidian.png InfinityProject (WTFPL): default_mineral_diamond.png Splizard (CC BY-SA 3.0): default_snow.png default_snow_side.png default_pine_sapling.png Zeg9 (CC BY-SA 3.0): default_coal_block.png default_steel_block.png default_copper_block.png default_bronze_block.png default_gold_block.png paramat (CC BY-SA 3.0): wieldhand.png, derived from character.png by Jordach (CC BY-SA 3.0) default_pinetree.png default_pinetree_top.png default_pinewood.png default_sandstone_brick.png default_obsidian_brick.png default_river_water.png default_river_water_source_animated.png default_river_water_flowing_animated.png default_acacia_leaves.png default_acacia_sapling.png default_acacia_tree.png default_acacia_tree_top.png default_acacia_wood.png default_dry_grass.png default_dry_grass_side.png default_dry_grass_*.png default_junglewood.png, derived from a texture by BlockMen (CC BY-SA 3.0) default_grass.png, derived from a texture by Philipbenr (CC BY-SA 3.0) default_grass_side.png, derived from a texture by Philipbenr (CC BY-SA 3.0) default_stone_brick.png, derived from a texture by Cisoun (WTFPL) default_desert_stone_brick.png, derived from a texture by VanessaE (WTFPL) brunob.santos (CC BY-SA 4.0): default_desert_cobble.png BlockMen (CC BY-SA 3.0): default_wood.png default_clay_brick.png default_iron_ingot.png default_gold_ingot.png default_tool_steelsword.png default_diamond.png default_book.png default_tool_*.png default_lava_source_animated.png default_lava_flowing_animated.png default_stick.png default_chest_front.png default_chest_lock.png default_chest_side.png default_chest_top.png default_mineral_mese.png default_meselamp.png bubble.png heart.png gui_*.png sofar (CC BY-SA 3.0): default_book_written.png, based on default_book.png default_aspen_sapling default_aspen_leaves default_aspen_tree default_aspen_tree_top, derived from default_pine_tree_top (by paramat) default_aspen_wood, derived from default_pine_wood (by paramat) Neuromancer (CC BY-SA 2.0): default_cobble.png, based on texture by Brane praefect default_mossycobble.png, based on texture by Brane praefect Neuromancer (CC BY-SA 3.0): default_dirt.png default_furnace_*.png Gambit (WTFPL): default_bronze_ingot.png default_copper_ingot.png default_copper_lump.png default_iron_lump.png default_gold_lump.png default_clay_lump.png default_coal.png default_grass_*.png default_paper.png default_diamond_block.png asl97 (WTFPL): default_ice.png Glass breaking sounds (CC BY 3.0): 1: http://www.freesound.org/people/cmusounddesign/sounds/71947/ 2: http://www.freesound.org/people/Tomlija/sounds/97669/ 3: http://www.freesound.org/people/lsprice/sounds/88808/ Mito551 (sounds) (CC BY-SA): default_dig_choppy.ogg default_dig_cracky.ogg default_dig_crumbly.1.ogg default_dig_crumbly.2.ogg default_dig_dig_immediate.ogg default_dig_oddly_breakable_by_hand.ogg default_dug_node.1.ogg default_dug_node.2.ogg default_grass_footstep.1.ogg default_grass_footstep.2.ogg default_grass_footstep.3.ogg default_gravel_footstep.1.ogg default_gravel_footstep.2.ogg default_gravel_footstep.3.ogg default_gravel_footstep.4.ogg default_grass_footstep.1.ogg default_place_node.1.ogg default_place_node.2.ogg default_place_node.3.ogg default_place_node_hard.1.ogg default_place_node_hard.2.ogg default_snow_footstep.1.ogg default_snow_footstep.2.ogg default_hard_footstep.1.ogg default_hard_footstep.2.ogg default_hard_footstep.3.ogg default_sand_footstep.1.ogg default_sand_footstep.2.ogg default_wood_footstep.1.ogg default_wood_footstep.2.ogg default_dirt_footstep.1.ogg default_dirt_footstep.2.ogg default_glass_footstep.ogg