-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update api obsolete documentation in README.md.
- Loading branch information
1 parent
b515f32
commit 7a7b915
Showing
7 changed files
with
64 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
local modpath = minetest.get_modpath(minetest.get_current_modname()) | ||
local S = minetest.get_translator("carpets") | ||
dofile(modpath .. "/api.lua") | ||
|
||
if minetest.get_modpath("wool") then | ||
local nodenames = { | ||
"wool:black", | ||
"wool:blue", | ||
"wool:brown", | ||
"wool:cyan", | ||
"wool:dark_green", | ||
"wool:dark_grey", | ||
"wool:green", | ||
"wool:grey", | ||
"wool:magenta", | ||
"wool:orange", | ||
"wool:pink", | ||
"wool:red", | ||
"wool:violet", | ||
"wool:white", | ||
"wool:yellow", | ||
local nodes = { | ||
{name="wool:black", description=S("Black Carpet")}, | ||
{name="wool:blue", description=S("Blue Carpet")}, | ||
{name="wool:brown", description=S("Brown Carpet")}, | ||
{name="wool:cyan", description=S("Cyan Carpet")}, | ||
{name="wool:dark_green", description=S("Dark Green Carpet")}, | ||
{name="wool:dark_grey", description=S("Dark Grey Carpet")}, | ||
{name="wool:green", description=S("Green Carpet")}, | ||
{name="wool:grey", description=S("Grey Carpet")}, | ||
{name="wool:magenta", description=S("Magenta Carpet")}, | ||
{name="wool:orange", description=S("Orange Carpet")}, | ||
{name="wool:pink", description=S("Pink Carpet")}, | ||
{name="wool:red", description=S("Red Carpet")}, | ||
{name="wool:violet", description=S("Violet Carpet")}, | ||
{name="wool:white", description=S("White Carpet")}, | ||
{name="wool:yellow", description=S("Yellow Carpet")}, | ||
} | ||
for _, nodename in ipairs(nodenames) do | ||
carpets.register(nodename) | ||
for _, node in ipairs(nodes) do | ||
carpets.register(node.name, {description=node.description}) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# textdomain: carpets | ||
|
||
|
||
### init.lua ### | ||
|
||
Black Carpet=Tapis noir | ||
Blue Carpet=Tapis bleu | ||
Brown Carpet=Tapis marron | ||
Cyan Carpet=Tapis cyan | ||
Dark Green Carpet=Tapis vert foncé | ||
Dark Grey Carpet=Tapis gris foncé | ||
Green Carpet=Tapis vert | ||
Grey Carpet=Tapis gris | ||
Magenta Carpet=Tapis magenta | ||
Orange Carpet=Tapis orange | ||
Pink Carpet=Tapis rose | ||
Red Carpet=Tapis rouge | ||
Violet Carpet=Tapis violet | ||
White Carpet=Tapis blanc | ||
Yellow Carpet=Tapis jaune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# textdomain: carpets | ||
|
||
|
||
### init.lua ### | ||
|
||
Black Carpet= | ||
Blue Carpet= | ||
Brown Carpet= | ||
Cyan Carpet= | ||
Dark Green Carpet= | ||
Dark Grey Carpet= | ||
Green Carpet= | ||
Grey Carpet= | ||
Magenta Carpet= | ||
Orange Carpet= | ||
Pink Carpet= | ||
Red Carpet= | ||
Violet Carpet= | ||
White Carpet= | ||
Yellow Carpet= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
name = carpets | ||
description = Adds 16 colorized wool carpets to the minetest. | ||
optional_depends = wool |