Quick Glass Mod – rblok3

I referenced creating a quick glass block mod where the nodes may be cut in the Moreblocks circular saw mod. There may be a better way to write the code below. I am still learning how mods and graphics work in Minetest. The mod is free to do anything you want to it.

There are 5 files in the “rblok3” folder. One just needs to move the rblok3 folder to the mods folder in the game and activate it.

To get the mod go to , http://www.mediafire.com/file/igm4g9gf3arttvt/rblok3.zip/file

Here is the main code in the “init.lua”

minetest.register_node(“rblok3:glassblk”, {
description = “Tinted Glass”,
drawtype = “glasslike_framed_optional”,
tiles = {“rgs_black_glass.png”},
paramtype = “light”,
paramtype2 = “facedir”,
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
use_texture_alpha = true,
})

minetest.register_node(“rblok3:glassblk1”, {
description = “Tinted Glass1”,
drawtype = “glasslike_framed_optional”,
tiles = {“rgs_black_glass1.png”},
paramtype = “light”,
paramtype2 = “facedir”,
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
use_texture_alpha = true,
})

–stairsplus registration

if minetest.get_modpath(“moreblocks”) then

stairsplus:register_all(“rblok3”, “Tinted_Glass”, “rblok3:glassblk”, {
description = “Tinted_Glass”,

drawtype = “glasslike_framed_optional”,
tiles = {“rgs_black_glass.png”},
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
use_texture_alpha = true,
})

stairsplus:register_all(“rblok3”, “Tinted_Glass1”, “rblok3:glassblk1”, {
description = “Tinted_Glass1”,
drawtype = “glasslike_framed_optional”,
tiles = {“rgs_black_glass1.png”},
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
use_texture_alpha = true,
})

end

Enjoy 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.