forked from LizzyFleckenstein03/Memeclone
Remove redundant translatability stuff in mobs_mc
This commit is contained in:
parent
04c2da63ad
commit
9ef6176958
|
@ -5,6 +5,9 @@
|
||||||
|
|
||||||
--THIS IS THE MASTER ITEM LIST TO USE WITH DEFAULT
|
--THIS IS THE MASTER ITEM LIST TO USE WITH DEFAULT
|
||||||
|
|
||||||
|
-- NOTE: Most strings intentionally not marked for translation, other mods already have these items.
|
||||||
|
-- TODO: Remove this file eventually, most items are already outsourced in other mods.
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_mc")
|
local S = minetest.get_translator("mobs_mc")
|
||||||
|
|
||||||
local c = mobs_mc.is_item_variable_overridden
|
local c = mobs_mc.is_item_variable_overridden
|
||||||
|
@ -12,8 +15,8 @@ local c = mobs_mc.is_item_variable_overridden
|
||||||
-- Blaze
|
-- Blaze
|
||||||
if c("blaze_rod") then
|
if c("blaze_rod") then
|
||||||
minetest.register_craftitem("mobs_mc:blaze_rod", {
|
minetest.register_craftitem("mobs_mc:blaze_rod", {
|
||||||
description = S("Blaze Rod"),
|
description = "Blaze Rod",
|
||||||
_doc_items_longdesc = S("This is a crafting component dropped from dead blazes."),
|
_doc_items_longdesc = "This is a crafting component dropped from dead blazes.",
|
||||||
wield_image = "mcl_mobitems_blaze_rod.png",
|
wield_image = "mcl_mobitems_blaze_rod.png",
|
||||||
inventory_image = "mcl_mobitems_blaze_rod.png",
|
inventory_image = "mcl_mobitems_blaze_rod.png",
|
||||||
})
|
})
|
||||||
|
@ -39,8 +42,8 @@ end
|
||||||
|
|
||||||
if c("blaze_powder") then
|
if c("blaze_powder") then
|
||||||
minetest.register_craftitem("mobs_mc:blaze_powder", {
|
minetest.register_craftitem("mobs_mc:blaze_powder", {
|
||||||
description = S("Blaze Powder"),
|
description = "Blaze Powder",
|
||||||
_doc_items_longdesc = S("This item is mainly used for brewing potions and crafting."),
|
_doc_items_longdesc = "This item is mainly used for brewing potions and crafting.",
|
||||||
wield_image = "mcl_mobitems_blaze_powder.png",
|
wield_image = "mcl_mobitems_blaze_powder.png",
|
||||||
inventory_image = "mcl_mobitems_blaze_powder.png",
|
inventory_image = "mcl_mobitems_blaze_powder.png",
|
||||||
})
|
})
|
||||||
|
@ -56,8 +59,8 @@ end
|
||||||
-- Chicken
|
-- Chicken
|
||||||
if c("chicken_raw") then
|
if c("chicken_raw") then
|
||||||
minetest.register_craftitem("mobs_mc:chicken_raw", {
|
minetest.register_craftitem("mobs_mc:chicken_raw", {
|
||||||
description = S("Raw Chicken"),
|
description = "Raw Chicken",
|
||||||
_doc_items_longdesc = S("Raw chicken is a food item and can be eaten safely. Cooking it will increase its nutritional value."),
|
_doc_items_longdesc = "Raw chicken is a food item and can be eaten safely. Cooking it will increase its nutritional value.",
|
||||||
inventory_image = "mcl_mobitems_chicken_raw.png",
|
inventory_image = "mcl_mobitems_chicken_raw.png",
|
||||||
groups = { food = 2, eatable = 2 },
|
groups = { food = 2, eatable = 2 },
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
|
@ -66,8 +69,8 @@ end
|
||||||
|
|
||||||
if c("chicken_cooked") then
|
if c("chicken_cooked") then
|
||||||
minetest.register_craftitem("mobs_mc:chicken_cooked", {
|
minetest.register_craftitem("mobs_mc:chicken_cooked", {
|
||||||
description = S("Cooked Chicken"),
|
description = "Cooked Chicken",
|
||||||
_doc_items_longdesc = S("A cooked chicken is a healthy food item which can be eaten."),
|
_doc_items_longdesc = "A cooked chicken is a healthy food item which can be eaten.",
|
||||||
inventory_image = "mcl_mobitems_chicken_cooked.png",
|
inventory_image = "mcl_mobitems_chicken_cooked.png",
|
||||||
groups = { food = 2, eatable = 6 },
|
groups = { food = 2, eatable = 6 },
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
|
@ -85,8 +88,8 @@ end
|
||||||
|
|
||||||
if c("feather") then
|
if c("feather") then
|
||||||
minetest.register_craftitem("mobs_mc:feather", {
|
minetest.register_craftitem("mobs_mc:feather", {
|
||||||
description = S("Feather"),
|
description = "Feather",
|
||||||
_doc_items_longdesc = S("Feathers are used in crafting and are dropped from chickens."),
|
_doc_items_longdesc = "Feathers are used in crafting and are dropped from chickens.",
|
||||||
inventory_image = "mcl_mobitems_feather.png",
|
inventory_image = "mcl_mobitems_feather.png",
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -94,8 +97,8 @@ end
|
||||||
-- Cow and mooshroom
|
-- Cow and mooshroom
|
||||||
if c("beef_raw") then
|
if c("beef_raw") then
|
||||||
minetest.register_craftitem("mobs_mc:beef_raw", {
|
minetest.register_craftitem("mobs_mc:beef_raw", {
|
||||||
description = S("Raw Beef"),
|
description = "Raw Beef",
|
||||||
_doc_items_longdesc = S("Raw beef is the flesh from cows and can be eaten safely. Cooking it will greatly increase its nutritional value."),
|
_doc_items_longdesc = "Raw beef is the flesh from cows and can be eaten safely. Cooking it will greatly increase its nutritional value.",
|
||||||
inventory_image = "mcl_mobitems_beef_raw.png",
|
inventory_image = "mcl_mobitems_beef_raw.png",
|
||||||
groups = { food = 2, eatable = 3 },
|
groups = { food = 2, eatable = 3 },
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
|
@ -104,8 +107,8 @@ end
|
||||||
|
|
||||||
if c("beef_cooked") then
|
if c("beef_cooked") then
|
||||||
minetest.register_craftitem("mobs_mc:beef_cooked", {
|
minetest.register_craftitem("mobs_mc:beef_cooked", {
|
||||||
description = S("Steak"),
|
description = "Steak",
|
||||||
_doc_items_longdesc = S("Steak is cooked beef from cows and can be eaten."),
|
_doc_items_longdesc = "Steak is cooked beef from cows and can be eaten.",
|
||||||
inventory_image = "mcl_mobitems_beef_cooked.png",
|
inventory_image = "mcl_mobitems_beef_cooked.png",
|
||||||
groups = { food = 2, eatable = 8 },
|
groups = { food = 2, eatable = 8 },
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
|
@ -125,8 +128,8 @@ end
|
||||||
if c("milk") then
|
if c("milk") then
|
||||||
-- milk
|
-- milk
|
||||||
minetest.register_craftitem("mobs_mc:milk_bucket", {
|
minetest.register_craftitem("mobs_mc:milk_bucket", {
|
||||||
description = S("Milk"),
|
description = "Milk",
|
||||||
_doc_items_longdesc = S("Milk is a food item obtained by using a bucket on a cow."),
|
_doc_items_longdesc = "Milk is a food item obtained by using a bucket on a cow.",
|
||||||
inventory_image = "mobs_bucket_milk.png",
|
inventory_image = "mobs_bucket_milk.png",
|
||||||
groups = { food = 3, eatable = 1 },
|
groups = { food = 3, eatable = 1 },
|
||||||
on_use = minetest.item_eat(1, "bucket:bucket_empty"),
|
on_use = minetest.item_eat(1, "bucket:bucket_empty"),
|
||||||
|
@ -136,8 +139,8 @@ end
|
||||||
|
|
||||||
if c("bowl") then
|
if c("bowl") then
|
||||||
minetest.register_craftitem("mobs_mc:bowl", {
|
minetest.register_craftitem("mobs_mc:bowl", {
|
||||||
description = S("Bowl"),
|
description = "Bowl",
|
||||||
_doc_items_longdesc = S("Bowls are mainly used to hold tasty soups."),
|
_doc_items_longdesc = "Bowls are mainly used to hold tasty soups.",
|
||||||
inventory_image = "mcl_core_bowl.png",
|
inventory_image = "mcl_core_bowl.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -158,8 +161,8 @@ end
|
||||||
|
|
||||||
if c("mushroom_stew") then
|
if c("mushroom_stew") then
|
||||||
minetest.register_craftitem("mobs_mc:mushroom_stew", {
|
minetest.register_craftitem("mobs_mc:mushroom_stew", {
|
||||||
description = S("Mushroom Stew"),
|
description = "Mushroom Stew",
|
||||||
_doc_items_longdesc = S("Mushroom stew is a healthy soup."),
|
_doc_items_longdesc = "Mushroom stew is a healthy soup.",
|
||||||
inventory_image = "farming_mushroom_stew.png",
|
inventory_image = "farming_mushroom_stew.png",
|
||||||
groups = { food = 3, eatable = 6 },
|
groups = { food = 3, eatable = 6 },
|
||||||
on_use = minetest.item_eat(6, "mobs_mc:bowl"),
|
on_use = minetest.item_eat(6, "mobs_mc:bowl"),
|
||||||
|
@ -177,7 +180,7 @@ if c("dragon_egg") then
|
||||||
|
|
||||||
--ender dragon
|
--ender dragon
|
||||||
minetest.register_node("mobs_mc:dragon_egg", {
|
minetest.register_node("mobs_mc:dragon_egg", {
|
||||||
description = S("Dragon Egg"),
|
description = "Dragon Egg",
|
||||||
tiles = {
|
tiles = {
|
||||||
"mcl_end_dragon_egg.png",
|
"mcl_end_dragon_egg.png",
|
||||||
"mcl_end_dragon_egg.png",
|
"mcl_end_dragon_egg.png",
|
||||||
|
@ -221,7 +224,7 @@ end
|
||||||
-- Enderman
|
-- Enderman
|
||||||
if c("ender_eye") then
|
if c("ender_eye") then
|
||||||
minetest.register_craftitem("mobs_mc:ender_eye", {
|
minetest.register_craftitem("mobs_mc:ender_eye", {
|
||||||
description = S("Eye of Ender"),
|
description = "Eye of Ender",
|
||||||
_doc_items_longdesc = longdesc_craftitem,
|
_doc_items_longdesc = longdesc_craftitem,
|
||||||
inventory_image = "mcl_end_ender_eye.png",
|
inventory_image = "mcl_end_ender_eye.png",
|
||||||
groups = { craftitem = 1 },
|
groups = { craftitem = 1 },
|
||||||
|
@ -239,8 +242,8 @@ end
|
||||||
-- Ghast
|
-- Ghast
|
||||||
if c("ghast_tear") then
|
if c("ghast_tear") then
|
||||||
minetest.register_craftitem("mobs_mc:ghast_tear", {
|
minetest.register_craftitem("mobs_mc:ghast_tear", {
|
||||||
description = S("Ghast Tear"),
|
description = "Ghast Tear",
|
||||||
_doc_items_longdesc = S("A ghast tear is an item used in potion brewing. It is dropped from dead ghasts."),
|
_doc_items_longdesc = "A ghast tear is an item used in potion brewing. It is dropped from dead ghasts.",
|
||||||
wield_image = "mcl_mobitems_ghast_tear.png",
|
wield_image = "mcl_mobitems_ghast_tear.png",
|
||||||
inventory_image = "mcl_mobitems_ghast_tear.png",
|
inventory_image = "mcl_mobitems_ghast_tear.png",
|
||||||
groups = { brewitem = 1 },
|
groups = { brewitem = 1 },
|
||||||
|
@ -251,9 +254,9 @@ end
|
||||||
if c("saddle") then
|
if c("saddle") then
|
||||||
-- Overwrite the saddle from Mobs Redo
|
-- Overwrite the saddle from Mobs Redo
|
||||||
minetest.register_craftitem(":mobs:saddle", {
|
minetest.register_craftitem(":mobs:saddle", {
|
||||||
description = S("Saddle"),
|
description = "Saddle",
|
||||||
_doc_items_longdesc = S("Saddles can be put on horses, donkeys, mules and pigs in order to mount them."),
|
_doc_items_longdesc = "Saddles can be put on horses, donkeys, mules and pigs in order to mount them.",
|
||||||
_doc_items_usagehelp = S("Rightclick an animal while holding a saddle to put on the saddle. You can now mount the animal by rightclicking it again."),
|
_doc_items_usagehelp = "Rightclick an animal while holding a saddle to put on the saddle. You can now mount the animal by rightclicking it again.",
|
||||||
inventory_image = "mcl_mobitems_saddle.png",
|
inventory_image = "mcl_mobitems_saddle.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
})
|
})
|
||||||
|
@ -271,12 +274,12 @@ if c("saddle") and c("lether") and c("string") and c("iron_ingot") then
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Horse Armor
|
-- Horse Armor
|
||||||
local horse_armor_use = S("Rightclick a horse to put on the horse armor. Donkeys and mules can't wear horse armor.")
|
local horse_armor_use = "Rightclick a horse to put on the horse armor. Donkeys and mules can't wear horse armor."
|
||||||
-- TODO: Balance the horse armor strength, compare with MC armor strength
|
-- TODO: Balance the horse armor strength, compare with MC armor strength
|
||||||
if c("iron_horse_armor") then
|
if c("iron_horse_armor") then
|
||||||
minetest.register_craftitem("mobs_mc:iron_horse_armor", {
|
minetest.register_craftitem("mobs_mc:iron_horse_armor", {
|
||||||
description = S("Iron Horse Armor"),
|
description = "Iron Horse Armor",
|
||||||
_doc_items_longdesc = S("Iron horse armor can be worn by horses to increase their protection from harm a bit."),
|
_doc_items_longdesc = "Iron horse armor can be worn by horses to increase their protection from harm a bit.",
|
||||||
_doc_items_usagehelp = horse_armor_use,
|
_doc_items_usagehelp = horse_armor_use,
|
||||||
inventory_image = "mobs_mc_iron_horse_armor.png",
|
inventory_image = "mobs_mc_iron_horse_armor.png",
|
||||||
_horse_overlay_image = "mobs_mc_horse_armor_iron.png",
|
_horse_overlay_image = "mobs_mc_horse_armor_iron.png",
|
||||||
|
@ -286,8 +289,8 @@ if c("iron_horse_armor") then
|
||||||
end
|
end
|
||||||
if c("gold_horse_armor") then
|
if c("gold_horse_armor") then
|
||||||
minetest.register_craftitem("mobs_mc:gold_horse_armor", {
|
minetest.register_craftitem("mobs_mc:gold_horse_armor", {
|
||||||
description = S("Golden Horse Armor"),
|
description = "Golden Horse Armor",
|
||||||
_doc_items_longdesc = S("Golden horse armor can be worn by horses to increase their protection from harm."),
|
_doc_items_longdesc = "Golden horse armor can be worn by horses to increase their protection from harm.",
|
||||||
_doc_items_usagehelp = horse_armor_use,
|
_doc_items_usagehelp = horse_armor_use,
|
||||||
inventory_image = "mobs_mc_gold_horse_armor.png",
|
inventory_image = "mobs_mc_gold_horse_armor.png",
|
||||||
_horse_overlay_image = "mobs_mc_horse_armor_gold.png",
|
_horse_overlay_image = "mobs_mc_horse_armor_gold.png",
|
||||||
|
@ -297,8 +300,8 @@ if c("gold_horse_armor") then
|
||||||
end
|
end
|
||||||
if c("diamond_horse_armor") then
|
if c("diamond_horse_armor") then
|
||||||
minetest.register_craftitem("mobs_mc:diamond_horse_armor", {
|
minetest.register_craftitem("mobs_mc:diamond_horse_armor", {
|
||||||
description = S("Diamond Horse Armor"),
|
description = "Diamond Horse Armor",
|
||||||
_doc_items_longdesc = S("Diamond horse armor can be worn by horses to greatly increase their protection from harm."),
|
_doc_items_longdesc = "Diamond horse armor can be worn by horses to greatly increase their protection from harm.",
|
||||||
_doc_items_usagehelp = horse_armor_use,
|
_doc_items_usagehelp = horse_armor_use,
|
||||||
inventory_image = "mobs_mc_diamond_horse_armor.png",
|
inventory_image = "mobs_mc_diamond_horse_armor.png",
|
||||||
_horse_overlay_image = "mobs_mc_horse_armor_diamond.png",
|
_horse_overlay_image = "mobs_mc_horse_armor_diamond.png",
|
||||||
|
@ -310,8 +313,8 @@ end
|
||||||
-- Pig
|
-- Pig
|
||||||
if c("porkchop_raw") then
|
if c("porkchop_raw") then
|
||||||
minetest.register_craftitem("mobs_mc:porkchop_raw", {
|
minetest.register_craftitem("mobs_mc:porkchop_raw", {
|
||||||
description = S("Raw Porkchop"),
|
description = "Raw Porkchop",
|
||||||
_doc_items_longdesc = S("A raw porkchop is the flesh from a pig and can be eaten safely. Cooking it will greatly increase its nutritional value."),
|
_doc_items_longdesc = "A raw porkchop is the flesh from a pig and can be eaten safely. Cooking it will greatly increase its nutritional value.",
|
||||||
inventory_image = "mcl_mobitems_porkchop_raw.png",
|
inventory_image = "mcl_mobitems_porkchop_raw.png",
|
||||||
groups = { food = 2, eatable = 3 },
|
groups = { food = 2, eatable = 3 },
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
|
@ -320,7 +323,7 @@ end
|
||||||
|
|
||||||
if c("porkchop_cooked") then
|
if c("porkchop_cooked") then
|
||||||
minetest.register_craftitem("mobs_mc:porkchop_cooked", {
|
minetest.register_craftitem("mobs_mc:porkchop_cooked", {
|
||||||
description = S("Cooked Porkchop"),
|
description = "Cooked Porkchop",
|
||||||
_doc_items_longdesc = "Cooked porkchop is the cooked flesh of a pig and is used as food.",
|
_doc_items_longdesc = "Cooked porkchop is the cooked flesh of a pig and is used as food.",
|
||||||
inventory_image = "mcl_mobitems_porkchop_cooked.png",
|
inventory_image = "mcl_mobitems_porkchop_cooked.png",
|
||||||
groups = { food = 2, eatable = 8 },
|
groups = { food = 2, eatable = 8 },
|
||||||
|
@ -339,9 +342,9 @@ end
|
||||||
|
|
||||||
if c("carrot_on_a_stick") then
|
if c("carrot_on_a_stick") then
|
||||||
minetest.register_tool("mobs_mc:carrot_on_a_stick", {
|
minetest.register_tool("mobs_mc:carrot_on_a_stick", {
|
||||||
description = S("Carrot on a Stick"),
|
description = "Carrot on a Stick",
|
||||||
_doc_items_longdesc = S("A carrot on a stick can be used on saddled pigs to ride them. Pigs will also follow anyone who holds a carrot on a stick near them."),
|
_doc_items_longdesc = "A carrot on a stick can be used on saddled pigs to ride them. Pigs will also follow anyone who holds a carrot on a stick near them.",
|
||||||
_doc_items_usagehelp = S("Rightclick a saddled pig with the carrot on a stick to mount it. You can now ride it like a horse."),
|
_doc_items_usagehelp = "Rightclick a saddled pig with the carrot on a stick to mount it. You can now ride it like a horse.",
|
||||||
wield_image = "mcl_mobitems_carrot_on_a_stick.png",
|
wield_image = "mcl_mobitems_carrot_on_a_stick.png",
|
||||||
inventory_image = "mcl_mobitems_carrot_on_a_stick.png",
|
inventory_image = "mcl_mobitems_carrot_on_a_stick.png",
|
||||||
sounds = { breaks = "default_tool_breaks" },
|
sounds = { breaks = "default_tool_breaks" },
|
||||||
|
@ -381,8 +384,8 @@ end
|
||||||
-- Rabbit
|
-- Rabbit
|
||||||
if c("rabbit_raw") then
|
if c("rabbit_raw") then
|
||||||
minetest.register_craftitem("mobs_mc:rabbit_raw", {
|
minetest.register_craftitem("mobs_mc:rabbit_raw", {
|
||||||
description = S("Raw Rabbit"),
|
description = "Raw Rabbit",
|
||||||
_doc_items_longdesc = S("Raw rabbit is a food item from a dead rabbit. It can be eaten safely. Cooking it will increase its nutritional value."),
|
_doc_items_longdesc = "Raw rabbit is a food item from a dead rabbit. It can be eaten safely. Cooking it will increase its nutritional value.",
|
||||||
inventory_image = "mcl_mobitems_rabbit_raw.png",
|
inventory_image = "mcl_mobitems_rabbit_raw.png",
|
||||||
groups = { food = 2, eatable = 3 },
|
groups = { food = 2, eatable = 3 },
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
|
@ -391,8 +394,8 @@ end
|
||||||
|
|
||||||
if c("rabbit_cooked") then
|
if c("rabbit_cooked") then
|
||||||
minetest.register_craftitem("mobs_mc:rabbit_cooked", {
|
minetest.register_craftitem("mobs_mc:rabbit_cooked", {
|
||||||
description = S("Cooked Rabbit"),
|
description = "Cooked Rabbit",
|
||||||
_doc_items_longdesc = S("This is a food item which can be eaten."),
|
_doc_items_longdesc = "This is a food item which can be eaten.",
|
||||||
inventory_image = "mcl_mobitems_rabbit_cooked.png",
|
inventory_image = "mcl_mobitems_rabbit_cooked.png",
|
||||||
groups = { food = 2, eatable = 5 },
|
groups = { food = 2, eatable = 5 },
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
|
@ -410,8 +413,8 @@ end
|
||||||
|
|
||||||
if c("rabbit_hide") then
|
if c("rabbit_hide") then
|
||||||
minetest.register_craftitem("mobs_mc:rabbit_hide", {
|
minetest.register_craftitem("mobs_mc:rabbit_hide", {
|
||||||
description = S("Rabbit Hide"),
|
description = "Rabbit Hide",
|
||||||
_doc_items_longdesc = S("Rabbit hide is used to create leather."),
|
_doc_items_longdesc = "Rabbit hide is used to create leather.",
|
||||||
inventory_image = "mcl_mobitems_rabbit_hide.png"
|
inventory_image = "mcl_mobitems_rabbit_hide.png"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -428,8 +431,8 @@ end
|
||||||
|
|
||||||
if c("rabbit_foot") then
|
if c("rabbit_foot") then
|
||||||
minetest.register_craftitem("mobs_mc:rabbit_foot", {
|
minetest.register_craftitem("mobs_mc:rabbit_foot", {
|
||||||
description = S("Rabbit's Foot"),
|
description = "Rabbit's Foot",
|
||||||
_doc_items_longdesc = S("This item is used in brewing."),
|
_doc_items_longdesc = "This item is used in brewing.",
|
||||||
inventory_image = "mcl_mobitems_rabbit_foot.png"
|
inventory_image = "mcl_mobitems_rabbit_foot.png"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -437,8 +440,8 @@ end
|
||||||
-- Sheep
|
-- Sheep
|
||||||
if c("mutton_raw") then
|
if c("mutton_raw") then
|
||||||
minetest.register_craftitem("mobs_mc:mutton_raw", {
|
minetest.register_craftitem("mobs_mc:mutton_raw", {
|
||||||
description = S("Raw Mutton"),
|
description = "Raw Mutton",
|
||||||
_doc_items_longdesc = S("Raw mutton is the flesh from a sheep and can be eaten safely. Cooking it will greatly increase its nutritional value."),
|
_doc_items_longdesc = "Raw mutton is the flesh from a sheep and can be eaten safely. Cooking it will greatly increase its nutritional value.",
|
||||||
inventory_image = "mcl_mobitems_mutton_raw.png",
|
inventory_image = "mcl_mobitems_mutton_raw.png",
|
||||||
groups = { food = 2, eatable = 4 },
|
groups = { food = 2, eatable = 4 },
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
|
@ -447,8 +450,8 @@ end
|
||||||
|
|
||||||
if c("mutton_cooked") then
|
if c("mutton_cooked") then
|
||||||
minetest.register_craftitem("mobs_mc:mutton_cooked", {
|
minetest.register_craftitem("mobs_mc:mutton_cooked", {
|
||||||
description = S("Cooked Mutton"),
|
description = "Cooked Mutton",
|
||||||
_doc_items_longdesc = S("Cooked mutton is the cooked flesh from a sheep and is used as food."),
|
_doc_items_longdesc = "Cooked mutton is the cooked flesh from a sheep and is used as food.",
|
||||||
inventory_image = "mcl_mobitems_mutton_cooked.png",
|
inventory_image = "mcl_mobitems_mutton_cooked.png",
|
||||||
groups = { food = 2, eatable = 8 },
|
groups = { food = 2, eatable = 8 },
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
|
@ -467,8 +470,8 @@ end
|
||||||
-- Shulker
|
-- Shulker
|
||||||
if c("shulker_shell") then
|
if c("shulker_shell") then
|
||||||
minetest.register_craftitem("mobs_mc:shulker_shell", {
|
minetest.register_craftitem("mobs_mc:shulker_shell", {
|
||||||
description = S("Shulker Shell"),
|
description = "Shulker Shell",
|
||||||
_doc_items_longdesc = S("Shulker shells are used in crafting. They are dropped from dead shulkers."),
|
_doc_items_longdesc = "Shulker shells are used in crafting. They are dropped from dead shulkers.",
|
||||||
inventory_image = "mcl_mobitems_shulker_shell.png",
|
inventory_image = "mcl_mobitems_shulker_shell.png",
|
||||||
groups = { craftitem = 1 },
|
groups = { craftitem = 1 },
|
||||||
})
|
})
|
||||||
|
@ -477,8 +480,8 @@ end
|
||||||
-- Magma cube
|
-- Magma cube
|
||||||
if c("magma_cream") then
|
if c("magma_cream") then
|
||||||
minetest.register_craftitem("mobs_mc:magma_cream", {
|
minetest.register_craftitem("mobs_mc:magma_cream", {
|
||||||
description = S("Magma Cream"),
|
description = "Magma Cream",
|
||||||
_doc_items_longdesc = S("Magma cream is a crafting component."),
|
_doc_items_longdesc = "Magma cream is a crafting component.",
|
||||||
wield_image = "mcl_mobitems_magma_cream.png",
|
wield_image = "mcl_mobitems_magma_cream.png",
|
||||||
inventory_image = "mcl_mobitems_magma_cream.png",
|
inventory_image = "mcl_mobitems_magma_cream.png",
|
||||||
groups = { brewitem = 1 },
|
groups = { brewitem = 1 },
|
||||||
|
@ -488,8 +491,8 @@ end
|
||||||
-- Slime
|
-- Slime
|
||||||
if c("slimeball") then
|
if c("slimeball") then
|
||||||
minetest.register_craftitem("mobs_mc:slimeball", {
|
minetest.register_craftitem("mobs_mc:slimeball", {
|
||||||
description = S("Slimeball"),
|
description = "Slimeball",
|
||||||
_doc_items_longdesc = S("Slimeballs are used in crafting. They are dropped from slimes."),
|
_doc_items_longdesc = "Slimeballs are used in crafting. They are dropped from slimes.",
|
||||||
inventory_image = "mcl_mobitems_slimeball.png"
|
inventory_image = "mcl_mobitems_slimeball.png"
|
||||||
})
|
})
|
||||||
if minetest.get_modpath("mesecons_materials") then
|
if minetest.get_modpath("mesecons_materials") then
|
||||||
|
@ -503,8 +506,8 @@ end
|
||||||
-- Spider
|
-- Spider
|
||||||
if c("spider_eye") then
|
if c("spider_eye") then
|
||||||
minetest.register_craftitem("mobs_mc:spider_eye", {
|
minetest.register_craftitem("mobs_mc:spider_eye", {
|
||||||
description = S("Spider Eye"),
|
description = "Spider Eye",
|
||||||
_doc_items_longdesc = S("Spider eyes are used mainly in crafting and brewing. Spider eyes can be eaten, but they poison you and reduce your health by 2 hit points."),
|
_doc_items_longdesc = "Spider eyes are used mainly in crafting and brewing. Spider eyes can be eaten, but they poison you and reduce your health by 2 hit points.",
|
||||||
inventory_image = "mcl_mobitems_spider_eye.png",
|
inventory_image = "mcl_mobitems_spider_eye.png",
|
||||||
wield_image = "mcl_mobitems_spider_eye.png",
|
wield_image = "mcl_mobitems_spider_eye.png",
|
||||||
-- Simplified poisonous food
|
-- Simplified poisonous food
|
||||||
|
@ -589,8 +592,8 @@ end
|
||||||
-- Rotten flesh
|
-- Rotten flesh
|
||||||
if c("rotten_flesh") then
|
if c("rotten_flesh") then
|
||||||
minetest.register_craftitem("mobs_mc:rotten_flesh", {
|
minetest.register_craftitem("mobs_mc:rotten_flesh", {
|
||||||
description = S("Rotten Flesh"),
|
description = "Rotten Flesh",
|
||||||
_doc_items_longdesc = S("Yuck! This piece of flesh clearly has seen better days. Eating it will only poison you and reduces your health by 4 hit points. But tamed wolves can eat it just fine."),
|
_doc_items_longdesc = "Yuck! This piece of flesh clearly has seen better days. Eating it will only poison you and reduces your health by 4 hit points. But tamed wolves can eat it just fine.",
|
||||||
inventory_image = "mcl_mobitems_rotten_flesh.png",
|
inventory_image = "mcl_mobitems_rotten_flesh.png",
|
||||||
-- Simplified poisonous food
|
-- Simplified poisonous food
|
||||||
groups = { food = 2, eatable = -4 },
|
groups = { food = 2, eatable = -4 },
|
||||||
|
@ -601,8 +604,8 @@ end
|
||||||
-- Misc.
|
-- Misc.
|
||||||
if c("nether_star") then
|
if c("nether_star") then
|
||||||
minetest.register_craftitem("mobs_mc:nether_star", {
|
minetest.register_craftitem("mobs_mc:nether_star", {
|
||||||
description = S("Nether Star"),
|
description = "Nether Star",
|
||||||
_doc_items_longdesc = S("A nether star is a crafting component. It is dropped from the Wither."),
|
_doc_items_longdesc = "A nether star is a crafting component. It is dropped from the Wither.",
|
||||||
inventory_image = "mcl_mobitems_nether_star.png"
|
inventory_image = "mcl_mobitems_nether_star.png"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -630,9 +633,9 @@ end
|
||||||
|
|
||||||
if c("bone") then
|
if c("bone") then
|
||||||
minetest.register_craftitem("mobs_mc:bone", {
|
minetest.register_craftitem("mobs_mc:bone", {
|
||||||
description = S("Bone"),
|
description = "Bone",
|
||||||
_doc_items_longdesc = S("Bones can be used to tame wolves so they will protect you. They are also useful as a crafting ingredient."),
|
_doc_items_longdesc = "Bones can be used to tame wolves so they will protect you. They are also useful as a crafting ingredient.",
|
||||||
_doc_items_usagehelp = S("Hold the bone in your hand near wolves to attract them. Rightclick the wolf to give it a bone and tame it."),
|
_doc_items_usagehelp = "Hold the bone in your hand near wolves to attract them. Rightclick the wolf to give it a bone and tame it.",
|
||||||
inventory_image = "mcl_mobitems_bone.png"
|
inventory_image = "mcl_mobitems_bone.png"
|
||||||
})
|
})
|
||||||
if minetest.get_modpath("bones") then
|
if minetest.get_modpath("bones") then
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
--made for MC like Survival game
|
--made for MC like Survival game
|
||||||
--License for code WTFPL and otherwise stated in readmes
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
|
-- NOTE: Strings intentionally not marked for translation, other mods already have these items.
|
||||||
|
-- TODO: Remove this file eventually, all items here are already outsourced in other mods.
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_mc")
|
local S = minetest.get_translator("mobs_mc")
|
||||||
|
|
||||||
--maikerumines throwing code
|
--maikerumines throwing code
|
||||||
|
@ -130,9 +133,9 @@ end
|
||||||
|
|
||||||
if c("arrow") then
|
if c("arrow") then
|
||||||
minetest.register_craftitem("mobs_mc:arrow", {
|
minetest.register_craftitem("mobs_mc:arrow", {
|
||||||
description = S("Arrow"),
|
description = "Arrow",
|
||||||
_doc_items_longdesc = S("Arrows are ammunition for bows."),
|
_doc_items_longdesc = "Arrows are ammunition for bows.",
|
||||||
_doc_items_usagehelp = S("To use arrows as ammunition for a bow, put them in the inventory slot following the bow. Slots are counted left to right, top to bottom."),
|
_doc_items_usagehelp = "To use arrows as ammunition for a bow, put them in the inventory slot following the bow. Slots are counted left to right, top to bottom.",
|
||||||
inventory_image = "mcl_bows_arrow_inv.png",
|
inventory_image = "mcl_bows_arrow_inv.png",
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -150,9 +153,9 @@ end
|
||||||
|
|
||||||
if c("bow") then
|
if c("bow") then
|
||||||
minetest.register_tool("mobs_mc:bow_wood", {
|
minetest.register_tool("mobs_mc:bow_wood", {
|
||||||
description = S("Bow"),
|
description = "Bow",
|
||||||
_doc_items_longdesc = S("Bows are ranged weapons to shoot arrows at your foes."),
|
_doc_items_longdesc = "Bows are ranged weapons to shoot arrows at your foes.",
|
||||||
_doc_items_usagehelp = S("To use the bow, you first need to have at least one arrow in slot following the bow. Leftclick to shoot. Each hit deals 3 damage."),
|
_doc_items_usagehelp = "To use the bow, you first need to have at least one arrow in slot following the bow. Leftclick to shoot. Each hit deals 3 damage.",
|
||||||
inventory_image = "mcl_bows_bow.png",
|
inventory_image = "mcl_bows_bow.png",
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
|
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
|
||||||
|
@ -289,8 +292,8 @@ if c("egg") then
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("mobs_mc:egg", {
|
minetest.register_craftitem("mobs_mc:egg", {
|
||||||
description = S("Egg"),
|
description = "Egg",
|
||||||
_doc_items_longdesc = S("Eggs can be thrown and break on impact. There is a small chance that 1 or even 4 chicks will pop out"),
|
_doc_items_longdesc = "Eggs can be thrown and break on impact. There is a small chance that 1 or even 4 chicks will pop out",
|
||||||
_doc_items_usagehelp = how_to_throw,
|
_doc_items_usagehelp = how_to_throw,
|
||||||
inventory_image = "mobs_chicken_egg.png",
|
inventory_image = "mobs_chicken_egg.png",
|
||||||
on_use = mobs_shoot_egg,
|
on_use = mobs_shoot_egg,
|
||||||
|
@ -375,8 +378,8 @@ if c("snowball") then
|
||||||
|
|
||||||
-- Snowball
|
-- Snowball
|
||||||
minetest.register_craftitem("mobs_mc:snowball", {
|
minetest.register_craftitem("mobs_mc:snowball", {
|
||||||
description = S("Snowball"),
|
description = "Snowball",
|
||||||
_doc_items_longdesc = S("Snowballs can be thrown at your enemies. A snowball deals 3 damage to blazes, but is harmless to anything else."),
|
_doc_items_longdesc = "Snowballs can be thrown at your enemies. A snowball deals 3 damage to blazes, but is harmless to anything else.",
|
||||||
_doc_items_usagehelp = how_to_throw,
|
_doc_items_usagehelp = how_to_throw,
|
||||||
inventory_image = "mcl_throwing_snowball.png",
|
inventory_image = "mcl_throwing_snowball.png",
|
||||||
on_use = mobs_shoot_snowball,
|
on_use = mobs_shoot_snowball,
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
--MC Heads for minetest
|
--MC Heads for minetest
|
||||||
--maikerumine
|
--maikerumine
|
||||||
|
|
||||||
|
-- NOTE: Strings intentionally not marked for translation, other mods already have these items.
|
||||||
|
-- TODO: Remove this file eventually, all items here are already outsourced in other mods.
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_mc")
|
local S = minetest.get_translator("mobs_mc")
|
||||||
|
|
||||||
-- Heads system
|
-- Heads system
|
||||||
|
@ -53,7 +56,7 @@ local function addhead(mobname, desc, longdesc)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add heads
|
-- Add heads
|
||||||
addhead("zombie", S("Zombie Head"), S("A zombie head is a small decorative block which resembles the head of a zombie."))
|
addhead("zombie", "Zombie Head", "A zombie head is a small decorative block which resembles the head of a zombie.")
|
||||||
addhead("creeper", S("Creeper Head"), S("A creeper head is a small decorative block which resembles the head of a creeper."))
|
addhead("creeper", "Creeper Head", "A creeper head is a small decorative block which resembles the head of a creeper.")
|
||||||
addhead("skeleton", S("Skeleton Skull"), S("A skeleton skull is a small decorative block which resembles the skull of a skeleton."))
|
addhead("skeleton", "Skeleton Skull", "A skeleton skull is a small decorative block which resembles the skull of a skeleton.")
|
||||||
addhead("wither_skeleton", S("Wither Skeleton Skull"), S("A wither skeleton skull is a small decorative block which resembles the skull of a wither skeleton."))
|
addhead("wither_skeleton", "Wither Skeleton Skull", "A wither skeleton skull is a small decorative block which resembles the skull of a wither skeleton.")
|
||||||
|
|
|
@ -58,7 +58,7 @@ if minetest.get_modpath("default") and mobs_mc.create_monster_egg_nodes then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.register_node("mobs_mc:monster_egg_stone", {
|
minetest.register_node("mobs_mc:monster_egg_stone", {
|
||||||
description = S("Stone Monster Egg"),
|
description = "Stone Monster Egg",
|
||||||
tiles = {"default_stone.png"},
|
tiles = {"default_stone.png"},
|
||||||
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
||||||
drop = '',
|
drop = '',
|
||||||
|
@ -68,7 +68,7 @@ if minetest.get_modpath("default") and mobs_mc.create_monster_egg_nodes then
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mobs_mc:monster_egg_cobble", {
|
minetest.register_node("mobs_mc:monster_egg_cobble", {
|
||||||
description = S("Cobblestone Monster Egg"),
|
description = "Cobblestone Monster Egg",
|
||||||
tiles = {"default_cobble.png"},
|
tiles = {"default_cobble.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
||||||
|
@ -78,7 +78,7 @@ if minetest.get_modpath("default") and mobs_mc.create_monster_egg_nodes then
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mobs_mc:monster_egg_mossycobble", {
|
minetest.register_node("mobs_mc:monster_egg_mossycobble", {
|
||||||
description = S("Mossy Cobblestone Monster Egg"),
|
description = "Mossy Cobblestone Monster Egg",
|
||||||
tiles = {"default_mossycobble.png"},
|
tiles = {"default_mossycobble.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
||||||
|
@ -88,7 +88,7 @@ if minetest.get_modpath("default") and mobs_mc.create_monster_egg_nodes then
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mobs_mc:monster_egg_stonebrick", {
|
minetest.register_node("mobs_mc:monster_egg_stonebrick", {
|
||||||
description = S("Stone Brick Monster Egg"),
|
description = "Stone Brick Monster Egg",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
place_param2 = 0,
|
place_param2 = 0,
|
||||||
tiles = {"default_stone_brick.png"},
|
tiles = {"default_stone_brick.png"},
|
||||||
|
@ -100,7 +100,7 @@ if minetest.get_modpath("default") and mobs_mc.create_monster_egg_nodes then
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mobs_mc:monster_egg_stone_block", {
|
minetest.register_node("mobs_mc:monster_egg_stone_block", {
|
||||||
description = S("Stone Block Monster Egg"),
|
description = "Stone Block Monster Egg",
|
||||||
tiles = {"default_stone_block.png"},
|
tiles = {"default_stone_block.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
||||||
|
|
Loading…
Reference in New Issue