Finish the Texture Update
@ -7,6 +7,8 @@ This update contains breaking changes due to the grass revamp
|
||||
- Change the games style in terms of textures
|
||||
- Creative block breaking speed increased
|
||||
- "Revamped" grass
|
||||
- Added Bedrock as a barrier between worlds
|
||||
- Removed enchanted obsidian, more ways to obtain magic shards will be added in the future
|
||||
|
||||
## [Oct 6th 2024] Unnamed Minor Update
|
||||
|
||||
|
@ -9,6 +9,9 @@ PyuTest.OVERWORLD_SURFACE_BOTTOM = 1
|
||||
PyuTest.OVERWORLD_TOP = 4096
|
||||
PyuTest.OVERWORLD_BOTTOM = -200
|
||||
|
||||
PyuTest.WORLD_TOP = 31000
|
||||
PyuTest.WORLD_BOTTOM = -31000
|
||||
|
||||
-- these values are yoinked from VoxeLibre
|
||||
-- (https://git.minetest.land/VoxeLibre/VoxeLibre/src/branch/master/mods/MAPGEN/mcl_biomes/init.lua)
|
||||
PyuTest.OVERWORLD_OCEAN_MIN = -15
|
||||
|
@ -183,3 +183,51 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
PyuTest.make_liquid = function(name, desc, groups, texture, speed, extra_conf)
|
||||
local function make_liquid_flags(liquidtype)
|
||||
local drawtype = ""
|
||||
|
||||
if liquidtype == "source" then
|
||||
drawtype = "liquid"
|
||||
elseif liquidtype == "flowing" then
|
||||
drawtype = "flowingliquid"
|
||||
end
|
||||
|
||||
local t = PyuTest.util.tableconcat({
|
||||
drawtype = drawtype,
|
||||
waving = 3,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
drop = "",
|
||||
drowning = 3,
|
||||
liquidtype = liquidtype,
|
||||
liquid_renewable = true,
|
||||
liquid_viscosity = speed or 1,
|
||||
liquid_alternative_flowing = name .. "_flowing",
|
||||
liquid_alternative_source = name .. "_source",
|
||||
paramtype2 = liquidtype == "flowing" and "flowingliquid" or nil,
|
||||
special_tiles = liquidtype == "flowing" and {
|
||||
{
|
||||
name = texture,
|
||||
backface_culling = false
|
||||
},
|
||||
{
|
||||
name = texture,
|
||||
backface_culling = true
|
||||
}
|
||||
} or nil
|
||||
}, extra_conf or {})
|
||||
return t
|
||||
end
|
||||
|
||||
local g = groups or {}
|
||||
g["liquid"] = 1
|
||||
|
||||
PyuTest.make_node(name .. "_source", desc .. " Source", g, { texture }, make_liquid_flags("source"))
|
||||
PyuTest.make_node(name .. "_flowing", "Flowing " .. desc, g, { texture }, make_liquid_flags("flowing"))
|
||||
end
|
||||
|
@ -4,14 +4,16 @@ PyuTest.make_building_blocks("pyutest_blocks:dirt", "Dirt", { "pyutest-dirt.png"
|
||||
crumbly = PyuTest.BLOCK_FAST
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:podzol", "Podzol", { "pyutest-podzol.png" }, nil, {
|
||||
PyuTest.make_building_blocks("pyutest_blocks:podzol", "Podzol", { "pyutest-dirt.png" }, nil, {
|
||||
ground = 1,
|
||||
acid_vulnerable = 1,
|
||||
crumbly = PyuTest.BLOCK_FAST
|
||||
}, {
|
||||
overlay_tiles = {{name = "pyutest-ore-overlay.png", color = "#54623c"}}
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:snow", "Snow", { "pyutest-snow.png" }, nil, {
|
||||
ground = 1,
|
||||
ground = 1,
|
||||
acid_vulnerable = 1,
|
||||
crumbly = PyuTest.BLOCK_FAST
|
||||
})
|
||||
@ -25,10 +27,12 @@ PyuTest.make_building_blocks("pyutest_blocks:sand", "Sand", { "pyutest-sand.png"
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:mycelium", "Mycelium", {
|
||||
"pyutest-mycelium.png"
|
||||
{name = "pyutest-grass-top.png", color = "#5c455e"}, "pyutest-dirt.png"
|
||||
}, nil, {
|
||||
ground = 1,
|
||||
crumbly = PyuTest.BLOCK_FAST
|
||||
crumbly = PyuTest.BLOCK_FAST,
|
||||
}, {
|
||||
overlay_tiles = {"", "", {name = "pyutest-grass-side.png", color = "#5c455e"}}
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:clay", "Clay", { "pyutest-clay-block.png" }, nil, {
|
||||
@ -110,26 +114,12 @@ PyuTest.make_building_blocks("pyutest_blocks:bone", "Bone", {
|
||||
cracky = PyuTest.BLOCK_FAST
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:enchanted_obsidian", "Enchanted Obsidian", {
|
||||
"pyutest-enchanted-obsidian.png"
|
||||
}, nil, {
|
||||
cracky = PyuTest.BLOCK_SLOW
|
||||
}, {
|
||||
is_ground_content = false
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:brick", "Brick", { "pyutest-bricks.png" }, nil, {
|
||||
cracky = PyuTest.BLOCK_NORMAL
|
||||
}, {
|
||||
is_ground_content = false
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:stone_bricks", "Stone Bricks", { "pyutest-stone-bricks.png" }, nil, {
|
||||
cracky = PyuTest.BLOCK_SLOW
|
||||
}, {
|
||||
is_ground_content = false
|
||||
})
|
||||
|
||||
-- Choppy
|
||||
PyuTest.make_building_blocks("pyutest_blocks:mushroom", "Mushroom", { "pyutest-mushroom.png" }, nil, {
|
||||
flammable = 1,
|
||||
@ -166,7 +156,7 @@ PyuTest.make_building_blocks("pyutest_blocks:slime", "Slime", { "pyutest-slime.p
|
||||
oddly_breakable_by_hand = PyuTest.BLOCK_FAST
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks("pyutest_blocks:glowslime", "Glowslime", { "pyutest-glowslime.png" }, nil, {
|
||||
PyuTest.make_building_blocks("pyutest_blocks:glowslime", "Glowslime", { "pyutest-slime.png" }, nil, {
|
||||
bouncy = 85,
|
||||
oddly_breakable_by_hand = PyuTest.BLOCK_FAST
|
||||
}, {
|
||||
|
@ -1,51 +1,3 @@
|
||||
PyuTest.make_liquid = function(name, desc, groups, texture, speed, extra_conf)
|
||||
local function make_liquid_flags(liquidtype)
|
||||
local drawtype = ""
|
||||
|
||||
if liquidtype == "source" then
|
||||
drawtype = "liquid"
|
||||
elseif liquidtype == "flowing" then
|
||||
drawtype = "flowingliquid"
|
||||
end
|
||||
|
||||
local t = PyuTest.util.tableconcat({
|
||||
drawtype = drawtype,
|
||||
waving = 3,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
drop = "",
|
||||
drowning = 3,
|
||||
liquidtype = liquidtype,
|
||||
liquid_renewable = true,
|
||||
liquid_viscosity = speed or 1,
|
||||
liquid_alternative_flowing = name .. "_flowing",
|
||||
liquid_alternative_source = name .. "_source",
|
||||
paramtype2 = liquidtype == "flowing" and "flowingliquid" or nil,
|
||||
special_tiles = liquidtype == "flowing" and {
|
||||
{
|
||||
name = texture,
|
||||
backface_culling = false
|
||||
},
|
||||
{
|
||||
name = texture,
|
||||
backface_culling = true
|
||||
}
|
||||
} or nil
|
||||
}, extra_conf or {})
|
||||
return t
|
||||
end
|
||||
|
||||
local g = groups or {}
|
||||
g["liquid"] = 1
|
||||
|
||||
PyuTest.make_node(name .. "_source", desc .. " Source", g, { texture }, make_liquid_flags("source"))
|
||||
PyuTest.make_node(name .. "_flowing", "Flowing " .. desc, g, { texture }, make_liquid_flags("flowing"))
|
||||
end
|
||||
|
||||
PyuTest.make_liquid("pyutest_blocks:water", "Water", {
|
||||
water = 1,
|
||||
freezable = 1,
|
||||
|
@ -173,10 +173,20 @@ PyuTest.make_node("pyutest_blocks:ladder", "Ladder", {
|
||||
|
||||
PyuTest.make_node("pyutest_blocks:magma", "Magma", {
|
||||
cracky = PyuTest.BLOCK_FAST
|
||||
}, { "pyutest-magma.png" }, {
|
||||
}, { "pyutest-molten-rock.png" }, {
|
||||
paramtype = "light",
|
||||
light_source = 11,
|
||||
damage_per_second = 3
|
||||
damage_per_second = 3,
|
||||
overlay_tiles = {
|
||||
{name = "pyutest-ore-overlay.png", color = "darkorange"}
|
||||
}
|
||||
})
|
||||
|
||||
PyuTest.make_node("pyutest_blocks:bedrock", "Bedrock", {
|
||||
}, {"pyutest-bedrock.png"}, {
|
||||
diggable = false,
|
||||
pointable = "blocking",
|
||||
is_ground_content = false
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
|
@ -77,7 +77,7 @@ PyuTest.make_node("pyutest_flowers:vines", "Vines", {
|
||||
|
||||
PyuTest.make_flower("pyutest_flowers:kelp", "Kelp", "pyutest-kelp.png", "pyutest_flowers:green_dye", false, "plantlike_rooted", {
|
||||
paramtype2 = "leveled",
|
||||
place_param2 = 128,
|
||||
place_param2 = 16,
|
||||
wield_image = "pyutest-kelp.png",
|
||||
special_tiles = {
|
||||
{
|
||||
|
@ -1,33 +1,49 @@
|
||||
PyuTest.make_leaves = function(id, desc, tiles)
|
||||
PyuTest.make_building_blocks(id.."_leaves", desc .. " Leaves", tiles, nil, {
|
||||
PyuTest.make_leaves = function(id, desc, color, overlay, special_drops)
|
||||
local leaves_id = id .. "_leaves_block"
|
||||
PyuTest.make_node(leaves_id, desc .. " Leaves", {
|
||||
acid_vulnerable = 1,
|
||||
flammable = 1,
|
||||
snappy = PyuTest.BLOCK_FAST
|
||||
}, {
|
||||
is_ground_content = false
|
||||
}, {{name = "pyutest-leaves.png", color = color}}, {
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 2,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
overlay_tiles = {overlay},
|
||||
})
|
||||
if special_drops == nil or special_drops == true then
|
||||
minetest.override_item(leaves_id, {
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
rarity = 2.9,
|
||||
items = {"pyutest_tools:apple"}
|
||||
},
|
||||
|
||||
local leaves_id = id .. "_leaves_block"
|
||||
minetest.override_item(leaves_id, {
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
rarity = 2.5,
|
||||
items = { "pyutest_tools:apple 1" }
|
||||
},
|
||||
{
|
||||
rarity = 2.2,
|
||||
items = {"pyutest_tools:stick 2"}
|
||||
},
|
||||
|
||||
{
|
||||
items = { leaves_id }
|
||||
{
|
||||
rarity = 2.2,
|
||||
items = {"pyutest_tools:stick 1"}
|
||||
},
|
||||
|
||||
{
|
||||
items = {leaves_id}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
PyuTest.make_leaves("pyutest_leaves:oak", "Oak", { "pyutest-leaves.png" })
|
||||
PyuTest.make_leaves("pyutest_leaves:snowy", "Snowy", { "pyutest-snowy-leaves.png" })
|
||||
PyuTest.make_leaves("pyutest_leaves:cherry", "Cherry", { "pyutest-cherry-leaves.png" })
|
||||
PyuTest.make_leaves("pyutest_leaves:dark", "Dark", { "pyutest-dark-leaves.png" })
|
||||
PyuTest.make_leaves("pyutest_leaves:aspen", "Aspen", { "pyutest-aspen-leaves.png" })
|
||||
PyuTest.make_leaves("pyutest_leaves:red_aspen", "Red Aspen", { "pyutest-red-aspen-leaves.png" })
|
||||
PyuTest.make_leaves("pyutest_leaves:oak", "Oak", "#749752")
|
||||
PyuTest.make_leaves("pyutest_leaves:snowy", "Snowy")
|
||||
PyuTest.make_leaves("pyutest_leaves:cherry", "Cherry", "#f3c2db")
|
||||
PyuTest.make_leaves("pyutest_leaves:dark", "Dark", "#4f613e")
|
||||
PyuTest.make_leaves("pyutest_leaves:aspen", "Aspen", "#978c52")
|
||||
PyuTest.make_leaves("pyutest_leaves:red_aspen", "Red Aspen", "#945c53")
|
||||
|
@ -1,19 +1,4 @@
|
||||
PyuTest.make_item("pyutest_magic:magic_shards", "Magic Shards", {}, "pyutest-magic-shards.png")
|
||||
minetest.override_item("pyutest_blocks:enchanted_obsidian_block", {
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
rarity = 3.2,
|
||||
items = {"pyutest_magic:magic_shards 3"}
|
||||
},
|
||||
|
||||
{
|
||||
items = {"enchanted_obsidian_block_obsidian_block"}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
PyuTest.registered_spellbooks = {}
|
||||
PyuTest.make_spellbook = function (nsname, desc, color, craftitem, action)
|
||||
|
@ -53,10 +53,12 @@ PyuTest.ORE_STONES = {
|
||||
|
||||
PyuTest.registered_ores = {}
|
||||
|
||||
PyuTest.make_ore = function(id, desc, item_id_suffix, item_description_suffix, options)
|
||||
PyuTest.make_ore_and_item = function(id, desc, item_id_suffix, item_description_suffix, options)
|
||||
local default_options = {
|
||||
scarcity = 5 * 5 * 5,
|
||||
y_max = 31000,
|
||||
y_max = PyuTest.WORLD_TOP,
|
||||
y_min = PyuTest.OVERWORLD_BOTTOM,
|
||||
wherein = {},
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_conf = {},
|
||||
@ -141,34 +143,34 @@ PyuTest.make_ore = function(id, desc, item_id_suffix, item_description_suffix, o
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = oid,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
wherein = conf.wherein,
|
||||
clust_scarcity = conf.scarcity,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_max = conf.y_max,
|
||||
y_min = PyuTest.OVERWORLD_BOTTOM,
|
||||
y_min = conf.y_min,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = oid,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
wherein = conf.wherein,
|
||||
clust_scarcity = conf.scarcity * 2.2,
|
||||
clust_num_ores = 9,
|
||||
clust_size = 3,
|
||||
y_max = conf.y_max,
|
||||
y_min = PyuTest.OVERWORLD_BOTTOM,
|
||||
y_min = conf.y_min,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = oid,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
wherein = conf.wherein,
|
||||
clust_scarcity = conf.scarcity * 3,
|
||||
clust_num_ores = 18,
|
||||
clust_size = 6,
|
||||
y_max = conf.y_max,
|
||||
y_min = PyuTest.OVERWORLD_BOTTOM,
|
||||
y_min = conf.y_min,
|
||||
})
|
||||
|
||||
PyuTest.make_building_blocks(id, desc, conf.block_tiles, conf.block_color, PyuTest.util.tableconcat({
|
||||
@ -194,9 +196,10 @@ PyuTest.make_ore = function(id, desc, item_id_suffix, item_description_suffix, o
|
||||
end
|
||||
|
||||
-- "Primary" Ores
|
||||
PyuTest.make_ore("pyutest_ores:coal", "Coal", "lump", "Lump", {
|
||||
PyuTest.make_ore_and_item("pyutest_ores:coal", "Coal", "lump", "Lump", {
|
||||
scarcity = 8 * 8 * 8,
|
||||
y_max = 48,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_drop_count = 2,
|
||||
@ -214,9 +217,10 @@ PyuTest.make_ore("pyutest_ores:coal", "Coal", "lump", "Lump", {
|
||||
block_color = {r = 32, g = 32, b = 32}
|
||||
})
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:iron", "Iron", "ingot", "Ingot", {
|
||||
PyuTest.make_ore_and_item("pyutest_ores:iron", "Iron", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
|
||||
@ -228,85 +232,10 @@ PyuTest.make_ore("pyutest_ores:iron", "Iron", "ingot", "Ingot", {
|
||||
block_tiles = {"pyutest-metal.png"}
|
||||
})
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:copper", "Copper", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "darkgoldenrod",
|
||||
|
||||
item_texture = "pyutest-ingot.png",
|
||||
item_conf = {
|
||||
color = "darkgoldenrod",
|
||||
},
|
||||
|
||||
make_raw = true,
|
||||
raw_texture = "pyutest-lump.png",
|
||||
raw_conf = {
|
||||
color = "darkgoldenrod"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "darkgoldenrod"
|
||||
})
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:gold", "Gold", "ingot", "Ingot", {
|
||||
scarcity = 15.5 * 15.5 * 15.5,
|
||||
y_max = -35,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "gold",
|
||||
|
||||
item_texture = "pyutest-ingot.png",
|
||||
item_conf = {
|
||||
color = "gold"
|
||||
},
|
||||
|
||||
make_raw = true,
|
||||
raw_texture = "pyutest-lump.png",
|
||||
raw_conf = {
|
||||
color = "gold"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "gold"
|
||||
})
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:diamond", "Diamond", "shard", "Shard", {
|
||||
scarcity = 16.7 * 16.7 * 16.7,
|
||||
y_max = -50,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "cyan",
|
||||
|
||||
item_texture = "pyutest-shard.png",
|
||||
item_conf = {
|
||||
color = "cyan"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "cyan"
|
||||
})
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:emerald", "Emerald", "shard", "Shard", {
|
||||
scarcity = 18.3 * 18.3 * 18.3,
|
||||
y_max = -50,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "seagreen",
|
||||
|
||||
item_texture = "pyutest-shard.png",
|
||||
item_conf = {
|
||||
color = "seagreen"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "seagreen"
|
||||
})
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:zinc", "Zinc", "ingot", "Ingot", {
|
||||
PyuTest.make_ore_and_item("pyutest_ores:zinc", "Zinc", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "#bed3d4",
|
||||
@ -326,26 +255,107 @@ PyuTest.make_ore("pyutest_ores:zinc", "Zinc", "ingot", "Ingot", {
|
||||
block_color = "#bed3d4"
|
||||
})
|
||||
|
||||
-- "Secondary" Ores
|
||||
|
||||
PyuTest.make_ore("pyutest_ores:tin", "Tin", "ingot", "Ingot", {
|
||||
PyuTest.make_ore_and_item("pyutest_ores:copper", "Copper", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "#8e8591",
|
||||
ore_color = "darkgoldenrod",
|
||||
|
||||
item_texture = "pyutest-ingot.png",
|
||||
item_conf = {
|
||||
color = "#8e8591"
|
||||
color = "darkgoldenrod",
|
||||
},
|
||||
|
||||
make_raw = true,
|
||||
raw_texture = "pyutest-lump.png",
|
||||
raw_conf = {
|
||||
color = "#8e8591"
|
||||
color = "darkgoldenrod"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "#8e8591"
|
||||
block_color = "darkgoldenrod"
|
||||
})
|
||||
|
||||
PyuTest.make_ore_and_item("pyutest_ores:gold", "Gold", "ingot", "Ingot", {
|
||||
scarcity = 15.5 * 15.5 * 15.5,
|
||||
y_max = -35,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "gold",
|
||||
|
||||
item_texture = "pyutest-ingot.png",
|
||||
item_conf = {
|
||||
color = "gold"
|
||||
},
|
||||
|
||||
make_raw = true,
|
||||
raw_texture = "pyutest-lump.png",
|
||||
raw_conf = {
|
||||
color = "gold"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "gold"
|
||||
})
|
||||
|
||||
PyuTest.make_ore_and_item("pyutest_ores:diamond", "Diamond", "shard", "Shard", {
|
||||
scarcity = 16.7 * 16.7 * 16.7,
|
||||
y_max = -50,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "cyan",
|
||||
|
||||
item_texture = "pyutest-shard.png",
|
||||
item_conf = {
|
||||
color = "cyan"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "cyan"
|
||||
})
|
||||
|
||||
PyuTest.make_ore_and_item("pyutest_ores:emerald", "Emerald", "shard", "Shard", {
|
||||
scarcity = 18.3 * 18.3 * 18.3,
|
||||
y_max = -50,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "seagreen",
|
||||
|
||||
item_texture = "pyutest-shard.png",
|
||||
item_conf = {
|
||||
color = "seagreen"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "seagreen"
|
||||
})
|
||||
|
||||
-- "Secondary" Ores
|
||||
|
||||
PyuTest.make_ore_and_item("pyutest_ores:tin", "Tin", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
wherein = PyuTest.ORE_STONES,
|
||||
|
||||
ore_strength = PyuTest.BLOCK_NORMAL,
|
||||
ore_color = "#686569",
|
||||
|
||||
item_texture = "pyutest-ingot.png",
|
||||
item_conf = {
|
||||
color = "#686569"
|
||||
},
|
||||
|
||||
make_raw = true,
|
||||
raw_texture = "pyutest-lump.png",
|
||||
raw_conf = {
|
||||
color = "#686569"
|
||||
},
|
||||
|
||||
block_tiles = {"pyutest-metal.png"},
|
||||
block_color = "#686569"
|
||||
})
|
||||
|
@ -20,6 +20,26 @@ PyuTest.register_world = function (options)
|
||||
error("Please supply 'name' in the options table!")
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
decoration = "pyutest_blocks:bedrock",
|
||||
sidelen = 8,
|
||||
fill_ratio = 10,
|
||||
y_min = conf.y_max,
|
||||
y_max = conf.y_max,
|
||||
flags = "force_placement"
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
decoration = "pyutest_blocks:bedrock",
|
||||
sidelen = 8,
|
||||
fill_ratio = 10,
|
||||
y_min = conf.y_min,
|
||||
y_max = conf.y_min,
|
||||
flags = "force_placement"
|
||||
})
|
||||
|
||||
local World = {
|
||||
name = conf.name,
|
||||
y_max = conf.y_max,
|
||||
|
@ -1,7 +1,7 @@
|
||||
PyuTest.IceWorld = PyuTest.register_world({
|
||||
name = "ice_world",
|
||||
y_max = -1000,
|
||||
y_min = -2000
|
||||
y_min = -1999
|
||||
})
|
||||
PyuTest.IceWorld:create_token("pyutest_worlds:ice_world_token", "Ice World", "#cbdbfc", "pyutest_blocks:ice_block")
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
PyuTest.LavaWorld = PyuTest.register_world({
|
||||
name = "lava_world",
|
||||
y_max = -3002,
|
||||
y_min = -4002
|
||||
y_max = -3000,
|
||||
y_min = -3999
|
||||
})
|
||||
PyuTest.LavaWorld:create_token("pyutest_worlds:lava_world_token", "Lava World", "#511e1e", "pyutest_tools:ash")
|
||||
|
||||
@ -44,13 +44,3 @@ PyuTest.LavaWorld:register_ore({
|
||||
biomes = {lava_cavern},
|
||||
noise_params = PyuTest.SPECIALSTONE_NOISE_PARAMS
|
||||
})
|
||||
|
||||
-- PyuTest.LavaWorld:register_decoration({
|
||||
-- deco_type = "simple",
|
||||
-- sidelen = 16,
|
||||
-- fill_ratio = 0.00063,
|
||||
-- decoration = {"pyutest_blocks:lava_source"},
|
||||
-- place_on = {"pyutest_blocks:molten_rock_block", "pyutest_blocks:magma"},
|
||||
-- biomes = {lava_cavern},
|
||||
-- flags = "all_ceilings"
|
||||
-- })
|
||||
|
@ -1 +1 @@
|
||||
depends = pyutest_tools,pyutest_blocks
|
||||
depends = pyutest_tools,pyutest_blocks,pyutest_ores
|
||||
|
@ -1,7 +1,7 @@
|
||||
PyuTest.MushroomWorld = PyuTest.register_world({
|
||||
name = "mushroom_world",
|
||||
y_max = -4003,
|
||||
y_min = -5003
|
||||
y_max = -4000,
|
||||
y_min = -4999
|
||||
})
|
||||
PyuTest.MushroomWorld:create_token("pyutest_worlds:mushroom_world_token", "Mushroom World", "#ac324c", "pyutest_blocks:mushroom_block")
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
PyuTest.SlimeWorld = PyuTest.register_world({
|
||||
name = "slime_world",
|
||||
y_max = -2001,
|
||||
y_min = -3001
|
||||
y_max = -2000,
|
||||
y_min = -2999
|
||||
})
|
||||
PyuTest.SlimeWorld:create_token("pyutest_worlds:slime_world_token", "Slime World", "#7dbd3f", "pyutest_blocks:slime_block")
|
||||
|
||||
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 174 B |
BIN
textures/pyutest-bedrock.png
Normal file
After Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 196 B |
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 281 B |
Before Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 175 B |