Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mapserver_mod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Minetest
mapserver_mod
Commits
73ce1052
Commit
73ce1052
authored
5 years ago
by
Alexander Ralph Michael Minges
Committed by
Buckaroo Banzai
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
adjust crafting to be compatible with MC2
parent
bbc14eee
No related branches found
No related tags found
No related merge requests found
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
border.lua
+4
-4
4 additions, 4 deletions
border.lua
init.lua
+12
-1
12 additions, 1 deletion
init.lua
label.lua
+4
-4
4 additions, 4 deletions
label.lua
mod.conf
+1
-1
1 addition, 1 deletion
mod.conf
poi.lua
+4
-4
4 additions, 4 deletions
poi.lua
train.lua
+4
-4
4 additions, 4 deletions
train.lua
with
29 additions
and
18 deletions
border.lua
+
4
−
4
View file @
73ce1052
...
...
@@ -69,13 +69,13 @@ minetest.register_node("mapserver:border", {
end
})
if
mapserver
.
enable_crafting
and
minetest
.
get_modpath
(
"default"
)
then
if
mapserver
.
enable_crafting
then
minetest
.
register_craft
({
output
=
'mapserver:border'
,
recipe
=
{
{
""
,
"default
:steelblock
"
,
""
},
{
"default:
paper
"
,
"default:
goldblock
"
,
"default:
paper
"
},
{
""
,
"default:
glass
"
,
""
}
{
""
,
moditems
:
steelblock
,
""
},
{
moditems
.
paper
,
moditems
.
goldblock
,
moditems
.
paper
},
{
""
,
moditems
.
glass
,
""
}
}
})
end
This diff is collapsed.
Click to expand it.
init.lua
+
12
−
1
View file @
73ce1052
local
default_path
=
core
.
get_modpath
(
"default"
)
and
default
local
mineclone_path
=
core
.
get_modpath
(
"mcl_core"
)
and
mcl_core
...
...
@@ -6,8 +5,20 @@ moditems = {}
if
mineclone_path
then
moditems
.
sound_glass
=
mcl_sounds
.
node_sound_glass_defaults
moditems
.
goldblock
=
"mcl_core:goldblock"
moditems
.
steelblock
=
"mcl_core:ironblock"
moditems
.
steel_ingot
=
"mcl_core:iron_ingot"
moditems
.
paper
=
"mcl_core:paper"
moditems
.
glass
=
"mcl_core:glass"
moditems
.
dye
=
"mcl_dye:"
else
moditems
.
sound_glass
=
default
.
node_sound_glass_defaults
moditems
.
goldblock
=
"default:goldblock"
moditems
.
steelblock
=
"default:steelblock"
moditems
.
steel_ingot
=
"default:steel_ingot"
moditems
.
paper
=
"default:paper"
moditems
.
glass
=
"default:glass"
moditems
.
dye
=
"dye:"
end
mapserver
=
{
...
...
This diff is collapsed.
Click to expand it.
label.lua
+
4
−
4
View file @
73ce1052
...
...
@@ -66,13 +66,13 @@ minetest.register_node("mapserver:label", {
end
})
if
mapserver
.
enable_crafting
and
minetest
.
get_modpath
(
"default"
)
then
if
mapserver
.
enable_crafting
then
minetest
.
register_craft
({
output
=
'mapserver:label'
,
recipe
=
{
{
""
,
"default:
paper
"
,
""
},
{
"default:
paper
"
,
"default:
goldblock
"
,
"default:
paper
"
},
{
""
,
"default:
glass
"
,
""
}
{
""
,
moditems
.
paper
,
""
},
{
moditems
.
paper
,
moditems
.
goldblock
,
moditems
.
paper
},
{
""
,
moditems
.
glass
,
""
}
}
})
end
This diff is collapsed.
Click to expand it.
mod.conf
+
1
−
1
View file @
73ce1052
name
=
mapserver
description
=
Mod
for
the
mapserver
.
optional_depends
=
default
,
dye
,
advtrains
,
minecart
,
monitoring
,
bones
,
mcl_core
,
mcl_sounds
optional_depends
=
default
,
dye
,
advtrains
,
minecart
,
monitoring
,
bones
,
mcl_core
,
mcl_sounds
,
mcl_dye
This diff is collapsed.
Click to expand it.
poi.lua
+
4
−
4
View file @
73ce1052
...
...
@@ -65,13 +65,13 @@ local register_poi = function(color, dye)
})
if
mapserver
.
enable_crafting
and
minetest
.
get_modpath
(
"dye"
)
then
if
mapserver
.
enable_crafting
and
(
minetest
.
get_modpath
(
"dye"
)
or
core
.
get_modpath
(
"mcl_core"
))
then
minetest
.
register_craft
({
output
=
'mapserver:poi_'
..
color
,
recipe
=
{
{
""
,
"
dye
:"
..
dye
,
""
},
{
"default:
paper
"
,
"default:
goldblock
"
,
"default:
paper
"
},
{
""
,
"default:
glass
"
,
""
}
{
""
,
moditems
.
dye
..
dye
,
""
},
{
moditems
.
paper
,
moditems
.
goldblock
,
moditems
.
paper
},
{
""
,
moditems
.
glass
,
""
}
}
})
end
...
...
This diff is collapsed.
Click to expand it.
train.lua
+
4
−
4
View file @
73ce1052
...
...
@@ -74,13 +74,13 @@ minetest.register_node("mapserver:train", {
end
})
if
mapserver
.
enable_crafting
and
minetest
.
get_modpath
(
"default"
)
then
if
mapserver
.
enable_crafting
then
minetest
.
register_craft
({
output
=
'mapserver:train'
,
recipe
=
{
{
""
,
"default:
steel_ingot
"
,
""
},
{
"default:
paper
"
,
"default:
goldblock
"
,
"default:
paper
"
},
{
""
,
"default:
glass
"
,
""
}
{
""
,
moditems
.
steel_ingot
,
""
},
{
moditems
.
paper
,
moditems
.
goldblock
,
moditems
.
paper
},
{
""
,
moditems
.
glass
,
""
}
}
})
end
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