Mapgen improvements, goron model

>added desert rocks and another grass
>added obsidian spikes
>changed the goron model and made them agressive if punched
master
D00Med 2017-01-14 06:43:23 +10:00
parent 777284e189
commit 6b11f124d6
12 changed files with 135 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 464 B

View File

@ -765,6 +765,28 @@ minetest.register_node("hyrule_mapgen:icicle", {
end,
})
minetest.register_node("hyrule_mapgen:obsidian_spike", {
description = "Obsidian spike",
tiles = {
"default_obsidian.png",
},
use_texture_alpha = true,
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.25, -0.5, -0.25, 0.25, 0.5, 0.25}, -- NodeBox1
{-0.1875, 0.4375, -0.1875, 0.1875, 1.1875, 0.1875}, -- NodeBox2
{-0.125, 1.1875, -0.125, 0.125, 1.6875, 0.125}, -- NodeBox3
{-0.0625, 1.6875, -0.0625, 0.0625, 2.0625, 0.0625}, -- NodeBox4
}
},
groups = {cracky=1,},
sounds = default.node_sound_stone_defaults(),
drop = "default:obsidian",
})
minetest.register_node("hyrule_mapgen:spikes", {
description = "Spikes",
drawtype = "firelike",

View File

@ -1027,7 +1027,7 @@ minetest.register_decoration({
persist = 0.6
},
biomes = {"icesheet"},
y_min = 1,
y_min = -8,
y_max = 1000,
schematic = minetest.get_modpath("hyrule_mapgen").."/schematics/igloo.mts",
flags = "place_center_x, place_center_z",
@ -1169,21 +1169,82 @@ minetest.register_decoration({
place_on = {"default:snowblock", "default:ice"},
sidelen = 16,
noise_params = {
offset = 0.006,
scale = 0.04,
offset = 0.008,
scale = 0.06,
spread = {x = 200, y = 200, z = 200},
seed = 230,
octaves = 3,
persist = 0.6
},
biomes = {"icesheet"},
y_min = 5,
y_min = -8,
y_max = 31000,
decoration = "hyrule_mapgen:icicle",
height = 1,
height_max = 1,
})
--desert rocks
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:desert_sand",},
sidelen = 16,
noise_params = {
offset = 0.002,
scale = 0.01,
spread = {x = 200, y = 200, z = 200},
seed = 230,
octaves = 3,
persist = 0.6
},
biomes = {"desert"},
y_min = -500,
y_max = 31000,
schematic = minetest.get_modpath("hyrule_mapgen").."/schematics/desertrock.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:desert_sand",},
sidelen = 16,
noise_params = {
offset = 0.002,
scale = 0.01,
spread = {x = 200, y = 200, z = 200},
seed = 230,
octaves = 3,
persist = 0.6
},
biomes = {"desert"},
y_min = -500,
y_max = 31000,
schematic = minetest.get_modpath("hyrule_mapgen").."/schematics/desertrock2.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:desert_sand",},
sidelen = 16,
noise_params = {
offset = 0.002,
scale = 0.01,
spread = {x = 200, y = 200, z = 200},
seed = 230,
octaves = 3,
persist = 0.6
},
biomes = {"desert"},
y_min = -500,
y_max = 31000,
schematic = minetest.get_modpath("hyrule_mapgen").."/schematics/desertrock3.mts",
flags = "place_center_x, place_center_z",
})
--obsidian spike
minetest.register_decoration({
deco_type = "simple",
place_on = {"hyrule_mapgen:lavabiome_dirt",},

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,13 +4,14 @@
mobs:register_mob("mobs_loz:goron", {
type = "animal",
passive = true,
damage = 0,
passive = false,
reach = 2.5,
damage = 5,
attack_type = "dogfight",
hp_min = 10,
hp_max = 25,
armor = 80,
collisionbox = {-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
collisionbox = {-0.4, 0, -0.4, 0.4, 1.5, 0.4},
visual = "mesh",
mesh = "goron.b3d",
textures = {
@ -19,8 +20,8 @@ mobs:register_mob("mobs_loz:goron", {
blood_texture = "default_stone.png",
makes_footstep_sound = true,
view_range = 5,
walk_velocity = 0.5,
run_velocity = 0,
walk_velocity = 1.5,
run_velocity = 4,
jump = false,
jump_height = 0,
fall_damage = 0,
@ -30,11 +31,11 @@ mobs:register_mob("mobs_loz:goron", {
{name = "default:stone",
chance = 9, min = 1, max = 3},
{name = "hyruletools:green_rupee",
chance = 1, min = 1, max = 2},
chance = 5, min = 1, max = 2},
},
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,5) == 2 then
if math.random(1,6) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
end,
@ -42,16 +43,16 @@ mobs:register_mob("mobs_loz:goron", {
lava_damage = 0,
light_damage = 0,
animation = {
speed_normal = 20,
speed_run = 15,
stand_start = 33,
stand_end = 33,
walk_start = 4,
walk_end = 23,
run_start = 4,
run_end = 23,
punch_start = 29,
punch_end = 44,
speed_normal = 13,
speed_run = 17,
stand_start = 1,
stand_end = 14,
walk_start = 25,
walk_end = 45,
run_start = 50,
run_end = 70,
punch_start = 50,
punch_end = 70,
},
on_rightclick = function(self, clicker)
local item = clicker:get_wielded_item()

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -23,6 +23,26 @@ minetest.register_node("moreplants:tallgrass", {
walkable = false,
})
minetest.register_node("moreplants:grass", {
description = "Thin Grass",
drawtype = "plantlike",
tiles = {"moreplants_grass.png"},
paramtype = "light",
is_ground_content = false,
buildable_to = true,
sunlight_propagates = true,
inventory_image = "moreplants_grass.png",
visual_scale = 1.1,
wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
},
walkable = false,
})
minetest.register_node("moreplants:pinkflower2", {
description = "Pink Bell Flower",
drawtype = "plantlike",
@ -990,11 +1010,20 @@ minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_grass2", "default:dirt_with_grass3"},
sidelen = 16,
fill_ratio = 0.01,
fill_ratio = 0.04,
biomes = {"stone_grassland", "sandstone_grassland"},
decoration = "moreplants:tallgrass",
height = 1,
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_dry_grass", "default:dirt_with_grass3", "hyrule_mapgen:swamp_mud"},
sidelen = 16,
fill_ratio = 0.07,
biomes = {"magic_forest", "deciduous_forest", "wild_forest", "swamp"},
decoration = "moreplants:grass",
height = 1,
})
minetest.register_decoration({
deco_type = "simple",
place_on = "default:dirt_with_grass", "default:dirt_with_grass2", "default:dirt_with_grass3",

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

After

Width:  |  Height:  |  Size: 169 B