diff options
author | LNJ <git@lnj.li> | 2017-03-29 19:12:55 +0200 |
---|---|---|
committer | LNJ <git@lnj.li> | 2017-03-29 19:12:55 +0200 |
commit | 5f9a4f20aec82aca30720f72669079b760571d2d (patch) | |
tree | 395fb57d4f93f7029e240e67af7aa49e94c3a3ce | |
parent | 6180b968173c87fe14d8ad018fdea3b329068137 (diff) |
Add MineClone2 support, Make dependency to `default` optional
-rw-r--r-- | depends.txt | 3 | ||||
-rw-r--r-- | init.lua | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/depends.txt b/depends.txt index 5e28bee..2180a0a 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ -default +default? screwdriver? +mcl_core? @@ -27,7 +27,6 @@ SOFTWARE. drawers = {} --- TODO: Support other games than MTG/MTG-like (e.g. MineClone2) local WOOD_SOUNDS local WOOD_ITEMSTRING local CHEST_ITEMSTRING @@ -35,6 +34,12 @@ if default then WOOD_SOUNDS = default.node_sound_wood_defaults() WOOD_ITEMSTRING = "default:wood" CHEST_ITEMSTRING = "default:chest" +elseif mcl_core then -- MineClone 2 + WOOD_ITEMSTRING = "mcl_core:wood" + CHEST_ITEMSTRING = "mcl_chests:chest" + if mcl_sounds then + WOOD_SOUNDS = mcl_sounds.node_sound_wood_defaults() + end else WOOD_ITEMSTRING = "wood" CHEST_ITEMSTRING = "chest" @@ -383,7 +388,6 @@ function drawers.register_drawer(name, def) def.node_box = {type = "fixed", fixed = drawers.node_box_simple} def.collision_box = {type = "regular"} def.selection_box = {type = "regular"} - def.tiles = def.tiles or {"default_wood.png"} def.paramtype = "light" def.paramtype2 = "facedir" def.legacy_facedir_simple = true |