Browse Source

Ajout de nouveaux blocs indestructibles

master
sys4-fr 1 year ago
parent
commit
70dbd3519e
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      default_nodes.lua

+ 23
- 0
default_nodes.lua View File

@@ -219,6 +219,28 @@ minetest.register_node("maptools:sandstone_brick", {
-- Compatibility for change made there ^
minetest.register_alias("maptools:sandstonebrick","maptools:sandstone_brick")

minetest.register_node("maptools:desert_sandstone_brick", {
description = S("Unbreakable Desert Sandstone Brick"),
range = 12,
stack_max = 10000,
tiles = {"default_desert_sandstone_brick.png"},
drop = "",
groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative},
sounds = default.node_sound_stone_defaults(),
on_drop = maptools.drop_msg
})

minetest.register_node("maptools:silver_sandstone_brick", {
description = S("Unbreakable Silver Sandstone Brick"),
range = 12,
stack_max = 10000,
tiles = {"default_silver_sandstone_brick.png"},
drop = "",
groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative},
sounds = default.node_sound_stone_defaults(),
on_drop = maptools.drop_msg
})

minetest.register_node("maptools:desert_stone", {
description = S("Unbreakable Desert Stone"),
range = 12,
@@ -639,3 +661,4 @@ minetest.register_node("maptools:chest",{
on_metadata_inventory_take = chestdef.on_metadata_inventory_take,
groups = {unbreakable = 1, not_in_creative_inventory = 1},
})


Loading…
Cancel
Save