A Minetest mod that adds Cartographer's gameplay to Minetest Game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

347 lines
9.4KB

  1. -- Biomes
  2. -- Icesheet
  3. cartographer.biomes.add("icesheet", {
  4. "ctg_mtg_simple_land",
  5. "ctg_mtg_colored_snow",
  6. });
  7. cartographer.biomes.add("icesheet_ocean", {
  8. "ctg_mtg_simple_water",
  9. "ctg_mtg_colored_water",
  10. });
  11. cartographer.biomes.add("icesheet_ocean", {
  12. "ctg_mtg_simple_land",
  13. "ctg_mtg_colored_snow",
  14. }, 1);
  15. -- Tundra
  16. cartographer.biomes.add("tundra", {
  17. "ctg_mtg_simple_land",
  18. "ctg_mtg_colored_snow",
  19. "ctg_mtg_colored_snow",
  20. "ctg_mtg_tundra",
  21. });
  22. cartographer.biomes.add("tundra_highland", {
  23. "ctg_mtg_simple_land",
  24. "ctg_mtg_colored_snow",
  25. "ctg_mtg_colored_snow",
  26. "ctg_mtg_tundra",
  27. });
  28. cartographer.biomes.add("tundra_beach", {
  29. "ctg_mtg_simple_land",
  30. "ctg_mtg_colored_sand",
  31. "ctg_mtg_tundra",
  32. });
  33. cartographer.biomes.add("tundra_ocean", {
  34. "ctg_mtg_simple_water",
  35. "ctg_mtg_colored_water",
  36. });
  37. -- Taiga
  38. cartographer.biomes.add("taiga", {
  39. "ctg_mtg_simple_forest",
  40. "ctg_mtg_snowy_forest",
  41. "ctg_mtg_coniferous_snowy",
  42. });
  43. cartographer.biomes.add("taiga_ocean", {
  44. "ctg_mtg_simple_water",
  45. "ctg_mtg_colored_water",
  46. }, nil, 0);
  47. cartographer.biomes.add("taiga_ocean", {
  48. "ctg_mtg_simple_land",
  49. "ctg_mtg_colored_snow",
  50. }, 1);
  51. -- Snowy Grassland
  52. cartographer.biomes.add("snowy_grassland", {
  53. "ctg_mtg_simple_land",
  54. "ctg_mtg_colored_snow",
  55. });
  56. cartographer.biomes.add("snowy_grassland_ocean", {
  57. "ctg_mtg_simple_water",
  58. "ctg_mtg_colored_water",
  59. }, nil, 0);
  60. cartographer.biomes.add("snowy_grassland_ocean", {
  61. "ctg_mtg_simple_land",
  62. "ctg_mtg_colored_snow",
  63. }, 1);
  64. -- Grassland
  65. cartographer.biomes.add("grassland", {
  66. "ctg_mtg_simple_land",
  67. "ctg_mtg_colored_land",
  68. });
  69. cartographer.biomes.add("grassland_dunes", {
  70. "ctg_mtg_simple_land",
  71. "ctg_mtg_colored_sand",
  72. });
  73. cartographer.biomes.add("grassland_ocean", {
  74. "ctg_mtg_simple_water",
  75. "ctg_mtg_colored_water",
  76. }, nil, 0);
  77. cartographer.biomes.add("grassland_ocean", {
  78. "ctg_mtg_simple_land",
  79. "ctg_mtg_colored_sand",
  80. }, 1);
  81. -- Coniferous Forest
  82. cartographer.biomes.add("coniferous_forest", {
  83. "ctg_mtg_simple_forest",
  84. "ctg_mtg_colored_forest",
  85. "ctg_mtg_coniferous_forest",
  86. });
  87. cartographer.biomes.add("coniferous_forest_dunes", {
  88. "ctg_mtg_simple_land",
  89. "ctg_mtg_colored_sand",
  90. });
  91. cartographer.biomes.add("coniferous_forest_ocean", {
  92. "ctg_mtg_simple_water",
  93. "ctg_mtg_colored_water",
  94. }, nil, 0);
  95. cartographer.biomes.add("coniferous_forest_ocean", {
  96. "ctg_mtg_simple_land",
  97. "ctg_mtg_colored_sand",
  98. }, 1);
  99. -- Deciduous Forest
  100. cartographer.biomes.add("deciduous_forest", {
  101. "ctg_mtg_simple_forest",
  102. "ctg_mtg_colored_forest",
  103. "ctg_mtg_deciduous_forest",
  104. });
  105. cartographer.biomes.add("deciduous_forest_shore", {
  106. "ctg_mtg_simple_land",
  107. "ctg_mtg_colored_sand",
  108. });
  109. cartographer.biomes.add("deciduous_forest_ocean", {
  110. "ctg_mtg_simple_water",
  111. "ctg_mtg_colored_water",
  112. }, nil, 0);
  113. cartographer.biomes.add("deciduous_forest_ocean", {
  114. "ctg_mtg_simple_land",
  115. "ctg_mtg_colored_sand",
  116. }, 1);
  117. -- Desert
  118. cartographer.biomes.add("desert", {
  119. "ctg_mtg_simple_land",
  120. "ctg_mtg_colored_sand",
  121. "ctg_mtg_colored_sand",
  122. "ctg_mtg_desert_sand",
  123. });
  124. cartographer.biomes.add("desert_ocean", {
  125. "ctg_mtg_simple_water",
  126. "ctg_mtg_colored_water",
  127. }, nil, 0);
  128. cartographer.biomes.add("desert_ocean", {
  129. "ctg_mtg_simple_land",
  130. "ctg_mtg_colored_sand",
  131. }, 1);
  132. -- Sandstone Desert
  133. cartographer.biomes.add("sandstone_desert", {
  134. "ctg_mtg_simple_land",
  135. "ctg_mtg_colored_sand",
  136. });
  137. cartographer.biomes.add("sandstone_desert_ocean", {
  138. "ctg_mtg_simple_water",
  139. "ctg_mtg_colored_water",
  140. }, nil, 0);
  141. cartographer.biomes.add("sandstone_desert_ocean", {
  142. "ctg_mtg_simple_land",
  143. "ctg_mtg_colored_sand",
  144. }, 1);
  145. -- Cold Desert
  146. cartographer.biomes.add("cold_desert", {
  147. "ctg_mtg_simple_land",
  148. "ctg_mtg_colored_sand",
  149. "ctg_mtg_colored_sand",
  150. "ctg_mtg_silver_sand",
  151. });
  152. cartographer.biomes.add("cold_desert_ocean", {
  153. "ctg_mtg_simple_water",
  154. "ctg_mtg_colored_water",
  155. }, nil, 0);
  156. cartographer.biomes.add("cold_desert_ocean", {
  157. "ctg_mtg_simple_land",
  158. "ctg_mtg_colored_sand",
  159. }, 1);
  160. -- Savanna
  161. cartographer.biomes.add("savanna", {
  162. "ctg_mtg_simple_land",
  163. "ctg_mtg_colored_land",
  164. "ctg_mtg_colored_land",
  165. "ctg_mtg_savanna",
  166. });
  167. cartographer.biomes.add("savanna_shore", {
  168. "ctg_mtg_simple_land",
  169. "ctg_mtg_colored_sand",
  170. });
  171. cartographer.biomes.add("savanna_ocean", {
  172. "ctg_mtg_simple_water",
  173. "ctg_mtg_colored_water",
  174. }, nil, 0);
  175. cartographer.biomes.add("savanna_ocean", {
  176. "ctg_mtg_simple_land",
  177. "ctg_mtg_colored_sand",
  178. }, 1);
  179. -- Rainforest
  180. cartographer.biomes.add("rainforest", {
  181. "ctg_mtg_simple_forest",
  182. "ctg_mtg_colored_forest",
  183. "ctg_mtg_rainforest",
  184. });
  185. cartographer.biomes.add("rainforest_swamp", {
  186. "ctg_mtg_simple_water",
  187. "ctg_mtg_colored_water",
  188. "ctg_mtg_swamp",
  189. });
  190. cartographer.biomes.add("rainforest_ocean", {
  191. "ctg_mtg_simple_water",
  192. "ctg_mtg_colored_water",
  193. });
  194. -- Markers
  195. -- General markers
  196. cartographer.markers.add("ctg_mtg:house", "House", {
  197. "ctg_mtg_marker_house",
  198. "ctg_mtg_marker_house_2",
  199. });
  200. cartographer.markers.add("ctg_mtg:skull", "Skull", {
  201. "ctg_mtg_marker_skull",
  202. });
  203. cartographer.markers.add("ctg_mtg:diamond", "diamond", {
  204. "ctg_mtg_marker_diamond",
  205. "ctg_mtg_marker_diamond_2",
  206. });
  207. cartographer.markers.add("ctg_mtg:mese", "mese", {
  208. "ctg_mtg_marker_mese",
  209. "ctg_mtg_marker_mese_2",
  210. });
  211. cartographer.markers.add("ctg_mtg:x", "X", {
  212. "ctg_mtg_marker_x",
  213. "ctg_mtg_marker_x_2",
  214. });
  215. cartographer.markers.add("ctg_mtg:flag", "Flag", {
  216. "ctg_mtg_marker_flag",
  217. "ctg_mtg_marker_flag_2",
  218. });
  219. -- Line drawing markers
  220. cartographer.markers.add("ctg_mtg:line_h", "Line (Horizontal)", {
  221. "ctg_mtg_marker_line_h",
  222. });
  223. cartographer.markers.add("ctg_mtg:line_v", "Line (Vertical)", {
  224. "ctg_mtg_marker_line_v",
  225. });
  226. cartographer.markers.add("ctg_mtg:line_c_ne", "Line (North-East Corner)", {
  227. "ctg_mtg_marker_line_c_ne",
  228. });
  229. cartographer.markers.add("ctg_mtg:line_c_se", "Line (South-East Corner)", {
  230. "ctg_mtg_marker_line_c_se",
  231. });
  232. cartographer.markers.add("ctg_mtg:line_c_nw", "Line (North-West Corner)", {
  233. "ctg_mtg_marker_line_c_nw",
  234. });
  235. cartographer.markers.add("ctg_mtg:line_c_sw", "Line (South-West Corner)", {
  236. "ctg_mtg_marker_line_c_sw",
  237. });
  238. cartographer.markers.add("ctg_mtg:line_t_n", "Line (North T-Intersection)", {
  239. "ctg_mtg_marker_line_t_n",
  240. });
  241. cartographer.markers.add("ctg_mtg:line_t_s", "Line (South T-Intersection)", {
  242. "ctg_mtg_marker_line_t_s",
  243. });
  244. cartographer.markers.add("ctg_mtg:line_t_e", "Line (East T-Intersection)", {
  245. "ctg_mtg_marker_line_t_e",
  246. });
  247. cartographer.markers.add("ctg_mtg:line_t_w", "Line (West T-Intersection)", {
  248. "ctg_mtg_marker_line_t_w",
  249. });
  250. cartographer.markers.add("ctg_mtg:line_cross", "Line (Crossing)", {
  251. "ctg_mtg_marker_line_cross",
  252. });
  253. -- Arrow markers
  254. cartographer.markers.add("ctg_mtg:arrow_n", "Arrow (North)", {
  255. "ctg_mtg_marker_arrow_n",
  256. });
  257. cartographer.markers.add("ctg_mtg:arrow_s", "Arrow (South)", {
  258. "ctg_mtg_marker_arrow_s",
  259. });
  260. cartographer.markers.add("ctg_mtg:arrow_e", "Arrow (East)", {
  261. "ctg_mtg_marker_arrow_e",
  262. });
  263. cartographer.markers.add("ctg_mtg:arrow_w", "Arrow (West)", {
  264. "ctg_mtg_marker_arrow_w",
  265. });
  266. cartographer.markers.add("ctg_mtg:arrow_ne", "Arrow (North-East)", {
  267. "ctg_mtg_marker_arrow_ne",
  268. });
  269. cartographer.markers.add("ctg_mtg:arrow_se", "Arrow (South-East)", {
  270. "ctg_mtg_marker_arrow_se",
  271. });
  272. cartographer.markers.add("ctg_mtg:arrow_nw", "Arrow (North-West)", {
  273. "ctg_mtg_marker_arrow_nw",
  274. });
  275. cartographer.markers.add("ctg_mtg:arrow_sw", "Arrow (South-West)", {
  276. "ctg_mtg_marker_arrow_sw",
  277. });
  278. -- Materials
  279. cartographer.materials.register_by_name("default:paper", "paper");
  280. cartographer.materials.register_by_name("default:coal_lump", "pigment");
  281. cartographer.materials.register_by_name("default:coalblock", "pigment", 9);
  282. cartographer.materials.register_by_name("dye:black", "pigment");
  283. -- Crafting Recipes
  284. minetest.register_craft({
  285. output = "cartographer:simple_table",
  286. recipe = {
  287. {"group:wood", "group:wood", "group:wood"},
  288. {"group:stick", "", "group:stick"},
  289. {"group:stick", "group:stick", "group:stick"},
  290. }
  291. });
  292. minetest.register_craft({
  293. output = "cartographer:standard_table",
  294. recipe = {
  295. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  296. {"default:steel_ingot", "cartographer:simple_table", "default:steel_ingot"},
  297. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  298. }
  299. });
  300. minetest.register_craft({
  301. output = "cartographer:advanced_table",
  302. recipe = {
  303. {"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
  304. {"default:mese_crystal_fragment", "cartographer:simple_table", "default:mese_crystal_fragment"},
  305. {"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
  306. }
  307. });
  308. -- Skin
  309. for _,skin in pairs(cartographer.skin.table_skins) do
  310. skin.paper_texture = "default_paper";
  311. skin.pigment_texture = "dye_black";
  312. end
  313. cartographer.skin.table_skins.advanced_table.background.texture = "ctg_mtg_advanced_table_bg";
  314. -- Overrides
  315. minetest.override_item("cartographer:simple_table", {
  316. tiles = { "ctg_mtg_simple_table.png" };
  317. });
  318. minetest.override_item("cartographer:standard_table", {
  319. tiles = { "ctg_mtg_standard_table.png" };
  320. });
  321. minetest.override_item("cartographer:advanced_table", {
  322. tiles = { "ctg_mtg_advanced_table.png" };
  323. light_source = 5,
  324. });
  325. minetest.log("action", "[cartographer_mtg] loaded.")