Update darkage mod as a submodule from davisonio repository
Fix aliases (beds, doors3) Add lily_pad wich no longer exist in minetest_game
3
.gitmodules
vendored
|
@ -143,3 +143,6 @@
|
||||||
[submodule "mods/toolranks"]
|
[submodule "mods/toolranks"]
|
||||||
path = mods/toolranks
|
path = mods/toolranks
|
||||||
url = https://github.com/lisacvuk/minetest-toolranks.git
|
url = https://github.com/lisacvuk/minetest-toolranks.git
|
||||||
|
[submodule "mods/darkage"]
|
||||||
|
path = mods/darkage
|
||||||
|
url = https://github.com/adrido/darkage.git
|
||||||
|
|
1
mods/darkage
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit bef0f2bf88596e6e6ef94763647e02f7ec11380a
|
163
mods/darkage/.gitignore
vendored
|
@ -1,163 +0,0 @@
|
||||||
#################
|
|
||||||
## Eclipse
|
|
||||||
#################
|
|
||||||
|
|
||||||
*.pydevproject
|
|
||||||
.project
|
|
||||||
.metadata
|
|
||||||
bin/
|
|
||||||
tmp/
|
|
||||||
*.tmp
|
|
||||||
*.bak
|
|
||||||
*.swp
|
|
||||||
*~.nib
|
|
||||||
local.properties
|
|
||||||
.classpath
|
|
||||||
.settings/
|
|
||||||
.loadpath
|
|
||||||
|
|
||||||
# External tool builders
|
|
||||||
.externalToolBuilders/
|
|
||||||
|
|
||||||
# Locally stored "Eclipse launch configurations"
|
|
||||||
*.launch
|
|
||||||
|
|
||||||
# CDT-specific
|
|
||||||
.cproject
|
|
||||||
|
|
||||||
# PDT-specific
|
|
||||||
.buildpath
|
|
||||||
|
|
||||||
|
|
||||||
#################
|
|
||||||
## Visual Studio
|
|
||||||
#################
|
|
||||||
|
|
||||||
## Ignore Visual Studio temporary files, build results, and
|
|
||||||
## files generated by popular Visual Studio add-ons.
|
|
||||||
|
|
||||||
# User-specific files
|
|
||||||
*.suo
|
|
||||||
*.user
|
|
||||||
*.sln.docstates
|
|
||||||
|
|
||||||
# Build results
|
|
||||||
[Dd]ebug/
|
|
||||||
[Rr]elease/
|
|
||||||
*_i.c
|
|
||||||
*_p.c
|
|
||||||
*.ilk
|
|
||||||
*.meta
|
|
||||||
*.obj
|
|
||||||
*.pch
|
|
||||||
*.pdb
|
|
||||||
*.pgc
|
|
||||||
*.pgd
|
|
||||||
*.rsp
|
|
||||||
*.sbr
|
|
||||||
*.tlb
|
|
||||||
*.tli
|
|
||||||
*.tlh
|
|
||||||
*.tmp
|
|
||||||
*.vspscc
|
|
||||||
.builds
|
|
||||||
*.dotCover
|
|
||||||
|
|
||||||
## TODO: If you have NuGet Package Restore enabled, uncomment this
|
|
||||||
#packages/
|
|
||||||
|
|
||||||
# Visual C++ cache files
|
|
||||||
ipch/
|
|
||||||
*.aps
|
|
||||||
*.ncb
|
|
||||||
*.opensdf
|
|
||||||
*.sdf
|
|
||||||
|
|
||||||
# Visual Studio profiler
|
|
||||||
*.psess
|
|
||||||
*.vsp
|
|
||||||
|
|
||||||
# ReSharper is a .NET coding add-in
|
|
||||||
_ReSharper*
|
|
||||||
|
|
||||||
# Installshield output folder
|
|
||||||
[Ee]xpress
|
|
||||||
|
|
||||||
# DocProject is a documentation generator add-in
|
|
||||||
DocProject/buildhelp/
|
|
||||||
DocProject/Help/*.HxT
|
|
||||||
DocProject/Help/*.HxC
|
|
||||||
DocProject/Help/*.hhc
|
|
||||||
DocProject/Help/*.hhk
|
|
||||||
DocProject/Help/*.hhp
|
|
||||||
DocProject/Help/Html2
|
|
||||||
DocProject/Help/html
|
|
||||||
|
|
||||||
# Click-Once directory
|
|
||||||
publish
|
|
||||||
|
|
||||||
# Others
|
|
||||||
[Bb]in
|
|
||||||
[Oo]bj
|
|
||||||
sql
|
|
||||||
TestResults
|
|
||||||
*.Cache
|
|
||||||
ClientBin
|
|
||||||
stylecop.*
|
|
||||||
~$*
|
|
||||||
*.dbmdl
|
|
||||||
Generated_Code #added for RIA/Silverlight projects
|
|
||||||
|
|
||||||
# Backup & report files from converting an old project file to a newer
|
|
||||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
|
||||||
_UpgradeReport_Files/
|
|
||||||
Backup*/
|
|
||||||
UpgradeLog*.XML
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
############
|
|
||||||
## Windows
|
|
||||||
############
|
|
||||||
|
|
||||||
# Windows image file caches
|
|
||||||
Thumbs.db
|
|
||||||
|
|
||||||
# Folder config file
|
|
||||||
Desktop.ini
|
|
||||||
|
|
||||||
|
|
||||||
#############
|
|
||||||
## Python
|
|
||||||
#############
|
|
||||||
|
|
||||||
*.py[co]
|
|
||||||
|
|
||||||
# Packages
|
|
||||||
*.egg
|
|
||||||
*.egg-info
|
|
||||||
dist
|
|
||||||
build
|
|
||||||
eggs
|
|
||||||
parts
|
|
||||||
bin
|
|
||||||
var
|
|
||||||
sdist
|
|
||||||
develop-eggs
|
|
||||||
.installed.cfg
|
|
||||||
|
|
||||||
# Installer logs
|
|
||||||
pip-log.txt
|
|
||||||
|
|
||||||
# Unit test / coverage reports
|
|
||||||
.coverage
|
|
||||||
.tox
|
|
||||||
|
|
||||||
#Translations
|
|
||||||
*.mo
|
|
||||||
|
|
||||||
#Mr Developer
|
|
||||||
.mr.developer.cfg
|
|
||||||
|
|
||||||
# Mac crap
|
|
||||||
.DS_Store
|
|
|
@ -1,76 +0,0 @@
|
||||||
# Darkage mod for Minetest
|
|
||||||
This mod adds some new blocks that allow pre-industrial looking buildings to be made.
|
|
||||||
Of course, feel free to use them for any other type of construction.
|
|
||||||
|
|
||||||
This mod originally created by MasterGollum and is now maintained and being improved upon by addi and CraigyDavi.
|
|
||||||
|
|
||||||
**Depends:** default, stairs?, stairsplus?
|
|
||||||
|
|
||||||
**License:** Code and textures, [WTFPL](http://www.wtfpl.net/txt/copying/)
|
|
||||||
|
|
||||||
**Installation:** Unzip the file and rename it to "darkage". Then move it to the mod directory.
|
|
||||||
|
|
||||||
## Changelog
|
|
||||||
**Version Development**
|
|
||||||
|
|
||||||
**Version 1.3**
|
|
||||||
|
|
||||||
* Many, many craft recipe changes
|
|
||||||
* New lamp texture
|
|
||||||
* New mud and mud lump texture
|
|
||||||
* Add some more stairs, fix existing stairs
|
|
||||||
* Fixes problems with light emmiting nodes
|
|
||||||
* Fix caves generating in blocks which are not ground content
|
|
||||||
* Remove textures32 folder, code cleanup
|
|
||||||
|
|
||||||
**Version 1.2**
|
|
||||||
|
|
||||||
* Corrected Sounds of Stairs
|
|
||||||
* Updated mod to use new moreblocks API
|
|
||||||
* Added Serpentine Stairs
|
|
||||||
|
|
||||||
**Version 1.1**
|
|
||||||
|
|
||||||
* Fix spelling mistakes in README file
|
|
||||||
* Bug fix
|
|
||||||
* Rename slate_tale to slate_tile
|
|
||||||
* Remove unneeded code
|
|
||||||
* Add marble tile
|
|
||||||
* Remove unneeded code
|
|
||||||
* Capitalise a couple of descriptions
|
|
||||||
* Add marble tile texture
|
|
||||||
* Rename alias.lua to aliases.lua
|
|
||||||
|
|
||||||
**Version 1.0.1**
|
|
||||||
|
|
||||||
* Fixed broken init.lua
|
|
||||||
|
|
||||||
**Version 1.0**
|
|
||||||
|
|
||||||
* Compatibility with stairsplus added
|
|
||||||
* Added new iron_stick item
|
|
||||||
* Added craft for iron stick
|
|
||||||
* Changed craft reciep of iron_bars to avoid conflicts with iron bars mod
|
|
||||||
* Changed craft recipe of chain to avoid conflicts with 3d furniture mod
|
|
||||||
* Changed craft recipe of darkage:stonebrick to avoid conflicts with moreblocks
|
|
||||||
* Disabled marble_tile
|
|
||||||
* Added darkage:glass
|
|
||||||
* Changed the sound_node_leaves_default to wood_default for boxes and wooden shelves
|
|
||||||
* Added craft recipe for chalk
|
|
||||||
* Improved the textures of reinforced wood and chalk
|
|
||||||
* Added another recipe for darkage straw
|
|
||||||
|
|
||||||
**Version 0.3**
|
|
||||||
|
|
||||||
* 29 Nodes + 3 Craft Items
|
|
||||||
* Furniture and building decoration
|
|
||||||
* Stone layers
|
|
||||||
|
|
||||||
**Version 0.2**
|
|
||||||
|
|
||||||
* 13 Nodes
|
|
||||||
* Sedimentary stones
|
|
||||||
|
|
||||||
**Version 0.1**
|
|
||||||
|
|
||||||
* 6 Nodes
|
|
|
@ -1,90 +0,0 @@
|
||||||
-- darkage:desert_stone_cobble + stairs/slabs/microblocks -> default:desert_cobble + stairs/slabs/microblocks
|
|
||||||
minetest.register_alias("darkage:desert_stone_cobble","default:desert_cobble")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_wall_half","default:stair_desert_cobble_wall_half")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_inverted","default:slab_desert_cobble_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_inverted","default:stair_desert_cobble_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_outer","default:stair_desert_cobble_outer")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_three_quarter_wall","default:slab_desert_cobble_three_quarter_wall")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_quarter","default:slab_desert_cobble_quarter")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble","default:slab_desert_cobble")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_quarter_inverted","default:slab_desert_cobble_quarter_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_wall","default:stair_desert_cobble_wall")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_outer_inverted","default:stair_desert_cobble_outer_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_half","default:stair_desert_cobble_half")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_wall_half_inverted","default:stair_desert_cobble_wall_half_inverted")
|
|
||||||
minetest.register_alias("darkage:micro_desert_stone_cobble_bottom","default:micro_desert_cobble_bottom")
|
|
||||||
minetest.register_alias("darkage:panel_desert_stone_cobble_bottom","default:panel_desert_cobble_bottom")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_half_inverted","default:stair_desert_cobble_half_inverted")
|
|
||||||
minetest.register_alias("darkage:micro_desert_stone_cobble_top","default:micro_desert_cobble_top")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_quarter_wall","default:slab_desert_cobble_quarter_wall")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_right_half","default:stair_desert_cobble_right_half")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_right_half_inverted","default:stair_desert_cobble_right_half_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_three_quarter","default:slab_desert_cobble_three_quarter")
|
|
||||||
minetest.register_alias("darkage:panel_desert_stone_cobble_top","default:panel_desert_cobble_top")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_inner","default:stair_desert_cobble_inner")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble","default:stair_desert_cobble")
|
|
||||||
minetest.register_alias("darkage:panel_desert_stone_cobble_vertical","default:panel_desert_cobble_vertical")
|
|
||||||
minetest.register_alias("darkage:stair_desert_stone_cobble_inner_inverted","default:stair_desert_cobble_inner_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_desert_stone_cobble_three_quarter_inverted","default:slab_desert_cobble_three_quarter_inverted")
|
|
||||||
|
|
||||||
-- darkage:sandstone_cobble + stairs/slabs/microblocks -> default:sandstonebrick + stairs/slabs/microblocks
|
|
||||||
minetest.register_alias("darkage:sandstone_cobble","default:sandstonebrick")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_wall_half","default:stair_sandstonebrick_wall_half")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_inverted","default:slab_sandstonebrick_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_inverted","default:stair_sandstonebrick_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_outer","default:stair_sandstonebrick_outer")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_three_quarter_wall","default:slab_sandstonebrick_three_quarter_wall")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_quarter","default:slab_sandstonebrick_quarter")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble","default:slab_sandstonebrick")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_quarter_inverted","default:slab_sandstonebrick_quarter_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_wall","default:stair_sandstonebrick_wall")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_outer_inverted","default:stair_sandstonebrick_outer_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_half","default:stair_sandstonebrick_half")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_wall_half_inverted","default:stair_sandstonebrick_wall_half_inverted")
|
|
||||||
minetest.register_alias("darkage:micro_sandstone_cobble_bottom","default:micro_sandstonebrick_bottom")
|
|
||||||
minetest.register_alias("darkage:panel_sandstone_cobble_bottom","default:panel_sandstonebrick_bottom")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_half_inverted","default:stair_sandstonebrick_half_inverted")
|
|
||||||
minetest.register_alias("darkage:micro_sandstone_cobble_top","default:micro_sandstonebrick_top")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_quarter_wall","default:slab_sandstonebrick_quarter_wall")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_right_half","default:stair_sandstonebrick_right_half")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_right_half_inverted","default:stair_sandstonebrick_right_half_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_three_quarter","default:slab_sandstonebrick_three_quarter")
|
|
||||||
minetest.register_alias("darkage:panel_sandstone_cobble_top","default:panel_sandstonebrick_top")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_inner","default:stair_sandstonebrick_inner")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble","default:stair_sandstonebrick")
|
|
||||||
minetest.register_alias("darkage:panel_sandstone_cobble_vertical","default:panel_sandstonebrick_vertical")
|
|
||||||
minetest.register_alias("darkage:stair_sandstone_cobble_inner_inverted","default:stair_sandstonebrick_inner_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_sandstone_cobble_three_quarter_inverted","default:slab_sandstonebrick_three_quarter_inverted")
|
|
||||||
|
|
||||||
-- darkage:slate_tale + stairs/slabs/microblocks -> darkage:slate_tile + stairs/slabs/microblocks
|
|
||||||
minetest.register_alias("darkage:slate_tile","darkage:slate_tale")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_inverted","darkage:slab_slate_tale_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_wall","darkage:slab_slate_tale_wall")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_quarter","darkage:slab_slate_tale_quarter")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_quarter_inverted","darkage:slab_slate_tale_quarter_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_quarter_wall","darkage:slab_slate_tale_quarter_wall")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_three_quarter","darkage:slab_slate_tale_three_quarter")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_three_quarter_inverted","darkage:slab_slate_tale_three_quarter_inverted")
|
|
||||||
minetest.register_alias("darkage:slab_slate_tile_three_quarter_wall","darkage:slab_slate_tale_three_quarter_wall")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_inverted","darkage:stair_slate_tale_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_wall","darkage:stair_slate_tale_wall")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_wall_half","darkage:stair_slate_tale_wall_half")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_wall_half_inverted","darkage:stair_slate_tale_wall_half_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_half","darkage:stair_slate_tale_half")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_half_inverted","darkage:stair_slate_tale_half_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_right_half","darkage:stair_slate_tale_right_half")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_right_half_inverted","darkage:stair_slate_tale_right_half_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_wall_half","darkage:stair_slate_tale_wall_half")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_wall_half_inverted","darkage:stair_slate_tale_wall_half_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_inner","darkage:stair_slate_tale_inner")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_inner_inverted","darkage:stair_slate_tale_inner_inverted")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_outer","darkage:stair_slate_tale_outer")
|
|
||||||
minetest.register_alias("darkage:stair_slate_tile_outer_inverted","darkage:stair_slate_tale_outer_inverted")
|
|
||||||
minetest.register_alias("darkage:panel_slate_tile_bottom","darkage:panel_slate_tale_bottom")
|
|
||||||
minetest.register_alias("darkage:panel_slate_tile_top","darkage:panel_slate_tale_top")
|
|
||||||
minetest.register_alias("darkage:panel_slate_tile_vertical","darkage:panel_slate_tale_vertical")
|
|
||||||
minetest.register_alias("darkage:micro_slate_tile_bottom","darkage:micro_slate_tale_bottom")
|
|
||||||
minetest.register_alias("darkage:micro_slate_tile_top","darkage:micro_slate_tale_top")
|
|
||||||
|
|
||||||
-- darkage:desert_stone_with_iron -> default:desert_stone
|
|
||||||
minetest.register_alias("darkage:desert_stone_with_iron","default:desert_stone")
|
|
|
@ -1,19 +0,0 @@
|
||||||
minetest.register_craftitem("darkage:chalk_powder", {
|
|
||||||
description = "Chalk Powder",
|
|
||||||
inventory_image = "darkage_chalk_powder.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("darkage:mud_lump", {
|
|
||||||
description = "Mud Lump",
|
|
||||||
inventory_image = "darkage_mud_lump.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("darkage:silt_lump", {
|
|
||||||
description = "Silt Lump",
|
|
||||||
inventory_image = "darkage_silt_lump.png",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("darkage:iron_stick", {
|
|
||||||
description = "Iron Stick",
|
|
||||||
inventory_image = "darkage_iron_stick.png",
|
|
||||||
})
|
|
|
@ -1,416 +0,0 @@
|
||||||
-- Naturally spawning blocks
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:chalk",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:chalk_powder","darkage:chalk_powder"},
|
|
||||||
{"darkage:chalk_powder","darkage:chalk_powder"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:mud",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:mud_lump","darkage:mud_lump"},
|
|
||||||
{"darkage:mud_lump","darkage:mud_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:shale",
|
|
||||||
recipe = "darkage:mud",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:silt 3",
|
|
||||||
recipe = {
|
|
||||||
{"default:sand","default:sand"},
|
|
||||||
{"default:clay_lump","default:clay_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:silt",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:silt_lump","darkage:silt_lump"},
|
|
||||||
{"darkage:silt_lump","darkage:silt_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:gneiss",
|
|
||||||
recipe = "darkage:schist",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:slate",
|
|
||||||
recipe = "darkage:shale",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:mud 5",
|
|
||||||
recipe = "darkage:silt",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:slate",
|
|
||||||
recipe = "darkage:slate_cobble",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:ors 4",
|
|
||||||
recipe = {
|
|
||||||
{"default:sandstone","default:sandstone"},
|
|
||||||
{"default:iron_lump","default:sandstone"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:ors",
|
|
||||||
recipe = "darkage:ors_cobble",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:gneiss",
|
|
||||||
recipe = "darkage:gneiss_cobble",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:basalt",
|
|
||||||
recipe = "darkage:basalt_cobble",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Cobble
|
|
||||||
|
|
||||||
-- Other Blocks
|
|
||||||
--if not farming:straw
|
|
||||||
if minetest.get_modpath("farming") == nil then
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:straw 2",
|
|
||||||
recipe = {
|
|
||||||
{"default:dry_shrub","default:dry_shrub"},
|
|
||||||
{"default:dry_shrub","default:dry_shrub"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:straw 2",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:dry_leaves","darkage:dry_leaves"},
|
|
||||||
{"darkage:dry_leaves","darkage:dry_leaves"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:straw_bale",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:straw","darkage:straw"},
|
|
||||||
{"darkage:straw","darkage:straw"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:adobe 4",
|
|
||||||
recipe = {
|
|
||||||
{"default:sand","default:sand"},
|
|
||||||
{"default:clay_lump","darkage:straw"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
else
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "farming:straw 2",
|
|
||||||
recipe = {
|
|
||||||
{"default:dry_shrub","default:dry_shrub"},
|
|
||||||
{"default:dry_shrub","default:dry_shrub"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "farming:straw 2",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:dry_leaves","darkage:dry_leaves"},
|
|
||||||
{"darkage:dry_leaves","darkage:dry_leaves"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:straw_bale",
|
|
||||||
recipe = {
|
|
||||||
{"farming:straw","farming:straw"},
|
|
||||||
{"farming:straw","farming:straw"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:adobe 4",
|
|
||||||
recipe = {
|
|
||||||
{"default:sand","default:sand"},
|
|
||||||
{"default:clay_lump","farming:straw"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:slate_tile 4",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:slate","darkage:slate"},
|
|
||||||
{"darkage:slate","darkage:slate"},
|
|
||||||
{"darkage:adobe","darkage:adobe"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:marble_tile 4",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:marble","darkage:marble"},
|
|
||||||
{"darkage:marble","darkage:marble"},
|
|
||||||
{"darkage:adobe","darkage:adobe"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:stone_brick 9",
|
|
||||||
recipe = {
|
|
||||||
{"default:cobble","default:cobble","default:cobble"},
|
|
||||||
{"default:cobble","default:cobble","default:cobble"},
|
|
||||||
{"default:cobble","default:cobble","default:cobble"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:reinforced_chalk",
|
|
||||||
recipe = {
|
|
||||||
{"group:stick","","group:stick"},
|
|
||||||
{"","darkage:chalk",""},
|
|
||||||
{"group:stick","","group:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:lamp",
|
|
||||||
recipe = {
|
|
||||||
{"group:stick","","group:stick"},
|
|
||||||
{"","default:torch",""},
|
|
||||||
{"group:stick","","group:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:cobble_with_plaster 2",
|
|
||||||
recipe = {
|
|
||||||
{"default:cobble","darkage:chalk_powder"},
|
|
||||||
{"default:cobble","darkage:chalk_powder"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:cobble_with_plaster 2",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:chalk_powder","default:cobble"},
|
|
||||||
{"darkage:chalk_powder","default:cobble"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:darkdirt 4",
|
|
||||||
recipe = {
|
|
||||||
{"default:dirt","default:dirt"},
|
|
||||||
{"default:gravel","default:gravel"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
|
||||||
output = "darkage:dry_leaves",
|
|
||||||
recipe = "default:leaves",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Storage blocks (boxes, shelves, ect.)
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:box",
|
|
||||||
recipe = {
|
|
||||||
{"default:wood","","default:wood"},
|
|
||||||
{"","",""},
|
|
||||||
{"default:wood","","default:wood"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:wood_shelves 2",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:box"},
|
|
||||||
{"darkage:box"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Glass / Glow Glass
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:glass",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:glow_glass"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:glass 8",
|
|
||||||
recipe = {
|
|
||||||
{"default:glass", "default:steel_ingot", "default:glass"},
|
|
||||||
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
|
|
||||||
{"default:glass", "default:steel_ingot", "default:glass"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:glow_glass",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:glass"},
|
|
||||||
{"default:torch"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Reinforced Wood
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:reinforced_wood",
|
|
||||||
recipe = {
|
|
||||||
{"group:stick","group:wood","group:stick"},
|
|
||||||
{"group:wood","group:wood","group:wood"},
|
|
||||||
{"group:stick","group:wood","group:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:reinforced_wood_left",
|
|
||||||
recipe = {
|
|
||||||
{"default:stick","darkage:reinforced_wood",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:reinforced_wood_right",
|
|
||||||
recipe = {
|
|
||||||
{"","darkage:reinforced_wood","default:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Wood based deco items
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:wood_bars 2",
|
|
||||||
recipe = {
|
|
||||||
{"default:stick","","default:stick"},
|
|
||||||
{"default:stick","","default:stick"},
|
|
||||||
{"default:stick","","default:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:wood_grille 2",
|
|
||||||
recipe = {
|
|
||||||
{"","darkage:wood_bars",""},
|
|
||||||
{"darkage:wood_bars","","darkage:wood_bars"},
|
|
||||||
{"","darkage:wood_bars",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:wood_frame",
|
|
||||||
recipe = {
|
|
||||||
{"group:stick","","group:stick"},
|
|
||||||
{"","group:wood",""},
|
|
||||||
{"group:stick","","group:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Metal based deco items
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:chain 2",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:iron_stick"},
|
|
||||||
{"darkage:iron_stick"},
|
|
||||||
{"darkage:iron_stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:iron_bars 2",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:iron_stick","","darkage:iron_stick"},
|
|
||||||
{"darkage:iron_stick","","darkage:iron_stick"},
|
|
||||||
{"darkage:iron_stick","","darkage:iron_stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:iron_grille 2",
|
|
||||||
recipe = {
|
|
||||||
{"","darkage:iron_bars",""},
|
|
||||||
{"darkage:iron_bars","","darkage:iron_bars"},
|
|
||||||
{"","darkage:iron_bars",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Craft items
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:chalk_powder 4",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:chalk"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:mud_lump 4",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:mud"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:silt_lump 4",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:silt"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:iron_stick 3",
|
|
||||||
recipe = {
|
|
||||||
{"default:steel_ingot"},
|
|
||||||
{"default:steel_ingot"},
|
|
||||||
{"default:steel_ingot"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Added
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:ors_brick 4",
|
|
||||||
--type = "shapeless",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:ors","darkage:ors"},
|
|
||||||
{"darkage:ors","darkage:ors"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:slate_brick 4",
|
|
||||||
--type = "shapeless",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:slate","darkage:slate"},
|
|
||||||
{"darkage:slate","darkage:slate"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "darkage:basalt_brick 4",
|
|
||||||
--type = "shapeless",
|
|
||||||
recipe = {
|
|
||||||
{"darkage:basalt","darkage:basalt"},
|
|
||||||
{"darkage:basalt","darkage:basalt"},
|
|
||||||
}
|
|
||||||
})
|
|
|
@ -1,4 +0,0 @@
|
||||||
default
|
|
||||||
farming?
|
|
||||||
stairs?
|
|
||||||
stairsplus?
|
|
|
@ -1,16 +0,0 @@
|
||||||
------------------------------------------------------
|
|
||||||
-- Darkage mod by MasterGollum, addi and CraigyDavi --
|
|
||||||
------------------------------------------------------
|
|
||||||
|
|
||||||
dofile(minetest.get_modpath("darkage").."/nodes.lua")
|
|
||||||
dofile(minetest.get_modpath("darkage").."/craftitems.lua")
|
|
||||||
dofile(minetest.get_modpath("darkage").."/crafts.lua")
|
|
||||||
dofile(minetest.get_modpath("darkage").."/mapgen.lua")
|
|
||||||
dofile(minetest.get_modpath("darkage").."/stairs.lua")
|
|
||||||
dofile(minetest.get_modpath("darkage").."/aliases.lua")
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Config
|
|
||||||
--
|
|
||||||
|
|
||||||
minetest.log ("Darkage [darkage] has loaded!")
|
|
|
@ -1,301 +0,0 @@
|
||||||
--[[
|
|
||||||
This file generates:
|
|
||||||
darkage:mud
|
|
||||||
darkage:silt
|
|
||||||
darkage:chalk
|
|
||||||
darkage:ors
|
|
||||||
darkage:shale
|
|
||||||
darkage:slate
|
|
||||||
darkage:schist
|
|
||||||
darkage:basalt
|
|
||||||
darkage:marble
|
|
||||||
darkage:serpentine
|
|
||||||
darkage:gneiss
|
|
||||||
--]]
|
|
||||||
|
|
||||||
local getID = minetest.get_content_id
|
|
||||||
|
|
||||||
local function generate_stratus(data, varea, name, wherein, ceilin, ceil, minp, maxp, seed, stratus_chance, radius, radius_y, deep, height_min, height_max)
|
|
||||||
local c_ore = getID(name)
|
|
||||||
local c_wherein = {}
|
|
||||||
local c_ceilin = {}
|
|
||||||
for k, v in ipairs(wherein) do
|
|
||||||
c_wherein[k] = getID(v)
|
|
||||||
end
|
|
||||||
for k, v in ipairs(ceilin) do
|
|
||||||
c_ceilin[k] = getID(v)
|
|
||||||
end
|
|
||||||
local c_ceil
|
|
||||||
if ceil then
|
|
||||||
c_ceil = getID(ceil)
|
|
||||||
end
|
|
||||||
|
|
||||||
if maxp.y < height_min or minp.y > height_max then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local stratus_per_volume = 1
|
|
||||||
local area = 45
|
|
||||||
local y_min = math.max(minp.y, height_min)
|
|
||||||
local y_max = math.min(maxp.y, height_max)
|
|
||||||
local volume = ((maxp.x-minp.x+1)/area)*((y_max-y_min+1)/area)*((maxp.z-minp.z+1)/area)
|
|
||||||
local pr = PseudoRandom(seed)
|
|
||||||
local blocks = math.floor(stratus_per_volume*volume)
|
|
||||||
print(" <<"..dump(name)..">>");
|
|
||||||
if blocks == 0 then
|
|
||||||
blocks = 1
|
|
||||||
end
|
|
||||||
print(" blocks: "..dump(blocks).." in vol: "..dump(volume).." ("..dump(maxp.x-minp.x+1)..","..dump(y_max-y_min+1)..","..dump(maxp.z-minp.z+1)..")")
|
|
||||||
for i=1,blocks do
|
|
||||||
local x = pr:next(1,stratus_chance)
|
|
||||||
if x == 1 then
|
|
||||||
local y0=y_max-radius_y+1
|
|
||||||
if y0 < y_min then
|
|
||||||
y0=y_min
|
|
||||||
else
|
|
||||||
y0=pr:next(y_min, y0)
|
|
||||||
end
|
|
||||||
local x0 = maxp.x-radius+1
|
|
||||||
if x0 < minp.x then
|
|
||||||
x0 = minp.x
|
|
||||||
else
|
|
||||||
x0 = pr:next(minp.x, x0)
|
|
||||||
end
|
|
||||||
local z0 = maxp.z-radius+1
|
|
||||||
if z0 < minp.z then
|
|
||||||
x0 = minp.z
|
|
||||||
else
|
|
||||||
z0 = pr:next(minp.z, z0)
|
|
||||||
end
|
|
||||||
local p0 = {x=x0, y=y0, z=z0}
|
|
||||||
local n = data[varea:indexp(p0)]
|
|
||||||
local i = 0
|
|
||||||
x = 0
|
|
||||||
for k, v in ipairs(c_ceilin) do
|
|
||||||
if n == v then
|
|
||||||
x = 1
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if x == 1 then
|
|
||||||
for y1=y0-1,y_min,-1 do
|
|
||||||
p0.y=y1
|
|
||||||
n = data[varea:indexp(p0)]
|
|
||||||
x = 0
|
|
||||||
for k, v in ipairs(c_wherein) do
|
|
||||||
if n == v then
|
|
||||||
x = 1
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if x == 1 then
|
|
||||||
y0=y1-deep
|
|
||||||
if y0 < y_min then
|
|
||||||
y0 = y_min
|
|
||||||
end
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
local rx=pr:next(radius/2,radius)+1
|
|
||||||
local rz=pr:next(radius/2,radius)+1
|
|
||||||
local ry=pr:next(radius_y/2,radius_y)+1
|
|
||||||
for x1=0,rx do
|
|
||||||
rz = rz + 3 - pr:next(1,6)
|
|
||||||
if rz < 1 then
|
|
||||||
rz = 1
|
|
||||||
end
|
|
||||||
for z1=pr:next(1,3),rz do
|
|
||||||
local ry0=ry+ pr:next(1,3)
|
|
||||||
for y1=pr:next(1,3),ry0 do
|
|
||||||
local x2 = x0+x1
|
|
||||||
local y2 = y0+y1
|
|
||||||
local z2 = z0+z1
|
|
||||||
local p2 = {x=x2, y=y2, z=z2}
|
|
||||||
n = data[varea:indexp(p2)]
|
|
||||||
x = 0
|
|
||||||
for k, v in ipairs(c_wherein) do
|
|
||||||
if n == v then
|
|
||||||
x = 1
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if x == 1 then
|
|
||||||
if c_ceil == nil then
|
|
||||||
data[varea:indexp(p2)] = c_ore
|
|
||||||
i = i +1
|
|
||||||
else
|
|
||||||
local p3 = {p2.x,p2.y+1,p2}
|
|
||||||
if data[varea:indexp(p3)] == c_ceil then
|
|
||||||
data[varea:indexp(p2)] = c_ore
|
|
||||||
i = i +1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
print(" generated "..dump(i).." blocks in ("..dump(x0)..","..dump(y0)..","..dump(z0)..")")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function generate_claylike(data, varea, name, minp, maxp, seed, chance, minh, maxh, dirt)
|
|
||||||
local c_ore = getID(name)
|
|
||||||
local c_sand = getID("default:sand")
|
|
||||||
local c_dirt = getID("default:dirt")
|
|
||||||
local c_lawn = getID("default:dirt_with_grass")
|
|
||||||
local c_water = getID("default:water_source")
|
|
||||||
local c_air = getID("air")
|
|
||||||
|
|
||||||
if maxp.y >= maxh+1 and minp.y <= minh-1 then
|
|
||||||
local pr = PseudoRandom(seed)
|
|
||||||
local divlen = 4
|
|
||||||
local divs = (maxp.x-minp.x)/divlen+1;
|
|
||||||
for yy=minh,maxh do
|
|
||||||
local x = pr:next(1,chance)
|
|
||||||
if x == 1 then
|
|
||||||
for divx=0+1,divs-1-1 do
|
|
||||||
for divz=0+1,divs-1-1 do
|
|
||||||
local cx = minp.x + math.floor((divx+0.5)*divlen)
|
|
||||||
local cz = minp.z + math.floor((divz+0.5)*divlen)
|
|
||||||
local up = data[varea:index(cx,yy,cz)]
|
|
||||||
local down = data[varea:index(cx,yy-1,cz)]
|
|
||||||
if ( up == c_water or up == c_air ) and ( down == c_sand or (dirt == 1 and (down == c_dirt or down == c_lawn ))) then
|
|
||||||
local is_shallow = true
|
|
||||||
local num_water_around = 0
|
|
||||||
if data[varea:index(cx-divlen*2,yy,cz)] == c_water then
|
|
||||||
num_water_around = num_water_around + 1
|
|
||||||
end
|
|
||||||
if data[varea:index(cx+divlen*2,yy,cz)] == c_water then
|
|
||||||
num_water_around = num_water_around + 1
|
|
||||||
end
|
|
||||||
if data[varea:index(cx,yy,cz-divlen*2)] == c_water then
|
|
||||||
num_water_around = num_water_around + 1
|
|
||||||
end
|
|
||||||
if data[varea:index(cx,yy,cz+divlen*2)] == c_water then
|
|
||||||
num_water_around = num_water_around + 1
|
|
||||||
end
|
|
||||||
if num_water_around >= 3 then
|
|
||||||
is_shallow = false
|
|
||||||
end
|
|
||||||
if is_shallow then
|
|
||||||
for x1=-divlen,divlen do
|
|
||||||
for z1=-divlen,divlen do
|
|
||||||
local p={x=cx+x1,y=yy-1,z=cz+z1}
|
|
||||||
down = data[varea:indexp(p)]
|
|
||||||
if down == c_sand or (dirt == 1 and (down == c_dirt or down == c_lawn)) then
|
|
||||||
data[varea:indexp(p)] = c_ore
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local function generate_ore(data, varea, name, wherein, minp, maxp, seed, chunks_per_volume, chunk_size, ore_per_chunk, height_min, height_max)
|
|
||||||
local c_ore = getID(name)
|
|
||||||
local c_wherein = getID(wherein)
|
|
||||||
|
|
||||||
if maxp.y < height_min or minp.y > height_max then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local y_min = math.max(minp.y, height_min)
|
|
||||||
local y_max = math.min(maxp.y, height_max)
|
|
||||||
local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1)
|
|
||||||
local pr = PseudoRandom(seed)
|
|
||||||
local num_chunks = math.floor(chunks_per_volume * volume)
|
|
||||||
local inverse_chance = math.floor(chunk_size*chunk_size*chunk_size / ore_per_chunk)
|
|
||||||
for i=1,num_chunks do
|
|
||||||
local y0 = pr:next(y_min, y_max-chunk_size+1)
|
|
||||||
if y0 >= height_min and y0 <= height_max then
|
|
||||||
local x0 = pr:next(minp.x, maxp.x-chunk_size+1)
|
|
||||||
local z0 = pr:next(minp.z, maxp.z-chunk_size+1)
|
|
||||||
local p0 = {x=x0, y=y0, z=z0}
|
|
||||||
for x1=0,chunk_size-1 do
|
|
||||||
for y1=0,chunk_size-1 do
|
|
||||||
for z1=0,chunk_size-1 do
|
|
||||||
if pr:next(1,inverse_chance) == 1 then
|
|
||||||
local x2 = x0+x1
|
|
||||||
local y2 = y0+y1
|
|
||||||
local z2 = z0+z1
|
|
||||||
local p2 = {x=x2, y=y2, z=z2}
|
|
||||||
local indexp2 = varea:indexp(p2)
|
|
||||||
if data[indexp2] == c_wherein then
|
|
||||||
data[indexp2] = c_ore
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function darkage_mapgen(data, area, minp, maxp, seed) -- public function, to be used by Lua mapgens
|
|
||||||
if minp.y < -19600 then return end
|
|
||||||
local t1 = os.clock()
|
|
||||||
generate_claylike(data, area, "darkage:mud", minp, maxp, seed+1, 4, 0, 2, 0)
|
|
||||||
generate_claylike(data, area, "darkage:silt", minp, maxp, seed+2, 4, -1, 1, 1)
|
|
||||||
generate_stratus(data, area, "darkage:chalk",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+3, 4, 25, 8, 0, -20, 50)
|
|
||||||
generate_stratus(data, area, "darkage:ors",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air","default:water_source"}, nil,
|
|
||||||
minp, maxp, seed+4, 4, 25, 7, 50, -200, 500)
|
|
||||||
generate_stratus(data, area, "darkage:shale",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+5, 4, 23, 7, 50, -50, 20)
|
|
||||||
generate_stratus(data, area, "darkage:slate",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+6, 6, 23, 5, 50, -500, 0)
|
|
||||||
generate_stratus(data, area, "darkage:schist",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+7, 6, 19, 6, 50, -31000, -10)
|
|
||||||
generate_stratus(data, area, "darkage:basalt",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+8, 5, 20, 5, 20, -31000, -50)
|
|
||||||
generate_stratus(data, area, "darkage:marble",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+9, 4, 25, 6, 50, -31000, -75)
|
|
||||||
generate_stratus(data, area, "darkage:serpentine",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+10, 4, 28, 8, 50, -31000, -350)
|
|
||||||
generate_stratus(data, area, "darkage:gneiss",
|
|
||||||
{"default:stone"},
|
|
||||||
{"default:stone","air"}, nil,
|
|
||||||
minp, maxp, seed+11, 4, 15, 5, 50, -31000, -250)
|
|
||||||
print("DARKAGE: calculating time : " .. os.clock() - t1)
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_on_mapgen_init(function(mgparams)
|
|
||||||
if mgparams.mgname ~= "singlenode" then
|
|
||||||
minetest.register_on_generated(function(minp, maxp, seed)
|
|
||||||
if minp.y < -19600 then return end
|
|
||||||
|
|
||||||
local t0 = os.clock()
|
|
||||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
|
||||||
local area = VoxelArea:new({MinEdge = emin, MaxEdge = emax})
|
|
||||||
local data = vm:get_data()
|
|
||||||
|
|
||||||
darkage_mapgen(data, area, minp, maxp, seed)
|
|
||||||
|
|
||||||
vm:set_data(data)
|
|
||||||
vm:write_to_map()
|
|
||||||
print("DARKAGE: total time taken : " .. os.clock() - t0)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end)
|
|
|
@ -1,460 +0,0 @@
|
||||||
-- Naturally spawning blocks
|
|
||||||
minetest.register_node("darkage:chalk", {
|
|
||||||
description = "Chalk",
|
|
||||||
tiles = {"darkage_chalk.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
drop = "darkage:chalk_powder 4",
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:marble", {
|
|
||||||
description = "Marble",
|
|
||||||
tiles = {"darkage_marble.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:serpentine", {
|
|
||||||
description = "Serpentine",
|
|
||||||
tiles = {"darkage_serpentine.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:mud", {
|
|
||||||
description = "Mud",
|
|
||||||
tiles = {"darkage_mud_top.png", "darkage_mud.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = "darkage:mud_lump 4",
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = "",
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:schist", {
|
|
||||||
description = "Schist",
|
|
||||||
tiles = {"darkage_schist.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:shale", {
|
|
||||||
description = "Shale",
|
|
||||||
tiles = {"darkage_shale.png","darkage_shale.png","darkage_shale_side.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:silt", {
|
|
||||||
description = "Silt",
|
|
||||||
tiles = {"darkage_silt.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = "darkage:silt_lump 4",
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = "",
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:slate", {
|
|
||||||
description = "Slate",
|
|
||||||
tiles = {"darkage_slate.png","darkage_slate.png","darkage_slate_side.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
drop = "darkage:slate_cobble",
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:ors", {
|
|
||||||
description = "Old Red Sandstone",
|
|
||||||
tiles = {"darkage_ors.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
drop = "darkage:ors_cobble",
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:gneiss", {
|
|
||||||
description = "Gneiss",
|
|
||||||
tiles = {"darkage_gneiss.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
drop = "darkage:gneiss_cobble",
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:basalt", {
|
|
||||||
description = "Basalt",
|
|
||||||
tiles = {"darkage_basalt.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
drop = "darkage:basalt_cobble",
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Cobble
|
|
||||||
minetest.register_node("darkage:slate_cobble", {
|
|
||||||
description = "Slate Cobble",
|
|
||||||
tiles = {"darkage_slate_cobble.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:ors_cobble", {
|
|
||||||
description = "Old Red Sandstone Cobble",
|
|
||||||
tiles = {"darkage_ors_cobble.png"},
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:gneiss_cobble", {
|
|
||||||
description = "Gneiss Cobble",
|
|
||||||
tiles = {"darkage_gneiss_cobble.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:basalt_cobble", {
|
|
||||||
description = "Basalt Cobble",
|
|
||||||
tiles = {"darkage_basalt_cobble.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Brick
|
|
||||||
minetest.register_node("darkage:slate_brick", {
|
|
||||||
description = "Slate Brick",
|
|
||||||
tiles = {"darkage_slate_brick.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:ors_brick", {
|
|
||||||
description = "Old Red Sandstone Brick",
|
|
||||||
tiles = {"darkage_ors_brick.png"},
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:gneiss_brick", {
|
|
||||||
description = "Gneiss Brick",
|
|
||||||
tiles = {"darkage_gneiss_brick.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:basalt_brick", {
|
|
||||||
description = "Basalt Brick",
|
|
||||||
tiles = {"darkage_basalt_brick.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:stone_brick", {
|
|
||||||
description = "Stone Brick",
|
|
||||||
tiles = {"darkage_stone_brick.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Other Blocks
|
|
||||||
--if not farming:straw
|
|
||||||
if minetest.get_modpath("farming") == nil then
|
|
||||||
minetest.register_node("darkage:straw", {
|
|
||||||
description = "Straw",
|
|
||||||
tiles = {"darkage_straw.png"},
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:straw_bale", {
|
|
||||||
description = "Straw Bale",
|
|
||||||
tiles = {"darkage_straw_bale.png"},
|
|
||||||
drop = "darkage:straw 4",
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
})
|
|
||||||
else
|
|
||||||
minetest.register_node("darkage:straw_bale", {
|
|
||||||
description = "Straw Bale",
|
|
||||||
tiles = {"darkage_straw_bale.png"},
|
|
||||||
drop = "farming:straw 4",
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node("darkage:slate_tile", {
|
|
||||||
description = "Slate Tile",
|
|
||||||
tiles = {"darkage_slate_tile.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:marble_tile", {
|
|
||||||
description = "Marble Tile",
|
|
||||||
tiles = {"darkage_marble_tile.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:reinforced_chalk", {
|
|
||||||
description = "Reinforced Chalk",
|
|
||||||
tiles = {"darkage_chalk.png^darkage_reinforce.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:adobe", {
|
|
||||||
description = "Adobe",
|
|
||||||
tiles = {"darkage_adobe.png"},
|
|
||||||
groups = {crumbly=3},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:lamp", {
|
|
||||||
description = "Lamp",
|
|
||||||
tiles = {"darkage_lamp.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
light_source = default.LIGHT_MAX,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,flammable=1},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:cobble_with_plaster", {
|
|
||||||
description = "Cobblestone With Plaster",
|
|
||||||
tiles = {"darkage_cobble_with_plaster_D.png", "darkage_cobble_with_plaster_B.png", "darkage_cobble_with_plaster_C.png",
|
|
||||||
"darkage_cobble_with_plaster_A.png", "default_cobble.png", "darkage_chalk.png"},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
drop = "default:cobble",
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:darkdirt", {
|
|
||||||
description = "Dark Dirt",
|
|
||||||
tiles = {"darkage_darkdirt.png"},
|
|
||||||
groups = {crumbly=2},
|
|
||||||
sounds = default.node_sound_dirt_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:dry_leaves", {
|
|
||||||
description = "Dry Leaves",
|
|
||||||
tiles = {"darkage_dry_leaves.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_leaves_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Storage blocks (boxes, shelves, ect.)
|
|
||||||
minetest.register_node("darkage:box", {
|
|
||||||
description = "Box",
|
|
||||||
tiles = { "darkage_box_top.png","darkage_box_top.png","darkage_box.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
walkable = true,
|
|
||||||
groups = { snappy = 3 },
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
|
||||||
on_construct = function(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
meta:set_string("formspec",
|
|
||||||
"size[8,8]"..
|
|
||||||
"list[current_name;main;0,0;8,3;]"..
|
|
||||||
"list[current_player;main;0,4;8,4;]"..
|
|
||||||
"listring[current_name;main]" ..
|
|
||||||
"listring[current_player;main]")
|
|
||||||
meta:set_string("infotext", "Box")
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
inv:set_size("main", 16)
|
|
||||||
end,
|
|
||||||
can_dig = function(pos,player)
|
|
||||||
local meta = minetest.get_meta(pos);
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
return inv:is_empty("main")
|
|
||||||
end,
|
|
||||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
|
||||||
minetest.log("action", player:get_player_name()..
|
|
||||||
" moves stuff in box at "..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
||||||
minetest.log("action", player:get_player_name()..
|
|
||||||
" moves stuff to box at "..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
|
||||||
minetest.log("action", player:get_player_name()..
|
|
||||||
" takes stuff from box at "..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:wood_shelves", {
|
|
||||||
description = "Wooden Shelves",
|
|
||||||
tiles = { "darkage_shelves.png","darkage_shelves.png","darkage_shelves.png",
|
|
||||||
"darkage_shelves.png","darkage_shelves.png","darkage_shelves_front.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
walkable = true,
|
|
||||||
groups = {snappy = 3},
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
|
||||||
on_construct = function(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
meta:set_string("formspec",
|
|
||||||
"size[8,10]"..
|
|
||||||
"list[context;up;0,0;8,3;]"..
|
|
||||||
"list[context;down;0,3;8,3;]"..
|
|
||||||
"list[current_player;main;0,6;8,4;]"..
|
|
||||||
"listring[context;down]"..
|
|
||||||
"listring[current_player;main]"..
|
|
||||||
"listring[context;up]"..
|
|
||||||
"listring[current_player;main]")
|
|
||||||
meta:set_string("infotext", "Wooden Shelves")
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
inv:set_size("up", 16)
|
|
||||||
inv:set_size("down", 16)
|
|
||||||
end,
|
|
||||||
can_dig = function(pos,player)
|
|
||||||
local meta = minetest.get_meta(pos);
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
return inv:is_empty("shape") and inv:is_empty("out") and inv:is_empty("water")
|
|
||||||
end,
|
|
||||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
|
||||||
minetest.log("action", player:get_player_name()..
|
|
||||||
" moves stuff in shelves at "..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
||||||
minetest.log("action", player:get_player_name()..
|
|
||||||
" moves stuff to shelves at "..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
|
||||||
minetest.log("action", player:get_player_name()..
|
|
||||||
" takes stuff from shelves at "..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Glass / Glow Glass
|
|
||||||
minetest.register_node("darkage:glass", {
|
|
||||||
description = "Medieval Glass",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_glass.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:glow_glass", {
|
|
||||||
description = "Medieval Glow Glass",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_glass.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
light_source = default.LIGHT_MAX,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Reinforced Wood
|
|
||||||
minetest.register_node("darkage:reinforced_wood", {
|
|
||||||
description = "Reinforced Wood",
|
|
||||||
tiles = {"default_wood.png^darkage_reinforce.png"},
|
|
||||||
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
|
|
||||||
sounds = default.node_sound_wood_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:reinforced_wood_left", {
|
|
||||||
description = "Reinforced Wood Left",
|
|
||||||
tiles = {"darkage_reinforced_wood_left.png"},
|
|
||||||
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
|
|
||||||
sounds = default.node_sound_wood_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:reinforced_wood_right", {
|
|
||||||
description = "Reinforced Wood Right",
|
|
||||||
tiles = {"darkage_reinforced_wood_right.png"},
|
|
||||||
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
|
|
||||||
sounds = default.node_sound_wood_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Wood based deco items
|
|
||||||
minetest.register_node("darkage:wood_bars", {
|
|
||||||
description = "Wooden Bars",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_wood_bars.png"},
|
|
||||||
inventory_image = "darkage_wood_bars.png",
|
|
||||||
wield_image = "darkage_wood_bars.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {snappy=1,choppy=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:wood_grille", {
|
|
||||||
description = "Wooden Grille",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_wood_grille.png"},
|
|
||||||
inventory_image = "darkage_wood_grille.png",
|
|
||||||
wield_image = "darkage_wood_grille.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {snappy=1,choppy=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:wood_frame", {
|
|
||||||
description = "Wooden Frame",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_wood_frame.png"},
|
|
||||||
inventory_image = "darkage_wood_frame.png",
|
|
||||||
wield_image = "darkage_wood_frame.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {snappy=1,choppy=2},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Metal based deco items
|
|
||||||
minetest.register_node("darkage:chain", {
|
|
||||||
description = "Chain",
|
|
||||||
drawtype = "signlike",
|
|
||||||
tiles = {"darkage_chain.png"},
|
|
||||||
inventory_image = "darkage_chain.png",
|
|
||||||
wield_image = "darkage_chain.png",
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "wallmounted",
|
|
||||||
walkable = false,
|
|
||||||
climbable = true,
|
|
||||||
selection_box = {
|
|
||||||
type = "wallmounted",
|
|
||||||
},
|
|
||||||
groups = {snappy=1,cracky=2,oddly_breakable_by_hand=2},
|
|
||||||
legacy_wallmounted = true
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:iron_bars", {
|
|
||||||
description = "Iron Bars",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_iron_bars.png"},
|
|
||||||
inventory_image = "darkage_iron_bars.png",
|
|
||||||
wield_image = "darkage_iron_bars.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("darkage:iron_grille", {
|
|
||||||
description = "Iron Grille",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"darkage_iron_grille.png"},
|
|
||||||
inventory_image = "darkage_iron_grille.png",
|
|
||||||
wield_image = "darkage_iron_grille.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults()
|
|
||||||
})
|
|
|
@ -1,362 +0,0 @@
|
||||||
if stairsplus then
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "basalt", "darkage:basalt", {
|
|
||||||
description = "Basalt",
|
|
||||||
tiles = {"darkage_basalt.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "marble", "darkage:marble", {
|
|
||||||
description = "Marble",
|
|
||||||
tiles = {"darkage_marble.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "serpentine", "darkage:serpentine", {
|
|
||||||
description = "Serpentine",
|
|
||||||
tiles = {"darkage_serpentine.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "ors", "darkage:ors", {
|
|
||||||
description = "Old Red Sandstone",
|
|
||||||
tiles = {"darkage_ors.png"},
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "schist", "darkage:schist", {
|
|
||||||
description = "Schist",
|
|
||||||
tiles = {"darkage_schist.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "slate", "darkage:slate", {
|
|
||||||
description = "Slate",
|
|
||||||
tiles = {"darkage_slate.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "gneiss", "darkage:gneiss", {
|
|
||||||
description = "Gneiss",
|
|
||||||
tiles = {"darkage_gneiss.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "chalk", "darkage:chalk", {
|
|
||||||
description = "Chalk",
|
|
||||||
tiles = {"darkage_chalk.png"},
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "slate_cobble", "darkage:slate_cobble", {
|
|
||||||
description = "Slate Cobble",
|
|
||||||
tiles = {"darkage_slate_cobble.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "ors_cobble", "darkage:ors_cobble", {
|
|
||||||
description = "Old Red Sandstone Cobble",
|
|
||||||
tiles = {"darkage_ors_cobble.png"},
|
|
||||||
groups = {crumbly=2,cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "gneiss_cobble", "darkage:gneiss_cobble", {
|
|
||||||
description = "Gneiss Cobble",
|
|
||||||
tiles = {"darkage_gneiss_cobble.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "basalt_cobble", "darkage:basalt_cobble", {
|
|
||||||
description = "Basalt Cobble",
|
|
||||||
tiles = {"darkage_basalt_cobble.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
--if not farming:straw
|
|
||||||
if minetest.get_modpath("farming") == nil then
|
|
||||||
stairsplus:register_all("darkage", "straw", "darkage:straw", {
|
|
||||||
description = "Straw",
|
|
||||||
tiles = {"darkage_straw.png"},
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
else
|
|
||||||
stairsplus:register_all("darkage", "straw", "farming:straw", {
|
|
||||||
description = "Straw",
|
|
||||||
tiles = {"darkage_straw.png"},
|
|
||||||
groups = {snappy=3, flammable=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "straw_bale", "darkage:straw_bale", {
|
|
||||||
description = "Straw Bale",
|
|
||||||
tiles = {"darkage_straw_bale.png"},
|
|
||||||
groups = {snappy=2, flammable=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "slate_tile", "darkage:slate_tile", {
|
|
||||||
description = "Slate Tile",
|
|
||||||
tiles = {"darkage_slate_tile.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "marble_tile", "darkage:marble_tile", {
|
|
||||||
description = "Marble Tile",
|
|
||||||
tiles = {"darkage_marble_tile.png"},
|
|
||||||
groups = {cracky=2},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "stone_brick", "darkage:stone_brick", {
|
|
||||||
description = "Stone Brick",
|
|
||||||
tiles = {"darkage_stone_brick.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "reinforced_chalk", "darkage:reinforced_chalk", {
|
|
||||||
description = "Reinforced Chalk",
|
|
||||||
tiles = {"darkage_chalk.png^darkage_reinforce.png"},
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "glass", "darkage:glass", {
|
|
||||||
description = "Medieval Glass",
|
|
||||||
tiles = {"darkage_glass.png"},
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "glow_glass", "darkage:glow_glass", {
|
|
||||||
description = "Medieval Glow Glass",
|
|
||||||
tiles = {"darkage_glass.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
light_source = default.LIGHT_MAX,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
stairsplus:register_all("darkage", "reinforced_wood", "darkage:reinforced_wood", {
|
|
||||||
description = "Reinforced Wood",
|
|
||||||
tiles = {"default_wood.png^darkage_reinforce.png"},
|
|
||||||
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
elseif stairs then
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("basalt", "darkage:basalt",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_basalt.png"},
|
|
||||||
"Basalt Stair",
|
|
||||||
"Basalt Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("marble", "darkage:marble",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_marble.png"},
|
|
||||||
"Marble Stair",
|
|
||||||
"Marble Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("marble", "darkage:serpentine",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_serpentine.png"},
|
|
||||||
"Serpentine Stair",
|
|
||||||
"Serpentine Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("ors", "darkage:ors",
|
|
||||||
{crumbly=2,cracky=2},
|
|
||||||
{"darkage_ors.png"},
|
|
||||||
"Old Red Sandstone Stair",
|
|
||||||
"Old Red Sandstone Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("schist", "darkage:schist",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_schist.png"},
|
|
||||||
"Schist Stair",
|
|
||||||
"Schist Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("slate", "darkage:slate",
|
|
||||||
{cracky=2},
|
|
||||||
{"darkage_slate.png"},
|
|
||||||
"Slate Stair",
|
|
||||||
"Slate Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("gneiss", "darkage:gneiss",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_gneiss.png"},
|
|
||||||
"Gneiss Stair",
|
|
||||||
"Gneiss Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("chalk", "darkage:chalk",
|
|
||||||
{crumbly=2,cracky=2},
|
|
||||||
{"darkage_chalk.png"},
|
|
||||||
"Chalk Stair",
|
|
||||||
"Chalk Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("slate_cobble", "darkage:slate_cobble",
|
|
||||||
{cracky=2},
|
|
||||||
{"darkage_slate_cobble.png"},
|
|
||||||
"Slate Cobble Stair",
|
|
||||||
"Slate Cobble Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("ors_cobble", "darkage:ors_cobble",
|
|
||||||
{crumbly=2,cracky=2},
|
|
||||||
{"darkage_ors_cobble.png"},
|
|
||||||
"Old Red Sandstone Cobble Stair",
|
|
||||||
"Old Red Sandstone Cobble Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("gneiss_cobble", "darkage:gneiss_cobble",
|
|
||||||
{crumbly=2,cracky=2},
|
|
||||||
{"darkage_gneiss_cobble.png"},
|
|
||||||
"Gneiss Cobble Stair",
|
|
||||||
"Gneiss Cobble Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("basalt_cobble", "darkage:basalt_cobble",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_basalt_cobble.png"},
|
|
||||||
"Basalt Cobble Stair",
|
|
||||||
"Basalt Cobble Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
--if not farming:straw
|
|
||||||
if minetest.get_modpath("farming") == nil then
|
|
||||||
stairs.register_stair_and_slab("straw", "darkage:straw",
|
|
||||||
{snappy=3, flammable=2},
|
|
||||||
{"darkage_straw.png"},
|
|
||||||
"Straw Stair",
|
|
||||||
"Straw Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
else
|
|
||||||
stairs.register_stair_and_slab("straw", "farming:straw",
|
|
||||||
{snappy=3, flammable=2},
|
|
||||||
{"darkage_straw.png"},
|
|
||||||
"Straw Stair",
|
|
||||||
"Straw Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
end
|
|
||||||
stairs.register_stair_and_slab("straw_bale", "darkage:straw_bale",
|
|
||||||
{snappy=2, flammable=2},
|
|
||||||
{"darkage_straw_bale.png"},
|
|
||||||
"Straw Bale Stair",
|
|
||||||
"Straw Bale Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("slate_tile", "darkage:slate_tile",
|
|
||||||
{cracky=2},
|
|
||||||
{"darkage_slate_tile.png"},
|
|
||||||
"Slate Tile Stair",
|
|
||||||
"Slate Tile Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("marble_tile", "darkage:marble_tile",
|
|
||||||
{cracky=2},
|
|
||||||
{"darkage_marble_tile.png"},
|
|
||||||
"Marble Tile Stair",
|
|
||||||
"Marble Tile Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("stone_brick", "darkage:stone_brick",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_stone_brick.png"},
|
|
||||||
"Stone Brick Stair",
|
|
||||||
"Stone Brick Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("reinforced_chalk", "darkage:reinforced_chalk",
|
|
||||||
{cracky=3},
|
|
||||||
{"darkage_chalk.png^darkage_reinforce.png"},
|
|
||||||
"Reinforced Chalk Stair",
|
|
||||||
"Reinforced Chalk Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("glass", "darkage:glass",
|
|
||||||
{snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
{"darkage_glass.png"},
|
|
||||||
"Medieval Glass Stair",
|
|
||||||
"Medieval Glass Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("glow_glass", "darkage:glow_glass",
|
|
||||||
{snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
{"darkage_glass.png"},
|
|
||||||
"Medieval Glow Glass Stair",
|
|
||||||
"Medieval Glow Glass Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
stairs.register_stair_and_slab("reinforced_wood", "darkage:reinforced_wood",
|
|
||||||
{snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
|
|
||||||
{"default_wood.png^darkage_reinforce.png"},
|
|
||||||
"Reinforced Wood Stair",
|
|
||||||
"Reinforced Wood Slab",
|
|
||||||
default.node_sound_stone_defaults()
|
|
||||||
)
|
|
||||||
|
|
||||||
end
|
|
Before Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 686 B |
Before Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 643 B |
Before Width: | Height: | Size: 668 B |
Before Width: | Height: | Size: 764 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 846 B |
Before Width: | Height: | Size: 852 B |
Before Width: | Height: | Size: 762 B |
Before Width: | Height: | Size: 619 B |
Before Width: | Height: | Size: 548 B |
Before Width: | Height: | Size: 115 B |
Before Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 725 B |
Before Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 757 B |
Before Width: | Height: | Size: 686 B |
Before Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 643 B |
Before Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 700 B |
Before Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 541 B |
Before Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 747 B |
Before Width: | Height: | Size: 597 B |
Before Width: | Height: | Size: 730 B |
Before Width: | Height: | Size: 571 B |
|
@ -50,6 +50,9 @@ for _, colour in pairs({"white", "black", "blue", "green"}) do
|
||||||
{"group:wood", "group:wood", "group:wood"},
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
-- Alias for retro compatibility
|
||||||
|
minetest.register_alias("beds:fancy_bed_"..colour.."_bottom", "nalc:fancy_bed_"..colour.."_bottom")
|
||||||
|
minetest.register_alias("beds:fancy_bed_"..colour.."_top", "nalc:fancy_bed_"..colour.."_top")
|
||||||
|
|
||||||
-- simple shaped bed
|
-- simple shaped bed
|
||||||
beds.register_bed(
|
beds.register_bed(
|
||||||
|
@ -87,6 +90,9 @@ for _, colour in pairs({"white", "black", "blue", "green"}) do
|
||||||
},
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
|
-- Alias for retro compatibility
|
||||||
|
minetest.register_alias("beds:bed_"..colour.."_bottom", "nalc:bed_"..colour.."_bottom")
|
||||||
|
minetest.register_alias("beds:bed_"..colour.."_top", "nalc:bed_"..colour.."_top")
|
||||||
|
|
||||||
-- Fuel
|
-- Fuel
|
||||||
|
|
||||||
|
|
|
@ -529,6 +529,8 @@ if minetest.get_modpath("doors") then
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_alias("doors:door3_wood", "nalc:door3_wood")
|
minetest.register_alias("doors:door3_wood", "nalc:door3_wood")
|
||||||
|
minetest.register_alias("doors:door3_wood_a", "nalc:door3_wood_a")
|
||||||
|
minetest.register_alias("doors:door3_wood_b", "nalc:door3_wood_b")
|
||||||
|
|
||||||
doors.register3("door3_steel", {
|
doors.register3("door3_steel", {
|
||||||
tiles = {{ name = "doors_door3_steel.png", backface_culling = true }},
|
tiles = {{ name = "doors_door3_steel.png", backface_culling = true }},
|
||||||
|
@ -546,6 +548,8 @@ if minetest.get_modpath("doors") then
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_alias("doors:door3_steel", "nalc:door3_steel")
|
minetest.register_alias("doors:door3_steel", "nalc:door3_steel")
|
||||||
|
minetest.register_alias("doors:door3_steel_a", "nalc:door3_steel_a")
|
||||||
|
minetest.register_alias("doors:door3_steel_b", "nalc:door3_steel_b")
|
||||||
|
|
||||||
doors.register3("door3_glass", {
|
doors.register3("door3_glass", {
|
||||||
tiles = { "doors_door3_glass.png"},
|
tiles = { "doors_door3_glass.png"},
|
||||||
|
@ -562,6 +566,8 @@ if minetest.get_modpath("doors") then
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_alias("doors:door3_glass", "nalc:door3_glass")
|
minetest.register_alias("doors:door3_glass", "nalc:door3_glass")
|
||||||
|
minetest.register_alias("doors:door3_glass_a", "nalc:door3_glass_a")
|
||||||
|
minetest.register_alias("doors:door3_glass_b", "nalc:door3_glass_b")
|
||||||
|
|
||||||
doors.register3("door3_obsidian_glass", {
|
doors.register3("door3_obsidian_glass", {
|
||||||
tiles = { "doors_door3_obsidian_glass.png" },
|
tiles = { "doors_door3_obsidian_glass.png" },
|
||||||
|
@ -578,6 +584,8 @@ if minetest.get_modpath("doors") then
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_alias("doors:door3_obsidian_glass", "nalc:door3_obsidian_glass")
|
minetest.register_alias("doors:door3_obsidian_glass", "nalc:door3_obsidian_glass")
|
||||||
|
minetest.register_alias("doors:door3_obsidian_glass_a", "nalc:door3_obsidian_glass_a")
|
||||||
|
minetest.register_alias("doors:door3_obsidian_glass_b", "nalc:door3_obsidian_glass_b")
|
||||||
|
|
||||||
if minetest.get_modpath("cherry_tree") then
|
if minetest.get_modpath("cherry_tree") then
|
||||||
-- From BFD: Cherry planks doors
|
-- From BFD: Cherry planks doors
|
||||||
|
@ -594,6 +602,8 @@ if minetest.get_modpath("doors") then
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_alias("doors:door3_cherry", "nalc:door3_cherry")
|
minetest.register_alias("doors:door3_cherry", "nalc:door3_cherry")
|
||||||
|
minetest.register_alias("doors:door3_cherry_a", "nalc:door3_cherry_a")
|
||||||
|
minetest.register_alias("doors:door3_cherry_b", "nalc:door3_cherry_b")
|
||||||
|
|
||||||
---fuels---
|
---fuels---
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -621,6 +631,8 @@ if minetest.get_modpath("doors") then
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_alias("doors:door3_prison", "nalc:door3_prison")
|
minetest.register_alias("doors:door3_prison", "nalc:door3_prison")
|
||||||
|
minetest.register_alias("doors:door3_prison_a", "nalc:door3_prison_a")
|
||||||
|
minetest.register_alias("doors:door3_prison_b", "nalc:door3_prison_b")
|
||||||
end
|
end
|
||||||
|
|
||||||
---fuels---
|
---fuels---
|
||||||
|
|
42
mods/nalc/flowers.lua
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
minetest.register_node("nalc:lily_pad", {
|
||||||
|
description = "Lily Pad",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = { "flowers_lily_pad.png" },
|
||||||
|
inventory_image = "flowers_lily_pad.png",
|
||||||
|
wield_image = "flowers_lily_pad.png",
|
||||||
|
wield_scale = {x = 1, y = 1, z = 0.001},
|
||||||
|
is_ground_content = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
groups = {snappy = 3, flammable = 2, flower = 1, flora = 1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.45, -0.5, 0.5, -0.4375, 0.5},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:water_source"},
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = 0,
|
||||||
|
scale = 0.006,
|
||||||
|
spread = {x=100, y=100, z=100},
|
||||||
|
seed = 436,
|
||||||
|
octaves = 3,
|
||||||
|
persist = 0.6
|
||||||
|
},
|
||||||
|
y_min = -10,
|
||||||
|
y_max = 30,
|
||||||
|
decoration = "nalc:lily_pad",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("flowers:lily_pad", "nalc:lily_pad")
|
|
@ -18,7 +18,7 @@ dofile(modpath.."/tools.lua")
|
||||||
local mods = {"witchcraft", "cotton", "technic",
|
local mods = {"witchcraft", "cotton", "technic",
|
||||||
"beds", "boats", "bucket",
|
"beds", "boats", "bucket",
|
||||||
"nyancat", "moreores", "moreblocks",
|
"nyancat", "moreores", "moreblocks",
|
||||||
"maptools", "doors"
|
"maptools", "doors", "flowers"
|
||||||
}
|
}
|
||||||
|
|
||||||
for _,mod in ipairs(mods) do
|
for _,mod in ipairs(mods) do
|
||||||
|
@ -35,7 +35,7 @@ if minetest.get_modpath("quests") and quests then
|
||||||
if not player then return end
|
if not player then return end
|
||||||
|
|
||||||
minetest.after(
|
minetest.after(
|
||||||
2,
|
3,
|
||||||
function(playername)
|
function(playername)
|
||||||
quests.hud[playername].autohide = false
|
quests.hud[playername].autohide = false
|
||||||
quests.hide_hud(playername)
|
quests.hide_hud(playername)
|
||||||
|
|
BIN
mods/nalc/textures/flowers_lily_pad.png
Executable file
After Width: | Height: | Size: 776 B |