forked from VoxeLibre/VoxeLibre
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
|
||||
|
||||
-- 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 c = mobs_mc.is_item_variable_overridden
|
||||
|
@ -12,8 +15,8 @@ local c = mobs_mc.is_item_variable_overridden
|
|||
-- Blaze
|
||||
if c("blaze_rod") then
|
||||
minetest.register_craftitem("mobs_mc:blaze_rod", {
|
||||
description = S("Blaze Rod"),
|
||||
_doc_items_longdesc = S("This is a crafting component dropped from dead blazes."),
|
||||
description = "Blaze Rod",
|
||||
_doc_items_longdesc = "This is a crafting component dropped from dead blazes.",
|
||||
wield_image = "mcl_mobitems_blaze_rod.png",
|
||||
inventory_image = "mcl_mobitems_blaze_rod.png",
|
||||
})
|
||||
|
@ -39,8 +42,8 @@ end
|
|||
|
||||
if c("blaze_powder") then
|
||||
minetest.register_craftitem("mobs_mc:blaze_powder", {
|
||||
description = S("Blaze Powder"),
|
||||
_doc_items_longdesc = S("This item is mainly used for brewing potions and crafting."),
|
||||
description = "Blaze Powder",
|
||||
_doc_items_longdesc = "This item is mainly used for brewing potions and crafting.",
|
||||
wield_image = "mcl_mobitems_blaze_powder.png",
|
||||
inventory_image = "mcl_mobitems_blaze_powder.png",
|
||||
})
|
||||
|
@ -56,8 +59,8 @@ end
|
|||
-- Chicken
|
||||
if c("chicken_raw") then
|
||||
minetest.register_craftitem("mobs_mc:chicken_raw", {
|
||||
description = S("Raw Chicken"),
|
||||
_doc_items_longdesc = S("Raw chicken is a food item and can be eaten safely. Cooking it will increase its nutritional value."),
|
||||
description = "Raw Chicken",
|
||||
_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",
|
||||
groups = { food = 2, eatable = 2 },
|
||||
on_use = minetest.item_eat(2),
|
||||
|
@ -66,8 +69,8 @@ end
|
|||
|
||||
if c("chicken_cooked") then
|
||||
minetest.register_craftitem("mobs_mc:chicken_cooked", {
|
||||
description = S("Cooked Chicken"),
|
||||
_doc_items_longdesc = S("A cooked chicken is a healthy food item which can be eaten."),
|
||||
description = "Cooked Chicken",
|
||||
_doc_items_longdesc = "A cooked chicken is a healthy food item which can be eaten.",
|
||||
inventory_image = "mcl_mobitems_chicken_cooked.png",
|
||||
groups = { food = 2, eatable = 6 },
|
||||
on_use = minetest.item_eat(6),
|
||||
|
@ -85,8 +88,8 @@ end
|
|||
|
||||
if c("feather") then
|
||||
minetest.register_craftitem("mobs_mc:feather", {
|
||||
description = S("Feather"),
|
||||
_doc_items_longdesc = S("Feathers are used in crafting and are dropped from chickens."),
|
||||
description = "Feather",
|
||||
_doc_items_longdesc = "Feathers are used in crafting and are dropped from chickens.",
|
||||
inventory_image = "mcl_mobitems_feather.png",
|
||||
})
|
||||
end
|
||||
|
@ -94,8 +97,8 @@ end
|
|||
-- Cow and mooshroom
|
||||
if c("beef_raw") then
|
||||
minetest.register_craftitem("mobs_mc:beef_raw", {
|
||||
description = S("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."),
|
||||
description = "Raw Beef",
|
||||
_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",
|
||||
groups = { food = 2, eatable = 3 },
|
||||
on_use = minetest.item_eat(3),
|
||||
|
@ -104,8 +107,8 @@ end
|
|||
|
||||
if c("beef_cooked") then
|
||||
minetest.register_craftitem("mobs_mc:beef_cooked", {
|
||||
description = S("Steak"),
|
||||
_doc_items_longdesc = S("Steak is cooked beef from cows and can be eaten."),
|
||||
description = "Steak",
|
||||
_doc_items_longdesc = "Steak is cooked beef from cows and can be eaten.",
|
||||
inventory_image = "mcl_mobitems_beef_cooked.png",
|
||||
groups = { food = 2, eatable = 8 },
|
||||
on_use = minetest.item_eat(8),
|
||||
|
@ -125,8 +128,8 @@ end
|
|||
if c("milk") then
|
||||
-- milk
|
||||
minetest.register_craftitem("mobs_mc:milk_bucket", {
|
||||
description = S("Milk"),
|
||||
_doc_items_longdesc = S("Milk is a food item obtained by using a bucket on a cow."),
|
||||
description = "Milk",
|
||||
_doc_items_longdesc = "Milk is a food item obtained by using a bucket on a cow.",
|
||||
inventory_image = "mobs_bucket_milk.png",
|
||||
groups = { food = 3, eatable = 1 },
|
||||
on_use = minetest.item_eat(1, "bucket:bucket_empty"),
|
||||
|
@ -136,8 +139,8 @@ end
|
|||
|
||||
if c("bowl") then
|
||||
minetest.register_craftitem("mobs_mc:bowl", {
|
||||
description = S("Bowl"),
|
||||
_doc_items_longdesc = S("Bowls are mainly used to hold tasty soups."),
|
||||
description = "Bowl",
|
||||
_doc_items_longdesc = "Bowls are mainly used to hold tasty soups.",
|
||||
inventory_image = "mcl_core_bowl.png",
|
||||
})
|
||||
|
||||
|
@ -158,8 +161,8 @@ end
|
|||
|
||||
if c("mushroom_stew") then
|
||||
minetest.register_craftitem("mobs_mc:mushroom_stew", {
|
||||
description = S("Mushroom Stew"),
|
||||
_doc_items_longdesc = S("Mushroom stew is a healthy soup."),
|
||||
description = "Mushroom Stew",
|
||||
_doc_items_longdesc = "Mushroom stew is a healthy soup.",
|
||||
inventory_image = "farming_mushroom_stew.png",
|
||||
groups = { food = 3, eatable = 6 },
|
||||
on_use = minetest.item_eat(6, "mobs_mc:bowl"),
|
||||
|
@ -177,7 +180,7 @@ if c("dragon_egg") then
|
|||
|
||||
--ender dragon
|
||||
minetest.register_node("mobs_mc:dragon_egg", {
|
||||
description = S("Dragon Egg"),
|
||||
description = "Dragon Egg",
|
||||
tiles = {
|
||||
"mcl_end_dragon_egg.png",
|
||||
"mcl_end_dragon_egg.png",
|
||||
|
@ -221,7 +224,7 @@ end
|
|||
-- Enderman
|
||||
if c("ender_eye") then
|
||||
minetest.register_craftitem("mobs_mc:ender_eye", {
|
||||
description = S("Eye of Ender"),
|
||||
description = "Eye of Ender",
|
||||
_doc_items_longdesc = longdesc_craftitem,
|
||||
inventory_image = "mcl_end_ender_eye.png",
|
||||
groups = { craftitem = 1 },
|
||||
|
@ -239,8 +242,8 @@ end
|
|||
-- Ghast
|
||||
if c("ghast_tear") then
|
||||
minetest.register_craftitem("mobs_mc:ghast_tear", {
|
||||
description = S("Ghast Tear"),
|
||||
_doc_items_longdesc = S("A ghast tear is an item used in potion brewing. It is dropped from dead ghasts."),
|
||||
description = "Ghast Tear",
|
||||
_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",
|
||||
inventory_image = "mcl_mobitems_ghast_tear.png",
|
||||
groups = { brewitem = 1 },
|
||||
|
@ -251,9 +254,9 @@ end
|
|||
if c("saddle") then
|
||||
-- Overwrite the saddle from Mobs Redo
|
||||
minetest.register_craftitem(":mobs:saddle", {
|
||||
description = S("Saddle"),
|
||||
_doc_items_longdesc = S("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."),
|
||||
description = "Saddle",
|
||||
_doc_items_longdesc = "Saddles can be put on horses, donkeys, mules and pigs in order to mount them.",
|
||||
_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",
|
||||
stack_max = 1,
|
||||
})
|
||||
|
@ -271,12 +274,12 @@ if c("saddle") and c("lether") and c("string") and c("iron_ingot") then
|
|||
end
|
||||
|
||||
-- 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
|
||||
if c("iron_horse_armor") then
|
||||
minetest.register_craftitem("mobs_mc:iron_horse_armor", {
|
||||
description = S("Iron Horse Armor"),
|
||||
_doc_items_longdesc = S("Iron horse armor can be worn by horses to increase their protection from harm a bit."),
|
||||
description = "Iron Horse Armor",
|
||||
_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,
|
||||
inventory_image = "mobs_mc_iron_horse_armor.png",
|
||||
_horse_overlay_image = "mobs_mc_horse_armor_iron.png",
|
||||
|
@ -286,8 +289,8 @@ if c("iron_horse_armor") then
|
|||
end
|
||||
if c("gold_horse_armor") then
|
||||
minetest.register_craftitem("mobs_mc:gold_horse_armor", {
|
||||
description = S("Golden Horse Armor"),
|
||||
_doc_items_longdesc = S("Golden horse armor can be worn by horses to increase their protection from harm."),
|
||||
description = "Golden Horse Armor",
|
||||
_doc_items_longdesc = "Golden horse armor can be worn by horses to increase their protection from harm.",
|
||||
_doc_items_usagehelp = horse_armor_use,
|
||||
inventory_image = "mobs_mc_gold_horse_armor.png",
|
||||
_horse_overlay_image = "mobs_mc_horse_armor_gold.png",
|
||||
|
@ -297,8 +300,8 @@ if c("gold_horse_armor") then
|
|||
end
|
||||
if c("diamond_horse_armor") then
|
||||
minetest.register_craftitem("mobs_mc:diamond_horse_armor", {
|
||||
description = S("Diamond Horse Armor"),
|
||||
_doc_items_longdesc = S("Diamond horse armor can be worn by horses to greatly increase their protection from harm."),
|
||||
description = "Diamond Horse Armor",
|
||||
_doc_items_longdesc = "Diamond horse armor can be worn by horses to greatly increase their protection from harm.",
|
||||
_doc_items_usagehelp = horse_armor_use,
|
||||
inventory_image = "mobs_mc_diamond_horse_armor.png",
|
||||
_horse_overlay_image = "mobs_mc_horse_armor_diamond.png",
|
||||
|
@ -310,8 +313,8 @@ end
|
|||
-- Pig
|
||||
if c("porkchop_raw") then
|
||||
minetest.register_craftitem("mobs_mc:porkchop_raw", {
|
||||
description = S("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."),
|
||||
description = "Raw Porkchop",
|
||||
_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",
|
||||
groups = { food = 2, eatable = 3 },
|
||||
on_use = minetest.item_eat(3),
|
||||
|
@ -320,7 +323,7 @@ end
|
|||
|
||||
if c("porkchop_cooked") then
|
||||
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.",
|
||||
inventory_image = "mcl_mobitems_porkchop_cooked.png",
|
||||
groups = { food = 2, eatable = 8 },
|
||||
|
@ -339,9 +342,9 @@ end
|
|||
|
||||
if c("carrot_on_a_stick") then
|
||||
minetest.register_tool("mobs_mc:carrot_on_a_stick", {
|
||||
description = S("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_usagehelp = S("Rightclick a saddled pig with the carrot on a stick to mount it. You can now ride it like a horse."),
|
||||
description = "Carrot on a Stick",
|
||||
_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 = "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",
|
||||
inventory_image = "mcl_mobitems_carrot_on_a_stick.png",
|
||||
sounds = { breaks = "default_tool_breaks" },
|
||||
|
@ -381,8 +384,8 @@ end
|
|||
-- Rabbit
|
||||
if c("rabbit_raw") then
|
||||
minetest.register_craftitem("mobs_mc:rabbit_raw", {
|
||||
description = S("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."),
|
||||
description = "Raw Rabbit",
|
||||
_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",
|
||||
groups = { food = 2, eatable = 3 },
|
||||
on_use = minetest.item_eat(3),
|
||||
|
@ -391,8 +394,8 @@ end
|
|||
|
||||
if c("rabbit_cooked") then
|
||||
minetest.register_craftitem("mobs_mc:rabbit_cooked", {
|
||||
description = S("Cooked Rabbit"),
|
||||
_doc_items_longdesc = S("This is a food item which can be eaten."),
|
||||
description = "Cooked Rabbit",
|
||||
_doc_items_longdesc = "This is a food item which can be eaten.",
|
||||
inventory_image = "mcl_mobitems_rabbit_cooked.png",
|
||||
groups = { food = 2, eatable = 5 },
|
||||
on_use = minetest.item_eat(5),
|
||||
|
@ -410,8 +413,8 @@ end
|
|||
|
||||
if c("rabbit_hide") then
|
||||
minetest.register_craftitem("mobs_mc:rabbit_hide", {
|
||||
description = S("Rabbit Hide"),
|
||||
_doc_items_longdesc = S("Rabbit hide is used to create leather."),
|
||||
description = "Rabbit Hide",
|
||||
_doc_items_longdesc = "Rabbit hide is used to create leather.",
|
||||
inventory_image = "mcl_mobitems_rabbit_hide.png"
|
||||
})
|
||||
end
|
||||
|
@ -428,8 +431,8 @@ end
|
|||
|
||||
if c("rabbit_foot") then
|
||||
minetest.register_craftitem("mobs_mc:rabbit_foot", {
|
||||
description = S("Rabbit's Foot"),
|
||||
_doc_items_longdesc = S("This item is used in brewing."),
|
||||
description = "Rabbit's Foot",
|
||||
_doc_items_longdesc = "This item is used in brewing.",
|
||||
inventory_image = "mcl_mobitems_rabbit_foot.png"
|
||||
})
|
||||
end
|
||||
|
@ -437,8 +440,8 @@ end
|
|||
-- Sheep
|
||||
if c("mutton_raw") then
|
||||
minetest.register_craftitem("mobs_mc:mutton_raw", {
|
||||
description = S("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."),
|
||||
description = "Raw Mutton",
|
||||
_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",
|
||||
groups = { food = 2, eatable = 4 },
|
||||
on_use = minetest.item_eat(4),
|
||||
|
@ -447,8 +450,8 @@ end
|
|||
|
||||
if c("mutton_cooked") then
|
||||
minetest.register_craftitem("mobs_mc:mutton_cooked", {
|
||||
description = S("Cooked Mutton"),
|
||||
_doc_items_longdesc = S("Cooked mutton is the cooked flesh from a sheep and is used as food."),
|
||||
description = "Cooked Mutton",
|
||||
_doc_items_longdesc = "Cooked mutton is the cooked flesh from a sheep and is used as food.",
|
||||
inventory_image = "mcl_mobitems_mutton_cooked.png",
|
||||
groups = { food = 2, eatable = 8 },
|
||||
on_use = minetest.item_eat(8),
|
||||
|
@ -467,8 +470,8 @@ end
|
|||
-- Shulker
|
||||
if c("shulker_shell") then
|
||||
minetest.register_craftitem("mobs_mc:shulker_shell", {
|
||||
description = S("Shulker Shell"),
|
||||
_doc_items_longdesc = S("Shulker shells are used in crafting. They are dropped from dead shulkers."),
|
||||
description = "Shulker Shell",
|
||||
_doc_items_longdesc = "Shulker shells are used in crafting. They are dropped from dead shulkers.",
|
||||
inventory_image = "mcl_mobitems_shulker_shell.png",
|
||||
groups = { craftitem = 1 },
|
||||
})
|
||||
|
@ -477,8 +480,8 @@ end
|
|||
-- Magma cube
|
||||
if c("magma_cream") then
|
||||
minetest.register_craftitem("mobs_mc:magma_cream", {
|
||||
description = S("Magma Cream"),
|
||||
_doc_items_longdesc = S("Magma cream is a crafting component."),
|
||||
description = "Magma Cream",
|
||||
_doc_items_longdesc = "Magma cream is a crafting component.",
|
||||
wield_image = "mcl_mobitems_magma_cream.png",
|
||||
inventory_image = "mcl_mobitems_magma_cream.png",
|
||||
groups = { brewitem = 1 },
|
||||
|
@ -488,8 +491,8 @@ end
|
|||
-- Slime
|
||||
if c("slimeball") then
|
||||
minetest.register_craftitem("mobs_mc:slimeball", {
|
||||
description = S("Slimeball"),
|
||||
_doc_items_longdesc = S("Slimeballs are used in crafting. They are dropped from slimes."),
|
||||
description = "Slimeball",
|
||||
_doc_items_longdesc = "Slimeballs are used in crafting. They are dropped from slimes.",
|
||||
inventory_image = "mcl_mobitems_slimeball.png"
|
||||
})
|
||||
if minetest.get_modpath("mesecons_materials") then
|
||||
|
@ -503,8 +506,8 @@ end
|
|||
-- Spider
|
||||
if c("spider_eye") then
|
||||
minetest.register_craftitem("mobs_mc:spider_eye", {
|
||||
description = S("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."),
|
||||
description = "Spider Eye",
|
||||
_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",
|
||||
wield_image = "mcl_mobitems_spider_eye.png",
|
||||
-- Simplified poisonous food
|
||||
|
@ -589,8 +592,8 @@ end
|
|||
-- Rotten flesh
|
||||
if c("rotten_flesh") then
|
||||
minetest.register_craftitem("mobs_mc:rotten_flesh", {
|
||||
description = S("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."),
|
||||
description = "Rotten Flesh",
|
||||
_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",
|
||||
-- Simplified poisonous food
|
||||
groups = { food = 2, eatable = -4 },
|
||||
|
@ -601,8 +604,8 @@ end
|
|||
-- Misc.
|
||||
if c("nether_star") then
|
||||
minetest.register_craftitem("mobs_mc:nether_star", {
|
||||
description = S("Nether Star"),
|
||||
_doc_items_longdesc = S("A nether star is a crafting component. It is dropped from the Wither."),
|
||||
description = "Nether Star",
|
||||
_doc_items_longdesc = "A nether star is a crafting component. It is dropped from the Wither.",
|
||||
inventory_image = "mcl_mobitems_nether_star.png"
|
||||
})
|
||||
end
|
||||
|
@ -630,9 +633,9 @@ end
|
|||
|
||||
if c("bone") then
|
||||
minetest.register_craftitem("mobs_mc:bone", {
|
||||
description = S("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_usagehelp = S("Hold the bone in your hand near wolves to attract them. Rightclick the wolf to give it a bone and tame it."),
|
||||
description = "Bone",
|
||||
_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 = "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"
|
||||
})
|
||||
if minetest.get_modpath("bones") then
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
--made for MC like Survival game
|
||||
--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")
|
||||
|
||||
--maikerumines throwing code
|
||||
|
@ -130,9 +133,9 @@ end
|
|||
|
||||
if c("arrow") then
|
||||
minetest.register_craftitem("mobs_mc:arrow", {
|
||||
description = S("Arrow"),
|
||||
_doc_items_longdesc = S("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."),
|
||||
description = "Arrow",
|
||||
_doc_items_longdesc = "Arrows are ammunition for bows.",
|
||||
_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",
|
||||
})
|
||||
end
|
||||
|
@ -150,9 +153,9 @@ end
|
|||
|
||||
if c("bow") then
|
||||
minetest.register_tool("mobs_mc:bow_wood", {
|
||||
description = S("Bow"),
|
||||
_doc_items_longdesc = S("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."),
|
||||
description = "Bow",
|
||||
_doc_items_longdesc = "Bows are ranged weapons to shoot arrows at your foes.",
|
||||
_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",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
|
||||
|
@ -289,8 +292,8 @@ if c("egg") then
|
|||
end
|
||||
|
||||
minetest.register_craftitem("mobs_mc:egg", {
|
||||
description = S("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"),
|
||||
description = "Egg",
|
||||
_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,
|
||||
inventory_image = "mobs_chicken_egg.png",
|
||||
on_use = mobs_shoot_egg,
|
||||
|
@ -375,8 +378,8 @@ if c("snowball") then
|
|||
|
||||
-- Snowball
|
||||
minetest.register_craftitem("mobs_mc:snowball", {
|
||||
description = S("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."),
|
||||
description = "Snowball",
|
||||
_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,
|
||||
inventory_image = "mcl_throwing_snowball.png",
|
||||
on_use = mobs_shoot_snowball,
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
--MC Heads for minetest
|
||||
--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")
|
||||
|
||||
-- Heads system
|
||||
|
@ -53,7 +56,7 @@ local function addhead(mobname, desc, longdesc)
|
|||
end
|
||||
|
||||
-- Add heads
|
||||
addhead("zombie", S("Zombie Head"), S("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("skeleton", S("Skeleton Skull"), S("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("zombie", "Zombie Head", "A zombie head is a small decorative block which resembles the head of a zombie.")
|
||||
addhead("creeper", "Creeper Head", "A creeper head is a small decorative block which resembles the head of a creeper.")
|
||||
addhead("skeleton", "Skeleton Skull", "A skeleton skull is a small decorative block which resembles the skull of a 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
|
||||
minetest.register_node("mobs_mc:monster_egg_stone", {
|
||||
description = S("Stone Monster Egg"),
|
||||
description = "Stone Monster Egg",
|
||||
tiles = {"default_stone.png"},
|
||||
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
||||
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", {
|
||||
description = S("Cobblestone Monster Egg"),
|
||||
description = "Cobblestone Monster Egg",
|
||||
tiles = {"default_cobble.png"},
|
||||
is_ground_content = false,
|
||||
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", {
|
||||
description = S("Mossy Cobblestone Monster Egg"),
|
||||
description = "Mossy Cobblestone Monster Egg",
|
||||
tiles = {"default_mossycobble.png"},
|
||||
is_ground_content = false,
|
||||
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", {
|
||||
description = S("Stone Brick Monster Egg"),
|
||||
description = "Stone Brick Monster Egg",
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
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", {
|
||||
description = S("Stone Block Monster Egg"),
|
||||
description = "Stone Block Monster Egg",
|
||||
tiles = {"default_stone_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {oddly_breakable_by_hand = 2, spawns_silverfish = 1},
|
||||
|
|
Loading…
Reference in New Issue