Skip to content

Commit

Permalink
added screenshot; made compatible with mineclone2; adjusted sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokomine committed Jun 30, 2018
1 parent d607c8a commit 739f3a7
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions depends.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default
farming
default?
farming?
stairs?
homedecor?
intllib?
Expand Down
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ else
cottages.S = function(s) return s end
end

-- MineClone2 needs special treatment; default is only needed for
-- crafting materials and sounds (less important)
if( not( minetest.get_modpath("default"))) then
default = {};
end
--cottages.config_use_mesh_barrel = false;
--cottages.config_use_mesh_handmill = true;

Expand Down
2 changes: 1 addition & 1 deletion nodes_feldweg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ if( minetest.get_modpath("stairs") and stairs and stairs.register_stair_and_slab
{"cottages_feldweg.png","default_dirt.png", "default_grass.png","default_grass.png","cottages_feldweg.png","cottages_feldweg.png"},
S("Dirt Road Stairs"),
S("Dirt Road, half height"),
default.node_sound_dirt_defaults())
default.node_sound_dirt_defaults)
end

if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then
Expand Down
10 changes: 5 additions & 5 deletions nodes_furniture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ minetest.register_node("cottages:bed_foot", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
node_box = {
type = "fixed",
fixed = {
Expand Down Expand Up @@ -58,7 +58,7 @@ minetest.register_node("cottages:bed_head", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
node_box = {
type = "fixed",
fixed = {
Expand Down Expand Up @@ -99,7 +99,7 @@ minetest.register_node("cottages:sleeping_mat", {
paramtype2 = "facedir",
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
sounds = default.node_sound_leaves_defaults,
selection_box = {
type = "wallmounted",
},
Expand Down Expand Up @@ -133,7 +133,7 @@ minetest.register_node("cottages:sleeping_mat_head", {
paramtype = 'light',
paramtype2 = "facedir",
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
sounds = default.node_sound_leaves_defaults,
node_box = {
type = "fixed",
fixed = {
Expand Down Expand Up @@ -162,7 +162,7 @@ minetest.register_node("cottages:bench", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
node_box = {
type = "fixed",
fixed = {
Expand Down
6 changes: 3 additions & 3 deletions nodes_historic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ minetest.register_node("cottages:wagon_wheel", {
},
groups = {choppy=2,dig_immediate=2,attached_node=1},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
sounds = default.node_sound_defaults,
is_ground_content = false,
})

Expand All @@ -50,15 +50,15 @@ if( minetest.get_modpath("stairs") and stairs and stairs.register_stair_and_slab
{"cottages_loam.png"},
S("Loam Stairs"),
S("Loam Slab"),
default.node_sound_dirt_defaults())
default.node_sound_dirt_defaults)

if( minetest.registered_nodes["default:clay"]) then
stairs.register_stair_and_slab("clay", "default:clay",
{crumbly=3},
{"cottages_clay.png"},
S("Clay Stairs"),
S("Clay Slab"),
default.node_sound_dirt_defaults())
default.node_sound_dirt_defaults)
end
end

Expand Down
2 changes: 1 addition & 1 deletion nodes_mining.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ minetest.register_node("cottages:ladder_with_rope_and_rail", {
},
groups = {choppy=2,oddly_breakable_by_hand=3,rail=1,connect_to_raillike=1}, --connect_to_raillike=minetest.raillike_group("rail")},
legacy_wallmounted = true,
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
})


Expand Down
4 changes: 2 additions & 2 deletions nodes_roof.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ minetest.register_node("cottages:slate_vertical", {
tiles = {"cottages_slate.png",cottages.texture_roof_sides,"cottages_slate.png","cottages_slate.png",cottages.texture_roof_sides,"cottages_slate.png"},
paramtype2 = "facedir",
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
sounds = default.node_sound_stone_defaults,
is_ground_content = false,
})

Expand All @@ -209,7 +209,7 @@ minetest.register_node("cottages:reet", {
description = S("Reet for thatching"),
tiles = {"cottages_reet.png"},
groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
is_ground_content = false,
})

Expand Down
6 changes: 3 additions & 3 deletions nodes_straw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ minetest.register_node("cottages:straw_mat", {
paramtype2 = "facedir",
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
sounds = default.node_sound_leaves_defaults,
node_box = {
type = "fixed",
fixed = {
Expand All @@ -58,7 +58,7 @@ minetest.register_node("cottages:straw_bale", {
tiles = {"cottages_darkage_straw_bale.png"},
paramtype = "light",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
-- the bale is slightly smaller than a full node
node_box = {
type = "fixed",
Expand All @@ -81,7 +81,7 @@ minetest.register_node("cottages:straw", {
description = S("straw"),
tiles = {"cottages_darkage_straw.png"},
groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults(),
sounds = default.node_sound_wood_defaults,
-- the bale is slightly smaller than a full node
is_ground_content = false,
})
Expand Down
Binary file added screenshot.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 739f3a7

Please sign in to comment.