Add jungle spider poison antidote, tweak mob drops
This commit is contained in:
parent
6fb94bbd4c
commit
f6872d7b3b
Binary file not shown.
Before Width: | Height: | Size: 926 B After Width: | Height: | Size: 926 B |
@ -12,9 +12,9 @@ mobs:register_mob("mobs:rabbit", {
|
||||
armor = 200,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1,
|
||||
min = 0,
|
||||
max = 1,},
|
||||
chance = 90,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
},
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
|
@ -11,7 +11,7 @@ mobs:register_mob("mobs:sheep", {
|
||||
armor = 200,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1,
|
||||
chance = 95,
|
||||
min = 2,
|
||||
max = 3,},
|
||||
},
|
||||
|
@ -700,7 +700,7 @@ function mobs:register_mob(name, def)
|
||||
if self.object:get_hp() <= 0 then
|
||||
if hitter and hitter:is_player() and hitter:get_inventory() then
|
||||
for _,drop in ipairs(self.drops) do
|
||||
if math.random(1, drop.chance) == 1 then
|
||||
if math.random(1, 100) < drop.chance then
|
||||
local d = ItemStack(drop.name.." "..math.random(drop.min, drop.max))
|
||||
default.drop_item(pos,d)
|
||||
end
|
||||
|
@ -14,12 +14,7 @@ mobs:register_mob("mobs:dirt_monster", {
|
||||
walk_velocity = 1.25,
|
||||
run_velocity = 3.75,
|
||||
damage = 2,
|
||||
drops = {
|
||||
{name = "default:dirt",
|
||||
chance = 1,
|
||||
min = 3,
|
||||
max = 5,},
|
||||
},
|
||||
drops = { },
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
|
@ -16,7 +16,7 @@ mobs:register_mob("mobs:dungeon_master", {
|
||||
damage = 4,
|
||||
drops = {
|
||||
{name = "default:mese",
|
||||
chance = 100,
|
||||
chance = 65,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
},
|
||||
|
@ -17,9 +17,15 @@ mobs:register_mob("mobs:jungle_spider",{
|
||||
damage = 1,
|
||||
drops = {
|
||||
{name = "farming:string",
|
||||
chance = 70,
|
||||
chance = 40,
|
||||
min = 3,
|
||||
max = 6,},
|
||||
|
||||
{name = "mobs:jungle_spider_fang",
|
||||
chance = 70,
|
||||
min = 1,
|
||||
max = 2,
|
||||
},
|
||||
},
|
||||
light_resistant = false,
|
||||
drawtype = "front",
|
||||
@ -139,5 +145,13 @@ function come_to(name)
|
||||
physics.unfreeze_player(name)
|
||||
end
|
||||
|
||||
minetest.register_craftitem("mobs:jungle_spider_fang",{
|
||||
description = "Jungle Spider Fang",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
inventory_image = "mobs_jungle_spider_fang.png",
|
||||
})
|
||||
|
||||
|
||||
mobs:register_spawn("mobs:jungle_spider", {"default:jungleleaves", "default:junglegrass"}, 22, -1, 5000, 4, 31000)
|
||||
mobs:register_spawn("mobs:jungle_spider", {"default:jungleleaves", "default:junglegrass"}, 10, -1, 2000, 6, 31000)
|
@ -17,7 +17,7 @@ mobs:register_mob("mobs:spider",{
|
||||
damage = 3,
|
||||
drops = {
|
||||
{name = "farming:string",
|
||||
chance = 70,
|
||||
chance = 40,
|
||||
min = 3,
|
||||
max = 6,},
|
||||
},
|
||||
|
@ -16,15 +16,15 @@ mobs:register_mob("mobs:stone_monster", {
|
||||
damage = 3,
|
||||
drops = {
|
||||
{name = "default:torch",
|
||||
chance = 2,
|
||||
chance = 70,
|
||||
min = 3,
|
||||
max = 5,},
|
||||
{name = "default:iron_lump",
|
||||
chance=5,
|
||||
chance=50,
|
||||
min=1,
|
||||
max=2,},
|
||||
{name = "default:coal_lump",
|
||||
chance=3,
|
||||
chance=50,
|
||||
min=1,
|
||||
max=3,},
|
||||
},
|
||||
|
@ -16,15 +16,15 @@ mobs:register_mob("mobs:tree_monster", {
|
||||
damage = 2,
|
||||
drops = {
|
||||
{name = "default:sapling",
|
||||
chance = 3,
|
||||
chance = 60,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
{name = "default:junglesapling",
|
||||
chance = 3,
|
||||
chance = 60,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
{name = "default:apple",
|
||||
chance = 2,
|
||||
chance = 80,
|
||||
min = 1,
|
||||
max=3,
|
||||
},
|
||||
|
BIN
mods/mobs/textures/mobs_jungle_spider_fang.png
Executable file
BIN
mods/mobs/textures/mobs_jungle_spider_fang.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 461 B |
@ -120,6 +120,19 @@ minetest.register_craftitem("potions:magic_replenish3", {
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("potions:antidote",{
|
||||
description = "Jungle Spider Poison Antidote",
|
||||
stack_max = 1,
|
||||
liquids_pointable = false,
|
||||
inventory_image = "potions_antidote.png",
|
||||
on_use = function ( itemstack, player, pointed_thing )
|
||||
local name = player:get_player_name()
|
||||
affects.removeAffect(name,"spider_poison")
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
||||
local ground_items = {
|
||||
@ -196,3 +209,10 @@ minetest.register_craft({
|
||||
recipe = {"potions:ground_bones","vessels:glass_bottle","bucket:bucket_water","potions:ground_magic"},
|
||||
replacements = { { "bucket:bucket_water","bucket:bucket_empty" } },
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type="shapeless",
|
||||
output="potions:antidote",
|
||||
recipe = {"mobs:jungle_spider_fang","vessels:glass_bottle","bucket:bucket_water","potions:ground_rose"},
|
||||
replacements = { { "bucket:bucket_water","bucket:bucket_empty" } },
|
||||
})
|
||||
|
BIN
mods/potions/textures/potions_antidote.png
Executable file
BIN
mods/potions/textures/potions_antidote.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 478 B |
Loading…
x
Reference in New Issue
Block a user