From b52f70c09dedca19d95f14f7bc22e5ac7cbb5f13 Mon Sep 17 00:00:00 2001 From: volkj Date: Wed, 9 Nov 2016 15:48:15 +0100 Subject: [PATCH] "deprecated" Warning removal and code cleanup substitute deprecated tile_images and height_min/max with the new ones --- README.txt | 4 +++- minecoins.lua | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.txt b/README.txt index 612d53a..ecf5a4a 100644 --- a/README.txt +++ b/README.txt @@ -18,4 +18,6 @@ Dependencies: money2 (optional) currency (optional) -Forum link: https://forum.minetest.net/viewtopic.php?id=7821 +Forum link: https://forum.minetest.net/viewtopic.php?id=7821 + +Requires Minetest 0.4.14 (stable) or newer. diff --git a/minecoins.lua b/minecoins.lua index 1c8f75d..104a717 100644 --- a/minecoins.lua +++ b/minecoins.lua @@ -5,7 +5,7 @@ -- Node definitions minetest.register_node("bitchange:minecoin_in_ground", { description = "MineCoin Ore", - tile_images = { "default_stone.png^bitchange_minecoin_in_ground.png" }, + tiles = { "default_stone.png^bitchange_minecoin_in_ground.png" }, is_ground_content = true, groups = {cracky=2}, sounds = default.node_sound_stone_defaults(), @@ -20,7 +20,7 @@ minetest.register_node("bitchange:minecoin_in_ground", { minetest.register_node("bitchange:mineninth_in_ground", { description = "MineNinth Ore", - tile_images = { "default_stone.png^bitchange_mineninth_in_ground.png" }, + tiles = { "default_stone.png^bitchange_mineninth_in_ground.png" }, is_ground_content = true, groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), @@ -36,7 +36,7 @@ minetest.register_node("bitchange:mineninth_in_ground", { minetest.register_node("bitchange:minecoinblock", { description = "MineCoin Block", - tile_images = { "bitchange_minecoinblock.png" }, + tiles = { "bitchange_minecoinblock.png" }, is_ground_content = true, groups = {cracky=2}, sounds = default.node_sound_stone_defaults(), @@ -121,8 +121,8 @@ minetest.register_ore({ clust_scarcity = 15*15*15, clust_num_ores = 3, clust_size = 7, - height_max = -512, - height_min = -18000, + y_max = -512, + y_min = -18000, }) minetest.register_ore({ @@ -132,8 +132,8 @@ minetest.register_ore({ clust_scarcity = 12*12*12, clust_num_ores = 5, clust_size = 8, - height_max = -256, - height_min = -511, + y_max = -256, + y_min = -511, }) minetest.register_ore({ @@ -143,7 +143,7 @@ minetest.register_ore({ clust_scarcity = 13*13*13, clust_num_ores = 3, clust_size = 7, - height_max = 28000, - height_min = -255, + y_max = 28000, + y_min = -255, }) -end \ No newline at end of file +end