Add node damage

Implement damage if the player is inside a node
This commit is contained in:
Brayd 2023-04-22 17:08:36 +02:00
parent 2ca03afd8e
commit c9cd975ddd
Signed by: brayd
GPG Key ID: C2B176B9DEB8BA48
1 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,8 @@ minetest.register_node("pangeos:dirt_with_grass", {
tiles = {"pangeos_grass.png", "pangeos_dirt.png", "pangeos_dirt.png^pangeos_grass_side.png"},
is_ground_content = true,
groups = {crumbly=3,soil=1,oddly_breakable_by_hand=1},
drop = "pangeos:dirt"
drop = "pangeos:dirt",
damage_per_second = 1,
})
minetest.register_node("pangeos:dirt", {
@ -12,6 +13,7 @@ minetest.register_node("pangeos:dirt", {
tiles = {"pangeos_dirt.png"},
is_ground_content = true,
groups = {crumbly=3,soil=1},
damage_per_second = 1,
})
minetest.register_node("pangeos:sand", {
@ -19,6 +21,7 @@ minetest.register_node("pangeos:sand", {
tiles = {"pangeos_sand.png"},
is_ground_content = true,
groups = {crumbly=3, falling_node=1},
damage_per_second = 1,
})
minetest.register_node("pangeos:stone", {
@ -26,4 +29,5 @@ minetest.register_node("pangeos:stone", {
tiles = {"pangeos_stone.png"},
is_ground_content = true,
groups = {cracky=3},
})
damage_per_second = 1,
})