2017-02-25 18:18:51 -07:00
|
|
|
minetest.register_alias("castle:shield", "castle_shields:shield_1")
|
|
|
|
minetest.register_alias("castle:shield_2", "castle_shields:shield_2")
|
|
|
|
minetest.register_alias("castle:shield_3", "castle_shields:shield_3")
|
|
|
|
|
2023-08-14 09:52:45 +03:00
|
|
|
-- Translation support
|
|
|
|
local S = minetest.get_translator("castle_shields")
|
2019-11-12 14:13:56 +01:00
|
|
|
|
2023-08-14 09:52:45 +03:00
|
|
|
-- The following colors are permitted:
|
|
|
|
-- "black", "blue", "brown", "cyan", "dark_green", "dark_grey", "green", "grey",
|
|
|
|
-- "magenta", "orange", "pink", "red", "violet", "white", "yellow"
|
2019-11-12 14:13:56 +01:00
|
|
|
|
2023-08-14 09:52:45 +03:00
|
|
|
-- The following patterns are permitted:
|
2017-02-25 18:18:51 -07:00
|
|
|
-- "slash", "chevron", "cross"
|
|
|
|
|
2017-02-25 18:45:28 -07:00
|
|
|
-- method parameters are name, desc, background_color, foreground_color, pattern
|
|
|
|
|
2017-02-25 18:18:51 -07:00
|
|
|
castle_shields.register_shield("shield_1", S("Mounted Shield"), "red", "blue", "slash")
|
|
|
|
castle_shields.register_shield("shield_2", S("Mounted Shield"), "cyan", "yellow", "chevron")
|
2019-11-12 14:13:56 +01:00
|
|
|
castle_shields.register_shield("shield_3", S("Mounted Shield"), "grey", "green", "cross")
|