suggestions by doyousketch2

master
AiTechEye 2019-06-06 17:51:15 +02:00 committed by GitHub
parent 0abd3b0e49
commit d840042e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 3 deletions

View File

@ -196,9 +196,9 @@ minetest.register_globalstep(function(dtime)
local tpitch=math.abs(pitch)
local npointable=not mt2d.pointable(pos2,user)
if tyaw>0.5 or (npointable and tyaw>0.2) then
user:set_look_yaw(3.14+((yaw-4.71)*0.9))
user:set_look_yaw(3.14+((yaw-4.71)*0.99))
elseif tpitch>0.5 or (npointable and tpitch>0.2) then
user:set_look_pitch((pitch*0.9)*-1)
user:set_look_pitch((pitch*0.99)*-1)
end
end
end

View File

@ -326,4 +326,25 @@ minetest.register_node("mt2d:stoprail", {
inventory_image="carts_rail_straight.png^[colorize:#ff0000aa",
groups={dig_immediate=2,rail=1,connect_to_raillike=minetest.raillike_group("rail")},
tiles={"carts_rail_crossing_pwr.png^[colorize:#ff0000aa"},
})
})
mt2d.register_ore=function(def)
minetest.register_ore({
ore_type="scatter",
ore=def.ore,
wherein="default:stone",
clust_scarcity=def.scarcity and (def.scarcity*def.scarcity*def.scarcity) or (8*8*8),
clust_num_ores=15,
clust_size=def.size or 3,
y_max=def.y_max or 0,
y_min=-31000
})
end
mt2d.register_ore({ore="default:stone_with_coal",scarcity=6,y_max=16})
mt2d.register_ore({ore="default:stone_with_iron",scarcity=7})
mt2d.register_ore({ore="default:stone_with_copper",scarcity=8,y_max=-16})
mt2d.register_ore({ore="default:stone_with_tin",scarcity=8,y_max=-32})
mt2d.register_ore({ore="default:stone_with_gold",scarcity=8,y_max=-100})
mt2d.register_ore({ore="default:stone_with_mese",scarcity=9,y_max=-700})
mt2d.register_ore({ore="default:stone_with_diamond",scarcity=10,y_max=-700})
mt2d.register_ore({ore="default:mese",scarcity=15,y_max=-1000})