Compare commits

...

2 Commits

Author SHA1 Message Date
Kacper Kostka
9a9b150cd1 sand biome added 2023-01-26 13:52:37 +01:00
Kacper Kostka
8a064ab0ac new tools and world generator updated 2023-01-26 13:42:13 +01:00
17 changed files with 182 additions and 13 deletions

View File

@ -97,7 +97,7 @@ minetest.register_node("amogus_blocks:glowing_block", {
})
minetest.register_node("amogus_blocks:transparent", {
description = "Transparent",
description = "Glass",
drawtype = "glasslike",
tiles = {"glass.png"},
paramtype = "light",
@ -248,6 +248,10 @@ minetest.register_node("amogus_blocks:dirt", {
},
},
})minetest.register_node("amogus_blocks:sand", {
description = "Sand",
tiles = {"sand.png"},
groups = {crumbly = 3},
})
minetest.register_node("amogus_blocks:stone", {
@ -265,7 +269,7 @@ minetest.register_node("amogus_blocks:stone", {
},
--sounds = default.node_sound_stone_defaults(),
groups = {cracky = 3, stone = 1},
groups = {stone = 3},
})
--add gold ore and sussium ore
@ -273,7 +277,7 @@ minetest.register_node("amogus_blocks:stone", {
minetest.register_node("amogus_blocks:gold_ore", {
description = "Gold Ore",
tiles = {"gold.png"},
groups = {cracky = 3, stone = 1},
groups = {stone = 2},
drop = 'amogus_items:gold_ingot',
--sounds = default.node_sound_stone_defaults(),
})
@ -281,7 +285,7 @@ minetest.register_node("amogus_blocks:gold_ore", {
minetest.register_node("amogus_blocks:sussium_ore", {
description = "Sussium Ore",
tiles = {"sussium.png"},
groups = {cracky = 3, stone = 1},
groups = {stone = 1},
drop = 'amogus_items:sussium_ingot',
--sounds = default.node_sound_stone_defaults(),
})
@ -351,3 +355,13 @@ minetest.register_node("amogus_blocks:amogus_spawner", {
end
end
})
minetest.register_node("amogus_blocks:green_leaves", {
description = "Green Leaves",
drawtype = "glasslike",
tiles = {"leaves.png"},
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
groups = {cracky=3,oddly_breakable_by_hand=3},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

View File

@ -1,7 +1,22 @@
minetest.register_alias("mapgen_stone", "amogus_blocks:stone")
minetest.register_alias("mapgen_dirt", "amogus_blocks:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "amogus_blocks:grass")
minetest.register_alias("mapgen_water_source", "amogus_blocks:water")
minetest.register_biome({
name = "amogus_beach",
node_top = "amogus_blocks:sand",
depth_top = 1,
node_filler = "amogus_blocks:sand",
depth_filler = 3,
node_stone = "amogus_blocks:stone",
node_water_top = "amogus_blocks:water",
depth_water_top = 1,
node_water = "amogus_blocks:water",
node_river_water = "amogus_blocks:water",
y_max = 6,
y_min = -5,
heat_point = 50,
humidity_point = 50,
})
minetest.register_biome({
name = "amogus_biome",
@ -93,8 +108,6 @@ minetest.register_decoration({
})
--- generate trees
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass"},
@ -109,10 +122,22 @@ minetest.register_decoration({
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass"},
place_on = {"amogus_blocks:grass_green"},
sidelen = 16,
fill_ratio = 0.01,
biomes = {"amogus_biome"},
biomes = {"green__biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/green_tree.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass","amogus_blocks:grass_green"},
sidelen = 16,
fill_ratio = 0.01,
biomes = {"amogus_biome","green_biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/fallen.mts",
@ -149,6 +174,105 @@ minetest.register_decoration({
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.0001,
spread = {x = 100, y = 100, z = 100},
seed = 4321,
octaves = 3,
persist = 0.6
},
biomes = {"amogus_biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/amogus_statue.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.0001,
spread = {x = 100, y = 100, z = 100},
seed = 1234,
octaves = 3,
persist = 0.6
},
biomes = {"amogus_biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/lucky_tree_2.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.0001,
spread = {x = 100, y = 100, z = 100},
seed = 1234,
octaves = 3,
persist = 0.6
},
biomes = {"amogus_biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/lucky_tree_1.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass_green"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.0001,
spread = {x = 100, y = 100, z = 100},
seed = 1234,
octaves = 3,
persist = 0.6
},
biomes = {"green_biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/lucky_tree_2.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass_green"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.0001,
spread = {x = 100, y = 100, z = 100},
seed = 1234,
octaves = 3,
persist = 0.6
},
biomes = {"green_biome"},
y_max = 31000,
y_min = 1,
schematic = "/schematics/lucky_tree_1.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
--minetest.register_abm({
-- label = "Spawn random entities",
-- nodenames = {"group:soil", "group:crumbly", "group:choppy", "group:snappy", "group:cracky"},

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,8 +7,9 @@ minetest.register_item(":", { -- Hand
max_drop_level = 0,
full_punch_interval = 0.4,
groupcaps = {
choppy = {times = {[1] = 2, [2] = 1.5, [3] = 1.0}, uses = 20, maxlevel = 1},
choppy = {times = {[1] = 2, [2] = 1.5, [3] = 1.3}, uses = 20, maxlevel = 1},
crumbly = {times = {[1] = 0.5, [2] = 0.3, [3] = 0.2}, uses = 20, maxlevel = 1},
cracky = {times = {[1] = 1.0, [2] = 0.7, [3] = 0.5}, uses = 20, maxlevel = 1},
},
damage_groups = {fleshy = 1, snappy = 1, cracky=1},
}
@ -195,12 +196,40 @@ minetest.register_tool("amogus_items:stonepickaxe", {
max_drop_level=1,
groupcaps={
cracky={times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=30, maxlevel=1},
crumbly={times={[1]=2.0, [2]=1.5, [3]=1.0}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=2},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_tool("amogus_items:goldenpickaxe", {
description = "Golden Pickaxe",
inventory_image = "golden_pick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
cracky={times={[1]=1.3, [2]=0.60, [3]=0.40}, uses=30, maxlevel=1},
crumbly={times={[1]=2.0, [2]=1.5, [3]=1.0}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=2},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_tool("amogus_items:sussiumpickaxe", {
description = "Sussium Pickaxe",
inventory_image = "sussium_pickaxe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
stone={times={[1]=0.85, [2]=0.40, [3]=0.20}, uses=30, maxlevel=1},
crumbly={times={[1]=2.0, [2]=1.5, [3]=1.0}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=2},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_tool("amogus_items:goldenaxe", {
description = "Golden Axe",
inventory_image = "goldenaxe.png",
@ -209,6 +238,7 @@ minetest.register_tool("amogus_items:goldenaxe", {
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.50, [2]=1.40, [3]=0.40}, uses=30, maxlevel=2},
crumbly={times={[1]=2.0, [2]=1.5, [3]=1.0}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=4},
},
@ -216,12 +246,13 @@ minetest.register_tool("amogus_items:goldenaxe", {
})
minetest.register_tool("amogus_items:stoneaxe", {
description = "Stone Axe",
inventory_image = "goldenaxe.png",
inventory_image = "stone_axe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.50, [2]=1.40, [3]=0.40}, uses=30, maxlevel=2},
choppy={times={[1]=2.50, [2]=1.40, [3]=0.80}, uses=30, maxlevel=2},
crumbly={times={[1]=2.0, [2]=1.5, [3]=1.0}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=4},
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 227 B