Рет қаралды 137
A thing I made, here's the source code, just put it in init.lua:
minetest.register_node("awuuwatest:glass_wall", {
description = "Glass Wall",
drawtype = "nodebox",
tiles = {"default_glass.png"},
wield_image = "default_glass.png",
paramtype = "light",
paramtype2 = "wallmounted",
walkable = true,
node_box = {
type = "wallmounted",
wall_top = {-0.5, 0.375, -0.5, 0.5, 0.5, 0.5},
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
wall_side = {-0.5, -0.5, -0.5, -0.375, 0.5, 0.5}
},
selection_box = {type = "wallmounted"},
groups = {snappy = 3, choppy = 3},
sounds = default.node_sound_wood_defaults()
})