Restore Amethyst Extras. Added in Localization.

This commit is contained in:
Michieal 2023-02-06 19:31:04 -05:00
parent 09a3e4e1cc
commit c3f6412458
4 changed files with 143 additions and 0 deletions

View File

@ -0,0 +1,105 @@
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Michieal.
--- DateTime: 01/19/23 4:50 PM
--- Copyright (C) 2023, Michieal. See License.txt
--- Last Update Time: 01/19/23 4:50 PM
---
local modname = minetest.get_current_modname()
local S = minetest.get_translator(modname)
local CALCITE = "mcl_amethyst:calcite"
local AMETHYST = "mcl_amethyst:amethyst_block"
local CALCITE_IMAGE = "mcl_amethyst_calcite_block.png"
local AMETHYST_IMAGE = "mcl_amethyst_amethyst_block.png"
local sounds = mcl_sounds.node_sound_glass_defaults({
footstep = {name = "mcl_amethyst_amethyst_walk", gain = 0.4},
dug = {name = "mcl_amethyst_amethyst_break", gain = 0.44},
})
if minetest.get_modpath("mcl_stairs") then
if mcl_stairs ~= nil then
mcl_stairs.register_stair_and_slab_simple(
"calcite_block",
CALCITE,
S("Calcite Stair"),
S("Calcite Slab"),
S("Double Calcite Slab")
)
mcl_stairs.register_stair_and_slab_simple(
"amethyst_block",
AMETHYST,
S("Amethyst Stair"),
S("Amethyst Slab"),
S("Amethyst Calcite Slab")
)
end
end
if minetest.get_modpath("mesecons_pressureplates") then
if mesecon ~= nil and mesecon.register_pressure_plate ~= nil then
mesecon.register_pressure_plate(
"mcl_amethyst_extras:pressure_plate_calcite",
S("Calcite Pressure Plate"),
{CALCITE_IMAGE},
{CALCITE_IMAGE},
CALCITE_IMAGE,
nil,
{{CALCITE, CALCITE}},
mcl_sounds.node_sound_stone_defaults(),
{pickaxey = 1, material_stone = 1},
nil,
S("A stone pressure plate is a redstone component which supplies its surrounding blocks with redstone power while any movable object (including dropped items, players and mobs) rests on top of it."))
minetest.register_alias("calcite_pressure_plate", "mcl_amethyst_extras:pressure_plate_calcite")
mesecon.register_pressure_plate(
"mcl_amethyst_extras:pressure_plate_amethyst",
S("Amethyst Pressure Plate"),
{AMETHYST_IMAGE},
{AMETHYST_IMAGE},
AMETHYST_IMAGE,
nil,
{{AMETHYST, AMETHYST}},
sounds,
{pickaxey = 1, material_stone = 1},
nil,
S("A stone pressure plate is a redstone component which supplies its surrounding blocks with redstone power while any movable object (including dropped items, players and mobs) rests on top of it."))
minetest.register_alias("amethyst_pressure_plate", "mcl_amethyst_extras:pressure_plate_amethyst")
end
end
if minetest.get_modpath("mesecons_button") then
if mesecon ~= nil then
-- (basename, description, texture, recipeitem, sounds, plusgroups, button_timer, push_by_arrow, longdesc, button_sound)
mesecon.register_button(
"calcite",
S("Calcite Button"),
CALCITE_IMAGE,
CALCITE,
mcl_sounds.node_sound_stone_defaults(),
{material_stone = 1, pickaxey = 1, },
1,
false,
S("A calcite button is a redstone component made out of stone which can be pushed to provide redstone power. When pushed, it powers adjacent redstone components for 1 second."),
"mesecons_button_push")
end
mesecon.register_button(
"amethyst",
S("Amethyst Button"),
AMETHYST_IMAGE,
AMETHYST,
sounds,
{material_stone = 1, pickaxey = 1, },
1,
false,
S("An amethyst button is a redstone component made out of stone which can be pushed to provide redstone power. When pushed, it powers adjacent redstone components for 1 second."),
"mesecons_button_push")
end

View File

@ -0,0 +1,19 @@
# textdomain: mcl_amethyst_extras
A calcite button is a redstone component made out of stone which can be pushed to provide redstone power. When pushed, it powers adjacent redstone components for 1 second.=
A stone pressure plate is a redstone component which supplies its surrounding blocks with redstone power while any movable object (including dropped items, players and mobs) rests on top of it.=
Amethyst Button=
Amethyst Calcite Slab=
Amethyst Pressure Plate=
Amethyst Slab=
Amethyst Stair=
An amethyst button is a redstone component made out of stone which can be pushed to provide redstone power. When pushed, it powers adjacent redstone components for 1 second.=
Calcite Button=
Calcite Pressure Plate=
Calcite Slab=
Calcite Stair=
Double Calcite Slab=

View File

@ -0,0 +1,4 @@
name = mcl_amethyst_extras
description = Non-Minecraft Amethyst Items
author=Michieal
depends=mcl_amethyst

View File

@ -0,0 +1,15 @@
Created by Michieal.
Additional Textures: CC-BY 3.0
Code: GPL3
One final request -- the Date-Time Creator code block needs to remain in the code files. This allows everyone to know
which version of the code is being used, and allows for better troubleshooting of any errors.
Init.Lua's original Date-Time Creator code block:
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Michieal.
--- DateTime: 01/19/23 4:50 PM
--- Copyright (C) 2023, Michieal. See License.txt
--- [Last Update Time]
---