Skip to content

Instantly share code, notes, and snippets.

@ExcaliburZero
Last active January 21, 2016 21:34
Show Gist options
  • Save ExcaliburZero/f86a19980fe469630777 to your computer and use it in GitHub Desktop.
Save ExcaliburZero/f86a19980fe469630777 to your computer and use it in GitHub Desktop.
Minetest issue #3398 test mod
-- A node that is solid, but is also set to be wallmounted
minetest.register_node("test3398:solid_wallmount", {
description = "Solid Wallmount",
tiles = {"default_stone.png"},
groups = {cracky = 3, stone = 1},
drop = 'test3398:solid_wallmount',
paramtype1 = "wallmounted",
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
-- A node which is plantlike, but also not buildable to
minetest.register_node("test3398:plantlike_not_buildable_to", {
description = "Plantlike, not buildable to",
drawtype = "plantlike",
tiles = {"default_papyrus.png"},
inventory_image = "default_papyrus.png",
wield_image = "default_papyrus.png",
paramtype = "light",
buildable_to = false,
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment