Compare commits
2 Commits
68142350ee
...
9a9b150cd1
Author | SHA1 | Date | |
---|---|---|---|
|
9a9b150cd1 | ||
|
8a064ab0ac |
@ -97,7 +97,7 @@ minetest.register_node("amogus_blocks:glowing_block", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("amogus_blocks:transparent", {
|
minetest.register_node("amogus_blocks:transparent", {
|
||||||
description = "Transparent",
|
description = "Glass",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"glass.png"},
|
tiles = {"glass.png"},
|
||||||
paramtype = "light",
|
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", {
|
minetest.register_node("amogus_blocks:stone", {
|
||||||
@ -265,7 +269,7 @@ minetest.register_node("amogus_blocks:stone", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
--sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
groups = {cracky = 3, stone = 1},
|
groups = {stone = 3},
|
||||||
})
|
})
|
||||||
|
|
||||||
--add gold ore and sussium ore
|
--add gold ore and sussium ore
|
||||||
@ -273,7 +277,7 @@ minetest.register_node("amogus_blocks:stone", {
|
|||||||
minetest.register_node("amogus_blocks:gold_ore", {
|
minetest.register_node("amogus_blocks:gold_ore", {
|
||||||
description = "Gold Ore",
|
description = "Gold Ore",
|
||||||
tiles = {"gold.png"},
|
tiles = {"gold.png"},
|
||||||
groups = {cracky = 3, stone = 1},
|
groups = {stone = 2},
|
||||||
drop = 'amogus_items:gold_ingot',
|
drop = 'amogus_items:gold_ingot',
|
||||||
--sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -281,7 +285,7 @@ minetest.register_node("amogus_blocks:gold_ore", {
|
|||||||
minetest.register_node("amogus_blocks:sussium_ore", {
|
minetest.register_node("amogus_blocks:sussium_ore", {
|
||||||
description = "Sussium Ore",
|
description = "Sussium Ore",
|
||||||
tiles = {"sussium.png"},
|
tiles = {"sussium.png"},
|
||||||
groups = {cracky = 3, stone = 1},
|
groups = {stone = 1},
|
||||||
drop = 'amogus_items:sussium_ingot',
|
drop = 'amogus_items:sussium_ingot',
|
||||||
--sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -350,4 +354,14 @@ minetest.register_node("amogus_blocks:amogus_spawner", {
|
|||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
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},
|
||||||
})
|
})
|
BIN
mods/amogus_blocks/textures/leaves.png
Normal file
After Width: | Height: | Size: 229 B |
@ -1,7 +1,22 @@
|
|||||||
minetest.register_alias("mapgen_stone", "amogus_blocks:stone")
|
minetest.register_alias("mapgen_stone", "amogus_blocks:stone")
|
||||||
minetest.register_alias("mapgen_dirt", "amogus_blocks:dirt")
|
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_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({
|
minetest.register_biome({
|
||||||
name = "amogus_biome",
|
name = "amogus_biome",
|
||||||
@ -93,8 +108,6 @@ minetest.register_decoration({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
--- generate trees
|
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"amogus_blocks:grass"},
|
place_on = {"amogus_blocks:grass"},
|
||||||
@ -109,10 +122,22 @@ minetest.register_decoration({
|
|||||||
})
|
})
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"amogus_blocks:grass"},
|
place_on = {"amogus_blocks:grass_green"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
fill_ratio = 0.01,
|
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_max = 31000,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
schematic = "/schematics/fallen.mts",
|
schematic = "/schematics/fallen.mts",
|
||||||
@ -149,6 +174,105 @@ minetest.register_decoration({
|
|||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
rotation = "random",
|
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({
|
--minetest.register_abm({
|
||||||
-- label = "Spawn random entities",
|
-- label = "Spawn random entities",
|
||||||
-- nodenames = {"group:soil", "group:crumbly", "group:choppy", "group:snappy", "group:cracky"},
|
-- nodenames = {"group:soil", "group:crumbly", "group:choppy", "group:snappy", "group:cracky"},
|
||||||
|
BIN
mods/amogus_generator/schematics/STONE1.mts
Normal file
BIN
mods/amogus_generator/schematics/STONE2.mts
Normal file
BIN
mods/amogus_generator/schematics/STONE3.mts
Normal file
BIN
mods/amogus_generator/schematics/amogus_statue.mts
Normal file
BIN
mods/amogus_generator/schematics/green_tree.mts
Normal file
BIN
mods/amogus_generator/schematics/lucky_tree_1.mts
Normal file
BIN
mods/amogus_generator/schematics/lucky_tree_2.mts
Normal file
@ -7,8 +7,9 @@ minetest.register_item(":", { -- Hand
|
|||||||
max_drop_level = 0,
|
max_drop_level = 0,
|
||||||
full_punch_interval = 0.4,
|
full_punch_interval = 0.4,
|
||||||
groupcaps = {
|
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},
|
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},
|
damage_groups = {fleshy = 1, snappy = 1, cracky=1},
|
||||||
}
|
}
|
||||||
@ -195,12 +196,40 @@ minetest.register_tool("amogus_items:stonepickaxe", {
|
|||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky={times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=30, maxlevel=1},
|
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},
|
damage_groups = {fleshy=2},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = "default_tool_breaks"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("amogus_items:goldenaxe", {
|
minetest.register_tool("amogus_items:goldenaxe", {
|
||||||
description = "Golden Axe",
|
description = "Golden Axe",
|
||||||
inventory_image = "goldenaxe.png",
|
inventory_image = "goldenaxe.png",
|
||||||
@ -209,6 +238,7 @@ minetest.register_tool("amogus_items:goldenaxe", {
|
|||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
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.40}, uses=30, maxlevel=2},
|
||||||
|
crumbly={times={[1]=2.0, [2]=1.5, [3]=1.0}, uses=30, maxlevel=2},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
@ -216,12 +246,13 @@ minetest.register_tool("amogus_items:goldenaxe", {
|
|||||||
})
|
})
|
||||||
minetest.register_tool("amogus_items:stoneaxe", {
|
minetest.register_tool("amogus_items:stoneaxe", {
|
||||||
description = "Stone Axe",
|
description = "Stone Axe",
|
||||||
inventory_image = "goldenaxe.png",
|
inventory_image = "stone_axe.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
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},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
|
BIN
mods/amogus_items/textures/stone_axe.png
Normal file
After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 226 B |
BIN
mods/amogus_items/textures/sussium_axe.png
Normal file
After Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 227 B |