Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
xdecor
Commits
bc4eb153
Commit
bc4eb153
authored
9 years ago
by
kilbith
Browse files
Options
Downloads
Patches
Plain Diff
drawtype tweaking
parent
fbc629a5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+5
-4
5 additions, 4 deletions
README.md
handlers/registration.lua
+8
-1
8 additions, 1 deletion
handlers/registration.lua
nodes.lua
+7
-7
7 additions, 7 deletions
nodes.lua
workbench.lua
+1
-1
1 addition, 1 deletion
workbench.lua
with
21 additions
and
13 deletions
README.md
+
5
−
4
View file @
bc4eb153
## X-Decor ##
##### Minimal decoration mod for Minetest that aims to be simple and light. #####
##### It provides just the essential made of cute pixels and cubes. #####
##### Minimal decoration mod for Minetest meant to be light and simple. #####
##### It adds just the essential made of cute pixels and cubes. #####
##### It's a lightweight alternative to homedecor and moreblocks all together. #####
### Credits ###
##### Textures : Gambit, VanessaE, kilbith. #####
##### Code : VanessaE, t4im, kilbith, Krock. #####




This diff is collapsed.
Click to expand it.
handlers/registration.lua
+
8
−
1
View file @
bc4eb153
...
...
@@ -35,7 +35,14 @@ end
function
xdecor
.
register
(
name
,
def
)
def
.
drawtype
=
def
.
drawtype
or
(
def
.
node_box
and
"nodebox"
)
def
.
paramtype
=
def
.
paramtype
or
"light"
def
.
paramtype2
=
def
.
paramtype2
or
"facedir"
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"
end
local
infotext
=
def
.
infotext
local
inventory
=
def
.
inventory
...
...
This diff is collapsed.
Click to expand it.
nodes.lua
+
7
−
7
View file @
bc4eb153
...
...
@@ -63,7 +63,7 @@ xdecor.register("chandelier", {
groups
=
{
dig_immediate
=
3
},
light_source
=
14
})
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
()
})
local
curtaincolors
=
{
"red"
}
-- add more curtains simply here
...
...
@@ -174,14 +174,14 @@ xdecor.register("plant_pot", {
tiles
=
{
"xdecor_plant_pot_top.png"
,
"xdecor_plant_pot_sides.png"
}
})
xdecor
.
register
(
"metal_cabinet"
,
{
description
=
"Metal Cabinet"
,
inventory
=
{
size
=
24
},
description
=
"Metal Cabinet"
,
inventory
=
{
size
=
24
},
tiles
=
{
"xdecor_metal_cabinet_sides.png"
,
"xdecor_metal_cabinet_sides.png"
,
"xdecor_metal_cabinet_sides.png"
,
"xdecor_metal_cabinet_sides.png"
,
"xdecor_metal_cabinet_sides.png"
,
"xdecor_metal_cabinet_front.png"
},
groups
=
{
snappy
=
1
},
infotext
=
"Metal Cabinet"
})
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
()
})
xdecor
.
register
(
"multishelf"
,
{
...
...
@@ -203,11 +203,11 @@ xdecor.register("stereo", {
"xdecor_stereo_back.png"
,
"xdecor_stereo_front.png"
}
})
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
()
})
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
()
})
xdecor
.
register
(
"table"
,
{
...
...
@@ -229,10 +229,10 @@ xdecor.register("tv", {
animation
=
{
type
=
"vertical_frames"
,
length
=
80
.
0
}}}
})
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"
},
groups
=
{
snappy
=
3
},
sounds
=
default
.
node_sound_glass_defaults
()
})
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
()
})
This diff is collapsed.
Click to expand it.
workbench.lua
+
1
−
1
View file @
bc4eb153
local
material
=
{
"cloud"
,
-- only used for the formspec display
"wood"
,
"junglewood"
,
"pinewood"
,
"stonebrick"
,
"tree"
,
"pinetree"
,
"wood"
,
"junglewood"
,
"pinewood"
,
"tree"
,
"pinetree"
,
"stone"
,
"sandstone"
,
"desert_stone"
,
"obsidian"
,
"stonebrick"
,
"sandstonebrick"
,
"desert_stonebrick"
,
"obsidianbrick"
,
"copperblock"
,
"bronzeblock"
,
"goldblock"
,
"steelblock"
,
"diamondblock"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment