1
0
mirror of https://codeberg.org/minenux/minetest-mod-xdecor synced 2023-10-20 21:43:39 -07:00

drawtype tweaking

This commit is contained in:
kilbith 2015-06-13 14:43:36 +02:00
parent fbc629a5bc
commit bc4eb1530e
4 changed files with 21 additions and 13 deletions

View File

@ -1,12 +1,13 @@
## X-Decor ## ## X-Decor ##
##### Minimal decoration mod for Minetest that aims to be simple and light. ##### ##### Minimal decoration mod for Minetest meant to be light and simple. #####
##### It provides just the essential made of cute pixels and cubes. ##### ##### It adds just the essential made of cute pixels and cubes. #####
##### It's a lightweight alternative to homedecor and moreblocks all together. #####
### Credits ### ### Credits ###
##### Textures : Gambit, VanessaE, kilbith. ##### ##### Textures : Gambit, VanessaE, kilbith. #####
##### Code : VanessaE, t4im, kilbith, Krock. ##### ##### Code : VanessaE, t4im, kilbith, Krock. #####
![Preview](http://i.imgur.com/teTQM6V.png) ![Preview](http://i.imgur.com/q892y2g.png)
![Preview2](http://i.imgur.com/FZzmpep.png) ![Preview2](http://i.imgur.com/4G5gIZs.png)

View File

@ -35,7 +35,14 @@ end
function xdecor.register(name, def) function xdecor.register(name, def)
def.drawtype = def.drawtype or (def.node_box and "nodebox") def.drawtype = def.drawtype or (def.node_box and "nodebox")
def.paramtype = def.paramtype or "light" def.paramtype = def.paramtype or "light"
if not (def.drawtype == "glasslike_framed"
or def.drawtype == "glasslike_framed_optional"
or def.drawtype == "plantlike"
or def.drawtype == "signlike"
or def.drawtype == "normal") then
def.paramtype2 = def.paramtype2 or "facedir" def.paramtype2 = def.paramtype2 or "facedir"
end
local infotext = def.infotext local infotext = def.infotext
local inventory = def.inventory local inventory = def.inventory

View File

@ -63,7 +63,7 @@ xdecor.register("chandelier", {
groups = {dig_immediate=3}, light_source = 14 }) groups = {dig_immediate=3}, light_source = 14 })
xdecor.register("coalstone_tile", { xdecor.register("coalstone_tile", {
description = "Coalstone Tile", tiles = {"xdecor_coalstone_tile.png"}, drawtype = "normal", description = "Coalstone Tile", tiles = {"xdecor_coalstone_tile.png"},
groups = {snappy=2}, sounds = default.node_sound_stone_defaults() }) groups = {snappy=2}, sounds = default.node_sound_stone_defaults() })
local curtaincolors = {"red"} -- add more curtains simply here local curtaincolors = {"red"} -- add more curtains simply here
@ -181,7 +181,7 @@ xdecor.register("metal_cabinet", {
groups = {snappy=1}, infotext = "Metal Cabinet" }) groups = {snappy=1}, infotext = "Metal Cabinet" })
xdecor.register("moonbrick", { xdecor.register("moonbrick", {
description = "Moonbrick", tiles = {"xdecor_moonbrick.png"}, drawtype = "normal", description = "Moonbrick", tiles = {"xdecor_moonbrick.png"},
groups = {snappy=2}, sounds = default.node_sound_stone_defaults() }) groups = {snappy=2}, sounds = default.node_sound_stone_defaults() })
xdecor.register("multishelf", { xdecor.register("multishelf", {
@ -203,11 +203,11 @@ xdecor.register("stereo", {
"xdecor_stereo_back.png", "xdecor_stereo_front.png"} }) "xdecor_stereo_back.png", "xdecor_stereo_front.png"} })
xdecor.register("stone_rune", { xdecor.register("stone_rune", {
description = "Stone Rune", tiles = {"xdecor_stone_rune.png"}, description = "Stone Rune", tiles = {"xdecor_stone_rune.png"}, drawtype = "normal",
groups = {snappy=3}, sounds = default.node_sound_stone_defaults() }) groups = {snappy=3}, sounds = default.node_sound_stone_defaults() })
xdecor.register("stone_tile", { xdecor.register("stone_tile", {
description = "Stone Tile", tiles = {"xdecor_stone_tile.png"}, description = "Stone Tile", tiles = {"xdecor_stone_tile.png"}, drawtype = "normal",
groups = {snappy=3}, sounds = default.node_sound_stone_defaults() }) groups = {snappy=3}, sounds = default.node_sound_stone_defaults() })
xdecor.register("table", { xdecor.register("table", {
@ -229,10 +229,10 @@ xdecor.register("tv", {
animation = {type="vertical_frames", length=80.0}}} }) animation = {type="vertical_frames", length=80.0}}} })
xdecor.register("woodframed_glass", { xdecor.register("woodframed_glass", {
description = "Wood Framed Glass", drawtype = "glasslike_framed_optional", description = "Wood Framed Glass", drawtype = "glasslike_framed",
tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"}, tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"},
groups = {snappy=3}, sounds = default.node_sound_glass_defaults() }) groups = {snappy=3}, sounds = default.node_sound_glass_defaults() })
xdecor.register("wood_tile", { xdecor.register("wood_tile", {
description = "Wood Tile", tiles = {"xdecor_wood_tile.png"}, description = "Wood Tile", tiles = {"xdecor_wood_tile.png"}, drawtype = "normal",
groups = {snappy=2, wood=1}, sounds = default.node_sound_wood_defaults() }) groups = {snappy=2, wood=1}, sounds = default.node_sound_wood_defaults() })

View File

@ -1,6 +1,6 @@
local material = { local material = {
"cloud", -- only used for the formspec display "cloud", -- only used for the formspec display
"wood", "junglewood", "pinewood", "stonebrick", "tree", "pinetree", "wood", "junglewood", "pinewood", "tree", "pinetree",
"stone", "sandstone", "desert_stone", "obsidian", "stone", "sandstone", "desert_stone", "obsidian",
"stonebrick", "sandstonebrick", "desert_stonebrick", "obsidianbrick", "stonebrick", "sandstonebrick", "desert_stonebrick", "obsidianbrick",
"copperblock", "bronzeblock", "goldblock", "steelblock", "diamondblock", "copperblock", "bronzeblock", "goldblock", "steelblock", "diamondblock",