Change mobs spawn settings, new spider model, fix punch using at items
This commit is contained in:
parent
205e432ef7
commit
521d18bc67
@ -94,7 +94,7 @@ mobs:register_mob("mobs_animal:bear", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:bear",
|
name = "mobs_animal:bear",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass"},
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
|
@ -102,7 +102,7 @@ mobs:register_mob("mobs_animal:bunny", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:bunny",
|
name = "mobs_animal:bunny",
|
||||||
nodes = {"default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass"},
|
||||||
min_light = 10,
|
min_light = 10,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 8000,
|
chance = 8000,
|
||||||
|
@ -129,7 +129,7 @@ mobs:register_mob("mobs_animal:cow", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:cow",
|
name = "mobs_animal:cow",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_dry_grass", "default:dirt_with_grass"},
|
||||||
min_light = 5,
|
min_light = 5,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 10000,
|
chance = 10000,
|
||||||
|
@ -60,7 +60,7 @@ mobs:register_mob("mobs_animal:wolf", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:wolf",
|
name = "mobs_animal:wolf",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass"},
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
|
@ -54,7 +54,7 @@ mobs:register_mob("mobs_animal:kitten", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:kitten",
|
name = "mobs_animal:kitten",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass"},
|
||||||
min_light = 10,
|
min_light = 10,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 10000,
|
chance = 10000,
|
||||||
|
@ -52,7 +52,7 @@ mobs:register_mob("mobs_animal:pig", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:pig",
|
name = "mobs_animal:pig",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass"},
|
||||||
min_light = 5,
|
min_light = 5,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 15000,
|
chance = 15000,
|
||||||
|
@ -236,7 +236,7 @@ mobs:spawn({
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:sheep_black",
|
name = "mobs_animal:sheep_black",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:dirt_with_dry_grass", "default:dirt_with_grass"},
|
||||||
min_light = 7,
|
min_light = 7,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 40000,
|
chance = 40000,
|
||||||
@ -247,7 +247,7 @@ mobs:spawn({
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:sheep_brown",
|
name = "mobs_animal:sheep_brown",
|
||||||
nodes = {"default:dirt", "default:sand", "default:redsand", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass"},
|
nodes = {"default:dirt", "default:sand", "default:redsand", "default:dirt_with_dry_grass", "default:dirt_with_grass"},
|
||||||
min_light = 7,
|
min_light = 7,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
chance = 40000,
|
chance = 40000,
|
||||||
|
Binary file not shown.
@ -53,7 +53,7 @@ mobs:register_mob("mobs_monster:skeleton", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_monster:skeleton",
|
name = "mobs_monster:skeleton",
|
||||||
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:stone", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:cobble", "default:mossycobble"},
|
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:stone", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass", "default:cobble", "default:mossycobble"},
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
max_light = 10,
|
max_light = 10,
|
||||||
chance = 7000,
|
chance = 7000,
|
||||||
|
@ -10,11 +10,13 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
hp_min = 15,
|
hp_min = 15,
|
||||||
hp_max = 20,
|
hp_max = 20,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.6, 0.7},
|
collisionbox = {-0.8, -0.5, -0.8, 0.8, 0, 0.8},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_spider.b3d",
|
mesh = "mobs_spider.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_spider.png"},
|
{"mobs_spider.png"},
|
||||||
|
{"mobs_spider_grey.png"},
|
||||||
|
{"mobs_spider_orange.png"},
|
||||||
},
|
},
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
sounds = {
|
sounds = {
|
||||||
@ -59,7 +61,7 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_monster:spider",
|
name = "mobs_monster:spider",
|
||||||
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:redsand", "default:stone", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:cobble", "default:mossycobble"},
|
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:redsand", "default:stone", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass", "default:cobble", "default:mossycobble"},
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
max_light = 12,
|
max_light = 12,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
@ -69,13 +71,14 @@ mobs:spawn({
|
|||||||
})
|
})
|
||||||
|
|
||||||
mobs:register_egg("mobs_monster:spider", "Spider egg", "mobs_chicken_egg.png^mobs_cobweb.png", 1)
|
mobs:register_egg("mobs_monster:spider", "Spider egg", "mobs_chicken_egg.png^mobs_cobweb.png", 1)
|
||||||
|
mobs:register_egg("mobs_monster:small_spider", "Small Spider egg", "mobs_chicken_egg.png^mobs_cobweb.png", 1)
|
||||||
|
|
||||||
mobs:alias_mob("mobs:spider", "mobs_monster:spider") -- compatibility
|
mobs:alias_mob("mobs:spider", "mobs_monster:spider") -- compatibility
|
||||||
|
|
||||||
-- Small spider
|
-- Small spider
|
||||||
|
|
||||||
mobs:register_mob("mobs_monster:small_spider", {
|
mobs:register_mob("mobs_monster:small_spider", {
|
||||||
docile_by_day = true,
|
--docile_by_day = true,
|
||||||
group_attack = true,
|
group_attack = true,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = false,
|
passive = false,
|
||||||
@ -85,11 +88,13 @@ mobs:register_mob("mobs_monster:small_spider", {
|
|||||||
hp_min = 5,
|
hp_min = 5,
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
collisionbox = {-0.23, -0.01, -0.23, 0.23, 0.2, 0.23},
|
collisionbox = {-0.3, -0.15, -0.3, 0.3, 0.05, 0.3},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_spider.b3d",
|
mesh = "mobs_spider.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_spider.png"},
|
{"mobs_spider.png"},
|
||||||
|
{"mobs_spider_grey.png"},
|
||||||
|
{"mobs_spider_orange.png"},
|
||||||
},
|
},
|
||||||
visual_size = {x = 0.3, y = 0.3},
|
visual_size = {x = 0.3, y = 0.3},
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
@ -134,7 +139,7 @@ mobs:register_mob("mobs_monster:small_spider", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_monster:small_spider",
|
name = "mobs_monster:small_spider",
|
||||||
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:redsand", "default:stone", "default:snow", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:cobble", "default:mossycobble"},
|
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:redsand", "default:stone", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass", "default:cobble", "default:mossycobble"},
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
max_light = 15,
|
max_light = 15,
|
||||||
interval = 30,
|
interval = 30,
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 4.3 KiB |
BIN
games/default/files/mobs_monster/textures/mobs_spider_grey.png
Normal file
BIN
games/default/files/mobs_monster/textures/mobs_spider_grey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
BIN
games/default/files/mobs_monster/textures/mobs_spider_orange.png
Normal file
BIN
games/default/files/mobs_monster/textures/mobs_spider_orange.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -53,7 +53,7 @@ mobs:register_mob("mobs_monster:zombie", {
|
|||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_monster:zombie",
|
name = "mobs_monster:zombie",
|
||||||
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:stone", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:cobble", "default:mossycobble"},
|
nodes = {"default:dirt", "default:sandstone", "default:sand", "default:redsand", "default:stone", "default:snowblock", "default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_dry_grass", "default:cobble", "default:mossycobble"},
|
||||||
min_light = 0,
|
min_light = 0,
|
||||||
max_light = 10,
|
max_light = 10,
|
||||||
chance = 7000,
|
chance = 7000,
|
||||||
|
@ -19,12 +19,20 @@ player_api.register_model("character.b3d", {
|
|||||||
walk_mine = {x = 200, y = 219},
|
walk_mine = {x = 200, y = 219},
|
||||||
sit = {x = 81, y = 160},
|
sit = {x = 81, y = 160},
|
||||||
},
|
},
|
||||||
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
|
|
||||||
stepheight = 0.6,
|
stepheight = 0.6,
|
||||||
eye_height = 1.47,
|
eye_height = 1.47,
|
||||||
})
|
})
|
||||||
|
|
||||||
if creative_mode_cache then
|
if creative_mode_cache then
|
||||||
|
minetest.register_item(":", {
|
||||||
|
type = "none",
|
||||||
|
wield_image = "blank.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.5,
|
||||||
|
damage_groups = {fleshy = 5},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
local digtime = 128
|
local digtime = 128
|
||||||
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 192}
|
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 192}
|
||||||
minetest.register_node("player_api:hand", {
|
minetest.register_node("player_api:hand", {
|
||||||
@ -38,7 +46,7 @@ if creative_mode_cache then
|
|||||||
node_placement_prediction = "",
|
node_placement_prediction = "",
|
||||||
range = 10,
|
range = 10,
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.9,
|
full_punch_interval = 0.5,
|
||||||
max_drop_level = 3,
|
max_drop_level = 3,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
crumbly = caps,
|
crumbly = caps,
|
||||||
@ -51,6 +59,15 @@ if creative_mode_cache then
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
|
minetest.register_item(":", {
|
||||||
|
type = "none",
|
||||||
|
wield_image = "blank.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.9,
|
||||||
|
damage_groups = {fleshy = 1},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("player_api:hand", {
|
minetest.register_node("player_api:hand", {
|
||||||
tiles = {"character.png"},
|
tiles = {"character.png"},
|
||||||
wield_scale = {x = 1, y = 1, z = 0.7},
|
wield_scale = {x = 1, y = 1, z = 0.7},
|
||||||
@ -66,8 +83,8 @@ else
|
|||||||
groupcaps = {
|
groupcaps = {
|
||||||
crumbly = {times = {[2]=3.00, [3]=0.70}, uses = 0, maxlevel = 1},
|
crumbly = {times = {[2]=3.00, [3]=0.70}, uses = 0, maxlevel = 1},
|
||||||
snappy = {times ={[3]=0.40}, uses = 0, maxlevel = 1},
|
snappy = {times ={[3]=0.40}, uses = 0, maxlevel = 1},
|
||||||
choppy = {times={[3]=3}},
|
choppy = {times = {[3]=3}, uses = 0, maxlevel = 1},
|
||||||
cracky = {times={[10]=10, [3]=7.5}},
|
cracky = {times = {[10]=10, [3]=7.5}, uses = 0, maxlevel = 1},
|
||||||
oddly_breakable_by_hand = {times = {[0]=90.00, [1]=7.00, [2]=3.00, [3]=3*3.33, [4]=250, [5]=999999.0, [6]=0.5}, uses = 0, maxlevel = 5}
|
oddly_breakable_by_hand = {times = {[0]=90.00, [1]=7.00, [2]=3.00, [3]=3*3.33, [4]=250, [5]=999999.0, [6]=0.5}, uses = 0, maxlevel = 5}
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 1},
|
damage_groups = {fleshy = 1},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user