1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-05 01:50:25 +01:00

[automappercolors & ...] Replace tile_images fields

This commit is contained in:
LeMagnesium 2015-10-30 11:46:00 +01:00
parent baf6efa366
commit c29721e80e
7 changed files with 19 additions and 19 deletions

View File

@ -9,7 +9,7 @@ function amc_dumpnodes()
local n = 0
for name, def in pairs(minetest.registered_nodes) do
if def.drawtype ~= 'airlike' then
local tile = def.tiles or def.tile_images
local tile = def.tiles
if type(tile) == 'table' then
tile = tile[1]
if type(tile) == 'table' then

View File

@ -19,7 +19,7 @@ end
minetest.register_node("bobblocks:btm", {
description = "Bobs TransMorgifier v5",
tile_images = {"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm_sides.png",
tiles = {"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm_sides.png",
"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm.png"},
inventory_image = "bobblocks_btm.png",
paramtype2 = "facedir",
@ -39,7 +39,7 @@ for _, colour in ipairs(bobblock_colours) do
minetest.register_node("bobblocks:"..colour.."block", {
description = colour.." Block",
drawtype = "glasslike",
tile_images = {"bobblocks_"..colour.."block.png"},
tiles = {"bobblocks_"..colour.."block.png"},
inventory_image = minetest.inventorycube("bobblocks_"..colour.."block.png"),
paramtype = "light",
sunlight_propagates = true,
@ -60,7 +60,7 @@ minetest.register_node("bobblocks:"..colour.."block", {
minetest.register_node("bobblocks:"..colour.."block_off", {
description = colour.." Block",
tile_images = {"bobblocks_"..colour.."block.png"},
tiles = {"bobblocks_"..colour.."block.png"},
is_ground_content = true,
alpha = 160,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
@ -82,7 +82,7 @@ minetest.register_node("bobblocks:"..colour.."block_off", {
minetest.register_node("bobblocks:"..colour.."pole", {
description = colour.." Pole",
drawtype = "fencelike",
tile_images = {"bobblocks_"..colour.."block.png"},
tiles = {"bobblocks_"..colour.."block.png"},
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
paramtype = "light",
sunlight_propagates = true,
@ -102,7 +102,7 @@ minetest.register_node("bobblocks:"..colour.."pole", {
minetest.register_node("bobblocks:"..colour.."pole_off", {
description = colour.." Pole",
drawtype = "fencelike",
tile_images = {"bobblocks_"..colour.."block.png"},
tiles = {"bobblocks_"..colour.."block.png"},
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
paramtype = "light",
sunlight_propagates = true,
@ -136,7 +136,7 @@ end
minetest.register_node("bobblocks:greyblock", {
description = "Grey Block",
drawtype = "glasslike",
tile_images = {"bobblocks_greyblock.png"},
tiles = {"bobblocks_greyblock.png"},
inventory_image = minetest.inventorycube("bobblocks_greyblock.png"),
paramtype = "light",
sunlight_propagates = true,
@ -152,7 +152,7 @@ minetest.register_node("bobblocks:greyblock", {
minetest.register_node("bobblocks:greyblock_off", {
description = "Grey Block",
tile_images = {"bobblocks_greyblock.png"},
tiles = {"bobblocks_greyblock.png"},
is_ground_content = true,
alpha = 160,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
@ -167,7 +167,7 @@ minetest.register_node("bobblocks:greyblock_off", {
minetest.register_node("bobblocks:greypole", {
description = "Grey Pole",
drawtype = "fencelike",
tile_images = {"bobblocks_greyblock.png"},
tiles = {"bobblocks_greyblock.png"},
inventory_image = ("bobblocks_invgreypole.png"),
paramtype = "light",
sunlight_propagates = true,

View File

@ -32,7 +32,7 @@ end
minetest.register_node("bobblocks:health_off", {
description = "Health Pack 1 Off",
tile_images = {"bobblocks_health_off.png"},
tiles = {"bobblocks_health_off.png"},
inventory_image = "bobblocks_health_off.png",
paramtype2 = "facedir",
legacy_facedir_simple = true,
@ -48,7 +48,7 @@ minetest.register_node("bobblocks:health_off", {
minetest.register_node("bobblocks:health_on", {
description = "Health Pack 1 On",
tile_images = {"bobblocks_health_on.png"},
tiles = {"bobblocks_health_on.png"},
paramtype2 = "facedir",
legacy_facedir_simple = true,
light_source = default.LIGHT_MAX-1,

View File

@ -64,7 +64,7 @@ minetest.register_abm(
-- Nodes
minetest.register_node("bobblocks:trap_grass", {
description = "Trap Grass",
tile_images = {"default_grass.png"},
tiles = {"default_grass.png"},
paramtype2 = "facedir",
legacy_facedir_simple = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
@ -77,7 +77,7 @@ local function spikenode(name, desc, texture, drop, groups, drawtype)
minetest.register_node("bobblocks:trap_"..name, {
description = desc,
drawtype = drawtype,
tile_images = {"bobblocks_"..texture..".png"},
tiles = {"bobblocks_"..texture..".png"},
inventory_image = ("bobblocks_"..texture..".png"),
paramtype = "light",
walkable = false,
@ -104,7 +104,7 @@ minetest.register_node("bobblocks:spike_major_reverse", {
description = "Trap Spike Major Reverse",
drawtype = "plantlike",
visual_scale = 1,
tile_images = {"bobblocks_majorspike_reverse.png"},
tiles = {"bobblocks_majorspike_reverse.png"},
inventory_image = ("bobblocks_majorspike_reverse.png"),
paramtype = "light",
walkable = false,

View File

@ -7,7 +7,7 @@ print (" ---- mods override is Loading! ---- ")
-- description = "Leaves",
-- drawtype = "allfaces_optional",
-- visual_scale = 1.3,
-- tile_images = {"4seasons_leaves_with_snow.png"},
-- tiles = {"4seasons_leaves_with_snow.png"},
-- paramtype = "light",
-- groups = {snappy=3, leafdecay=3, flammable=2},
-- drop = {
@ -81,4 +81,4 @@ minetest.register_node(":4seasons:cactus_winter", {
{items = {'christmas_craft:snowball'}, rarity = 0,},
}},
sounds = default.node_sound_wood_defaults(),
})
})

View File

@ -5,7 +5,7 @@ LIGHT_MAX = 15
minetest.register_node("glow:stone", {
description = "Glowing stone",
tile_images = {"glow_stone.png"},
tiles = {"glow_stone.png"},
light_source = LIGHT_MAX,
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
@ -13,7 +13,7 @@ minetest.register_node("glow:stone", {
minetest.register_node("glow:lamp", {
description = "Lamp",
tile_images = {"glow_stone.png^glow_lamp_frame.png"},
tiles = {"glow_stone.png^glow_lamp_frame.png"},
light_source = LIGHT_MAX,
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),

View File

@ -399,7 +399,7 @@ local maze_closer = {} -- list of all closer stones
-- closer stone definition
minetest.register_node("maze:closer", {
tile_images = {"default_cobble.png"},
tiles = {"default_cobble.png"},
inventory_image = minetest.inventorycube("default_cobble.png"),
drop = '',
material = { diggability = "not"},