forked from mtcontrib/plantlife_modpack
Version MFF.
This commit is contained in:
1
cavestuff/depends.txt
Normal file → Executable file
1
cavestuff/depends.txt
Normal file → Executable file
@ -1,2 +1,3 @@
|
||||
default
|
||||
watershed?
|
||||
|
||||
|
2
cavestuff/init.lua
Normal file → Executable file
2
cavestuff/init.lua
Normal file → Executable file
@ -9,4 +9,4 @@ dofile(minetest.get_modpath("cavestuff").."/mapgen.lua")
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
|
4
cavestuff/mapgen.lua
Normal file → Executable file
4
cavestuff/mapgen.lua
Normal file → Executable file
@ -28,7 +28,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if ground_y then
|
||||
local p = {x=x,y=ground_y+1,z=z}
|
||||
local nn = minetest.get_node(p).name
|
||||
@ -44,7 +44,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
0
cavestuff/models/cavestuff_pebble.obj
Normal file → Executable file
0
cavestuff/models/cavestuff_pebble.obj
Normal file → Executable file
6
cavestuff/nodes.lua
Normal file → Executable file
6
cavestuff/nodes.lua
Normal file → Executable file
@ -64,7 +64,7 @@ minetest.register_node("cavestuff:desert_pebble_2",{
|
||||
tiles = {"default_desert_stone.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=3, stone=1, not_in_creative__inventory=1},
|
||||
groups = {cracky=3, stone=1, not_in_creative_inventory=1},
|
||||
selection_box = cbox,
|
||||
collision_box = cbox,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -88,10 +88,10 @@ minetest.register_node("cavestuff:stalactite_1",{
|
||||
{-0.037500,-0.837500,0.037500,0.037500,0.500000,-0.025000},
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local pt = pointed_thing
|
||||
if minetest.get_node(pt.under).name=="default:stone"
|
||||
if minetest.get_node(pt.under).name=="default:stone"
|
||||
and minetest.get_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}).name=="air"
|
||||
and minetest.get_node({x=pt.under.x, y=pt.under.y-2, z=pt.under.z}).name=="air" then
|
||||
minetest.set_node({x=pt.under.x, y=pt.under.y-1, z=pt.under.z}, {name="cavestuff:stalactite_"..math.random(1,3)})
|
||||
|
0
cavestuff/textures/undergrowth_desert_pebble.png
Normal file → Executable file
0
cavestuff/textures/undergrowth_desert_pebble.png
Normal file → Executable file
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 303 B |
0
cavestuff/textures/undergrowth_pebble.png
Normal file → Executable file
0
cavestuff/textures/undergrowth_pebble.png
Normal file → Executable file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 362 B |
Reference in New Issue
Block a user