Update 'mods/mobs/crafts.lua'

This commit is contained in:
thunderdog1138 2020-08-06 18:56:30 +00:00
parent b7d428edd5
commit c5f7630f79
1 changed files with 22 additions and 22 deletions

View File

@ -4,7 +4,7 @@ local S = mobs.intllib
-- name tag
minetest.register_craftitem("mobs:nametag", {
description = S("Name Tag"),
inventory_image = "mobs_nametag.png",
inventory_image = "nametag.png",
groups = {flammable = 2}
})
@ -19,22 +19,22 @@ end
-- leather
minetest.register_craftitem("mobs:leather", {
description = S("Leather"),
inventory_image = "mobs_leather.png",
inventory_image = "leather.png",
groups = {flammable = 2}
})
-- raw meat
minetest.register_craftitem("mobs:meat_raw", {
description = S("Raw Meat"),
inventory_image = "mobs_meat_raw.png",
minetest.register_craftitem("mobs:bantha_meat_raw", {
description = S("Raw Bantha Meat"),
inventory_image = "bantha_meat_raw.png",
on_use = minetest.item_eat(3),
groups = {food_meat_raw = 1, flammable = 2}
})
-- cooked meat
minetest.register_craftitem("mobs:meat", {
description = S("Meat"),
inventory_image = "mobs_meat.png",
minetest.register_craftitem("mobs:bantha_meat", {
description = S("Bantha Meat"),
inventory_image = "bantha_meat.png",
on_use = minetest.item_eat(8),
groups = {food_meat = 1, flammable = 2}
})
@ -49,7 +49,7 @@ minetest.register_craft({
-- lasso
minetest.register_tool("mobs:lasso", {
description = S("Lasso (right-click animal to put in inventory)"),
inventory_image = "mobs_magic_lasso.png",
inventory_image = "lasso.png",
groups = {flammable = 2}
})
@ -57,9 +57,9 @@ if minetest.get_modpath("farming") then
minetest.register_craft({
output = "mobs:lasso",
recipe = {
{"farming:string", "farming:string", "farming:string"},
{"farming:string", "", "farming:string"},
{"", "default:diamond", ""},
{"farming:string", "", "farming:string"}
{"farming:string", "farming:string", "farming:string"}
}
})
end
@ -69,7 +69,7 @@ minetest.register_alias("mobs:magic_lasso", "mobs:lasso")
-- net
minetest.register_tool("mobs:net", {
description = S("Net (right-click animal to put in inventory)"),
inventory_image = "mobs_net.png",
inventory_image = "net.png",
groups = {flammable = 2}
})
@ -86,15 +86,15 @@ end
-- shears (right click to shear animal)
minetest.register_tool("mobs:shears", {
description = S("Steel Shears (right-click to shear)"),
inventory_image = "mobs_shears.png",
description = S("Shears (right-click to shear)"),
inventory_image = "shears.png",
groups = {flammable = 2}
})
minetest.register_craft({
output = "mobs:shears",
recipe = {
{"", "default:steel_ingot", ""},
{"", "default:durasteel_ingot", ""},
{"", "group:stick", "default:steel_ingot"}
}
})
@ -102,7 +102,7 @@ minetest.register_craft({
-- protection rune
minetest.register_craftitem("mobs:protector", {
description = S("Mob Protection Rune"),
inventory_image = "mobs_protector.png",
inventory_image = "protector.png",
groups = {flammable = 2}
})
@ -118,7 +118,7 @@ minetest.register_craft({
-- saddle
minetest.register_craftitem("mobs:saddle", {
description = S("Saddle"),
inventory_image = "mobs_saddle.png",
inventory_image = "saddle.png",
groups = {flammable = 2}
})
@ -126,8 +126,8 @@ minetest.register_craft({
output = "mobs:saddle",
recipe = {
{"mobs:leather", "mobs:leather", "mobs:leather"},
{"mobs:leather", "default:steel_ingot", "mobs:leather"},
{"mobs:leather", "default:steel_ingot", "mobs:leather"}
{"mobs:leather", "default:durasteel_ingot", "mobs:leather"},
{"mobs:leather", "default:durasteel_ingot", "mobs:leather"}
}
})
@ -138,7 +138,7 @@ if default.register_fence then
-- mob fence (looks like normal fence but collision is 2 high)
default.register_fence("mobs:fence_wood", {
description = S("Mob Fence"),
texture = "default_wood.png",
texture = "jogan_wood.png",
material = "default:fence_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(),
@ -154,7 +154,7 @@ default.register_fence("mobs:fence_wood", {
minetest.register_node("mobs:fence_top", {
description = S("Mob Fence Top"),
drawtype = "nodebox",
tiles = {"default_wood.png"},
tiles = {"jogan_wood.png"},
paramtype = "light",
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
@ -235,7 +235,7 @@ local tex_obj
minetest.register_tool(":mobs:mob_reset_stick", {
description = S("Mob Reset Stick"),
inventory_image = "default_stick.png^[colorize:#ff000050",
inventory_image = "stick.png^[colorize:#ff000050",
stack_max = 1,
groups = {not_in_creative_inventory = 1},