Mod update 20 Dec 2019 (#25)
* farming: alternative blueberry recipes * new mobs: spider, squid
16
MineStead_modpack/add_craft_recipes/craft/farming.lua
Normal file
@ -0,0 +1,16 @@
|
||||
minetest.register_craft({
|
||||
output = "farming:muffin_blueberry 2",
|
||||
recipe = {
|
||||
{"default:blueberries", "group:food_bread", "default:blueberries"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:blueberry_pie",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_flour", "group:food_sugar",
|
||||
"default:blueberries", "group:food_baking_tray"
|
||||
},
|
||||
replacements = {{"group:food_baking_tray", "farming:baking_tray"}}
|
||||
})
|
@ -2,6 +2,7 @@ default
|
||||
basic_materials?
|
||||
digilines?
|
||||
digistuff?
|
||||
farming?
|
||||
nixie_tubes?
|
||||
mesecons_noteblock?
|
||||
mesecons_mvps?
|
||||
|
@ -32,3 +32,7 @@ end
|
||||
if minetest.get_modpath("advtrains_train_track") then
|
||||
dofile(MP.."/craft/advtrains_train_track.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("farming") then
|
||||
dofile(MP.."/craft/farming.lua")
|
||||
end
|
||||
|
4
MineStead_modpack/mob_spider/depends.txt
Normal file
@ -0,0 +1,4 @@
|
||||
default
|
||||
mobs
|
||||
farming
|
||||
xdecor
|
110
MineStead_modpack/mob_spider/init.lua
Normal file
@ -0,0 +1,110 @@
|
||||
|
||||
local S = mobs.intllib
|
||||
|
||||
mobs:register_mob(":mobs_animal:spider", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
-- docile_by_day = true,
|
||||
attack_type = "dogfight",
|
||||
pathfinding = 1,
|
||||
damage = 2,
|
||||
reach = 2,
|
||||
hp_min = 16,
|
||||
hp_max = 20,
|
||||
armor = 200,
|
||||
collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.89, 0.7},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_mc_spider.b3d",
|
||||
textures = {
|
||||
{"mobs_mc_spider.png^(mobs_mc_spider_eyes.png^[makealpha:0,0,0)"},
|
||||
},
|
||||
visual_size = {x=3, y=3},
|
||||
makes_footstep_sound = false,
|
||||
walk_velocity = 3.9,
|
||||
jump = true,
|
||||
jump_height = 2,
|
||||
view_range = 16,
|
||||
floats = 1,
|
||||
drops = {
|
||||
{name = "farming:string", chance = 1, min = 0, max = 2,},
|
||||
},
|
||||
runaway = true,
|
||||
runaway_from = {"player"},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 4,
|
||||
animation = {
|
||||
stand_speed = 10,
|
||||
walk_speed = 25,
|
||||
run_speed = 50,
|
||||
stand_start = 20,
|
||||
stand_end = 40,
|
||||
walk_start = 0,
|
||||
walk_end = 20,
|
||||
run_start = 0,
|
||||
run_end = 20,
|
||||
},
|
||||
blood_amount = 0,
|
||||
follow = {"mobs_animal:rat", "mobs_animal:chicken", "mobs_animal:bunny", "mobs_animal:kitten", "mobs:egg", "mobs:chicken_raw", "mobs:meat_raw", "mobs:mutton_raw", "mobs:pork_raw", "mobs:rabbit_raw"},
|
||||
view_range = 5,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
if mobs:feed_tame(self, clicker, 2, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 30, 50, 80, false, nil) then return end
|
||||
end,
|
||||
|
||||
do_custom = function(self, dtime)
|
||||
|
||||
self.cobweb_timer = (self.cobweb_timer or 0) + dtime
|
||||
if self.cobweb_timer < 10 then
|
||||
return
|
||||
end
|
||||
self.cobweb_timer = 0
|
||||
|
||||
local pos = self.object:get_pos()
|
||||
|
||||
if (minetest.get_node(pos)).name == "air" then
|
||||
minetest.set_node(pos, {name="xdecor:cobweb"})
|
||||
end;
|
||||
end,
|
||||
})
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_animal:spider",
|
||||
nodes = {"default:stone"},
|
||||
interval = 60,
|
||||
chance = 8000,
|
||||
min_height = -1000,
|
||||
max_height = -50,
|
||||
})
|
||||
|
||||
|
||||
mobs:register_egg(":mobs_animal:spider", S("Spider"), "mobs_spider_inv.png", 0)
|
||||
|
||||
minetest.register_craft({
|
||||
output = "wool:white",
|
||||
recipe = {
|
||||
{"farming:string", "farming:string", ""},
|
||||
{"farming:string", "farming:string", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:string 5",
|
||||
recipe = {
|
||||
{"xdecor:cobweb"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "xdecor:cobweb",
|
||||
recipe = {
|
||||
{"farming:string", "", "farming:string"},
|
||||
{"", "farming:string", ""},
|
||||
{"farming:string", "", "farming:string"},
|
||||
},
|
||||
})
|
BIN
MineStead_modpack/mob_spider/models/mobs_mc_spider.b3d
Normal file
BIN
MineStead_modpack/mob_spider/textures/mobs_mc_spider.png
Normal file
After Width: | Height: | Size: 727 B |
BIN
MineStead_modpack/mob_spider/textures/mobs_mc_spider_eyes.png
Normal file
After Width: | Height: | Size: 753 B |
BIN
MineStead_modpack/mob_spider/textures/mobs_spider_inv.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
3
MineStead_modpack/mob_squid/depends.txt
Normal file
@ -0,0 +1,3 @@
|
||||
default
|
||||
mobs
|
||||
farming
|
84
MineStead_modpack/mob_squid/init.lua
Normal file
@ -0,0 +1,84 @@
|
||||
|
||||
local S = mobs.intllib
|
||||
|
||||
mobs:register_mob(":mobs_animal:squid", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
stepheight = 0.1,
|
||||
-- pathfinding = 1,
|
||||
damage = 2,
|
||||
reach = 2,
|
||||
hp_min = 10,
|
||||
hp_max = 10,
|
||||
armor = 100,
|
||||
collisionbox = {-0.4, 0.1, -0.4, 0.4, 0.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_mc_squid.b3d",
|
||||
textures = {
|
||||
{"mobs_mc_squid.png"}
|
||||
},
|
||||
sounds = {
|
||||
damage = "mobs_mc_squid_hurt",
|
||||
distance = 16,
|
||||
},
|
||||
animation = {
|
||||
stand_start = 1,
|
||||
stand_end = 60,
|
||||
walk_start = 1,
|
||||
walk_end = 60,
|
||||
run_start = 1,
|
||||
run_end = 60,
|
||||
},
|
||||
drops = {
|
||||
{name = "dye:black", chance = 1, min = 1, max = 3,},
|
||||
{name = "mobs_animal:tentacle", chance = 1, min = 1, max = 8,},
|
||||
},
|
||||
visual_size = {x=1.75, y=1.75},
|
||||
makes_footstep_sound = false,
|
||||
fly = true,
|
||||
fly_in = "default:water_source",
|
||||
jump = false,
|
||||
fall_speed = 0.5,
|
||||
view_range = 16,
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
runaway = true,
|
||||
fear_height = 4,
|
||||
blood_texture = "mobs_mc_squid_blood.png",
|
||||
})
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_animal:squid",
|
||||
nodes = {"default:water_source"},
|
||||
neighbors = {"default:water_flowing","default:water_source"},
|
||||
min_light = 5,
|
||||
interval = 30,
|
||||
chance = 5500,
|
||||
max_height = -3,
|
||||
})
|
||||
|
||||
-- spawn eggs
|
||||
mobs:register_egg(":mobs_animal:squid", S("Squid"), "mobs_mc_spawn_icon_squid.png", 0)
|
||||
|
||||
minetest.register_craftitem(":mobs_animal:tentacle", {
|
||||
description = S("Tentacle"),
|
||||
inventory_image = "mobs_tentacle.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
groups = {food_meat_raw = 1},
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":mobs_animal:squid_salad", {
|
||||
description = S("Squid Salad"),
|
||||
inventory_image = "mobs_squid_salad.png",
|
||||
on_use = minetest.item_eat(10, "farming:bowl"),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mobs_animal:squid_salad",
|
||||
recipe = {
|
||||
{"group:food_cucumber","group:food_onion","mobs_animal:tentacle"},
|
||||
{"group:food_bowl", "", ""},
|
||||
{"", "", ""},
|
||||
}
|
||||
})
|
BIN
MineStead_modpack/mob_squid/models/mobs_mc_squid.b3d
Normal file
BIN
MineStead_modpack/mob_squid/sounds/mobs_mc_squid_hurt.ogg
Normal file
After Width: | Height: | Size: 692 B |
BIN
MineStead_modpack/mob_squid/textures/mobs_mc_squid.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
MineStead_modpack/mob_squid/textures/mobs_mc_squid_blood.png
Normal file
After Width: | Height: | Size: 82 B |
BIN
MineStead_modpack/mob_squid/textures/mobs_squid_salad.png
Normal file
After Width: | Height: | Size: 744 B |
BIN
MineStead_modpack/mob_squid/textures/mobs_tentacle.png
Normal file
After Width: | Height: | Size: 415 B |