some fixes

This commit is contained in:
D00Med 2017-07-03 09:38:55 +10:00
parent dab71d4fc0
commit 7e1ed3c60d
4 changed files with 13 additions and 12 deletions

View File

@ -235,7 +235,7 @@ minetest.register_node("decoblocks:Ancient_vase_sand", {
})
chest_items = {
{"default:gold_ingot", 20},
{"default:gold_ingot", 3},
}
minetest.register_node("decoblocks:chest", {
@ -253,7 +253,7 @@ minetest.register_node("decoblocks:chest", {
local rarity = row[2]
if math.random(1,rarity) == 1 then
meta:set_string("item", item)
else
else
meta:set_string("item", "default:steel_ingot 3")
end
end
@ -276,7 +276,8 @@ minetest.register_node("decoblocks:chest", {
local rarity = row[2]
if math.random(1,rarity) == 1 then
meta:set_string("item", item)
else
return
else
meta:set_string("item", "default:steel_ingot 3")
end
end

View File

@ -2793,22 +2793,22 @@ end)
--underground dungeons
local dungeon_rarity = 500
local dungeon_rarity = 1000
minetest.register_on_generated(function(minp, maxp)
if maxp.y > -60 or maxp.y < -30000 then
return
end
local stone = minetest.find_nodes_in_area(minp, maxp,
{"hyrule_mapgen:dungeon_seed"})
{"default:stone_with_diamond"})
for n = 1, #stone do
if math.random(1, dungeon_rarity) == 1 then
local pos = {x = stone[n].x, y = stone[n].y, z = stone[n].z }
local number = math.random(1,4)
if math.random(1,10) == 1 then
minetest.place_schematic(pos, minetest.get_modpath("hyrule_mapgen").."/schematics/dungeon"..number..".mts", random, {{["decoblocks:chest"] = "mobs_m:mimic_chest2",}, {["mobs_m:mimic_chest2"] = "decoblocks:chest",}}, true)
minetest.place_schematic(pos, minetest.get_modpath("mapgen").."/schematics/dungeon"..number..".mts", random, {["decoblocks:chest"] = "mobs_m:mimic_chest2", ["mobs_m:mimic_chest2"] = "decoblocks:chest",}, true)
else
minetest.place_schematic(pos, minetest.get_modpath("hyrule_mapgen").."/schematics/dungeon"..number..".mts", random, {}, true)
minetest.place_schematic(pos, minetest.get_modpath("mapgen").."/schematics/dungeon"..number..".mts", random, {}, true)
end
end
end

View File

@ -21,7 +21,7 @@ mobs:register_mob("mobs_m:mimic", {
hp_min = 10,
hp_max = 27,
armor = 90,
collisionbox = {-0.5, 0, -0.5, 0.5, 1, 0.5},
collisionbox = {-0.5, -0.05, -0.5, 0.5, 1, 0.5},
visual = "mesh",
mesh = "mimic.b3d",
textures = {
@ -93,7 +93,7 @@ mobs:register_mob("mobs_m:mimic2", {
hp_min = 10,
hp_max = 27,
armor = 90,
collisionbox = {-0.5, 0, -0.5, 0.5, 1, 0.5},
collisionbox = {-0.5, -0.05, -0.5, 0.5, 1, 0.5},
visual = "mesh",
mesh = "mimic.b3d",
textures = {

View File

@ -59,7 +59,7 @@ mobs:register_mob("mobs_npc:travelling_merchant", {
hp_min = 10,
hp_max = 20,
armor = 100,
collisionbox = {-0.5,0,-0.5, 0.5,1,0.5},
collisionbox = {-0.5,0,-0.5, 0.5,2.2,0.5},
visual = "mesh",
mesh = "travelling_merchant.b3d",
textures = {
@ -67,8 +67,8 @@ mobs:register_mob("mobs_npc:travelling_merchant", {
},
makes_footstep_sound = true,
sounds = {},
walk_velocity = 2,
run_velocity = 3,
walk_velocity = 1.3,
run_velocity = 2,
jump = 1,
drops = {},
water_damage = 2,