Replace deprecated tile_images

This commit is contained in:
Wuzzy 2020-03-30 22:46:01 +02:00
parent e3303fe401
commit b3e6b1e10d
6 changed files with 16 additions and 16 deletions

View File

@ -56,7 +56,7 @@ for j, tree_name in ipairs(realtest.registered_trees_list) do
minetest.register_node("fences:"..tree.name:remove_modname_prefix().."_fence_"..i, { minetest.register_node("fences:"..tree.name:remove_modname_prefix().."_fence_"..i, {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {tree.textures.planks}, tiles = {tree.textures.planks},
paramtype = "light", paramtype = "light",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,drop_on_dig=1,fence=1,material=j}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,drop_on_dig=1,fence=1,material=j},
sunlight_propagates = true, sunlight_propagates = true,
@ -76,7 +76,7 @@ for j, tree_name in ipairs(realtest.registered_trees_list) do
minetest.register_node("fences:"..tree.name:remove_modname_prefix().."_fence", { minetest.register_node("fences:"..tree.name:remove_modname_prefix().."_fence", {
description = tree.description.." Fence", description = tree.description.." Fence",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {tree.textures.planks}, tiles = {tree.textures.planks},
paramtype = "light", paramtype = "light",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,drop_on_dig=1,fence=1,material=j}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,drop_on_dig=1,fence=1,material=j},
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -29,7 +29,7 @@ function hatches.register_hatch(name, desc, is_wooden)
minetest.register_node("hatches:"..name.."_hatch_opened_top", { minetest.register_node("hatches:"..name.."_hatch_opened_top", {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = true, is_ground_content = true,
@ -60,7 +60,7 @@ function hatches.register_hatch(name, desc, is_wooden)
minetest.register_node("hatches:"..name.."_hatch_closed", { minetest.register_node("hatches:"..name.."_hatch_closed", {
description = desc.." Hatch", description = desc.." Hatch",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {texture}, tiles = {texture},
inventory_image = "hatches_"..name.."_hatch.png", inventory_image = "hatches_"..name.."_hatch.png",
wield_image = "hatches_"..name.."_hatch.png", wield_image = "hatches_"..name.."_hatch.png",
paramtype = "light", paramtype = "light",
@ -90,7 +90,7 @@ function hatches.register_hatch(name, desc, is_wooden)
minetest.register_node("hatches:"..name.."_hatch_opened_bottom", { minetest.register_node("hatches:"..name.."_hatch_opened_bottom", {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = true, is_ground_content = true,

View File

@ -42,7 +42,7 @@ end
minetest.register_node('junglegrass:medium', { minetest.register_node('junglegrass:medium', {
description = "Jungle Grass (medium height)", description = "Jungle Grass (medium height)",
drawtype = 'plantlike', drawtype = 'plantlike',
tile_images = { 'junglegrass_medium.png' }, tiles = { 'junglegrass_medium.png' },
inventory_image = 'junglegrass_medium.png', inventory_image = 'junglegrass_medium.png',
wield_image = 'junglegrass_medium.png', wield_image = 'junglegrass_medium.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -62,7 +62,7 @@ minetest.register_node('junglegrass:medium', {
minetest.register_node('junglegrass:short', { minetest.register_node('junglegrass:short', {
description = "Jungle Grass (short)", description = "Jungle Grass (short)",
drawtype = 'plantlike', drawtype = 'plantlike',
tile_images = { 'junglegrass_short.png' }, tiles = { 'junglegrass_short.png' },
inventory_image = 'junglegrass_short.png', inventory_image = 'junglegrass_short.png',
wield_image = 'junglegrass_short.png', wield_image = 'junglegrass_short.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -81,7 +81,7 @@ minetest.register_node('junglegrass:short', {
minetest.register_node('junglegrass:shortest', { minetest.register_node('junglegrass:shortest', {
description = "Jungle Grass (very short)", description = "Jungle Grass (very short)",
drawtype = 'plantlike', drawtype = 'plantlike',
tile_images = { 'junglegrass_shortest.png' }, tiles = { 'junglegrass_shortest.png' },
inventory_image = 'junglegrass_shortest.png', inventory_image = 'junglegrass_shortest.png',
wield_image = 'junglegrass_shortest.png', wield_image = 'junglegrass_shortest.png',
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -35,7 +35,7 @@ function realtest.register_ore(name, OreDef)
for i, wherein in ipairs(ore.wherein) do for i, wherein in ipairs(ore.wherein) do
local wherein_ = wherein:gsub(":","_") local wherein_ = wherein:gsub(":","_")
local wherein_textures = {} local wherein_textures = {}
if minetest.registered_nodes[wherein].tiles or minetest.registered_nodes[wherein].tile_images then if minetest.registered_nodes[wherein].tiles or minetest.registered_nodes[wherein].tiles then
for _, texture in ipairs(minetest.registered_nodes[wherein].tiles) do for _, texture in ipairs(minetest.registered_nodes[wherein].tiles) do
table.insert(wherein_textures, texture.."^"..name_..".png") table.insert(wherein_textures, texture.."^"..name_..".png")
end end
@ -192,7 +192,7 @@ realtest.register_ore("ores:graphite", {
minetest.register_node("ores:sulfur", { minetest.register_node("ores:sulfur", {
description = "Sulfur Ore", description = "Sulfur Ore",
tile_images = {"default_stone.png^ores_sulfur.png"}, tiles = {"default_stone.png^ores_sulfur.png"},
particle_image = {"minerals_sulfur.png"}, particle_image = {"minerals_sulfur.png"},
paramtype = "light", paramtype = "light",
groups = {cracky=3,drop_on_dig=1,dig_immediate=2}, groups = {cracky=3,drop_on_dig=1,dig_immediate=2},
@ -212,7 +212,7 @@ minetest.register_node("ores:sulfur", {
minetest.register_node("ores:peat", { minetest.register_node("ores:peat", {
description = "Peat", description = "Peat",
tile_images = {"ores_peat.png"}, tiles = {"ores_peat.png"},
particle_image = {"ores_peat.png"}, particle_image = {"ores_peat.png"},
groups = {crumbly=3,drop_on_dig=1,falling_node=1}, groups = {crumbly=3,drop_on_dig=1,falling_node=1},
sounds = default.node_sound_dirt_defaults(), sounds = default.node_sound_dirt_defaults(),

View File

@ -24,7 +24,7 @@ minetest.register_node('poisonivy:seedling', {
description = S("Poison ivy (seedling)"), description = S("Poison ivy (seedling)"),
drawtype = 'plantlike', drawtype = 'plantlike',
waving = 1, waving = 1,
tile_images = { 'poisonivy_seedling.png' }, tiles = { 'poisonivy_seedling.png' },
inventory_image = 'poisonivy_seedling.png', inventory_image = 'poisonivy_seedling.png',
wield_image = 'poisonivy_seedling.png', wield_image = 'poisonivy_seedling.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -39,7 +39,7 @@ minetest.register_node('poisonivy:sproutling', {
description = S("Poison ivy (sproutling)"), description = S("Poison ivy (sproutling)"),
drawtype = 'plantlike', drawtype = 'plantlike',
waving = 1, waving = 1,
tile_images = { 'poisonivy_sproutling.png' }, tiles = { 'poisonivy_sproutling.png' },
inventory_image = 'poisonivy_sproutling.png', inventory_image = 'poisonivy_sproutling.png',
wield_image = 'poisonivy_sproutling.png', wield_image = 'poisonivy_sproutling.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -53,7 +53,7 @@ minetest.register_node('poisonivy:sproutling', {
minetest.register_node('poisonivy:climbing', { minetest.register_node('poisonivy:climbing', {
description = S("Poison ivy (climbing plant)"), description = S("Poison ivy (climbing plant)"),
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'poisonivy_climbing.png' }, tiles = { 'poisonivy_climbing.png' },
inventory_image = 'poisonivy_climbing.png', inventory_image = 'poisonivy_climbing.png',
wield_image = 'poisonivy_climbing.png', wield_image = 'poisonivy_climbing.png',
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -71,7 +71,7 @@ for i = 1, 15 do
end end
minetest.register_node("xpanes:pane_"..i, { minetest.register_node("xpanes:pane_"..i, {
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"xpanes_white.png", "xpanes_white.png", texture}, tiles = {"xpanes_white.png", "xpanes_white.png", texture},
paramtype = "light", paramtype = "light",
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,drop_on_dig=1}, groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,drop_on_dig=1},
drop = "xpanes:pane", drop = "xpanes:pane",
@ -89,7 +89,7 @@ end
minetest.register_node("xpanes:pane", { minetest.register_node("xpanes:pane", {
description = "Glass Pane", description = "Glass Pane",
tile_images = {"xpanes_space.png"}, tiles = {"xpanes_space.png"},
inventory_image = "xpanes_pane.png", inventory_image = "xpanes_pane.png",
wield_image = "xpanes_pane.png", wield_image = "xpanes_pane.png",
node_placement_prediction = "", node_placement_prediction = "",