mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
[automappercolors & ...] Replace tile_images fields
This commit is contained in:
parent
baf6efa366
commit
c29721e80e
@ -9,7 +9,7 @@ function amc_dumpnodes()
|
|||||||
local n = 0
|
local n = 0
|
||||||
for name, def in pairs(minetest.registered_nodes) do
|
for name, def in pairs(minetest.registered_nodes) do
|
||||||
if def.drawtype ~= 'airlike' then
|
if def.drawtype ~= 'airlike' then
|
||||||
local tile = def.tiles or def.tile_images
|
local tile = def.tiles
|
||||||
if type(tile) == 'table' then
|
if type(tile) == 'table' then
|
||||||
tile = tile[1]
|
tile = tile[1]
|
||||||
if type(tile) == 'table' then
|
if type(tile) == 'table' then
|
||||||
|
@ -19,7 +19,7 @@ end
|
|||||||
|
|
||||||
minetest.register_node("bobblocks:btm", {
|
minetest.register_node("bobblocks:btm", {
|
||||||
description = "Bobs TransMorgifier v5",
|
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"},
|
"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm.png"},
|
||||||
inventory_image = "bobblocks_btm.png",
|
inventory_image = "bobblocks_btm.png",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -39,7 +39,7 @@ for _, colour in ipairs(bobblock_colours) do
|
|||||||
minetest.register_node("bobblocks:"..colour.."block", {
|
minetest.register_node("bobblocks:"..colour.."block", {
|
||||||
description = colour.." Block",
|
description = colour.." Block",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tile_images = {"bobblocks_"..colour.."block.png"},
|
tiles = {"bobblocks_"..colour.."block.png"},
|
||||||
inventory_image = minetest.inventorycube("bobblocks_"..colour.."block.png"),
|
inventory_image = minetest.inventorycube("bobblocks_"..colour.."block.png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -60,7 +60,7 @@ minetest.register_node("bobblocks:"..colour.."block", {
|
|||||||
|
|
||||||
minetest.register_node("bobblocks:"..colour.."block_off", {
|
minetest.register_node("bobblocks:"..colour.."block_off", {
|
||||||
description = colour.." Block",
|
description = colour.." Block",
|
||||||
tile_images = {"bobblocks_"..colour.."block.png"},
|
tiles = {"bobblocks_"..colour.."block.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = 160,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
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", {
|
minetest.register_node("bobblocks:"..colour.."pole", {
|
||||||
description = colour.." Pole",
|
description = colour.." Pole",
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
tile_images = {"bobblocks_"..colour.."block.png"},
|
tiles = {"bobblocks_"..colour.."block.png"},
|
||||||
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
|
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -102,7 +102,7 @@ minetest.register_node("bobblocks:"..colour.."pole", {
|
|||||||
minetest.register_node("bobblocks:"..colour.."pole_off", {
|
minetest.register_node("bobblocks:"..colour.."pole_off", {
|
||||||
description = colour.." Pole",
|
description = colour.." Pole",
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
tile_images = {"bobblocks_"..colour.."block.png"},
|
tiles = {"bobblocks_"..colour.."block.png"},
|
||||||
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
|
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -136,7 +136,7 @@ end
|
|||||||
minetest.register_node("bobblocks:greyblock", {
|
minetest.register_node("bobblocks:greyblock", {
|
||||||
description = "Grey Block",
|
description = "Grey Block",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tile_images = {"bobblocks_greyblock.png"},
|
tiles = {"bobblocks_greyblock.png"},
|
||||||
inventory_image = minetest.inventorycube("bobblocks_greyblock.png"),
|
inventory_image = minetest.inventorycube("bobblocks_greyblock.png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -152,7 +152,7 @@ minetest.register_node("bobblocks:greyblock", {
|
|||||||
|
|
||||||
minetest.register_node("bobblocks:greyblock_off", {
|
minetest.register_node("bobblocks:greyblock_off", {
|
||||||
description = "Grey Block",
|
description = "Grey Block",
|
||||||
tile_images = {"bobblocks_greyblock.png"},
|
tiles = {"bobblocks_greyblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = 160,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
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", {
|
minetest.register_node("bobblocks:greypole", {
|
||||||
description = "Grey Pole",
|
description = "Grey Pole",
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
tile_images = {"bobblocks_greyblock.png"},
|
tiles = {"bobblocks_greyblock.png"},
|
||||||
inventory_image = ("bobblocks_invgreypole.png"),
|
inventory_image = ("bobblocks_invgreypole.png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
@ -32,7 +32,7 @@ end
|
|||||||
|
|
||||||
minetest.register_node("bobblocks:health_off", {
|
minetest.register_node("bobblocks:health_off", {
|
||||||
description = "Health Pack 1 Off",
|
description = "Health Pack 1 Off",
|
||||||
tile_images = {"bobblocks_health_off.png"},
|
tiles = {"bobblocks_health_off.png"},
|
||||||
inventory_image = "bobblocks_health_off.png",
|
inventory_image = "bobblocks_health_off.png",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
@ -48,7 +48,7 @@ minetest.register_node("bobblocks:health_off", {
|
|||||||
|
|
||||||
minetest.register_node("bobblocks:health_on", {
|
minetest.register_node("bobblocks:health_on", {
|
||||||
description = "Health Pack 1 On",
|
description = "Health Pack 1 On",
|
||||||
tile_images = {"bobblocks_health_on.png"},
|
tiles = {"bobblocks_health_on.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
light_source = default.LIGHT_MAX-1,
|
light_source = default.LIGHT_MAX-1,
|
||||||
|
@ -64,7 +64,7 @@ minetest.register_abm(
|
|||||||
-- Nodes
|
-- Nodes
|
||||||
minetest.register_node("bobblocks:trap_grass", {
|
minetest.register_node("bobblocks:trap_grass", {
|
||||||
description = "Trap Grass",
|
description = "Trap Grass",
|
||||||
tile_images = {"default_grass.png"},
|
tiles = {"default_grass.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
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, {
|
minetest.register_node("bobblocks:trap_"..name, {
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tile_images = {"bobblocks_"..texture..".png"},
|
tiles = {"bobblocks_"..texture..".png"},
|
||||||
inventory_image = ("bobblocks_"..texture..".png"),
|
inventory_image = ("bobblocks_"..texture..".png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -104,7 +104,7 @@ minetest.register_node("bobblocks:spike_major_reverse", {
|
|||||||
description = "Trap Spike Major Reverse",
|
description = "Trap Spike Major Reverse",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1,
|
visual_scale = 1,
|
||||||
tile_images = {"bobblocks_majorspike_reverse.png"},
|
tiles = {"bobblocks_majorspike_reverse.png"},
|
||||||
inventory_image = ("bobblocks_majorspike_reverse.png"),
|
inventory_image = ("bobblocks_majorspike_reverse.png"),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
@ -7,7 +7,7 @@ print (" ---- mods override is Loading! ---- ")
|
|||||||
-- description = "Leaves",
|
-- description = "Leaves",
|
||||||
-- drawtype = "allfaces_optional",
|
-- drawtype = "allfaces_optional",
|
||||||
-- visual_scale = 1.3,
|
-- visual_scale = 1.3,
|
||||||
-- tile_images = {"4seasons_leaves_with_snow.png"},
|
-- tiles = {"4seasons_leaves_with_snow.png"},
|
||||||
-- paramtype = "light",
|
-- paramtype = "light",
|
||||||
-- groups = {snappy=3, leafdecay=3, flammable=2},
|
-- groups = {snappy=3, leafdecay=3, flammable=2},
|
||||||
-- drop = {
|
-- drop = {
|
||||||
@ -81,4 +81,4 @@ minetest.register_node(":4seasons:cactus_winter", {
|
|||||||
{items = {'christmas_craft:snowball'}, rarity = 0,},
|
{items = {'christmas_craft:snowball'}, rarity = 0,},
|
||||||
}},
|
}},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -5,7 +5,7 @@ LIGHT_MAX = 15
|
|||||||
|
|
||||||
minetest.register_node("glow:stone", {
|
minetest.register_node("glow:stone", {
|
||||||
description = "Glowing stone",
|
description = "Glowing stone",
|
||||||
tile_images = {"glow_stone.png"},
|
tiles = {"glow_stone.png"},
|
||||||
light_source = LIGHT_MAX,
|
light_source = LIGHT_MAX,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
@ -13,7 +13,7 @@ minetest.register_node("glow:stone", {
|
|||||||
|
|
||||||
minetest.register_node("glow:lamp", {
|
minetest.register_node("glow:lamp", {
|
||||||
description = "Lamp",
|
description = "Lamp",
|
||||||
tile_images = {"glow_stone.png^glow_lamp_frame.png"},
|
tiles = {"glow_stone.png^glow_lamp_frame.png"},
|
||||||
light_source = LIGHT_MAX,
|
light_source = LIGHT_MAX,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
@ -399,7 +399,7 @@ local maze_closer = {} -- list of all closer stones
|
|||||||
|
|
||||||
-- closer stone definition
|
-- closer stone definition
|
||||||
minetest.register_node("maze:closer", {
|
minetest.register_node("maze:closer", {
|
||||||
tile_images = {"default_cobble.png"},
|
tiles = {"default_cobble.png"},
|
||||||
inventory_image = minetest.inventorycube("default_cobble.png"),
|
inventory_image = minetest.inventorycube("default_cobble.png"),
|
||||||
drop = '',
|
drop = '',
|
||||||
material = { diggability = "not"},
|
material = { diggability = "not"},
|
||||||
|
Loading…
Reference in New Issue
Block a user