Namespacing pt. 2
This commit is contained in:
2
mods/ip_roads/asphalt/depends.txt
Normal file
2
mods/ip_roads/asphalt/depends.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
streetsmod
|
||||
building_blocks?
|
||||
27
mods/ip_roads/asphalt/init.lua
Normal file
27
mods/ip_roads/asphalt/init.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
Streets Mod: All kinds of asphalt
|
||||
]]
|
||||
minetest.register_node(":streets:asphalt",{
|
||||
description = streets.S("Asphalt"),
|
||||
tiles = {"streets_asphalt.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
|
||||
if minetest.get_modpath("building_blocks") then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "streets:asphalt 3",
|
||||
recipe = {
|
||||
"default:sand",
|
||||
"default:gravel",
|
||||
"building_blocks:Tar"
|
||||
},
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "streets:asphalt",
|
||||
recipe = "default:gravel",
|
||||
cooktime = 2
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user