Add Basalt Magma, changes to worlds

This commit is contained in:
IamPyu 2024-11-16 13:41:41 -06:00
parent 362c60e67f
commit 63daf6d633
5 changed files with 42 additions and 10 deletions

View File

@ -24,6 +24,9 @@ I should just start giving updates a version number to avoid naming updates.
- Removed Glowslime
- Added Spawnpoints
- Added Infinite Liquids (Only in Creative)
- Added Basalt Magma
- Fixed biomes in seperate worlds not generating
- Sky World now has normal looking sky
## [Oct 20th - Nov 2nd] Update: The Something Update

View File

@ -135,7 +135,23 @@ PyuTest.make_node("pyutest_blocks:magma", "Magma", {
paramtype = "light",
light_source = 11,
overlay_tiles = {
{ name = "pyutest-ore-overlay.png", color = "darkorange" }
{ name = "pyutest-ore-overlay.png", color = "#c55623" }
},
on_walk_over = function(pos, node, player)
if player then
PyuTest.deal_damage(player, 3)
end
end
})
PyuTest.make_node("pyutest_blocks:basalt_magma", "Basalt Magma", {
cracky = PyuTest.BLOCK_FAST,
fire_persist = 1
}, { "pyutest-basalt.png" }, {
paramtype = "light",
light_source = 11,
overlay_tiles = {
{ name = "pyutest-ore-overlay.png", color = "#c55623" }
},
on_walk_over = function(pos, node, player)
if player then

View File

@ -50,13 +50,14 @@ PyuTest.register_world = function(options)
}
function World:register_biome(name, type, opts, overworld)
local newname = conf.name .. "-" .. name
if opts["_pyutest_sky"] == nil then
opts["_pyutest_sky"] = {}
local b = true
if overworld then
b = false
end
opts["_pyutest_sky_type"] = "plain"
local newname = conf.name .. "-" .. name
opts["_pyutest_sky_type"] = opts["_pyutest_sky_type"] or conf.sky_type or "plain"
opts["_pyutest_sky_base_color"] = opts["_pyutest_sky_base_color"] or conf.sky_color or "#000000"
PyuTest.register_overworld_biome(newname, type, PyuTest.util.tableconcat(opts, {
@ -67,7 +68,7 @@ PyuTest.register_world = function(options)
node_water = opts.node_water or "air",
node_river_water = opts.node_water or "air",
node_cave_liquid = opts.node_water or "air",
}), not overworld)
}), b)
self.biome_names[#self.biome_names + 1] = newname
return name

View File

@ -19,7 +19,7 @@ local lava_cavern = PyuTest.LavaWorld:register_biome("LavaCavern", PyuTest.BIOME
local basalt_volcano = PyuTest.LavaWorld:register_biome("BasaltVolcano", PyuTest.BIOME_TYPES.HOT, {
node_stone = "pyutest_blocks:basalt_block",
heat_point = 100,
heat_point = 95,
humidity_point = 0,
})
@ -34,6 +34,17 @@ PyuTest.LavaWorld:register_ore({
noise_params = PyuTest.SPECIAL_STONE_NOISE_PARAMS
})
PyuTest.LavaWorld:register_ore({
ore_type = "blob",
ore = "pyutest_blocks:basalt_magma",
wherein = "pyutest_blocks:basalt_block",
clust_scarcity = 4.5 * 4.5 * 4.5,
clust_num_ores = 6,
clust_size = 5,
biomes = { basalt_volcano },
noise_params = PyuTest.SPECIAL_STONE_NOISE_PARAMS
})
PyuTest.LavaWorld:register_ore({
ore_type = "blob",
ore = "pyutest_blocks:lava_source",

View File

@ -2,7 +2,8 @@ PyuTest.SkyWorld = PyuTest.register_world({
name = "SkyWorld",
y_max = 4096,
y_min = 1024,
sky_color = "#8888cc"
sky_color = "#8888cc",
sky_type = "regular"
})
PyuTest.SkyWorld:create_token("pyutest_worlds:sky_world_token", "Sky World", "#ffffff", "pyutest_magic:windball")
@ -20,6 +21,6 @@ PyuTest.SkyWorld:register_biome("SkyMeadow", PyuTest.BIOME_TYPES.NORMAL, {
PyuTest.SkyWorld:register_biome("CalciteGrove", PyuTest.BIOME_TYPES.NORMAL, {
node_stone = "pyutest_blocks:calcite_block",
heat_point = 50,
heat_point = 30,
humidity_point = 50,
})