0
0
Fork 0

Fix various amethyst errors, better seed function

This commit is contained in:
kay27 2022-02-05 20:49:45 +04:00 committed by cora
parent 69e83d5c0a
commit 206c98e354
4 changed files with 52 additions and 29 deletions

View File

@ -14,7 +14,7 @@ minetest.register_node("mcl_amethyst:amethyst_block",{
sounds = mcl_sounds.node_sound_glass_defaults(), sounds = mcl_sounds.node_sound_glass_defaults(),
is_ground_content = true, is_ground_content = true,
stack_max = 64, stack_max = 64,
_doc_items_longdesc = S("The Block of Amethyst is a decoration block creft from amethyst shards."), _doc_items_longdesc = S("The Block of Amethyst is a decoration block crafted from amethyst shards."),
}) })
minetest.register_node("mcl_amethyst:budding_amethyst_block",{ minetest.register_node("mcl_amethyst:budding_amethyst_block",{
@ -84,18 +84,40 @@ minetest.register_node("mcl_amethyst:tinted_glass",{
-- Amethyst Cluster -- Amethyst Cluster
local bud_def = { local bud_def = {
{"small","Small","mcl_amethyst:medium_amethyst_bud"}, {
{"medium","Medium","mcl_amethyst:large_amethyst_bud"}, size = "small",
{"large","Large","mcl_amethyst:amethyst_cluster"}, description = S("Small Amethyst Bud"),
long_desc = S("Small Amethyst Bud is the first growth of amethyst bud."),
light_source = 3,
next_stage = "mcl_amethyst:medium_amethyst_bud",
},
{
size = "medium",
description = S("Medium Amethyst Bud"),
long_desc = S("Medium Amethyst Bud is the second growth of amethyst bud."),
light_source = 4,
next_stage = "mcl_amethyst:large_amethyst_bud",
},
{
size = "large",
description = S("Large Amethyst Bud"),
long_desc = S("Large Amethyst Bud is the third growth of amethyst bud."),
light_source = 5,
next_stage = "mcl_amethyst:amethyst_cluster",
},
} }
for x,y in pairs(bud_def) do for _, def in pairs(bud_def) do
minetest.register_node("mcl_amethyst:" .. y[1] .. "_amethyst_bud",{ local size = def.size
description = y[2] .. " Amethyst Bud", local name = "mcl_amethyst:" .. size .. "_amethyst_bud"
local tile = size .. "_amethyst_bud.png"
local inventory_image = size .. "_amethyst_bud.png"
minetest.register_node(name, {
description = def.description,
_mcl_hardness = 1.5, _mcl_hardness = 1.5,
_mcl_blast_resistance = 1.5, _mcl_blast_resistance = 1.5,
drop = "", drop = "",
tiles = {y[1] .. "_amethyst_bud.png",}, tiles = {tile},
inventory_image = y[1] .. "_amethyst_bud.png", inventory_image = inventory_image,
paramtype1 = "light", paramtype1 = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
drawtype = "plantlike", drawtype = "plantlike",
@ -112,17 +134,15 @@ for x,y in pairs(bud_def) do
}, },
selection_box = { selection_box = {
type = "fixed", type = "fixed",
-- fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
}, },
collision_box = { collision_box = {
type = "fixed", type = "fixed",
-- fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
}, },
_mcl_silk_touch_drop = true, _mcl_silk_touch_drop = true,
_mcl_amethyst_next_grade = y[3], _mcl_amethyst_next_grade = def.next_stage,
_doc_items_longdesc = S("@1 Amethyst Bud is the @2 grouth of amethyst bud.", y[2], y[1]), _doc_items_longdesc = def.longdesc,
}) })
end end
@ -130,7 +150,7 @@ minetest.register_node("mcl_amethyst:amethyst_cluster",{
description = "Amethyst Cluster", description = "Amethyst Cluster",
_mcl_hardness = 1.5, _mcl_hardness = 1.5,
_mcl_blast_resistance = 1.5, _mcl_blast_resistance = 1.5,
_doc_items_longdesc = S("Amethyst Cluster is the final grouth of amethyst bud."), _doc_items_longdesc = S("Amethyst Cluster is the final growth of amethyst bud."),
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
@ -150,6 +170,7 @@ minetest.register_node("mcl_amethyst:amethyst_cluster",{
paramtype1 = "light", paramtype1 = "light",
use_texture_alpha = "clip", use_texture_alpha = "clip",
sunlight_propagates = true, sunlight_propagates = true,
light_source = 7,
groups = { groups = {
dig_by_water = 1, dig_by_water = 1,
destroy_by_lava_flow = 1, destroy_by_lava_flow = 1,
@ -160,12 +181,10 @@ minetest.register_node("mcl_amethyst:amethyst_cluster",{
}, },
selection_box = { selection_box = {
type = "fixed", type = "fixed",
-- fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
}, },
collision_box = { collision_box = {
type = "fixed", type = "fixed",
-- fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
}, },
_mcl_silk_touch_drop = true, _mcl_silk_touch_drop = true,

View File

@ -1,17 +1,19 @@
# textdomain: mcl_amethyst # textdomain: mcl_amethyst
@1 Amethyst Bud is the @2 grouth of amethyst bud.=@1 Аметистовый Бутон - это @2-я стадия роста аместистового бутона.
Amethyst Cluster=Аметистовая друза Amethyst Cluster=Аметистовая друза
Amethyst Cluster is the final grouth of amethyst bud.=Аметистовая друза - это последняя 4-я стадия роста аметистового бутона. Amethyst Cluster is the final growth of amethyst bud.=Аметистовая друза - это последняя 4-я стадия роста аметистового бутона.
Amethyst Growing Tool=Выращиватель аметиста
Amethyst Shard=Осколок аметиста Amethyst Shard=Осколок аметиста
An amethyst shard is a crystalline mineral.=Осколок аметиста - это кристаллический минерал, получаемый в результате разрушения кластеров аметиста. An amethyst shard is a crystalline mineral.=Осколок аметиста - это кристаллический минерал, получаемый в результате разрушения кластеров аметиста.
Block of Amethyst=Аметистовый блок Block of Amethyst=Аметистовый блок
Budding Amethyst=Растущий аметист Budding Amethyst=Растущий аметист
Calcite=Кальцит Calcite=Кальцит
Calcite can be found as part of amethyst geodes.=Кальцит можно найти в составе аметистовых жеод. Calcite can be found as part of amethyst geodes.=Кальцит можно найти в составе аметистовых жеод.
Growing Failed=Выращивание не удалось Large Amethyst Bud=Большой росток аметиста
Not allowed to use Amethyst Growing Tool in a protected area!=Выращиватель аметиста нельзя использовать в защищённых частях мира Large Amethyst Bud is the third growth of amethyst bud.=Большой росток - третья стадия роста аметиста.
The Block of Amethyst is a decoration block creft from amethyst shards.=Блок аметиста - декоративный блок, скрафченный из осколков аметиста. Medium Amethyst Bud=Средний росток аметиста
Medium Amethyst Bud is the second growth of amethyst bud.=Средний росток - вторая стадия роста аметиста.
Small Amethyst Bud=Маленький росток аметиста
Small Amethyst Bud is the first growth of amethyst bud.=Маленький росток - первая стадия роста аметиста.
The Block of Amethyst is a decoration block crafted from amethyst shards.=Блок аметиста - декоративный блок, скрафченный из осколков аметиста.
The Budding Amethyst can grow amethyst=Растущий аметист может вырастить аметист The Budding Amethyst can grow amethyst=Растущий аметист может вырастить аметист
Tinted Glass=Тонированное стекло Tinted Glass=Тонированное стекло
Tinted Glass is a type of glass which blocks lights while it is visually transparent.=Тонированное стекло блокирует свет, но визуально прозрачно. Tinted Glass is a type of glass which blocks lights while it is visually transparent.=Тонированное стекло блокирует свет, но визуально прозрачно.

View File

@ -1,17 +1,19 @@
# textdomain: mcl_amethyst # textdomain: mcl_amethyst
@1 Amethyst Bud is the @2 grouth of amethyst bud.=
Amethyst Cluster= Amethyst Cluster=
Amethyst Cluster is the final grouth of amethyst bud.= Amethyst Cluster is the final growth of amethyst bud.=
Amethyst Growing Tool=
Amethyst Shard= Amethyst Shard=
An amethyst shard is a crystalline mineral.= An amethyst shard is a crystalline mineral.=
Block of Amethyst= Block of Amethyst=
Budding Amethyst= Budding Amethyst=
Calcite= Calcite=
Calcite can be found as part of amethyst geodes.= Calcite can be found as part of amethyst geodes.=
Growing Failed= Large Amethyst Bud=
Not allowed to use Amethyst Growing Tool in a protected area!= Large Amethyst Bud is the third growth of amethyst bud.=
The Block of Amethyst is a decoration block creft from amethyst shards.= Medium Amethyst Bud=
Medium Amethyst Bud is the second growth of amethyst bud.=
Small Amethyst Bud=
Small Amethyst Bud is the first growth of amethyst bud.=
The Block of Amethyst is a decoration block crafted from amethyst shards.=
The Budding Amethyst can grow amethyst= The Budding Amethyst can grow amethyst=
Tinted Glass= Tinted Glass=
Tinted Glass is a type of glass which blocks lights while it is visually transparent.= Tinted Glass is a type of glass which blocks lights while it is visually transparent.=

View File

@ -1,5 +1,5 @@
name = mcl_amethyst name = mcl_amethyst
author = Emojiminetest, kay27 author = Emojiminetest, kay27
description = Amethyst related stuff for MCL5 description = Amethyst related stuff
depends = mcl_init, mcl_core, mcl_wip depends = mcl_init, mcl_core, mcl_wip
optional_depends = mcl_spyglass, mcl_copper optional_depends = mcl_spyglass, mcl_copper