tweakings for the server

This commit is contained in:
maikerumine 2016-01-30 00:56:29 -05:00
parent a29175fd38
commit c9df5fac9c
6 changed files with 89 additions and 31 deletions

View File

@ -3,6 +3,18 @@
--made for Extreme Survival game
--License for code WTFPL
--ref
--[[
minetest.register_craftitem("farming:bread", {
description = "Bread",
inventory_image = "farming_bread.png",
on_use = minetest.item_eat(5),
})
]]
-- generic meat
minetest.register_craftitem("esmobs:rat", {
description = "Raw Rat Meat",
@ -22,9 +34,9 @@ minetest.register_craftitem("esmobs:meat_raw", {
})
minetest.register_craftitem("esmobs:meat", {
description = "Meat",
description = "Cooked Meat",
inventory_image = "mobs_meat.png",
on_use = minetest.item_eat(8),
on_use = minetest.item_eat(5),
})
minetest.register_craft({
@ -37,7 +49,7 @@ minetest.register_craft({
minetest.register_craftitem("esmobs:rotten_flesh", {
description = "Rotten Flesh",
inventory_image = "mobs_rotten_flesh.png",
on_use = minetest.item_eat(4),
on_use = minetest.item_eat(-4),
})
-- beef

View File

@ -7,17 +7,18 @@
--nssm:spawn_specific("nssm:phoenix", {"air"}, {"air"}, 10, 20, 120, 1200000, 1, 10, 40)
--function bp:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
--function (mod_name_here):spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
--bp:register_spawn("esmobs:spider", {"default:stone" ,"default:cobble","group:crumbly", "group:cracky", "group:choppy", "group:snappy"}, 6, 0, 24000, 1, 71)
bp:register_spawn("esmobs:applmons", {"default:stone","nether:rack"}, 6, -1, 24000, 1, -30)
--bp:register_spawn("esmobs:herobrines_bloody_ghost", {"default:stone","default:desert_sand","nether:brick"}, 6, -1, 22000, 1, 10)
bp:register_spawn("esmobs:spider", {"default:stone" ,"default:cobble","group:crumbly", "group:cracky", "group:choppy", "group:snappy"}, 6, 0, 24000, 1, 71)
bp:register_spawn("esmobs:applmons", {"default:stone","nether:rack", "esmobs:cursed_stone"}, 6, -1, 4000, 3, -30)
bp:register_spawn("esmobs:herobrines_bloody_ghost", {"default:stone","default:desert_sand","nether:brick", "bedrock2:bedrock"}, 4, -1, 22000, 1, 10)
--bp:spawn_specific("esmobs:bomber", {"air"},{"air"}, 0, 6, 30, 25000, 1, 90, 20)
bp:register_spawn("esmobs:bone_monster", {"default:stone_with_iron","bones:bones","esmobs:bones", "bedrock2:bedrock","default:stone"},6, -1, 7000, 3, 30)
--bp:register_spawn("esmobs:icemon", {"default:ice"}, 8, 1, 14000, 1, 3100)
--bp:register_spawn("esmobs:snowmon", {"default:snow","default:snowblock","default:snow_block", "default:dirt_with_snow"}, 5, -1, 24000, 1, 31000)
bp:register_spawn("esmobs:icemon", {"default:ice"}, 8, 1, 14000, 1, 3100)
bp:register_spawn("esmobs:snowmon", {"default:snow","default:snowblock","default:snow_block", "default:dirt_with_snow"}, 5, -1, 24000, 1, 31000)
--bp:register_spawn("esmobs:watermon", {"default:water_source","default:water_flowing"}, 5, -1, 14000, 5, -120)
--bp:spawn_specific("esmobs:bloco", {"default:stone"}, {"default:stone"}, 1, 10, 30, 22000, 1, -31000, -20)
bp:spawn_specific("esmobs:bloco", {"default:stone"}, {"default:stone"}, 5, 10, 30, 22000, 1, -31000, -20)
--bp:spawn_specific("esmobs:blocod", {"default:dirt"}, {"default:dirt_with_grass"}, 13, 20, 30, 25000, 1, -31000, 20)
--bp:register_spawn("esmobs:dirt", {"default:dirt_with_grass","default:stone", "default:stonebrick","default:cobble"}, 5, 0, 26000, 1, 500)
bp:register_spawn("esmobs:dirt2", {"default:dirt_with_grass","default:stone", "default:stonebrick","default:cobble"}, 5, 0, 26000, 1, 500)
--bp:register_spawn("esmobs:stone_monster", {"default:stone"}, 5, 0, 6000, 10, 500)
bp:register_spawn("esmobs:dirt", {"default:dirt_with_grass","default:stone", "default:stonebrick","default:cobble"}, 5, 0, 16000, 1, 500)
bp:register_spawn("esmobs:dirt2", {"default:dirt_with_grass","default:stone", "default:stonebrick","default:cobble"}, 5, 0, 6000, 2, -100)
bp:register_spawn("esmobs:stone_monster", {"default:stone","bedrock2:bedrock"}, 5, 0, 6000, 2, 500)
bp:register_spawn("esmobs:stone_monster2", {"default:stone","bedrock2:bedrock"}, 9, -1, 4000, 3, 500)
--bp:spawn_specific("esmobs:phoenix", {"air"},{"air"}, 2, 9, 30, 35000, 1, 20, 220)

View File

@ -106,10 +106,10 @@ esmobs.formspec.main = function(name)
if page == nil then page = 0 end
local formspec = "size[8,7.5]"
.. "button[0,0;2,.5;main;Back]"
if esmobs.get_type(esmobs.esmobs[name]) == esmobs.type.MODEL then
if esmobs.get_type(esmobs.esmobs[name]) == esmobs.type.SPRITE then
formspec = formspec
.. "image[0,.75;1,2;"..esmobs.esmobs[name].."_preview.png]"
.. "image[1,.75;1,2;"..esmobs.esmobs[name].."_preview_back.png]"
-- .. "image[0,.75;1,2;"..esmobs.esmobs[name].."_preview.png]"
-- .. "image[1,.75;1,2;"..esmobs.esmobs[name].."_preview_back.png]"
.. "label[6,.5;Raw texture:]"
.. "image[6,1;2,1;"..esmobs.esmobs[name]..".png]"
@ -117,25 +117,25 @@ esmobs.formspec.main = function(name)
formspec = formspec
-- .. "image[0,.75;1,2;"..esmobs.esmobs[name]..".png]"
-- .. "image[1,.75;1,2;"..esmobs.esmobs[name].."_back.png]"
.. "image[0,.75;1,2;"..esmobs.esmobs[name].."_preview.png]"
.. "image[1,.75;1,2;"..esmobs.esmobs[name].."_preview_back.png]"
-- .. "image[0,.75;1,2;"..esmobs.esmobs[name].."_preview.png]"
-- .. "image[1,.75;1,2;"..esmobs.esmobs[name].."_preview_back.png]"
end
local meta = esmobs.meta[esmobs.esmobs[name]]
if meta then
if meta.name then
formspec = formspec .. "label[2,.5;name: "..meta.name.."]"
formspec = formspec .. "label[0,.5;name: "..meta.name.."]"
end
if meta.type then
formspec = formspec .. "label[2,1;type: "..meta.type.."]"
formspec = formspec .. "label[0,1;type: "..meta.type.."]"
end
if meta.hp then
formspec = formspec .. "label[2,1.5;hp:"..meta.hp.."]"
formspec = formspec .. "label[0,1.5;hp:"..meta.hp.."]"
end
if meta.drops then
formspec = formspec .. "label[2,2;drops:"..meta.drops.."]"
formspec = formspec .. "label[0,2;drops:"..meta.drops.."]"
end
if meta.info then
formspec = formspec .. "label[2,2.5;info:"..meta.info.."]"
formspec = formspec .. "label[0,2.5;info:"..meta.info.."]"
end
end
local index = 0

View File

@ -10,6 +10,6 @@
--bp:register_spawn("esmobs:tree_monster", {"default:leaves", "default:jungleleaves","default:dirt", "default:jungletree"}, 5, 0, 14000, 1, 31000)
--bp:register_spawn("esmobs:sand_monster", {"default:sand", "meru:stone","group:sand"},4, -1, 14000, 1, 31000)
bp:register_spawn("esmobs:stone_monster", {"default:stone", "bedrock2:bedrock"}, 5, 2, 9000, 10, 500)
--bp:register_spawn("esmobs:oerkkii", "esmobs:cursed_stone", 4, -1, 2, 40, 500, -500)
bp:register_spawn("esmobs:oerkkii", "esmobs:cursed_stone", 4, -1, 2, 10, 500, -500)
--bp:register_spawn("esmobs:dirt", {"default:dirt_with_grass","default:stone", "default:stonebrick","default:cobble"}, 5, -1, 11000, 2, 500)

View File

@ -31,7 +31,7 @@ minetest.register_craft({
}
})
bp:register_spawn("esmobs:oerkkii", "esmobs:cursed_stone", 4, -1, 2, 2, 7000, -500) --comment out to disable
bp:register_spawn("esmobs:oerkkii", "esmobs:cursed_stone", 4, -1, 2, 2, 22, -500) --comment out to disable
--bp:register_spawn("esmobs:herobrines_bloody_ghost", "esmobs:cursed_stone", 4, -1, 2, 1, 500, -500)
-- SPAWN EGGS

View File

@ -235,7 +235,7 @@ bp:register_mob("esmobs:stone_monster", {
type = "monster",
passive = false,
attack_type = "dogfight",
damage = 6,
damage = 8,
hp_min = 32,
hp_max = 55,
armor = 80,
@ -284,7 +284,7 @@ bp:register_mob("esmobs:oerkkii", {
type = "monster",
passive = false,
attack_type = "dogfight",
damage = 4,
damage = 3,
hp_min = 8,
hp_max = 34,
armor = 100,
@ -340,7 +340,7 @@ bp:register_mob("esmobs:dirt", {
follow = "flowers:viola",--swap out type randomly for server players"flowers:tulip","flowers:rose","flowers:geranium","flowers:dandelion_yellow","flowers:dandelion_white",
walk_velocity = 2.5,
run_velocity = 3.8,
damage = 2.7,
damage = 3.7,
drops = {
{name = "default:dirt",
chance = 1,
@ -440,7 +440,7 @@ bp:register_mob("esmobs:applmons", {
view_range = 15,
walk_velocity = 1,
run_velocity = 3,
damage = 2,
damage = 3,
drops = {
{name = "default:apple",
chance = 4,
@ -1022,7 +1022,7 @@ bp:register_mob("esmobs:dirt2", {
follow = "flowers:rose",--swap out type randomly for server players"flowers:tulip","flowers:rose","flowers:geranium","flowers:dandelion_yellow","flowers:dandelion_white",
walk_velocity = 1.5,
run_velocity = 2.8,
damage = 2.7,
damage = 3.7,
drops = {
{name = "default:dirt",
chance = 1,
@ -1065,7 +1065,7 @@ bp:register_mob("esmobs:stone_monster", {
type = "monster",
passive = false,
attack_type = "dogfight",
damage = 8,
damage = 3,
hp_min = 32,
hp_max = 55,
armor = 80,
@ -1105,6 +1105,51 @@ bp:register_mob("esmobs:stone_monster", {
},
})
-- Stone Monster by PilzAdam
bp:register_mob("esmobs:stone_monster2", {
type = "monster",
passive = false,
attack_type = "dogfight",
damage = 6,
hp_min = 82,
hp_max = 105,
armor = 80,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
visual = "mesh",
mesh = "mobs_stone_monster.x",
textures = {
{"mobs_6.png"},
},
visual_size = {x=3, y=2.6},
makes_footstep_sound = true,
sounds = {
random = "mobs_stonemonster",
},
walk_velocity = 1.5,
run_velocity = 2.6,
jump = true,
floats = 1,
view_range = 10,
drops = {
{name = "default:torch",
chance = 2, min = 0, max = 2,},
{name = "default:iron_lump",
chance=5, min=0, max=1,},
{name = "default:coal_lump",
chance=3, min=0, max=1,},
},
water_damage = 10,
lava_damage = 1,
light_damage = 1,
animation = {
speed_normal = 15, speed_run = 15,
stand_start = 0, stand_end = 14,
walk_start = 15, walk_end = 38,
run_start = 40, run_end = 63,
punch_start = 40, punch_end = 63,
},
})
------------------------------
--MINETEST ANIMALS
------------------------------
@ -2374,7 +2419,7 @@ bp:register_mob("esmobs:badplayer10", {
run_velocity =15,
damage = 4,
drops = {
{name = "default:cotton",
{name = "farming:cotton",
chance = 1,
min = 3,
max = 5,},