add alternative cobble and mossy cobble blocks
make alternative cobble turn mossy in the presence of water.
This commit is contained in:
parent
5495688c90
commit
3cdf20ecc6
@ -63,3 +63,10 @@ Other useful stuff:
|
||||
you're using this along with the standard minetest_game repository dated
|
||||
March 9 or later, this function no longer works, because the game provides a
|
||||
similar, less capable function.
|
||||
|
||||
Notes:
|
||||
------
|
||||
|
||||
The cobblestone and mossy cobblestone road bed textures were derived from:
|
||||
http://opengameart.org/content/rpg-tiles-cobble-stone-paths-town-objects
|
||||
...and the default grass texture that comes with minetest_game.
|
||||
|
36
crafts.lua
36
crafts.lua
@ -255,3 +255,39 @@ minetest.register_craft({
|
||||
"default:grass_1"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "gloopblocks:cobble_road 5",
|
||||
recipe = {
|
||||
"default:cobble",
|
||||
"default:cobble",
|
||||
"default:cobble",
|
||||
"default:cobble",
|
||||
"gloopblocks:pavement"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "gloopblocks:cobble_road_mossy 2",
|
||||
recipe = {
|
||||
"gloopblocks:cobble_road",
|
||||
"gloopblocks:cobble_road",
|
||||
"default:junglegrass",
|
||||
"default:junglegrass"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "gloopblocks:cobble_road_mossy 2",
|
||||
recipe = {
|
||||
"gloopblocks:cobble_road",
|
||||
"gloopblocks:cobble_road",
|
||||
"default:grass_1",
|
||||
"default:grass_1",
|
||||
"default:grass_1",
|
||||
"default:grass_1"
|
||||
}
|
||||
})
|
||||
|
27
init.lua
27
init.lua
@ -115,6 +115,20 @@ minetest.register_node("gloopblocks:stone_brick_mossy", {
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("gloopblocks:cobble_road", {
|
||||
description = "Cobblestone Road Bed",
|
||||
tiles = {"gloopblocks_cobble_road.png"},
|
||||
groups = {cracky=3, stone=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("gloopblocks:cobble_road_mossy", {
|
||||
description = "Mossy Cobblestone Road Bed",
|
||||
tiles = {"gloopblocks_cobble_road_mossy.png"},
|
||||
groups = {cracky=3, stone=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_alias("moreblocks:oerkkiblock", "gloopblocks:oerkki_block")
|
||||
minetest.register_alias("gloopblocks:obsidian", "default:obsidian")
|
||||
|
||||
@ -281,7 +295,7 @@ minetest.register_craftitem("gloopblocks:evil_stick", {
|
||||
inventory_image = "gloopblocks_evil_stick.png",
|
||||
})
|
||||
|
||||
-- ABMs for mossy cobble and mossy brick
|
||||
-- ABMs for mossy objects
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:cobble"},
|
||||
@ -293,6 +307,17 @@ minetest.register_abm({
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"gloopblocks:cobble_road"},
|
||||
neighbors = {"default:water_source", "default:water_flowing"},
|
||||
interval = 30,
|
||||
chance = 20,
|
||||
action = function(pos)
|
||||
minetest.env:add_node (pos, {name = "gloopblocks:cobble_road_mossy"})
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:stonebrick"},
|
||||
neighbors = {"default:water_source", "default:water_flowing"},
|
||||
|
BIN
textures/gloopblocks_cobble_road.png
Normal file
BIN
textures/gloopblocks_cobble_road.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 929 B |
BIN
textures/gloopblocks_cobble_road_mossy.png
Normal file
BIN
textures/gloopblocks_cobble_road_mossy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 931 B |
Loading…
x
Reference in New Issue
Block a user