add cobblestone and fix some drops.
add cobblestone node. make stone drop cobblestone and grass drop dirt.
This commit is contained in:
parent
2ed91bbcc3
commit
ac307233a1
3 changed files with 22 additions and 5 deletions
|
@ -1,6 +1,17 @@
|
||||||
local modname = minetest.get_current_modname()
|
local modname = minetest.get_current_modname()
|
||||||
|
|
||||||
blockgame.reg_simple_node("stone", "Stone", {
|
minetest.register_node(modname .. ":stone", {
|
||||||
|
description = "Stone",
|
||||||
|
tiles = {
|
||||||
|
modname .. "_stone.png",
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
cracky = 3,
|
||||||
|
stoney = 1,
|
||||||
|
},
|
||||||
|
drop = modname .. ":cobblestone",
|
||||||
|
})
|
||||||
|
blockgame.reg_simple_node("cobblestone", "Cobblestone", {
|
||||||
cracky = 3,
|
cracky = 3,
|
||||||
stoney = 1,
|
stoney = 1,
|
||||||
})
|
})
|
||||||
|
@ -8,11 +19,17 @@ blockgame.reg_simple_node("stone", "Stone", {
|
||||||
minetest.register_alias("mapgen_stone", modname .. ":stone")
|
minetest.register_alias("mapgen_stone", modname .. ":stone")
|
||||||
minetest.register_alias("mapgen_water_source", "air")
|
minetest.register_alias("mapgen_water_source", "air")
|
||||||
|
|
||||||
blockgame.reg_simple_node("grass", "Grass", {
|
minetest.register_node(modname .. ":grass", {
|
||||||
cracky = 3,
|
description = "Grass",
|
||||||
dirty = 1,
|
tiles = {
|
||||||
|
modname .. "_grass.png",
|
||||||
|
},
|
||||||
|
groups = {
|
||||||
|
cracky = 3,
|
||||||
|
dirty = 1,
|
||||||
|
},
|
||||||
|
drop = modname .. ":dirt",
|
||||||
})
|
})
|
||||||
|
|
||||||
blockgame.reg_simple_node("dirt", "Dirt", {
|
blockgame.reg_simple_node("dirt", "Dirt", {
|
||||||
cracky = 3,
|
cracky = 3,
|
||||||
dirty = 1,
|
dirty = 1,
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 268 B |
BIN
mods/bg_core/textures/core_cobblestone.png
Normal file
BIN
mods/bg_core/textures/core_cobblestone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 966 B |
Loading…
Reference in a new issue