Skip to content

Commit

Permalink
Add water and lava barriers (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit authored Aug 21, 2023
1 parent d58dd35 commit 97de544
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions mods/ctf/ctf_map/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@ minetest.register_node("ctf_map:ind_glass_red", {
})
ctf_map.barrier_nodes[minetest.get_content_id("ctf_map:ind_glass_red")] = minetest.CONTENT_AIR

minetest.register_node("ctf_map:ind_water", {
description = "Indestructible Water Barrier Glass",
drawtype = "glasslike",
tiles = {"ctf_map_ind_water.png"},
inventory_image = minetest.inventorycube("ctf_map_ind_water.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
walkable = true,
buildable_to = false,
use_texture_alpha = false,
alpha = 0,
pointable = ctf_core.settings.server_mode == "mapedit",
groups = {immortal = 1},
sounds = default.node_sound_glass_defaults()
})
ctf_map.barrier_nodes[minetest.get_content_id("ctf_map:ind_water")] = minetest.get_content_id("default:water_source")

minetest.register_node("ctf_map:ind_lava", {
description = "Indestructible Lava Barrier Stone",
groups = {immortal = 1},
tiles = {"ctf_map_ind_lava.png"},
is_ground_content = false
})
ctf_map.barrier_nodes[minetest.get_content_id("ctf_map:ind_lava")] = minetest.get_content_id("default:lava_source")

minetest.register_node("ctf_map:ind_stone_red", {
description = "Indestructible Red Barrier Stone",
groups = {immortal = 1},
Expand Down
Binary file added mods/ctf/ctf_map/textures/ctf_map_ind_lava.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mods/ctf/ctf_map/textures/ctf_map_ind_water.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 97de544

Please sign in to comment.