Minor fixes and improvements
This commit is contained in:
parent
20820c738a
commit
a81567ff25
@ -45,30 +45,6 @@ minetest.register_lbm({
|
||||
register_alias("mesecons_solarpanel:solar_panel_inverted_off", "mesecons_solarpanel:solar_panel_off")
|
||||
register_alias("mesecons_solarpanel:solar_panel_inverted_on", "mesecons_solarpanel:solar_panel_on")
|
||||
|
||||
--== Potions ==--
|
||||
local potions = {
|
||||
{"potions:glass_bottle", "vessels:glass_bottle"},
|
||||
{"potionspack:antigravity", "pep:grav0"},
|
||||
{"potionspack:antigravityii", "pep:gravreset"},
|
||||
{"potionspack:speed", "pep:speedminus"},
|
||||
{"potionspack:speedii", "pep:speedplus"},
|
||||
{"potionspack:inversion", "pep:invisible"},
|
||||
{"potionspack:confusion", "pep:breath"},
|
||||
{"potionspack:whatwillthisdo", "pep:mole"},
|
||||
{"potionspack:instanthealth", "pep:regen"},
|
||||
{"potionspack:instanthealthii", "pep:regen2"},
|
||||
{"potionspack:regen", "pep:regen"},
|
||||
{"potionspack:regenii", "pep:regen2"},
|
||||
{"potionspack:harming", "pep:gravreset"},
|
||||
{"potionspack:harmingii", "pep:gravreset"},
|
||||
{"pep:jumpreset", "pep:nightvision"},
|
||||
{"pep:speedreset", "pep:invisible"}
|
||||
}
|
||||
|
||||
for _, p in pairs(potions) do
|
||||
register_alias(p[1], p[2])
|
||||
end
|
||||
|
||||
--== carts ==--
|
||||
local carts = {
|
||||
{"railcart:cart", "carts:cart"},
|
||||
|
@ -191,7 +191,8 @@ minetest.register_craft({
|
||||
local function register_pots()
|
||||
local register_pot = flowerpot.register_node
|
||||
for node, def in pairs(minetest.registered_nodes) do
|
||||
if def.groups.flora or def.groups.sapling then
|
||||
local groups = def.groups or {}
|
||||
if groups.flora or groups.sapling then
|
||||
register_pot(node)
|
||||
end
|
||||
end
|
||||
|
@ -105,78 +105,6 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
-- chicken egg
|
||||
local function chicken_egg_shoot(itemstack, thrower)
|
||||
local playerpos = thrower:get_pos()
|
||||
if not minetest.is_valid_pos(playerpos) then
|
||||
return
|
||||
end
|
||||
local obj = minetest.item_throw("mobs:chicken_egg", thrower, 19, -3, mobs_animal and mobs_animal.egg_impact)
|
||||
if obj then
|
||||
obj:set_properties({
|
||||
visual = "sprite",
|
||||
visual_size = {x = 0.5, y = 0.5},
|
||||
textures = {"mobs_chicken_egg.png"}
|
||||
})
|
||||
minetest.sound_play("throwing_sound", {
|
||||
pos = playerpos,
|
||||
gain = 0.7,
|
||||
max_hear_distance = 10
|
||||
})
|
||||
if not mobs.is_creative(thrower) or
|
||||
not minetest.is_singleplayer() then
|
||||
itemstack:take_item()
|
||||
end
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
|
||||
minetest.register_craftitem("mobs:chicken_egg", {
|
||||
description = S"Egg",
|
||||
inventory_image = "mobs_chicken_egg.png",
|
||||
visual_scale = 0.7,
|
||||
groups = {food = 1},
|
||||
on_use = chicken_egg_shoot
|
||||
})
|
||||
|
||||
minetest.register_alias("mobs:egg", "air")
|
||||
|
||||
-- fried egg
|
||||
minetest.register_craftitem("mobs:chicken_egg_fried", {
|
||||
description = S"Fried Egg",
|
||||
inventory_image = "mobs_chicken_egg_fried.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {flammable = 2, food = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
recipe = "mobs:chicken_egg",
|
||||
output = "mobs:chicken_egg_fried"
|
||||
})
|
||||
|
||||
-- raw chicken
|
||||
minetest.register_craftitem("mobs:chicken_raw", {
|
||||
description = S"Raw Chicken",
|
||||
inventory_image = "mobs_chicken_raw.png",
|
||||
on_use = minetest.item_eat(2, nil, -3),
|
||||
groups = {food_meat_raw = 1, food_chicken_raw = 1, flammable = 2, food = 1}
|
||||
})
|
||||
|
||||
-- cooked chicken
|
||||
minetest.register_craftitem("mobs:chicken_cooked", {
|
||||
description = S"Cooked Chicken",
|
||||
inventory_image = "mobs_chicken_cooked.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
groups = {food_meat = 1, food_chicken = 1, flammable = 2, food = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
recipe = "mobs:chicken_raw",
|
||||
output = "mobs:chicken_cooked"
|
||||
})
|
||||
|
||||
-- cheese wedge
|
||||
minetest.register_craftitem("mobs:cheese", {
|
||||
description = S"Cheese",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 636 B |
Binary file not shown.
Before Width: | Height: | Size: 333 B |
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 636 B |
Loading…
x
Reference in New Issue
Block a user