Add support for MineClone5's deepslate and update locales
This commit is contained in:
parent
1ab1b10aeb
commit
8135b17681
|
@ -54,7 +54,7 @@ Dyed planks are 1x1 size blocks, acting like any other wood planks. Uses dye and
|
||||||
![Screenshot](https://i.ibb.co/PQrJWt7/Webp-net-gifmaker-6.gif "Crafting")
|
![Screenshot](https://i.ibb.co/PQrJWt7/Webp-net-gifmaker-6.gif "Crafting")
|
||||||
|
|
||||||
### Paths
|
### Paths
|
||||||
This mod has 7 types of them: Gravel, Cobblestone, Stone, Granite, Andesite, Diorite and Netherrack paths.
|
This mod has 7 (+2 with MCL5) types of them: Gravel, Cobblestone, Stone, Granite, Andesite, Diorite and Netherrack paths. If mcl_deepslate (MCL5 mod) enabled, there will be added Deepslate and Cobbled Deepslate paths as well.
|
||||||
Paths are nearly carpet size blocks, on which you can walk. Uses corresponding for its' type material for crafting.
|
Paths are nearly carpet size blocks, on which you can walk. Uses corresponding for its' type material for crafting.
|
||||||
|
|
||||||
**Screenshot:**
|
**Screenshot:**
|
||||||
|
|
2
api.lua
2
api.lua
|
@ -14,6 +14,8 @@ mcl_decor.sit = function(pos, _, player)
|
||||||
mcl_title.set(player, "actionbar", {text=S("You have to stop moving before sitting down!"), color="white", stay=60})
|
mcl_title.set(player, "actionbar", {text=S("You have to stop moving before sitting down!"), color="white", stay=60})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
-- TODO: check distance and if the chair is occupied
|
||||||
|
-- (maybe needs a function refactor)
|
||||||
player:move_to(pos)
|
player:move_to(pos)
|
||||||
player:set_eye_offset({x = 0, y = -7, z = 0}, {x = 0, y = 0, z = 0})
|
player:set_eye_offset({x = 0, y = -7, z = 0}, {x = 0, y = 0, z = 0})
|
||||||
player:set_physics_override(0, 0, 0)
|
player:set_physics_override(0, 0, 0)
|
||||||
|
|
|
@ -11,7 +11,8 @@ Granite Path=Гранитовая дорожка
|
||||||
Andesite Path=Андезитовая дорожка
|
Andesite Path=Андезитовая дорожка
|
||||||
Diorite Path=Диоритовая дорожка
|
Diorite Path=Диоритовая дорожка
|
||||||
Netherrack Path=Адская каменная дорожка
|
Netherrack Path=Адская каменная дорожка
|
||||||
Rainbow Block=Радужный блок
|
Deepslate Path=Сланцевая дорожка
|
||||||
|
Cobbled Deepslate Path=Дроблёная сланцевая дорожка
|
||||||
Table Lamp=Настольная лампа
|
Table Lamp=Настольная лампа
|
||||||
Oak Chair=Дубовый стул
|
Oak Chair=Дубовый стул
|
||||||
Acacia Chair=Стул из акации
|
Acacia Chair=Стул из акации
|
||||||
|
|
|
@ -11,7 +11,8 @@ Granite Path=
|
||||||
Andesite Path=
|
Andesite Path=
|
||||||
Diorite Path=
|
Diorite Path=
|
||||||
Netherrack Path=
|
Netherrack Path=
|
||||||
Rainbow Block=
|
Deepslate Path=
|
||||||
|
Cobbled Deepslate Path=
|
||||||
Table Lamp=
|
Table Lamp=
|
||||||
Oak Chair=
|
Oak Chair=
|
||||||
Acacia Chair=
|
Acacia Chair=
|
||||||
|
|
38
paths.lua
38
paths.lua
|
@ -4,7 +4,7 @@ local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
|
|
||||||
--=-- API --=--
|
--=-- API --=--
|
||||||
function mcl_decor.register_path(name, desc, material, tiles, sgroup, sounds)
|
function mcl_decor.register_path(name, desc, material, tiles, sgroup, sounds)
|
||||||
minetest.register_node(name, {
|
minetest.register_node("mcl_decor:"..name.."_path", {
|
||||||
description = desc,
|
description = desc,
|
||||||
tiles = {tiles},
|
tiles = {tiles},
|
||||||
wield_image = "mcl_decor_path_alpha.png^"..tiles.."^" ..
|
wield_image = "mcl_decor_path_alpha.png^"..tiles.."^" ..
|
||||||
|
@ -46,7 +46,7 @@ function mcl_decor.register_path(name, desc, material, tiles, sgroup, sounds)
|
||||||
sounds = sounds
|
sounds = sounds
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = name.." 16",
|
output = "mcl_decor:"..name.."_path".." 16",
|
||||||
recipe = {
|
recipe = {
|
||||||
{material, "", material},
|
{material, "", material},
|
||||||
{"", material, ""},
|
{"", material, ""},
|
||||||
|
@ -59,7 +59,7 @@ end
|
||||||
|
|
||||||
--=-- REGISTER --=--
|
--=-- REGISTER --=--
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:gravel_path",
|
"gravel",
|
||||||
S("Gravel Path"),
|
S("Gravel Path"),
|
||||||
"mcl_core:gravel",
|
"mcl_core:gravel",
|
||||||
"default_gravel.png",
|
"default_gravel.png",
|
||||||
|
@ -67,7 +67,7 @@ mcl_decor.register_path(
|
||||||
mcl_sounds.node_sound_dirt_defaults({footstep = {name="default_gravel_footstep", gain=0.45}})
|
mcl_sounds.node_sound_dirt_defaults({footstep = {name="default_gravel_footstep", gain=0.45}})
|
||||||
)
|
)
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:cobble_path",
|
"cobble",
|
||||||
S("Cobblestone Path"),
|
S("Cobblestone Path"),
|
||||||
"mcl_core:cobble",
|
"mcl_core:cobble",
|
||||||
"default_cobble.png",
|
"default_cobble.png",
|
||||||
|
@ -75,7 +75,7 @@ mcl_decor.register_path(
|
||||||
mcl_sounds.node_sound_stone_defaults()
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:stone_path",
|
"stone",
|
||||||
S("Stone Path"),
|
S("Stone Path"),
|
||||||
"mcl_core:stone",
|
"mcl_core:stone",
|
||||||
"default_stone.png",
|
"default_stone.png",
|
||||||
|
@ -83,7 +83,7 @@ mcl_decor.register_path(
|
||||||
mcl_sounds.node_sound_stone_defaults()
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:granite_path",
|
"granite",
|
||||||
S("Granite Path"),
|
S("Granite Path"),
|
||||||
"mcl_core:granite",
|
"mcl_core:granite",
|
||||||
"mcl_core_granite.png",
|
"mcl_core_granite.png",
|
||||||
|
@ -91,7 +91,7 @@ mcl_decor.register_path(
|
||||||
mcl_sounds.node_sound_stone_defaults()
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:andesite_path",
|
"andesite",
|
||||||
S("Andesite Path"),
|
S("Andesite Path"),
|
||||||
"mcl_core:andesite",
|
"mcl_core:andesite",
|
||||||
"mcl_core_andesite.png",
|
"mcl_core_andesite.png",
|
||||||
|
@ -99,7 +99,7 @@ mcl_decor.register_path(
|
||||||
mcl_sounds.node_sound_stone_defaults()
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:diorite_path",
|
"diorite",
|
||||||
S("Diorite Path"),
|
S("Diorite Path"),
|
||||||
"mcl_core:diorite",
|
"mcl_core:diorite",
|
||||||
"mcl_core_diorite.png",
|
"mcl_core_diorite.png",
|
||||||
|
@ -107,10 +107,30 @@ mcl_decor.register_path(
|
||||||
mcl_sounds.node_sound_stone_defaults()
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
mcl_decor.register_path(
|
mcl_decor.register_path(
|
||||||
"mcl_decor:netherrack_path",
|
"netherrack",
|
||||||
S("Netherrack Path"),
|
S("Netherrack Path"),
|
||||||
"mcl_nether:netherrack",
|
"mcl_nether:netherrack",
|
||||||
"mcl_nether_netherrack.png",
|
"mcl_nether_netherrack.png",
|
||||||
"pickaxey",
|
"pickaxey",
|
||||||
mcl_sounds.node_sound_stone_defaults()
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
-- support for MineClone 5
|
||||||
|
if minetest.get_modpath("mcl_deepslate") then
|
||||||
|
mcl_decor.register_path(
|
||||||
|
"deepslate",
|
||||||
|
S("Deepslate Path"),
|
||||||
|
"mcl_deepslate:deepslate",
|
||||||
|
"mcl_deepslate_top.png",
|
||||||
|
"pickaxey",
|
||||||
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
|
)
|
||||||
|
mcl_decor.register_path(
|
||||||
|
"deepslate_cobbled",
|
||||||
|
S("Cobbled Deepslate Path"),
|
||||||
|
"mcl_deepslate:deepslate_cobbled",
|
||||||
|
"mcl_cobbled_deepslate.png",
|
||||||
|
"pickaxey",
|
||||||
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
Reference in New Issue