mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-16 13:03:00 +00:00
unified syntax for keywords
This commit is contained in:
parent
cec73f91da
commit
7fd26687b8
1 changed files with 15 additions and 15 deletions
|
@ -27,33 +27,33 @@ end
|
|||
local keywords = {
|
||||
-- Compass keywords
|
||||
compass = {
|
||||
n = "z", north = "z",
|
||||
["n"] = "z", ["north"] = "z",
|
||||
["-n"] = "-z", ["-north"] = "-z",
|
||||
s = "-z", south = "-z",
|
||||
["s"] = "-z", ["south"] = "-z",
|
||||
["-s"] = "z", ["-south"] = "z",
|
||||
e = "x", east = "x",
|
||||
["e"] = "x", ["east"] = "x",
|
||||
["-e"] = "-x", ["-east"] = "-x",
|
||||
w = "-x", west = "-x",
|
||||
["w"] = "-x", ["west"] = "-x",
|
||||
["-w"] = "x", ["-west"] = "x",
|
||||
["u"] = "y", ["up"] = "y",
|
||||
["d"] = "-y", ["down"] = "-y",
|
||||
},
|
||||
|
||||
-- Direction keywords
|
||||
dir = {
|
||||
["?"] = "front", f = "front",
|
||||
facing = "front", front = "front",
|
||||
b = "back", back = "back",
|
||||
behind = "back", rear = "back",
|
||||
l = "left", left = "left",
|
||||
r = "right", right = "right",
|
||||
u = "up", up = "up",
|
||||
d = "down", down = "down",
|
||||
["?"] = "front", ["f"] = "front",
|
||||
["facing"] = "front", ["front"] = "front",
|
||||
["b"] = "back", ["back"] = "back",
|
||||
["behind"] = "back", ["rear"] = "back",
|
||||
["l"] = "left", ["left"] = "left",
|
||||
["r"] = "right", ["right"] = "right",
|
||||
},
|
||||
|
||||
-- Mirroring keywords
|
||||
mirroring = {
|
||||
sym = true, symmetrical = true,
|
||||
mirror = true, mir = true,
|
||||
rev = true, reverse = true,
|
||||
["sym"] = true, ["symmetrical"] = true,
|
||||
["mirror"] = true, ["mir"] = true,
|
||||
["rev"] = true, ["reverse"] = true,
|
||||
["true"] = true
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue