Initial Commit; v0.01
|
@ -0,0 +1,137 @@
|
|||
AF8 - The game without a name!
|
||||
Version 0.01, Alpha
|
||||
|
||||
License of source code:
|
||||
-----------------------
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
and contributors (see source file comments and the version control log)
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
|
||||
License of media (textures, sounds, meshes):
|
||||
--------------------------------------------
|
||||
You can redistribute and or modify the media of this program under the terms of
|
||||
the Creative Commons Attribution-ShareAlike 3.0 Unported Public License.
|
||||
|
||||
You should have received a copy of the Creative Commons
|
||||
Attribution-ShareAlike 3.0 Unported License along with this program; if not,
|
||||
write to Creative Commons, PO Box 1866, Mountain View, CA 94042 or see
|
||||
https://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
|
||||
Authors of media (textures, sounds, meshes):
|
||||
--------------------------------------------
|
||||
asl97:
|
||||
mods/material/textures/material_ice.png
|
||||
|
||||
BlockMen:
|
||||
mods/game/textures/bubble.png
|
||||
mods/game/textures/heart.png
|
||||
mods/material/textures/material_charcoal.png
|
||||
mods/material/textures/material_clay_brick.png
|
||||
mods/material/textures/material_diamond.png
|
||||
mods/material/textures/material_diamond_block.png
|
||||
mods/material/textures/material_dry_dirt.png
|
||||
mods/material/textures/material_gold_ingot.png
|
||||
mods/material/textures/material_grass.png
|
||||
mods/material/textures/material_grass_side.png
|
||||
mods/material/textures/material_steel_ingot.png
|
||||
mods/material/textures/material_lava_flowing_animated.png
|
||||
mods/material/textures/material_lava_source_animated.png
|
||||
mods/material/textures/material_mineral_mese.png
|
||||
mods/material/textures/material_sand.png
|
||||
mods/material/textures/material_snow.png, based on texture of Splizard (CC BY-SA 3.0)
|
||||
mods/material/textures/material_snow_side.png
|
||||
mods/material/textures/material_snowball.png
|
||||
|
||||
brunob.santos:
|
||||
mods/material/textures/material_desert_cobble.png
|
||||
|
||||
Calinou:
|
||||
mods/material/textures/material_brick.png
|
||||
mods/material/textures/material_mineral_copper.png
|
||||
|
||||
celeron55:
|
||||
mods/game/textures/crack_anylength.png
|
||||
mods/game/textures/wieldhand.png
|
||||
|
||||
Cisoun:
|
||||
mods/material/textures/material_lava.png
|
||||
mods/material/textures/material_stone.png
|
||||
mods/material/textures/material_water.png
|
||||
|
||||
fridolin:
|
||||
mods/material/textures/material_mineral_salt.png
|
||||
mods/material/textures/material_salt.png
|
||||
mods/material/textures/material_salt_block.png
|
||||
|
||||
Gambit:
|
||||
mods/material/textures/material_bronze_ingot.png
|
||||
mods/material/textures/material_copper_ingot.png
|
||||
mods/material/textures/material_copper_lump.png
|
||||
mods/material/textures/material_iron_lump.png
|
||||
mods/material/textures/material_gold_lump.png
|
||||
mods/material/textures/material_clay_lump.png
|
||||
mods/material/textures/material_coal_lump.png
|
||||
mods/material/textures/material_flint.png
|
||||
|
||||
InfinityProject:
|
||||
mods/material/textures/material_diamond.png
|
||||
|
||||
JBB:
|
||||
mods/material/textures/material_bonemeal.png
|
||||
|
||||
jojoa1997:
|
||||
mods/material/textures/material_obsidian.png
|
||||
|
||||
Jordach:
|
||||
mods/game/textures/player.png
|
||||
mods/game/textures/player_back.png
|
||||
|
||||
LNJ:
|
||||
mods/material/textures/material_bone.png
|
||||
|
||||
Neuromancer:
|
||||
mods/material/textures/material_cobble.png, based on texture by Brane praefect
|
||||
mods/material/textures/material_mossycobble.png, based on texture by Brane praefect
|
||||
mods/material/textures/material_dirt.png
|
||||
|
||||
paramat:
|
||||
mods/material/textures/material_sandstone_brick.png
|
||||
mods/material/textures/material_obsidian_brick.png
|
||||
mods/material/textures/material_dry_grass.png
|
||||
mods/material/textures/material_dry_grass_side.png
|
||||
mods/material/textures/material_stone_brick.png, derived from a texture by Cisoun (WTFPL)
|
||||
mods/material/textures/material_desert_stone_brick.png, derived from a texture by VanessaE (WTFPL)
|
||||
|
||||
PilzAdam:
|
||||
mods/material/textures/material_obsidian_shard.png
|
||||
mods/material/textures/material_mineral_gold.png
|
||||
|
||||
RealBadAngel:
|
||||
mods/material/textures/material_water_source_animated.png
|
||||
mods/material/textures/material_water_flowing_animated.png
|
||||
|
||||
VanessaE:
|
||||
mods/material/textures/material_desert_sand.png
|
||||
mods/material/textures/material_desert_stone.png
|
||||
|
||||
Zeg9:
|
||||
mods/material/textures/material_coal_block.png
|
||||
mods/material/textures/material_steel_block.png
|
||||
mods/material/textures/material_copper_block.png
|
||||
mods/material/textures/material_bronze_block.png
|
||||
mods/material/textures/material_gold_block.png
|
|
@ -0,0 +1,38 @@
|
|||
# AF8 - Minetest Subgame
|
||||
### A new Work-In-Progess Minetest-Subgame wrote completely from scratch.
|
||||
|
||||
## License
|
||||
```txt
|
||||
License of code:
|
||||
----------------
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
and contributors (see source file comments and the version control log)
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
|
||||
License of media (textures, sounds, meshes):
|
||||
--------------------------------------------
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
and contributors (see source file comments and the version control log)
|
||||
|
||||
You can redistribute and or modify the media of this program under the terms of
|
||||
the Creative Commons Attribution-ShareAlike 3.0 Unported Public License.
|
||||
|
||||
You should have received a copy of the Creative Commons
|
||||
Attribution-ShareAlike 3.0 Unported License along with this program; if not,
|
||||
write to Creative Commons, PO Box 1866, Mountain View, CA 94042 or see
|
||||
https://creativecommons.org/licenses/by-sa/3.0/legalcode
|
||||
```
|
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 267 B |
After Width: | Height: | Size: 302 B |
After Width: | Height: | Size: 253 B |
After Width: | Height: | Size: 260 B |
After Width: | Height: | Size: 304 B |
After Width: | Height: | Size: 248 B |
After Width: | Height: | Size: 296 B |
After Width: | Height: | Size: 284 B |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 288 B |
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 256 B |
|
@ -0,0 +1,26 @@
|
|||
--[[
|
||||
mods/game/init.lua
|
||||
==================
|
||||
AF8 - A Minetest Subgame
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
game = {}
|
||||
game.NAME = "af8"
|
||||
game.VERSION = "0.01"
|
||||
|
||||
game.LIGHT_MAX = 14
|
After Width: | Height: | Size: 96 B |
After Width: | Height: | Size: 456 B |
After Width: | Height: | Size: 339 B |
After Width: | Height: | Size: 293 B |
After Width: | Height: | Size: 781 B |
After Width: | Height: | Size: 850 B |
After Width: | Height: | Size: 129 B |
|
@ -0,0 +1,29 @@
|
|||
--[[
|
||||
mods/mapgen/init.lua
|
||||
====================
|
||||
AF8 - A Minetest Subgame
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
mapgen = {}
|
||||
|
||||
local modpath = core.get_modpath("mapgen") .. "/lua/"
|
||||
local files = {"aliases.lua"}
|
||||
|
||||
for _, file in pairs(files) do
|
||||
dofile(modpath .. file)
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
--[[
|
||||
mods/mapgen/lua/aliases.lua
|
||||
===========================
|
||||
AF8 - A Minetest Subgame
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
-- Terrain
|
||||
core.register_alias("mapgen_air", "air")
|
||||
core.register_alias("mapgen_stone", "material:stone")
|
||||
core.register_alias("mapgen_dirt", "material:dirt")
|
||||
core.register_alias("mapgen_dirt_with_grass", "material:dirt_with_grass")
|
||||
core.register_alias("mapgen_sand", "material:sand")
|
||||
core.register_alias("mapgen_water_source", "material:water_source")
|
||||
core.register_alias("mapgen_river_water_source", "material:water_source")
|
||||
core.register_alias("mapgen_lava_source", "material:lava_source")
|
||||
core.register_alias("mapgen_gravel", "material:gravel")
|
||||
core.register_alias("mapgen_desert_stone", "material:desert_stone")
|
||||
core.register_alias("mapgen_desert_sand", "material:desert_sand")
|
||||
core.register_alias("mapgen_dirt_with_snow", "material:dirt_with_snow")
|
||||
core.register_alias("mapgen_snowblock", "material:snowblock")
|
||||
core.register_alias("mapgen_snow", "material:snow")
|
||||
core.register_alias("mapgen_ice", "material:ice")
|
||||
core.register_alias("mapgen_sandstone", "material:sandstone")
|
||||
|
||||
-- Flora (mgv6)
|
||||
core.register_alias("mapgen_tree", "material:tree")
|
||||
core.register_alias("mapgen_leaves", "material:leaves")
|
||||
core.register_alias("mapgen_apple", "material:leaves_with_apple")
|
||||
core.register_alias("mapgen_jungletree", "material:jungletree")
|
||||
core.register_alias("mapgen_jungleleaves", "material:jungleleaves")
|
||||
core.register_alias("mapgen_junglegrass", "material:junglegrass")
|
||||
core.register_alias("mapgen_pine_tree", "material:pine_tree")
|
||||
core.register_alias("mapgen_pine_needles", "material:pine_needles")
|
||||
|
||||
-- Dungeons
|
||||
core.register_alias("mapgen_cobble", "material:cobble")
|
||||
core.register_alias("mapgen_stair_cobble", "material:stair_cobble")
|
||||
core.register_alias("mapgen_mossycobble", "material:mossycobble")
|
||||
core.register_alias("mapgen_sandstonebrick", "material:sandstonebrick")
|
||||
core.register_alias("mapgen_stair_sandstonebrick", "material:stair_sandstonebrick")
|
|
@ -0,0 +1 @@
|
|||
game
|
|
@ -0,0 +1,33 @@
|
|||
--[[
|
||||
mods/material/init.lua
|
||||
======================
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
local modpath = core.get_modpath("material") .. "/lua/"
|
||||
|
||||
dofile(modpath .. "bricks.lua")
|
||||
dofile(modpath .. "cobble.lua")
|
||||
dofile(modpath .. "dirt.lua")
|
||||
dofile(modpath .. "gravel.lua")
|
||||
dofile(modpath .. "ice.lua")
|
||||
dofile(modpath .. "lava.lua")
|
||||
dofile(modpath .. "ores.lua")
|
||||
dofile(modpath .. "sand.lua")
|
||||
dofile(modpath .. "snow.lua")
|
||||
dofile(modpath .. "stone.lua")
|
||||
dofile(modpath .. "water.lua")
|
|
@ -0,0 +1,120 @@
|
|||
--[[
|
||||
mods/material/lua/bricks.lua
|
||||
============================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:brick", {
|
||||
description = "Brick Block",
|
||||
tiles = {"material_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3},
|
||||
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
stair = {
|
||||
description = "Brick Stair",
|
||||
},
|
||||
slab = {
|
||||
description = "Brick Slab",
|
||||
},
|
||||
wall = {
|
||||
description = "Brick Wall"
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Stonebricks
|
||||
|
||||
core.register_node("material:stonebrick", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Stone Brick",
|
||||
tiles = {"material_stone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:desert_stonebrick", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Desert Stone Brick",
|
||||
tiles = {"material_desert_stone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:sandstonebrick", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Sandstone Brick",
|
||||
tiles = {"material_sandstone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:obsidianbrick", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Obsidian Brick",
|
||||
tiles = {"material_obsidian_brick.png"},
|
||||
is_ground_content = false,
|
||||
|
||||
groups = {cracky = 1, level = 2}
|
||||
})
|
||||
|
||||
|
||||
-- Crafting
|
||||
|
||||
core.register_craft({
|
||||
output = "material:brick",
|
||||
recipe = {
|
||||
{"material:clay_brick", "material:clay_brick"},
|
||||
{"material:clay_brick", "material:clay_brick"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:stonebrick 4",
|
||||
recipe = {
|
||||
{"material:stone", "material:stone"},
|
||||
{"material:stone", "material:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:sandstonebrick 4",
|
||||
recipe = {
|
||||
{"material:sandstone", "material:sandstone"},
|
||||
{"material:sandstone", "material:sandstone"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:obsidianbrick 4",
|
||||
recipe = {
|
||||
{"material:obsidian", "material:obsidian"},
|
||||
{"material:obsidian", "material:obsidian"}
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:desert_stonebrick 4",
|
||||
recipe = {
|
||||
{"material:desert_stone", "material:desert_stone"},
|
||||
{"material:desert_stone", "material:desert_stone"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,50 @@
|
|||
--[[
|
||||
mods/material/lua/cobble.lua
|
||||
============================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:cobble", {
|
||||
register = {stair = true, slab = true, table = true, wall = true},
|
||||
description = "Cobblestone",
|
||||
tiles = {"material_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
|
||||
table = {
|
||||
groups = {cracky = 2},
|
||||
},
|
||||
})
|
||||
|
||||
core.register_node("material:mossycobble", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Mossy Cobblestone",
|
||||
tiles = {"material_mossycobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:desert_cobble", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Desert Cobblestone",
|
||||
tiles = {"material_desert_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
|
||||
})
|
|
@ -0,0 +1,120 @@
|
|||
--[[
|
||||
mods/material/lua/dirt.lua
|
||||
==========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
-- Wet
|
||||
|
||||
core.register_node("material:clay", {
|
||||
description = "Clay",
|
||||
tiles = {"material_clay.png"},
|
||||
groups = {crumbly = 3},
|
||||
drop = 'material:clay_lump 4',
|
||||
})
|
||||
|
||||
|
||||
-- Dry
|
||||
|
||||
core.register_node("material:dirt", {
|
||||
description = "Dirt",
|
||||
tiles = {"material_dirt.png"},
|
||||
groups = {crumbly = 3, soil = 1, dirt = 1},
|
||||
})
|
||||
|
||||
core.register_node("material:dry_dirt", {
|
||||
description = "Dry Dirt",
|
||||
tiles = {"material_dry_dirt.png"},
|
||||
groups = {crumbly = 3, dirt = 4},
|
||||
})
|
||||
|
||||
|
||||
-- Covered
|
||||
|
||||
core.register_node("material:dirt_with_grass", {
|
||||
description = "Dirt with Grass",
|
||||
tiles = {"material_grass.png", "material_dirt.png",
|
||||
{name = "material_dirt.png^material_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, dirt = 2},
|
||||
drop = 'material:dirt',
|
||||
-- sounds = default.node_sound_dirt_defaults({
|
||||
-- footstep = {name = "material_grass_footstep", gain = 0.2},
|
||||
-- on_place = {name = "material_grass_place", gain = 0.5},
|
||||
-- }),
|
||||
})
|
||||
|
||||
core.register_node("material:dirt_with_grass_footsteps", {
|
||||
description = "Dirt with Grass and Footsteps",
|
||||
tiles = {"material_grass.png^material_footprint.png", "material_dirt.png",
|
||||
{name = "material_dirt.png^material_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = 1, dirt = 2},
|
||||
drop = 'material:dirt',
|
||||
-- sounds = default.node_sound_dirt_defaults({
|
||||
-- footstep = {name = "material_grass_footstep", gain = 0.25},
|
||||
-- }),
|
||||
})
|
||||
|
||||
core.register_node("material:dirt_with_dry_grass", {
|
||||
description = "Dirt with Dry Grass",
|
||||
tiles = {"material_dry_grass.png",
|
||||
"material_dirt.png",
|
||||
{name = "material_dirt.png^material_dry_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, dirt = 2},
|
||||
drop = 'material:dirt',
|
||||
-- sounds = default.node_sound_dirt_defaults({
|
||||
-- footstep = {name = "material_grass_footstep", gain = 0.4},
|
||||
-- }),
|
||||
})
|
||||
|
||||
core.register_node("material:dirt_with_snow", {
|
||||
description = "Dirt with Snow",
|
||||
tiles = {"material_snow.png", "material_dirt.png",
|
||||
{name = "material_dirt.png^material_snow_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, dirt = 3, snowy = 1},
|
||||
drop = 'material:dirt',
|
||||
-- sounds = default.node_sound_dirt_defaults({
|
||||
-- footstep = {name = "material_snow_footstep", gain = 0.25},
|
||||
-- }),
|
||||
})
|
||||
|
||||
|
||||
-- Crafting
|
||||
|
||||
core.register_craft({
|
||||
output = "material:clay",
|
||||
recipe = {
|
||||
{"material:clay_lump", "material:clay_lump"},
|
||||
{"material:clay_lump", "material:clay_lump"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
type = "shapeless",
|
||||
output = "material:dirt_with_snow",
|
||||
recipe = {"material:dirt", "material:snow"}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
type = "cooking",
|
||||
output = "material:dry_dirt",
|
||||
recipe = "material:dirt",
|
||||
})
|
|
@ -0,0 +1,33 @@
|
|||
--[[
|
||||
mods/material/lua/gravel.lua
|
||||
============================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:gravel", {
|
||||
description = "Gravel",
|
||||
tiles = {"material_gravel.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"material:flint"}, rarity = 16},
|
||||
{items = {"material:gravel"}}
|
||||
}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,28 @@
|
|||
--[[
|
||||
mods/material/lua/ice.lua
|
||||
=========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:ice", {
|
||||
description = "Ice",
|
||||
tiles = {"material_ice.png"},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, puts_out_fire = 1, snowy = 2},
|
||||
})
|
|
@ -0,0 +1,115 @@
|
|||
--[[
|
||||
mods/material/lua/lava.lua
|
||||
==========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:lava_source", {
|
||||
description = "Lava Source",
|
||||
inventory_image = minetest.inventorycube("material_lava.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {
|
||||
{
|
||||
name = "material_lava_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 3.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
special_tiles = {
|
||||
-- New-style lava source material (mostly unused)
|
||||
{
|
||||
name = "material_lava_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 3.0,
|
||||
},
|
||||
backface_culling = false,
|
||||
},
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = game.LIGHT_MAX - 1,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "material:lava_flowing",
|
||||
liquid_alternative_source = "material:lava_source",
|
||||
liquid_viscosity = 7,
|
||||
liquid_renewable = false,
|
||||
damage_per_second = 4 * 2,
|
||||
post_effect_color = {a = 192, r = 255, g = 64, b = 0},
|
||||
groups = {lava = 3, liquid = 2, hot = 3, igniter = 1},
|
||||
})
|
||||
|
||||
core.register_node("material:lava_flowing", {
|
||||
description = "Flowing Lava",
|
||||
inventory_image = minetest.inventorycube("material_lava.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"material_lava.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
name = "material_lava_flowing_animated.png",
|
||||
backface_culling = false,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 3.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "material_lava_flowing_animated.png",
|
||||
backface_culling = true,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 3.3,
|
||||
},
|
||||
},
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
light_source = game.LIGHT_MAX - 1,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "material:lava_flowing",
|
||||
liquid_alternative_source = "material:lava_source",
|
||||
liquid_viscosity = 7,
|
||||
liquid_renewable = false,
|
||||
damage_per_second = 4 * 2,
|
||||
post_effect_color = {a = 192, r = 255, g = 64, b = 0},
|
||||
groups = {lava = 3, liquid = 2, hot = 3, igniter = 1,
|
||||
not_in_creative_inventory = 1},
|
||||
})
|
|
@ -0,0 +1,251 @@
|
|||
--[[
|
||||
mods/material/lua/ores.lua
|
||||
==========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
-- Minerals
|
||||
|
||||
local stones = {
|
||||
{"stone"},
|
||||
{"sandstone"},
|
||||
{"desert_stone"}
|
||||
}
|
||||
|
||||
for _,stone in pairs(stones) do
|
||||
stone = stone[1]
|
||||
core.register_node("material:" .. stone .. "_with_coal", {
|
||||
description = "Coal Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_coal.png"},
|
||||
groups = {cracky = 3, not_in_creative_inventory = 1},
|
||||
drop = 'material:coal_lump',
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:" .. stone .. "_with_iron", {
|
||||
description = "Iron Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_iron.png"},
|
||||
groups = {cracky = 2, not_in_creative_inventory = 1},
|
||||
drop = 'material:iron_lump',
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:" .. stone .. "_with_copper", {
|
||||
description = "Copper Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_copper.png"},
|
||||
groups = {cracky = 2, not_in_creative_inventory = 1},
|
||||
drop = 'material:copper_lump',
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:" .. stone .. "_with_mese", {
|
||||
description = "Mese Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_mese.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
||||
drop = "material:mese_crystal",
|
||||
|
||||
light_source = 1,
|
||||
})
|
||||
|
||||
core.register_node("material:" .. stone .. "_with_diamond", {
|
||||
description = "Diamond Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_diamond.png"},
|
||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
||||
drop = "material:diamond",
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:" .. stone .. "_with_gold", {
|
||||
description = "Gold Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_gold.png"},
|
||||
drop = "material:gold_lump",
|
||||
groups = {cracky = 2, not_in_creative_inventory = 1},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:" .. stone .. "_with_salt", {
|
||||
description = "Salt Ore",
|
||||
tiles = {"material_" .. stone .. ".png^material_mineral_salt.png"},
|
||||
groups = {cracky = 2, not_in_creative_inventory = 1},
|
||||
drop = {
|
||||
max_items = 5,
|
||||
items = {
|
||||
{items = {"material:salt 2"}},
|
||||
{items = {"material:salt"}, rarity = 2},
|
||||
{items = {"material:salt"}, rarity = 3},
|
||||
{items = {"material:salt"}, rarity = 5}
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- Blocks
|
||||
|
||||
core.register_node("material:mese", {
|
||||
description = "Mese Block",
|
||||
tiles = {"material_mese_block.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 1, level = 2},
|
||||
|
||||
light_source = 3,
|
||||
})
|
||||
|
||||
core.register_node("material:coalblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Coal Block",
|
||||
tiles = {"material_coal_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, fuel = 370},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:steelblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Steel Block",
|
||||
tiles = {"material_steel_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
|
||||
stair = {legacy_alias = "stairs:stair_steelblock"},
|
||||
slab = {legacy_alias = "stairs:slab_steelblock"},
|
||||
})
|
||||
|
||||
core.register_node("material:copperblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Copper Block",
|
||||
tiles = {"material_copper_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
|
||||
stair = {legacy_alias = "stairs:stair_copperblock"},
|
||||
slab = {legacy_alias = "stairs:slab_copperblock"},
|
||||
})
|
||||
|
||||
core.register_node("material:bronzeblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Bronze Block",
|
||||
tiles = {"material_bronze_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
|
||||
stair = {legacy_alias = "stairs:stair_bronzeblock"},
|
||||
slab = {legacy_alias = "stairs:slab_bronzeblock"},
|
||||
})
|
||||
|
||||
core.register_node("material:goldblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Gold Block",
|
||||
tiles = {"material_gold_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1},
|
||||
|
||||
stair = {legacy_alias = "stairs:stair_goldblock"},
|
||||
slab = {legacy_alias = "stairs:slab_goldblock"},
|
||||
})
|
||||
|
||||
core.register_node("material:diamondblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Diamond Block",
|
||||
tiles = {"material_diamond_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
|
||||
stair = {legacy_alias = "stairs:stair_diamondblock"},
|
||||
slab = {legacy_alias = "stairs:slab_diamondblock"},
|
||||
})
|
||||
|
||||
core.register_node("material:saltblock", {
|
||||
register = {stair = true, slab = true},
|
||||
description = "Salt Block",
|
||||
tiles = {"material_salt_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Crafting
|
||||
--
|
||||
|
||||
core.register_craft({
|
||||
output = "material:mese",
|
||||
recipe = {
|
||||
{"material:mese_crystal", "material:mese_crystal", "material:mese_crystal"},
|
||||
{"material:mese_crystal", "material:mese_crystal", "material:mese_crystal"},
|
||||
{"material:mese_crystal", "material:mese_crystal", "material:mese_crystal"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:coalblock",
|
||||
recipe = {
|
||||
{"material:coal_lump", "material:coal_lump", "material:coal_lump"},
|
||||
{"material:coal_lump", "material:coal_lump", "material:coal_lump"},
|
||||
{"material:coal_lump", "material:coal_lump", "material:coal_lump"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:steelblock",
|
||||
recipe = {
|
||||
{"material:steel_ingot", "material:steel_ingot", "material:steel_ingot"},
|
||||
{"material:steel_ingot", "material:steel_ingot", "material:steel_ingot"},
|
||||
{"material:steel_ingot", "material:steel_ingot", "material:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:copperblock",
|
||||
recipe = {
|
||||
{"material:copper_ingot", "material:copper_ingot", "material:copper_ingot"},
|
||||
{"material:copper_ingot", "material:copper_ingot", "material:copper_ingot"},
|
||||
{"material:copper_ingot", "material:copper_ingot", "material:copper_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:bronzeblock",
|
||||
recipe = {
|
||||
{"material:bronze_ingot", "material:bronze_ingot", "material:bronze_ingot"},
|
||||
{"material:bronze_ingot", "material:bronze_ingot", "material:bronze_ingot"},
|
||||
{"material:bronze_ingot", "material:bronze_ingot", "material:bronze_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:goldblock",
|
||||
recipe = {
|
||||
{"material:gold_ingot", "material:gold_ingot", "material:gold_ingot"},
|
||||
{"material:gold_ingot", "material:gold_ingot", "material:gold_ingot"},
|
||||
{"material:gold_ingot", "material:gold_ingot", "material:gold_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:diamondblock",
|
||||
recipe = {
|
||||
{"material:diamond", "material:diamond", "material:diamond"},
|
||||
{"material:diamond", "material:diamond", "material:diamond"},
|
||||
{"material:diamond", "material:diamond", "material:diamond"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,40 @@
|
|||
--[[
|
||||
mods/material/lua/sand.lua
|
||||
==========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:sand", {
|
||||
description = "Sand",
|
||||
tiles = {"material_sand.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
})
|
||||
|
||||
core.register_node("material:desert_sand", {
|
||||
description = "Desert Sand",
|
||||
tiles = {"material_desert_sand.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
})
|
||||
|
||||
-- Crafting
|
||||
core.register_craft({
|
||||
output = "material:sand 4",
|
||||
recipe = {
|
||||
{"material:sandstone"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,69 @@
|
|||
--[[
|
||||
mods/material/lua/snow.lua
|
||||
==========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:snow", {
|
||||
description = "Snow",
|
||||
tiles = {"material_snow.png"},
|
||||
inventory_image = "material_snowball.png",
|
||||
wield_image = "material_snowball.png",
|
||||
paramtype = "light",
|
||||
buildable_to = true,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
},
|
||||
},
|
||||
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1, snowy = 1},
|
||||
|
||||
on_construct = function(pos)
|
||||
pos.y = pos.y - 1
|
||||
if minetest.get_node(pos).name == "material:dirt_with_grass" then
|
||||
minetest.set_node(pos, {name = "material:dirt_with_snow"})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
core.register_node("material:snowblock", {
|
||||
description = "Snow Block",
|
||||
tiles = {"material_snow.png"},
|
||||
groups = {crumbly = 3, puts_out_fire = 1, snowy = 1},
|
||||
})
|
||||
|
||||
|
||||
-- Crafting
|
||||
|
||||
core.register_craft({
|
||||
output = "material:snowblock",
|
||||
recipe = {
|
||||
{"material:snow", "material:snow", "material:snow"},
|
||||
{"material:snow", "material:snow", "material:snow"},
|
||||
{"material:snow", "material:snow", "material:snow"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:snow 9",
|
||||
recipe = {
|
||||
{"material:snowblock"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,97 @@
|
|||
--[[
|
||||
mods/material/lua/stone.lua
|
||||
===========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:stone", {
|
||||
description = "Stone",
|
||||
tiles = {"material_stone.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'material:cobble',
|
||||
legacy_mineral = true,
|
||||
|
||||
register = {stair = true, slab = true, table = true, wall = true},
|
||||
table = {
|
||||
groups = {cracky = 3}
|
||||
},
|
||||
})
|
||||
|
||||
core.register_node("material:desert_stone", {
|
||||
description = "Desert Stone",
|
||||
tiles = {"material_desert_stone.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'material:desert_cobble',
|
||||
legacy_mineral = true,
|
||||
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
})
|
||||
|
||||
core.register_node("material:sandstone", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Sandstone",
|
||||
tiles = {"material_sandstone.png"},
|
||||
groups = {crumbly = 2, cracky = 3},
|
||||
|
||||
})
|
||||
|
||||
core.register_node("material:obsidian", {
|
||||
register = {stair = true, slab = true, wall = true},
|
||||
description = "Obsidian",
|
||||
tiles = {"material_obsidian.png"},
|
||||
|
||||
groups = {cracky = 1, level = 2},
|
||||
})
|
||||
|
||||
|
||||
-- Crafting
|
||||
|
||||
core.register_craft({
|
||||
type = "cooking",
|
||||
output = "material:stone",
|
||||
recipe = "material:cobble",
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
type = "cooking",
|
||||
output = "material:stone",
|
||||
recipe = "material:mossycobble",
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
type = "cooking",
|
||||
output = "material:desert_stone",
|
||||
recipe = "material:desert_cobble",
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:sandstone",
|
||||
recipe = {
|
||||
{"group:sand", "group:sand"},
|
||||
{"group:sand", "group:sand"},
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = "material:obsidian",
|
||||
recipe = {
|
||||
{"material:obsidian_shard", "material:obsidian_shard", "material:obsidian_shard"},
|
||||
{"material:obsidian_shard", "material:obsidian_shard", "material:obsidian_shard"},
|
||||
{"material:obsidian_shard", "material:obsidian_shard", "material:obsidian_shard"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,111 @@
|
|||
--[[
|
||||
mods/material/lua/water.lua
|
||||
===========================
|
||||
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2016 LNJ <git@lnj.li>
|
||||
|
||||
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.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
]]
|
||||
|
||||
core.register_node("material:water_source", {
|
||||
description = "Water Source",
|
||||
inventory_image = minetest.inventorycube("material_water.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {
|
||||
{
|
||||
name = "material_water_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
special_tiles = {
|
||||
-- New-style water source material (mostly unused)
|
||||
{
|
||||
name = "material_water_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
backface_culling = false,
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "material:water_flowing",
|
||||
liquid_alternative_source = "material:water_source",
|
||||
liquid_viscosity = 1,
|
||||
post_effect_color = {a = 120, r = 30, g = 60, b = 90},
|
||||
groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
||||
})
|
||||
|
||||
core.register_node("material:water_flowing", {
|
||||
description = "Flowing Water",
|
||||
inventory_image = minetest.inventorycube("material_water.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"material_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
name = "material_water_flowing_animated.png",
|
||||
backface_culling = false,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 0.8,
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "material_water_flowing_animated.png",
|
||||
backface_culling = true,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 0.8,
|
||||
},
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "material:water_flowing",
|
||||
liquid_alternative_source = "material:water_source",
|
||||
liquid_viscosity = 1,
|
||||
post_effect_color = {a = 120, r = 30, g = 60, b = 90},
|
||||
groups = {water = 3, liquid = 3, puts_out_fire = 1,
|
||||
not_in_creative_inventory = 1},
|
||||
})
|
After Width: | Height: | Size: 346 B |
After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 223 B |
After Width: | Height: | Size: 350 B |
After Width: | Height: | Size: 271 B |
After Width: | Height: | Size: 157 B |
After Width: | Height: | Size: 166 B |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 356 B |
After Width: | Height: | Size: 224 B |
After Width: | Height: | Size: 177 B |
After Width: | Height: | Size: 228 B |
After Width: | Height: | Size: 349 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 393 B |
After Width: | Height: | Size: 313 B |
After Width: | Height: | Size: 659 B |
After Width: | Height: | Size: 271 B |
After Width: | Height: | Size: 670 B |
After Width: | Height: | Size: 259 B |
After Width: | Height: | Size: 190 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 183 B |
After Width: | Height: | Size: 694 B |
After Width: | Height: | Size: 448 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 158 B |
After Width: | Height: | Size: 685 B |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 121 B |
After Width: | Height: | Size: 141 B |
After Width: | Height: | Size: 134 B |
After Width: | Height: | Size: 257 B |
After Width: | Height: | Size: 126 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 326 B |
After Width: | Height: | Size: 263 B |
After Width: | Height: | Size: 312 B |
After Width: | Height: | Size: 152 B |
After Width: | Height: | Size: 223 B |
After Width: | Height: | Size: 110 B |
After Width: | Height: | Size: 172 B |
After Width: | Height: | Size: 344 B |
After Width: | Height: | Size: 579 B |
After Width: | Height: | Size: 249 B |
After Width: | Height: | Size: 386 B |