Add ind_dirt and ind_dirt_with_grass

This commit is contained in:
Jak R 2018-06-08 23:35:28 +01:00 committed by rubenwardy
parent e8fd22c569
commit da9ab8ec15

View file

@ -1,5 +1,5 @@
minetest.register_node("ctf_map:ignore", { minetest.register_node("ctf_map:ignore", {
description = "MyAir (you hacker you!)", description = "Artificial Ignore", -- this may need to be given a more appropriate name
drawtype = "airlike", drawtype = "airlike",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
@ -13,7 +13,7 @@ minetest.register_node("ctf_map:ignore", {
}) })
minetest.register_node("ctf_map:ind_glass", { minetest.register_node("ctf_map:ind_glass", {
description = "You cheater you!", description = "Indestructible Glass",
drawtype = "glasslike_framed_optional", drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"}, tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("default_glass.png"), inventory_image = minetest.inventorycube("default_glass.png"),
@ -28,21 +28,43 @@ minetest.register_node("ctf_map:ind_glass", {
}) })
minetest.register_node("ctf_map:ind_stone", { minetest.register_node("ctf_map:ind_stone", {
description = "Cheater!", description = "Indestructible Stone",
groups = {immortal = 1}, groups = {immortal = 1},
tiles = {"default_stone.png"}, tiles = {"default_stone.png"},
is_ground_content = false is_ground_content = false
}) })
minetest.register_node("ctf_map:ind_dirt", {
description = "Indestructible Dirt",
groups = {immortal = 1},
tiles = {"default_dirt.png"},
is_ground_content = false,
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25}
}),
})
minetest.register_node("ctf_map:ind_dirt_with_grass", {
description = "Indestructible Dirt with Grass",
groups = {immortal = 1},
tiles = {"default_grass.png", "default_dirt.png",
{name = "default_dirt.png^default_grass_side.png",
tileable_vertical = false}},
is_ground_content = false,
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("ctf_map:ind_stone_red", { minetest.register_node("ctf_map:ind_stone_red", {
description = "Cheater!", description = "Indestructible Red Stone",
groups = {immortal = 1}, groups = {immortal = 1},
tiles = {"ctf_map_stone_red.png"}, tiles = {"ctf_map_stone_red.png"},
is_ground_content = false is_ground_content = false
}) })
minetest.register_node("ctf_map:ind_glass_red", { minetest.register_node("ctf_map:ind_glass_red", {
description = "You cheater you!", description = "Indestructible Red Glass",
drawtype = "glasslike", drawtype = "glasslike",
tiles = {"ctf_map_glass_red.png"}, tiles = {"ctf_map_glass_red.png"},
inventory_image = minetest.inventorycube("default_glass.png"), inventory_image = minetest.inventorycube("default_glass.png"),