Update blocks.lua

added "attached_node" group, allowing flowers and mushrooms to not be placed onto sides of blocks/onto other flowers and mushrooms and made them not emitt shadows
master
danil275487 2021-04-20 13:48:15 +03:00
parent 37abbc1ac2
commit 5099d27134
1 changed files with 8 additions and 4 deletions

View File

@ -386,8 +386,9 @@ minetest.register_node("minecraft:flower", {
drawtype = "plantlike",
paramtype = "light",
walkable = false,
sunlight_propagates = true,
tiles = {"terrain.png^[sheet:16x16:13,0"},
groups = {dig_immediate=2,snappy=3},
groups = {dig_immediate=2,snappy=3,attached_node = 1},
inventory_image = "terrain.png^[sheet:16x16:13,0"
})
@ -396,8 +397,9 @@ minetest.register_node("minecraft:rose", {
drawtype = "plantlike",
paramtype = "light",
walkable = false,
sunlight_propagates = true,
tiles = {"terrain.png^[sheet:16x16:12,0"},
groups = {dig_immediate=2,snappy=3},
groups = {dig_immediate=2,snappy=3,attached_node = 1},
inventory_image = "terrain.png^[sheet:16x16:12,0"
})
@ -406,8 +408,9 @@ minetest.register_node("minecraft:mushroom", {
drawtype = "plantlike",
paramtype = "light",
walkable = false,
sunlight_propagates = true,
tiles = {"terrain.png^[sheet:16x16:12,1"},
groups = {dig_immediate=2},
groups = {dig_immediate=2,attached_node = 1},
inventory_image = "terrain.png^[sheet:16x16:12,1"
})
@ -416,8 +419,9 @@ minetest.register_node("minecraft:mushroom2", {
drawtype = "plantlike",
paramtype = "light",
walkable = false,
sunlight_propagates = true,
tiles = {"terrain.png^[sheet:16x16:13,1"},
groups = {dig_immediate=2},
groups = {dig_immediate=2,attached_node = 1},
inventory_image = "terrain.png^[sheet:16x16:13,1"
})