Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
columnia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ClaudiusMinimus
columnia
Commits
415fad64
Commit
415fad64
authored
Dec 29, 2015
by
Milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nil value error because depends.txt and temporally disable moretrees compatibility
parent
6bc7b9c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
38 deletions
+48
-38
depends.txt
depends.txt
+1
-0
init.lua
init.lua
+47
-38
No files found.
depends.txt
0 → 100644
View file @
415fad64
default
init.lua
View file @
415fad64
...
...
@@ -533,7 +533,8 @@ columnia.register_column_ia("rusty_block", "columnia:rusty_block",
"Rusty Column Crosslink"
,
"Rusty Column Link"
,
"Rusty Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"stone"
,
"default:stone"
,
{
cracky
=
3
},
...
...
@@ -544,7 +545,8 @@ columnia.register_column_ia("stone", "default:stone",
"Stone Column Crosslink"
,
"Stone Column Link"
,
"Stone Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"stonebrick"
,
"default:stonebrick"
,
{
cracky
=
3
},
...
...
@@ -555,7 +557,8 @@ columnia.register_column_ia("stonebrick", "default:stonebrick",
"Stone Brick Column Crosslink"
,
"Stone Brick Column Link"
,
"Stone Brick Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"desert_stonebrick"
,
"default:desert_stonebrick"
,
{
cracky
=
3
},
...
...
@@ -566,7 +569,8 @@ columnia.register_column_ia("desert_stonebrick", "default:desert_stonebrick",
"Desert Stone Brick Column Crosslink"
,
"Desert Stone Brick Column Link"
,
"Desert Stone Brick Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"desert_stone"
,
"default:desert_stone"
,
{
cracky
=
3
},
...
...
@@ -577,7 +581,8 @@ columnia.register_column_ia("desert_stone", "default:desert_stone",
"Desert Stone Column Crosslink"
,
"Desert Stone Column Link"
,
"Desert Stone Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"cobble"
,
"default:cobble"
,
{
cracky
=
3
},
...
...
@@ -588,7 +593,8 @@ columnia.register_column_ia("cobble", "default:cobble",
"Cobble Column Crosslink"
,
"Cobble Column Link"
,
"Cobble Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"brick"
,
"default:brick"
,
{
cracky
=
3
},
...
...
@@ -599,7 +605,8 @@ columnia.register_column_ia("brick", "default:brick",
"Brick Column Crosslink"
,
"Brick Column Link"
,
"Brick Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"sandstone"
,
"default:sandstone"
,
{
crumbly
=
2
,
cracky
=
2
},
...
...
@@ -610,7 +617,8 @@ columnia.register_column_ia("sandstone", "default:sandstone",
"Sandstone Column Crosslink"
,
"Sandstone Column Link"
,
"Sandstone Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"sandstonebrick"
,
"default:sandstonebrick"
,
{
crumbly
=
2
,
cracky
=
2
},
...
...
@@ -621,7 +629,8 @@ columnia.register_column_ia("sandstonebrick", "default:sandstonebrick",
"Sandstone Brick Column Crosslink"
,
"Sandstone Brick Column Link"
,
"Sandstone Brick Column Linkdown"
,
default
.
node_sound_stone_defaults
())
default
.
node_sound_stone_defaults
()
)
columnia
.
register_column_ia
(
"wood"
,
"group:wood"
,
{
snappy
=
2
,
choppy
=
2
,
oddly_breakable_by_hand
=
2
,
flammable
=
3
},
...
...
@@ -645,35 +654,35 @@ columnia.register_column_ia("junglewood", "default:junglewood",
"Junglewood Column Linkdown"
,
default
.
node_sound_wood_defaults
())
if
core
.
get_modpath
(
'moretrees'
)
then
local
morewood
=
{
{
name
=
'beech'
,
description
=
'Beech Tree'
},
{
name
=
'apple_tree'
,
description
=
'Apple Tree'
},
{
name
=
'oak'
,
description
=
'Oak Tree'
},
{
name
=
'sequoia'
,
description
=
'Giant Sequoia'
},
{
name
=
'birch'
,
description
=
'Birch Tree'
},
{
name
=
'palm'
,
description
=
'Palm Tree'
,
},
{
name
=
'spruce'
,
description
=
'Spruce Tree'
},
{
name
=
'pine'
,
description
=
'Pine Tree'
},
{
name
=
'willow'
,
description
=
'Willow Tree'
},
{
name
=
'acacia'
,
description
=
'Acacia Tree'
},
{
name
=
'rubber_tree'
,
description
=
'Rubber Tree'
},
{
name
=
'fir'
,
description
=
'Douglas Fir'
}
}
for
_
,
t
in
pairs
(
morewood
)
do
print
(
'register: '
..
t
.
name
)
columnia
.
register_column_ia
(
t
.
name
,
'moretrees:'
..
t
.
name
..
'_planks'
,
{
snappy
=
2
,
choppy
=
2
,
oddly_breakable_by_hand
=
2
,
flammable
=
3
},
{
'moretrees_'
..
t
.
name
..
'_wood.png'
},
t
.
description
..
' Column'
,
t
.
description
..
' Column Top'
,
t
.
description
..
' Column Bottom'
,
t
.
description
..
' Column Crosslink'
,
t
.
description
..
' Column Link'
,
t
.
description
..
' Column Linkdown'
,
default
.
node_sound_wood_defaults
())
end
end
--
if core.get_modpath( 'moretrees' ) then
--
local morewood = {
--
{ name='beech', description='Beech Tree' },
--
{ name='apple_tree', description='Apple Tree' },
--
{ name='oak', description='Oak Tree' },
--
{ name='sequoia', description='Giant Sequoia' },
--
{ name='birch', description='Birch Tree' },
--
{ name='palm', description='Palm Tree', },
--
{ name='spruce', description='Spruce Tree' },
--
{ name='pine', description='Pine Tree' },
--
{ name='willow', description='Willow Tree' },
--
{ name='acacia', description='Acacia Tree' },
--
{ name='rubber_tree', description='Rubber Tree' },
--
{ name='fir', description='Douglas Fir' }
--
}
--
for _,t in pairs( morewood ) do
--
print('register: '.. t.name)
--
columnia.register_column_ia( t.name, 'moretrees:' .. t.name ..'_planks',
--
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3},
--
{ 'moretrees_' .. t.name .. '_wood.png' },
--
t.description .. ' Column',
--
t.description .. ' Column Top',
--
t.description .. ' Column Bottom',
--
t.description .. ' Column Crosslink',
--
t.description .. ' Column Link',
--
t.description .. ' Column Linkdown',
--
default.node_sound_wood_defaults())
--
end
--
end
if
core
.
get_modpath
(
'moreblocks'
)
then
stairsplus
:
register_all
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment