1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

initial commit

subgame + mods
This commit is contained in:
Ombridride
2014-10-28 18:01:32 +01:00
parent baab1b3f7c
commit 232b274c55
6451 changed files with 226156 additions and 0 deletions

22
mods/lavalamp/.gitattributes vendored Executable file
View File

@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

163
mods/lavalamp/.gitignore vendored Executable file
View File

@ -0,0 +1,163 @@
#################
## 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

42
mods/lavalamp/README.txt Executable file
View File

@ -0,0 +1,42 @@
Lava Lamps (lavalamp) mod for Minetest
by thefamilygrog66
Description:
Coloured Lava Lamps, loosely based on Tonyka's wall torches from the 3dforniture/homedecor mod. There are 6 colours in all: red, orange, yellow, green, blue, violet.
After placing a lava lamp, the player can turn it off/on again by right-clicking on it.
Recipe:
+---------------+
| coloured wool |
+---------------+
| water bucket |
+---------------+
| black wool |
+---------------+
Mod dependencies: wool, bucket
License:
Sourcecode: WTFPL (see below)
Graphics: WTFPL (see below)
See also:
http://minetest.net/
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

2
mods/lavalamp/depends.txt Executable file
View File

@ -0,0 +1,2 @@
wool
bucket

118
mods/lavalamp/init.lua Executable file
View File

@ -0,0 +1,118 @@
local lavalamps_list = {
{ "Red Lava Lamp", "red"},
{ "Orange Lava Lamp", "orange"},
{ "Yellow Lava Lamp", "yellow"},
{ "Green Lava Lamp", "green"},
{ "Blue Lava Lamp", "blue"},
{ "Violet Lava Lamp", "violet"},
}
for i in ipairs(lavalamps_list) do
local lavalampdesc = lavalamps_list[i][1]
local colour = lavalamps_list[i][2]
minetest.register_node("lavalamp:"..colour, {
description = lavalampdesc,
drawtype = "nodebox",
tiles = {
"lavalamp_lamp_top.png",
"lavalamp_lamp_bottom.png",
{
name="lavalamp_lamp_anim_"..colour..".png",
animation={
type="vertical_frames",
aspect_w=40,
aspect_h=40,
length=3.0,
},
},
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
-- base
{ -0.1875, -0.5, -0.1875, 0.1875, -0.3125, 0.1875, },
{ -0.125, -0.5, -0.25, 0.125, -0.3125, -0.1875, },
{ -0.25, -0.5, -0.125, -0.1875, -0.3125, 0.125, },
{ 0.1875, -0.5, -0.125, 0.25, -0.3125, 0.125, },
{ -0.125, -0.5, 0.1875, 0.125, -0.3125, 0.25, },
-- lamp
{ -0.125, -0.3125, -0.125, 0.125, 0.5, 0.125, },
{ -0.0625, -0.3125, -0.1875, 0.0625, 0.5, -0.125, },
{ -0.0625, -0.3125, 0.125, 0.0625, 0.5, 0.1875, },
{ -0.1875, -0.3125, -0.0625, 0.125, 0.5, 0.0625, },
{ 0.125, -0.3125, -0.0625, 0.1875, 0.5, 0.0625, },
},
},
sunlight_propagates = true,
walkable = false,
light_source = 14,
selection_box = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
},
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
on_rightclick = function(pos, node, clicker)
node.name = "lavalamp:"..colour.."_off"
minetest.env:set_node(pos, node)
end,
})
minetest.register_node("lavalamp:"..colour.."_off", {
description = lavalampdesc.." off",
drawtype = "nodebox",
tiles = {
"lavalamp_lamp_top.png",
"lavalamp_lamp_bottom.png",
"lavalamp_lamp_off_sides.png",
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
-- base
{ -0.1875, -0.5, -0.1875, 0.1875, -0.3125, 0.1875, },
{ -0.125, -0.5, -0.25, 0.125, -0.3125, -0.1875, },
{ -0.25, -0.5, -0.125, -0.1875, -0.3125, 0.125, },
{ 0.1875, -0.5, -0.125, 0.25, -0.3125, 0.125, },
{ -0.125, -0.5, 0.1875, 0.125, -0.3125, 0.25, },
-- lamp
{ -0.125, -0.3125, -0.125, 0.125, 0.5, 0.125, },
{ -0.0625, -0.3125, -0.1875, 0.0625, 0.5, -0.125, },
{ -0.0625, -0.3125, 0.125, 0.0625, 0.5, 0.1875, },
{ -0.1875, -0.3125, -0.0625, 0.125, 0.5, 0.0625, },
{ 0.125, -0.3125, -0.0625, 0.1875, 0.5, 0.0625, },
},
},
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
},
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
drop = "lavalamp:"..colour,
on_rightclick = function(pos, node, clicker)
node.name = "lavalamp:"..colour
minetest.env:set_node(pos, node)
end,
})
minetest.register_craft({
output = "lavalamp:"..colour,
recipe = {
{"", "wool:"..colour, "", },
{"", "bucket:bucket_water", "", },
{"", "wool:black", "", }
}
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B