diff --git a/mods/ENTITIES/mobs_mc/LICENSE-media.md b/mods/ENTITIES/mobs_mc/LICENSE-media.md index f02de7cd7..1c98644de 100644 --- a/mods/ENTITIES/mobs_mc/LICENSE-media.md +++ b/mods/ENTITIES/mobs_mc/LICENSE-media.md @@ -67,6 +67,9 @@ Origin of those models: * `mobs_mc_endermite.png` * `mobs_mc_magmacube.png` * `mobs_mc_chicken.png` + * `mobs_mc_wither.png` + * `mobs_mc_wither_skeleton.png` + * `mobs_mc_TEMP_wither_projectile.png` * “Spawn egg” textures (`mobs_mc_spawn_icon_*`) by 22i * Any other texture not mentioned here are licensed under the MIT License diff --git a/mods/ENTITIES/mobs_mc/README.md b/mods/ENTITIES/mobs_mc/README.md index a52bce090..9d0514950 100644 --- a/mods/ENTITIES/mobs_mc/README.md +++ b/mods/ENTITIES/mobs_mc/README.md @@ -8,7 +8,7 @@ This mod adds mobs which closely resemble the mobs from the game Minecraft, vers * [Wuzzy2](https://github.com/Wuzzy2): Zombies, husks, item textures, and code * [toby109tt](https://github.com/tobyplowy): Mapping fixes - better 2D planes * [22i](https://github.com/22i): Models (done in Blender) and mob icons for spawn eggs -* [XSSheep](https://www.planetminecraft.com/member/xssheep/): Mob and item textures (from [Pixel Perfection](https://www.planetminecraft.com/texture_pack/131pixel-perfection/) +* [XSSheep](https://www.planetminecraft.com/member/xssheep/): Mob and item textures (from [Pixel Perfection](https://www.planetminecraft.com/texture_pack/131pixel-perfection/)) * MysticTempest: More mob textures * See `LICENSE_media.md` for detailed credits about each file diff --git a/mods/ENTITIES/mobs_mc/agent.lua b/mods/ENTITIES/mobs_mc/agent.lua new file mode 100644 index 000000000..a55011753 --- /dev/null +++ b/mods/ENTITIES/mobs_mc/agent.lua @@ -0,0 +1,43 @@ +--################### +--################### AGENT +--################### + +-- intllib +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + +mobs:register_mob("mobs_mc:agent", { + type = "npc", + passive = true, + stepheight = 1.2, + hp_min = 20, + hp_max = 20, + armor = 100, + collisionbox = {-0.35, -0.01, -0.35, 0.35, 1, 0.35}, + visual = "mesh", + mesh = "mobs_mc_agent.b3d", + textures = { + {"mobs_mc_agent.png"}, + }, + visual_size = {x=3, y=3}, + walk_velocity = 0.6, + run_velocity = 2, + jump = true, + animation = { + stand_speed = 25, + walk_speed = 25, + run_speed = 50, + stand_start = 20, + stand_end = 60, + walk_start = 0, + walk_end = 20, + run_start = 0, + run_end = 20, + }, +}) + +mobs:register_egg("mobs_mc:agent", S("Agent"), "mobs_mc_spawn_icon_agent.png", 0) + +if minetest.settings:get_bool("log_mods") then + minetest.log("action", "MC Agent loaded") +end diff --git a/mods/ENTITIES/mobs_mc/init.lua b/mods/ENTITIES/mobs_mc/init.lua index 22d9848eb..094fd3991 100644 --- a/mods/ENTITIES/mobs_mc/init.lua +++ b/mods/ENTITIES/mobs_mc/init.lua @@ -53,12 +53,16 @@ dofile(path .. "/sheep.lua") -- Mesh and animation by Pavel_S dofile(path .. "/wolf.lua") -- KrupnoPavel dofile(path .. "/squid.lua") -- Animation, sound and egg texture by daufinsyd --- NPC +-- NPCs dofile(path .. "/villager.lua") -- KrupnoPavel Mesh and animation by toby109tt / https://github.com/22i ---dofile(path .. "/villager_agent.lua") -- Mesh and animation by toby109tt / https://github.com/22i +-- Agent texture missing +--dofile(path .. "/agent.lua") -- Mesh and animation by toby109tt / https://github.com/22i + +-- Illagers and witch dofile(path .. "/villager_evoker.lua") -- Mesh and animation by toby109tt / https://github.com/22i dofile(path .. "/villager_vindicator.lua") -- Mesh and animation by toby109tt / https://github.com/22i dofile(path .. "/villager_zombie.lua") -- Mesh and animation by toby109tt / https://github.com/22i + dofile(path .. "/witch.lua") -- Mesh and animation by toby109tt / https://github.com/22i --Monsters @@ -80,7 +84,6 @@ dofile(path .. "/skeleton_wither.lua") -- Mesh by Morn76 Animation by Pavel_S dofile(path .. "/zombie.lua") -- Mesh by Morn76 Animation by Pavel_S dofile(path .. "/zombiepig.lua") -- Mesh by Morn76 Animation by Pavel_S dofile(path .. "/slime+magma_cube.lua") -- Wuzzy ---dofile(path .. "/snowman.lua") -- maikerumine Mesh and animation by toby109tt / https://github.com/22i dofile(path .. "/spider.lua") -- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture) dofile(path .. "/vex.lua") -- KrupnoPavel dofile(path .. "/wither.lua") -- Mesh and animation by toby109tt / https://github.com/22i diff --git a/mods/ENTITIES/mobs_mc/llama.lua b/mods/ENTITIES/mobs_mc/llama.lua index 0db7163a3..711fb1344 100644 --- a/mods/ENTITIES/mobs_mc/llama.lua +++ b/mods/ENTITIES/mobs_mc/llama.lua @@ -1,20 +1,11 @@ ---MCmobs v0.4 ---maikerumine ---made for MC like Survival game ---License for code WTFPL and otherwise stated in readmes - -- intllib local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") ---dofile(minetest.get_modpath("mobs").."/api.lua") - - --################### --################### LLAMA --################### - mobs:register_mob("mobs_mc:llama", { type = "animal", hp_min = 15, @@ -23,16 +14,14 @@ mobs:register_mob("mobs_mc:llama", { collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.86, 0.45}, visual = "mesh", mesh = "mobs_mc_llama.b3d", - textures = { -- 1: chest -- 2: decor -- 3: llama base texture + textures = { -- 1: chest -- 2: decor (carpet) -- 3: llama base texture {"blank.png", "blank.png", "mobs_mc_llama_brown.png"}, {"blank.png", "blank.png", "mobs_mc_llama_creamy.png"}, {"blank.png", "blank.png", "mobs_mc_llama_gray.png"}, {"blank.png", "blank.png", "mobs_mc_llama_white.png"}, {"blank.png", "blank.png", "mobs_mc_llama.png"}, - --{"mobs_mc_llama.png", "blank.png", "mobs_mc_llama.png"}, --lama with chest - --{"blank.png", "mobs_mc_decor_green.png", "mobs_mc_llama.png"}, --lama with decor - --{"mobs_mc_llama.png", "mobs_mc_decor_green.png", "mobs_mc_llama.png"}, --lama with everything - }, + -- TODO: Implement carpet (aka decor) on llama + }, visual_size = {x=3, y=3}, makes_footstep_sound = true, runaway = true, diff --git a/mods/ENTITIES/mobs_mc/locale/de_DE.po b/mods/ENTITIES/mobs_mc/locale/de_DE.po index 19f346f89..6d09c9249 100644 --- a/mods/ENTITIES/mobs_mc/locale/de_DE.po +++ b/mods/ENTITIES/mobs_mc/locale/de_DE.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-07-02 20:52+0200\n" -"PO-Revision-Date: 2017-07-02 16:20+0200\n" +"POT-Creation-Date: 2017-07-05 16:40+0200\n" +"PO-Revision-Date: 2017-07-20 15:05+0200\n" "Last-Translator: Wuzzy \n" "Language-Team: \n" "Language: de_DE\n" @@ -40,34 +40,78 @@ msgstr "" msgid "Raw Chicken" msgstr "Rohes Hühnchen" +#: 1_items_default.lua +msgid "" +"Raw chicken is a food item and can be eaten safely. Cooking it will increase " +"its nutritional value." +msgstr "" +"Rohes Hühnchen ist ein Lebensmittel und kann problemlos gegessen werden. Es " +"kann gegart werden, um den Nährwert zu erhöhen." + #: 1_items_default.lua msgid "Cooked Chicken" msgstr "Gebratenes Hühnchen" +#: 1_items_default.lua +msgid "A cooked chicken is a healthy food item which can be eaten." +msgstr "Ein gekochtes Hühnchen ist ein gesundes essbares Lebensmittel." + #: 1_items_default.lua msgid "Feather" msgstr "Feder" +#: 1_items_default.lua +msgid "Feathers are used in crafting and are dropped from chickens." +msgstr "" +"Federn werden für die Fertigung benutzt und werden von Hühnern fallen " +"gelassen." + #: 1_items_default.lua msgid "Raw Beef" msgstr "Rohes Rindfleisch" +#: 1_items_default.lua +msgid "" +"Raw beef is the flesh from cows and can be eaten safely. Cooking it will " +"greatly increase its nutritional value." +msgstr "" +"Rohes Rindfleisch ist das Fleisch von Kühen und kann problemlos gegessen " +"werden. Es kann gegart werden, um den Nährwert deutlich zu erhöhen." + #: 1_items_default.lua msgid "Steak" msgstr "Steak" +#: 1_items_default.lua +msgid "Steak is cooked beef from cows and can be eaten." +msgstr "Steak ist gebratenes Rindfleisch und kann gegessen werden." + #: 1_items_default.lua msgid "Milk" msgstr "Milch" +#: 1_items_default.lua +msgid "Milk is a food item obtained by using a bucket on a cow." +msgstr "" +"Milch ist ein Lebensmittel, das man erhält, wenn man einen Eimer an einer " +"Kuh benutzt." + #: 1_items_default.lua msgid "Bowl" msgstr "Schale" +#: 1_items_default.lua +msgid "Bowls are mainly used to hold tasty soups." +msgstr "Schüsseln werden benutzt, um leckere Suppen zu transportieren." + #: 1_items_default.lua msgid "Mushroom Stew" msgstr "Pilzsuppe" +#: 1_items_default.lua +msgid "Mushroom stew is a healthy soup." +msgstr "Pilzsuppe ist ein leckeres Gericht." + #: 1_items_default.lua msgid "Dragon Egg" msgstr "Drachenei" @@ -92,22 +136,77 @@ msgstr "" msgid "Saddle" msgstr "Sattel" +#: 1_items_default.lua +msgid "" +"Saddles can be put on horses, donkeys, mules and pigs in order to mount them." +msgstr "" +"Sattel können auf Pferden, Eseln, Maultieren und Schweinen platziert werden, " +"um sich aufzusatteln." + +#: 1_items_default.lua +msgid "" +"Rightclick an animal while holding a saddle to put on the saddle. You can " +"now mount the animal by rightclicking it again." +msgstr "" +"Rechtsklick auf ein Tier mit einem Sattel in der Hand, um den Sattel zu " +"platzieren. Sie können sich nun mit Rechtsklick auf das Tier setzen." + +#: 1_items_default.lua +msgid "" +"Rightclick a horse to put on the horse armor. Donkeys and mules can't wear " +"horse armor." +msgstr "" +"Rechts auf ein Pferd klicken, um die Pferderüstung zu benutzen. Das " +"funktioniert nicht mit Eseln und Maultieren." + #: 1_items_default.lua msgid "Iron Horse Armor" msgstr "Eiserne Pferderüstung" +#: 1_items_default.lua +msgid "" +"Iron horse armor can be worn by horses to increase their protection from " +"harm a bit." +msgstr "" +"Die Eisenpferderüstung kann von Pferden getragen werden, um sie etwas vor " +"Schaden zu schützen." + #: 1_items_default.lua msgid "Golden Horse Armor" msgstr "Goldene Pferderüstung" +#: 1_items_default.lua +msgid "" +"Golden horse armor can be worn by horses to increase their protection from " +"harm." +msgstr "" +"Die Goldpferderüstung kann von Pferden getragen werden, um sie vor Schaden " +"zu schützen." + #: 1_items_default.lua msgid "Diamond Horse Armor" msgstr "Diamantene Pferderüstung" +#: 1_items_default.lua +msgid "" +"Diamond horse armor can be worn by horses to greatly increase their " +"protection from harm." +msgstr "" +"Die Diamantpferderüstung kann von Pferden getragen werden, um ihre " +"Schadenstoleranz stark zu erhöhen." + #: 1_items_default.lua msgid "Raw Porkchop" msgstr "Rohes Schweinefleisch" +#: 1_items_default.lua +msgid "" +"A raw porkchop is the flesh from a pig and can be eaten safely. Cooking it " +"will greatly increase its nutritional value." +msgstr "" +"Ein rohes Stück Schweinefleisch kann bedenkenlos gegessen werden. Man kann " +"es braten, um seinen Nährwert stark zu erhöhen." + #: 1_items_default.lua msgid "Cooked Porkchop" msgstr "Gebratenes Schweinefleisch" @@ -116,34 +215,92 @@ msgstr "Gebratenes Schweinefleisch" msgid "Carrot on a Stick" msgstr "Karottenrute" +#: 1_items_default.lua +msgid "" +"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." +msgstr "" +"Eine Karottenrute kann auf gesattelten Schweinen angewendet werden, um sie " +"zu reiten. Schweine folgen auch jeden, der eine Karottenrüte trägt." + +#: 1_items_default.lua +msgid "" +"Rightclick a saddled pig with the carrot on a stick to mount it. You can now " +"ride it like a horse." +msgstr "" +"Rechts auf ein gesatteltes Schwein klicken, um sich draufzusetzen. Jetzt " +"kann das Schwein wie ein Pferd geritten werden." + #: 1_items_default.lua msgid "Raw Rabbit" msgstr "Rohes Kaninchen" +#: 1_items_default.lua +msgid "" +"Raw rabbit is a food item from a dead rabbit. It can be eaten safely. " +"Cooking it will increase its nutritional value." +msgstr "" +"Rohes Kaninchenfleisch ist ein Lebensmittel, welches bedenkenlos verzehrt " +"werden kann. Es kann gebraten werden, um seinen Nährwert zu erhöhen." + #: 1_items_default.lua msgid "Cooked Rabbit" msgstr "Gebratenes Kaninchen" +#: 1_items_default.lua +msgid "This is a food item which can be eaten." +msgstr "Dies ist ein Lebensmittel." + #: 1_items_default.lua msgid "Rabbit Hide" msgstr "Kaninchenfell" +#: 1_items_default.lua +msgid "Rabbit hide is used to create leather." +msgstr "Aus Kaninchenfellen wird Leder gefertigt." + #: 1_items_default.lua msgid "Rabbit's Foot" msgstr "Hasenpfote" +#: 1_items_default.lua +msgid "This item is used in brewing." +msgstr "Dieser Gegenstand wird zum Brauen benutzt." + #: 1_items_default.lua msgid "Raw Mutton" msgstr "Rohes Hammelfleisch" +#: 1_items_default.lua +msgid "" +"Raw mutton is the flesh from a sheep and can be eaten safely. Cooking it " +"will greatly increase its nutritional value." +msgstr "" +"Rohes Hammelfleisch ist das Fleisch eines Schafes und ein Lebensmittel, " +"welches bedenkenlos verzehrt werden kann. Es kann gebraten werden, um seinen " +"Nährwert deutlich zu erhöhen." + #: 1_items_default.lua msgid "Cooked Mutton" msgstr "Gebratenes Hammelfleisch" +#: 1_items_default.lua +msgid "Cooked mutton is the cooked flesh from a sheep and is used as food." +msgstr "" +"Gebratenes Hammelfleisch ist das gebratene Fleisch eines Schafs und dient " +"als Lebensmittel." + #: 1_items_default.lua msgid "Shulker Shell" msgstr "Shulkerschale" +#: 1_items_default.lua +msgid "" +"Shulker shells are used in crafting. They are dropped from dead shulkers." +msgstr "" +"Shulkerschalen werden für die Fertigung verwendet. Sie werden von toten " +"Shulkern fallen gelassen." + #: 1_items_default.lua msgid "Magma Cream" msgstr "Magmacreme" @@ -152,6 +309,16 @@ msgstr "Magmacreme" msgid "Magma cream is a crafting component." msgstr "Magmacreme wird zum Fertigen benutzt." +#: 1_items_default.lua +msgid "Slimeball" +msgstr "Schleimkugel" + +#: 1_items_default.lua +msgid "Slimeballs are used in crafting. They are dropped from slimes." +msgstr "" +"Schleimkugeln werden in der Fertigung benutzt. Sie werden von Schleimen " +"fallen gelassen." + #: 1_items_default.lua msgid "Spider Eye" msgstr "Spinnenauge" @@ -169,26 +336,110 @@ msgstr "" msgid "Totem of Undying" msgstr "Totem der Unsterblichkeit" +#: 1_items_default.lua +msgid "" +"A totem of undying is a rare artifact which may safe you from certain death." +msgstr "" +"Ein Totem der Unsterblichkeit ist ein seltenes Artefakt, welches Sie vor dem " +"sicheren Tod bewahren kann." + +#: 1_items_default.lua +msgid "" +"Hold it in your hand and punch once to instantly get back to full health. " +"The totem gets destroyed in the process." +msgstr "" +"Halten Sie es in der Hand und schlagen Sie zu, um sofort auf die volle " +"Gesundheit zu kommen. Das zerstört das Totem." + #: 1_items_default.lua msgid "Rotten Flesh" msgstr "Verrottetes Fleisch" +#: 1_items_default.lua +msgid "" +"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." +msgstr "" +"Igitt! Dieses Stück Fleisch hat wohl bessere Tage gesehen. Wenn Sie es " +"essen, werden Sie sofort vergiftet und erleiden einen Schaden von 4 " +"Trefferpunkten. Aber gezähmte Wölfe können es problemlos fressen." + #: 1_items_default.lua msgid "Nether Star" msgstr "Netherstern" +#: 1_items_default.lua +msgid "A nether star is a crafting component. It is dropped from the Wither." +msgstr "" +"Ein Netherstern ist eine Fertigungskomponente. Er wird vom Wither abgeworfen." + +#: 1_items_default.lua +msgid "Bone" +msgstr "Knochen" + +#: 1_items_default.lua +msgid "" +"Bones can be used to tame wolves so they will protect you. They are also " +"useful as a crafting ingredient." +msgstr "" +"Knochen können benutzt werden, um Wölfe zu zähmen, damit sie einen " +"beschützen. Sie außerdem nützlich in der Fertigung." + +#: 1_items_default.lua +msgid "" +"Hold the bone in your hand near wolves to attract them. Rightclick the wolf " +"to give it a bone and tame it." +msgstr "" +"Halten Sie einen Knochen in der Nähe eines Wolfes, um ihn anzulocken. " +"Rechtsklick auf den Wolf, um ihn den Knochen zu geben un zu zähmen." + #: 2_throwing.lua msgid "Arrow" msgstr "Pfeil" +#: 2_throwing.lua +msgid "Arrows are ammunition for bows." +msgstr "Pfeile sind Munition für Bögen." + +#: 2_throwing.lua +msgid "" +"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." +msgstr "" +"Um Pfeile als Munition für einen Bogen zu benutzen, legen Sie sie in das " +"Inventarfeld, das dem des Bogens folgt. Inventarfelder werden von links nach " +"rechts, dann von oben nach unten gezählt." + #: 2_throwing.lua msgid "Bow" msgstr "Bogen" +#: 2_throwing.lua +msgid "Bows are ranged weapons to shoot arrows at your foes." +msgstr "Bögen sind Fernwaffen, um Pfeile auf Ihre Gegner zu schießen." + +#: 2_throwing.lua +msgid "" +"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." +msgstr "" +"Um den Bogen zu benutzen, brauchen Sie zuerest mindestens einen Pfeil in dem " +"Inventarfeld nach dem des Bogens. Linksklick zum Schießen. Jeder Treffer " +"richtet 3 Schaden an." + #: 2_throwing.lua msgid "Egg" msgstr "Ei" +#: 2_throwing.lua +msgid "" +"Eggs can be thrown and break on impact. There is a small chance that 1 or " +"even 4 chicks will pop out" +msgstr "" +"Eier können geworfen werden und zerbrechen bei einem Treffer. Es gibt eine " +"kleine Chance, dass 1 oder sogar 4 Küken auftauchen" + #: 2_throwing.lua msgid "Snowball" msgstr "Schneeball" @@ -201,6 +452,54 @@ msgstr "" "Werfen Sie Schnebälle auf Ihre Feinde. Ein Schneeball richtet gegenüber " "Lohen 3 Schaden an, ist aber harmlos für alles andere." +#: 4_heads.lua +msgid "Zombie Head" +msgstr "Zombiekopf" + +#: 4_heads.lua +msgid "" +"A zombie head is a small decorative block which resembles the head of a " +"zombie." +msgstr "" +"Ein Zombiekopf ist ein kleiner dekorativer Block, der wie der Kopf eines " +"Zombies aussieht." + +#: 4_heads.lua +msgid "Creeper Head" +msgstr "Creeperkopf" + +#: 4_heads.lua +msgid "" +"A creeper head is a small decorative block which resembles the head of a " +"creeper." +msgstr "" +"Ein Creeperkopf ist ein kleiner dekorativer Block, der wie der Kopf eines " +"Creeper aussieht." + +#: 4_heads.lua +msgid "Skeleton Skull" +msgstr "Skelettschädel" + +#: 4_heads.lua +msgid "" +"A skeleton skull is a small decorative block which resembles the skull of a " +"skeleton." +msgstr "" +"Ein Skelettschädel ist ein kleiner dekorativer Block, der wie der Schädel " +"eines Skeletts aussieht." + +#: 4_heads.lua +msgid "Wither Skeleton Skull" +msgstr "Witherskelettschädel" + +#: 4_heads.lua +msgid "" +"A wither skeleton skull is a small decorative block which resembles the " +"skull of a wither skeleton." +msgstr "" +"Ein Witherskelettschädel ist ein kleiner dekorativer Block, der wie der " +"Schädel eines Witherskeletts aussieht." + #: bat.lua msgid "Bat" msgstr "Fledermaus" @@ -249,38 +548,6 @@ msgstr "Großer Wächter" msgid "Guardian" msgstr "Wächter" -#: heads.lua -msgid "Creeper Head (WIP)" -msgstr "Creeperkopf (unfertig)" - -#: heads.lua -msgid "Enderman Head (WIP)" -msgstr "Endermankopf (unfertig)" - -#: heads.lua -msgid "Ghast Head (WIP)" -msgstr "Ghastkopf (unfertig)" - -#: heads.lua -msgid "Skeleton Skull (WIP)" -msgstr "Skelettschädel (unfertig)" - -#: heads.lua -msgid "Wither Skeleton Skull (WIP)" -msgstr "Witherskelettschädel (unfertig)" - -#: heads.lua -msgid "Spider Head (WIP)" -msgstr "Spinnenkopf (unfertig)" - -#: heads.lua -msgid "Zombie Head (WIP)" -msgstr "Zombiekopf (unfertig)" - -#: heads.lua -msgid "Zombie Pigman Head (WIP)" -msgstr "Schweinezombiekopf (unfertig)" - #: horse.lua msgid "Horse" msgstr "Pferd" @@ -365,11 +632,11 @@ msgstr "Silberfischchen-Steinziegel" msgid "Stone Block Monster Egg" msgstr "Silberfischchen-Steinblock" -#: skeleton.lua +#: skeleton+stray.lua msgid "Skeleton" msgstr "Skelett" -#: skeleton_stray.lua +#: skeleton+stray.lua msgid "Stray" msgstr "Eiswanderer" @@ -448,3 +715,15 @@ msgstr "Zombie" #: zombiepig.lua msgid "Zombie Pigman" msgstr "Schweinezombie" + +#~ msgid "Enderman Head (WIP)" +#~ msgstr "Endermankopf (unfertig)" + +#~ msgid "Ghast Head (WIP)" +#~ msgstr "Ghastkopf (unfertig)" + +#~ msgid "Spider Head (WIP)" +#~ msgstr "Spinnenkopf (unfertig)" + +#~ msgid "Zombie Pigman Head (WIP)" +#~ msgstr "Schweinezombiekopf (unfertig)" diff --git a/mods/ENTITIES/mobs_mc/locale/template.pot b/mods/ENTITIES/mobs_mc/locale/template.pot index 3b9f2cc57..5758d0e6d 100644 --- a/mods/ENTITIES/mobs_mc/locale/template.pot +++ b/mods/ENTITIES/mobs_mc/locale/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-07-02 20:52+0200\n" +"POT-Creation-Date: 2017-07-20 14:43+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,34 +37,70 @@ msgstr "" msgid "Raw Chicken" msgstr "" +#: 1_items_default.lua +msgid "" +"Raw chicken is a food item and can be eaten safely. Cooking it will increase " +"its nutritional value." +msgstr "" + #: 1_items_default.lua msgid "Cooked Chicken" msgstr "" +#: 1_items_default.lua +msgid "A cooked chicken is a healthy food item which can be eaten." +msgstr "" + #: 1_items_default.lua msgid "Feather" msgstr "" +#: 1_items_default.lua +msgid "Feathers are used in crafting and are dropped from chickens." +msgstr "" + #: 1_items_default.lua msgid "Raw Beef" msgstr "" +#: 1_items_default.lua +msgid "" +"Raw beef is the flesh from cows and can be eaten safely. Cooking it will " +"greatly increase its nutritional value." +msgstr "" + #: 1_items_default.lua msgid "Steak" msgstr "" +#: 1_items_default.lua +msgid "Steak is cooked beef from cows and can be eaten." +msgstr "" + #: 1_items_default.lua msgid "Milk" msgstr "" +#: 1_items_default.lua +msgid "Milk is a food item obtained by using a bucket on a cow." +msgstr "" + #: 1_items_default.lua msgid "Bowl" msgstr "" +#: 1_items_default.lua +msgid "Bowls are mainly used to hold tasty soups." +msgstr "" + #: 1_items_default.lua msgid "Mushroom Stew" msgstr "" +#: 1_items_default.lua +msgid "Mushroom stew is a healthy soup." +msgstr "" + #: 1_items_default.lua msgid "Dragon Egg" msgstr "" @@ -87,22 +123,63 @@ msgstr "" msgid "Saddle" msgstr "" +#: 1_items_default.lua +msgid "" +"Saddles can be put on horses, donkeys, mules and pigs in order to mount them." +msgstr "" + +#: 1_items_default.lua +msgid "" +"Rightclick an animal while holding a saddle to put on the saddle. You can " +"now mount the animal by rightclicking it again." +msgstr "" + +#: 1_items_default.lua +msgid "" +"Rightclick a horse to put on the horse armor. Donkeys and mules can't wear " +"horse armor." +msgstr "" + #: 1_items_default.lua msgid "Iron Horse Armor" msgstr "" +#: 1_items_default.lua +msgid "" +"Iron horse armor can be worn by horses to increase their protection from " +"harm a bit." +msgstr "" + #: 1_items_default.lua msgid "Golden Horse Armor" msgstr "" +#: 1_items_default.lua +msgid "" +"Golden horse armor can be worn by horses to increase their protection from " +"harm." +msgstr "" + #: 1_items_default.lua msgid "Diamond Horse Armor" msgstr "" +#: 1_items_default.lua +msgid "" +"Diamond horse armor can be worn by horses to greatly increase their " +"protection from harm." +msgstr "" + #: 1_items_default.lua msgid "Raw Porkchop" msgstr "" +#: 1_items_default.lua +msgid "" +"A raw porkchop is the flesh from a pig and can be eaten safely. Cooking it " +"will greatly increase its nutritional value." +msgstr "" + #: 1_items_default.lua msgid "Cooked Porkchop" msgstr "" @@ -111,34 +188,79 @@ msgstr "" msgid "Carrot on a Stick" msgstr "" +#: 1_items_default.lua +msgid "" +"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." +msgstr "" + +#: 1_items_default.lua +msgid "" +"Rightclick a saddled pig with the carrot on a stick to mount it. You can now " +"ride it like a horse." +msgstr "" + #: 1_items_default.lua msgid "Raw Rabbit" msgstr "" +#: 1_items_default.lua +msgid "" +"Raw rabbit is a food item from a dead rabbit. It can be eaten safely. " +"Cooking it will increase its nutritional value." +msgstr "" + #: 1_items_default.lua msgid "Cooked Rabbit" msgstr "" +#: 1_items_default.lua +msgid "This is a food item which can be eaten." +msgstr "" + #: 1_items_default.lua msgid "Rabbit Hide" msgstr "" +#: 1_items_default.lua +msgid "Rabbit hide is used to create leather." +msgstr "" + #: 1_items_default.lua msgid "Rabbit's Foot" msgstr "" +#: 1_items_default.lua +msgid "This item is used in brewing." +msgstr "" + #: 1_items_default.lua msgid "Raw Mutton" msgstr "" +#: 1_items_default.lua +msgid "" +"Raw mutton is the flesh from a sheep and can be eaten safely. Cooking it " +"will greatly increase its nutritional value." +msgstr "" + #: 1_items_default.lua msgid "Cooked Mutton" msgstr "" +#: 1_items_default.lua +msgid "Cooked mutton is the cooked flesh from a sheep and is used as food." +msgstr "" + #: 1_items_default.lua msgid "Shulker Shell" msgstr "" +#: 1_items_default.lua +msgid "" +"Shulker shells are used in crafting. They are dropped from dead shulkers." +msgstr "" + #: 1_items_default.lua msgid "Magma Cream" msgstr "" @@ -147,6 +269,14 @@ msgstr "" msgid "Magma cream is a crafting component." msgstr "" +#: 1_items_default.lua +msgid "Slimeball" +msgstr "" + +#: 1_items_default.lua +msgid "Slimeballs are used in crafting. They are dropped from slimes." +msgstr "" + #: 1_items_default.lua msgid "Spider Eye" msgstr "" @@ -161,26 +291,90 @@ msgstr "" msgid "Totem of Undying" msgstr "" +#: 1_items_default.lua +msgid "" +"A totem of undying is a rare artifact which may safe you from certain death." +msgstr "" + +#: 1_items_default.lua +msgid "" +"Hold it in your hand and punch once to instantly get back to full health. " +"The totem gets destroyed in the process." +msgstr "" + #: 1_items_default.lua msgid "Rotten Flesh" msgstr "" +#: 1_items_default.lua +msgid "" +"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." +msgstr "" + #: 1_items_default.lua msgid "Nether Star" msgstr "" +#: 1_items_default.lua +msgid "A nether star is a crafting component. It is dropped from the Wither." +msgstr "" + +#: 1_items_default.lua +msgid "Bone" +msgstr "" + +#: 1_items_default.lua +msgid "" +"Bones can be used to tame wolves so they will protect you. They are also " +"useful as a crafting ingredient." +msgstr "" + +#: 1_items_default.lua +msgid "" +"Hold the bone in your hand near wolves to attract them. Rightclick the wolf " +"to give it a bone and tame it." +msgstr "" + #: 2_throwing.lua msgid "Arrow" msgstr "" +#: 2_throwing.lua +msgid "Arrows are ammunition for bows." +msgstr "" + +#: 2_throwing.lua +msgid "" +"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." +msgstr "" + #: 2_throwing.lua msgid "Bow" msgstr "" +#: 2_throwing.lua +msgid "Bows are ranged weapons to shoot arrows at your foes." +msgstr "" + +#: 2_throwing.lua +msgid "" +"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." +msgstr "" + #: 2_throwing.lua msgid "Egg" msgstr "" +#: 2_throwing.lua +msgid "" +"Eggs can be thrown and break on impact. There is a small chance that 1 or " +"even 4 chicks will pop out" +msgstr "" + #: 2_throwing.lua msgid "Snowball" msgstr "" @@ -191,6 +385,46 @@ msgid "" "blazes, but is harmless to anything else." msgstr "" +#: 4_heads.lua +msgid "Zombie Head" +msgstr "" + +#: 4_heads.lua +msgid "" +"A zombie head is a small decorative block which resembles the head of a " +"zombie." +msgstr "" + +#: 4_heads.lua +msgid "Creeper Head" +msgstr "" + +#: 4_heads.lua +msgid "" +"A creeper head is a small decorative block which resembles the head of a " +"creeper." +msgstr "" + +#: 4_heads.lua +msgid "Skeleton Skull" +msgstr "" + +#: 4_heads.lua +msgid "" +"A skeleton skull is a small decorative block which resembles the skull of a " +"skeleton." +msgstr "" + +#: 4_heads.lua +msgid "Wither Skeleton Skull" +msgstr "" + +#: 4_heads.lua +msgid "" +"A wither skeleton skull is a small decorative block which resembles the " +"skull of a wither skeleton." +msgstr "" + #: bat.lua msgid "Bat" msgstr "" @@ -239,38 +473,6 @@ msgstr "" msgid "Guardian" msgstr "" -#: heads.lua -msgid "Creeper Head (WIP)" -msgstr "" - -#: heads.lua -msgid "Enderman Head (WIP)" -msgstr "" - -#: heads.lua -msgid "Ghast Head (WIP)" -msgstr "" - -#: heads.lua -msgid "Skeleton Skull (WIP)" -msgstr "" - -#: heads.lua -msgid "Wither Skeleton Skull (WIP)" -msgstr "" - -#: heads.lua -msgid "Spider Head (WIP)" -msgstr "" - -#: heads.lua -msgid "Zombie Head (WIP)" -msgstr "" - -#: heads.lua -msgid "Zombie Pigman Head (WIP)" -msgstr "" - #: horse.lua msgid "Horse" msgstr "" @@ -355,11 +557,11 @@ msgstr "" msgid "Stone Block Monster Egg" msgstr "" -#: skeleton.lua +#: skeleton+stray.lua msgid "Skeleton" msgstr "" -#: skeleton_stray.lua +#: skeleton+stray.lua msgid "Stray" msgstr "" diff --git a/mods/ENTITIES/mobs_mc/models/mobs_mc_pig.b3d b/mods/ENTITIES/mobs_mc/models/mobs_mc_pig.b3d index 0742cd5a3..8ba5b6a84 100644 Binary files a/mods/ENTITIES/mobs_mc/models/mobs_mc_pig.b3d and b/mods/ENTITIES/mobs_mc/models/mobs_mc_pig.b3d differ diff --git a/mods/ENTITIES/mobs_mc/parrot.lua b/mods/ENTITIES/mobs_mc/parrot.lua index e030d16fb..41d400e45 100644 --- a/mods/ENTITIES/mobs_mc/parrot.lua +++ b/mods/ENTITIES/mobs_mc/parrot.lua @@ -89,7 +89,7 @@ mobs:register_mob("mobs_mc:parrot", { --spawn -- TODO: Increase spawn chance if polished ---mobs:spawn_specific("mobs_mc:parrot", mobs_mc.spawn.jungle, {"air"}, 0, minetest.LIGHT_MAX+1, 30, 30000, 1, mobs_mc.spawn_height.water+1, mobs_mc.spawn_height.overworld_max) +mobs:spawn_specific("mobs_mc:parrot", mobs_mc.spawn.jungle, {"air"}, 0, minetest.LIGHT_MAX+1, 30, 30000, 1, mobs_mc.spawn_height.water+1, mobs_mc.spawn_height.overworld_max) -- spawn eggs mobs:register_egg("mobs_mc:parrot", S("Parrot"), "mobs_mc_spawn_icon_parrot.png", 0) diff --git a/mods/ENTITIES/mobs_mc/pig.lua b/mods/ENTITIES/mobs_mc/pig.lua index 05481544b..7074c3af9 100644 --- a/mods/ENTITIES/mobs_mc/pig.lua +++ b/mods/ENTITIES/mobs_mc/pig.lua @@ -12,9 +12,11 @@ mobs:register_mob("mobs_mc:pig", { collisionbox = {-0.45, -0.01, -0.45, 0.45, 0.865, 0.45}, visual = "mesh", mesh = "mobs_mc_pig.b3d", - textures = { - {"mobs_mc_pig.png"}, - }, + textures = {{ + "blank.png", -- baby + "mobs_mc_pig.png", -- base + "blank.png", -- saddle + }}, visual_size = {x=2.5, y=2.5}, makes_footstep_sound = true, walk_velocity = 1, @@ -36,19 +38,15 @@ mobs:register_mob("mobs_mc:pig", { distance = 16, }, animation = { - speed_normal = 40, + stand_speed = 40, + walk_speed = 40, + run_speed = 50, stand_start = 0, stand_end = 0, walk_start = 0, walk_end = 40, - hurt_start = 118, - hurt_end = 154, - death_start = 154, - death_end = 179, - eat_start = 49, - eat_end = 78, - look_start = 78, - look_end = 108, + run_start = 0, + run_end = 40, }, follow = mobs_mc.follow.pig, view_range = 5, @@ -106,7 +104,11 @@ mobs:register_mob("mobs_mc:pig", { -- Put saddle on pig local item = clicker:get_wielded_item() if item:get_name() == mobs_mc.items.saddle and self.saddle ~= "yes" then - self.base_texture = {"mobs_mc_pig.png^mobs_mc_pig_saddle.png"} + self.base_texture = { + "blank.png", -- baby + "mobs_mc_pig.png", -- base + "mobs_mc_pig_saddle.png", -- saddle + } self.object:set_properties({ textures = self.base_texture }) diff --git a/mods/ENTITIES/mobs_mc/rabbit.lua b/mods/ENTITIES/mobs_mc/rabbit.lua index 5e1b2b526..0a15f3c78 100644 --- a/mods/ENTITIES/mobs_mc/rabbit.lua +++ b/mods/ENTITIES/mobs_mc/rabbit.lua @@ -115,18 +115,16 @@ local spawn = { local spawn_desert = table.copy(spawn) spawn_desert.nodes = mobs_mc.spawn.desert -local on_spawn = function(self, pos) - local ent = self:get_luaentity() +spawn_desert.on_spawn = function(self, pos) local texture = "mobs_mc_rabbit_gold.png" - ent.base_texture = { "mobs_mc_rabbit_gold.png" } - self:set_properties({textures = ent.base_texture}) + self.base_texture = { "mobs_mc_rabbit_gold.png" } + self.object:set_properties({textures = self.base_texture}) end mobs:spawn(spawn_desert) local spawn_snow = table.copy(spawn) spawn_snow.nodes = mobs_mc.spawn.snow spawn_snow.on_spawn = function(self, pos) - local ent = self:get_luaentity() local texture local r = math.random(1, 100) -- 80% white fur @@ -136,15 +134,14 @@ spawn_snow.on_spawn = function(self, pos) else texture = "mobs_mc_rabbit_white_splotched.png" end - ent.base_texture = { texture } - self:set_properties({textures = ent.base_texture}) + self.base_texture = { texture } + self.object:set_properties({textures = self.base_texture}) end mobs:spawn(spawn_snow) local spawn_grass = table.copy(spawn) spawn_grass.nodes = mobs_mc.spawn.grassland spawn_grass.on_spawn = function(self, pos) - local ent = self:get_luaentity() local texture local r = math.random(1, 100) -- 50% brown fur @@ -157,8 +154,8 @@ spawn_grass.on_spawn = function(self, pos) else texture = "mobs_mc_rabbit_black.png" end - ent.base_texture = { texture } - self:set_properties({textures = ent.base_texture}) + self.base_texture = { texture } + self.object:set_properties({textures = self.base_texture}) end mobs:spawn(spawn_grass) diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_TEMP_wither_projectile.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_TEMP_wither_projectile.png index dfd13dfa8..df8b24c12 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_TEMP_wither_projectile.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_TEMP_wither_projectile.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_pig_saddle.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_pig_saddle.png index a42e77dcb..8126f31eb 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_pig_saddle.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_pig_saddle.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_shulkerbullet.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_shulkerbullet.png index 5e6546180..524491893 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_shulkerbullet.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_shulkerbullet.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_wither.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_wither.png index fb851769f..c1f01c3de 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_wither.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_wither.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_witherskeleton.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_witherskeleton.png index 8fd54fc60..75694303d 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_witherskeleton.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_spawn_icon_witherskeleton.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither.png index 4da3d2fcd..d0b299ee9 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither_skeleton.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither_skeleton.png index 42c091caf..d0d6afe77 100644 Binary files a/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither_skeleton.png and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_wither_skeleton.png differ diff --git a/mods/ENTITIES/mobs_mc/villager_agent.lua b/mods/ENTITIES/mobs_mc/villager_agent.lua deleted file mode 100644 index e3acc5290..000000000 --- a/mods/ENTITIES/mobs_mc/villager_agent.lua +++ /dev/null @@ -1,219 +0,0 @@ ---MCmobs v0.2 ---maikerumine ---made for MC like Survival game ---License for code WTFPL and otherwise stated in readmes - - ---dofile(minetest.get_modpath("mobs").."/api.lua") - ---################### ---################### AGENT ---################### - -mobs:register_mob("mobs_mc:63agent", { - type = "animal", - passive = true, - runaway = true, - stepheight = 1.2, - hp_min = 30, - hp_max = 60, - armor = 150, - collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35}, - visual = "mesh", - mesh = "mobs_mc_agent.b3d", - textures = { - {"mobs_mc_agent.png"}, - }, - visual_size = {x=3, y=3}, - walk_velocity = 0.6, - run_velocity = 2, - jump = true, - animation = { - speed_normal = 25, speed_run = 50, - stand_start = 20, stand_end = 60, - walk_start = 0, walk_end = 20, - run_start = 0, run_end = 20, - }, -}) - -mobs:register_egg("mobs_mc:63agent", "Agent", "mobs_mc_spawn_icon_agent.png", 0) - - - -mobs:register_mob("mobs_mc:villager", { - type = "npc", - hp_min = 35, - hp_max = 75, - collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.95, 0.4}, - textures = { - {"mobs_farmer.png"} - }, - visual = "mesh", - mesh = "mobs_villager.x", - makes_footstep_sound = true, - damage = 2, - walk_velocity = 1.2, - run_velocity = 2.4, - damage = 1, - group_attack = true, - attack_type = "dogfight", - drops = { - {name = "default:apple", - chance = 10, - min = 1, - max = 2,}, - }, - armor = 90, - sounds = { - random = "Villager1", - death = "Villagerdead", - damage = "Villagerhurt1", - }, - animation = { - speed_normal = 30, - speed_run = 60, - stand_start = 0, - stand_end = 23, - walk_start = 24, - walk_end = 49, - run_start = 24, - run_end = 49, - hurt_start = 85, - hurt_end = 115, - death_start = 117, - death_end = 145, - shoot_start = 50, - shoot_end = 82, - }, - water_damage = 1, - lava_damage = 5, - light_damage = 0, - view_range = 16, - fear_height = 5, - --[[ - on_rightclick = function(self, clicker) - local inv - inv = minetest.get_inventory({type="detached", name="trading_inv"}) - if not inv then - inv = minetest.create_detached_inventory("trading_inv", { - allow_take = function(inv, listname, index, stack, player) - if listname == "output" then - inv:remove_item("input", inv:get_stack("wanted", 1)) - minetest.sound_play("Villageraccept", {to_player = player:get_player_name()}) - end - if listname == "input" or listname == "output" then - --return 1000 - return 0 - else - return 0 - end - end, - allow_put = function(inv, listname, index, stack, player) - if listname == "input" then - return 1000 - else - return 0 - end - end, - on_put = function(inv, listname, index, stack, player) - if inv:contains_item("input", inv:get_stack("wanted", 1)) then - inv:set_stack("output", 1, inv:get_stack("offered", 1)) - minetest.sound_play("Villageraccept", {to_player = player:get_player_name()}) - else - inv:set_stack("output", 1, ItemStack("")) - minetest.sound_play("Villagerdeny", {to_player = player:get_player_name()}) - end - end, - on_move = function(inv, from_list, from_index, to_list, to_index, count, player) - if inv:contains_item("input", inv:get_stack("wanted", 1)) then - inv:set_stack("output", 1, inv:get_stack("offered", 1)) - minetest.sound_play("Villageraccept", {to_player = player:get_player_name()}) - else - inv:set_stack("output", 1, ItemStack("")) - minetest.sound_play("Villagerdeny", {to_player = player:get_player_name()}) - end - end, - on_take = function(inv, listname, index, stack, player) - if inv:contains_item("input", inv:get_stack("wanted", 1)) then - inv:set_stack("output", 1, inv:get_stack("offered", 1)) - minetest.sound_play("Villageraccept", {to_player = player:get_player_name()}) - else - inv:set_stack("output", 1, ItemStack("")) - minetest.sound_play("Villagerdeny", {to_player = player:get_player_name()}) - - end - end, - }) - end - inv:set_size("input", 1) - inv:set_size("output", 1) - inv:set_size("wanted", 1) - inv:set_size("offered", 1) - - local trades = { - {"default:apple 12", "default:clay_lump 1"}, - {"default:coal_lump 20", "default:clay_lump 1"}, - {"default:paper 30", "default:clay_lump 1"}, - {"mobs:leather 10", "default:clay_lump 1"}, - {"default:book 2", "default:clay_lump 1"}, - {"default:clay_lump 3", "default:clay_lump 1"}, - {"farming:potato 15", "default:clay_lump 1"}, - {"farming:wheat 20", "default:clay_lump 1"}, - {"farming:carrot 15", "default:clay_lump 1"}, - {"farming:melon_8 8", "default:clay_lump 1"}, - {"mobs:rotten_flesh 40", "default:clay_lump 1"}, - {"default:gold_ingot 10", "default:clay_lump 1"}, - {"farming:cotton 10", "default:clay_lump 1"}, - {"wool:white 15", "default:clay_lump 1"}, - {"farming:pumpkin 8", "default:clay_lump 1"}, - - {"default:clay_lump 1", "mobs:beef_cooked 5"}, - {"default:clay_lump 1", "mobs:chicken_cooked 7"}, - {"default:clay_lump 1", "farming:cookie 6"}, - {"default:clay_lump 1", "farming:pumpkin_bread 3"}, - {"default:clay_lump 1", "mobs:arrow 10"}, - {"default:clay_lump 3", "mobs:bow_wood 1"}, - {"default:clay_lump 8", "fishing:pole_wood 1"}, - --{"default:clay_lump 4", "potionspack:healthii 1"}, - {"default:clay_lump 1", "cake:cake 1"}, - {"default:clay_lump 10", "mobs:saddle 1"}, - {"default:clay_lump 10", "clock:1 1"}, - {"default:clay_lumpd 10", "compass:0 1"}, - {"default:clay_lump 1", "default:glass 5"}, - {"default:clay_lump 1", "nether:glowstone 3"}, - {"default:clay_lump 3", "mobs:shears 1"}, - {"default:clay_lump 10", "default:sword_diamond 1"}, - {"default:clay_lump 20", "3d_armor:chestplate_diamond 1"}, - } - local tradenum = math.random(#trades) - inv:set_stack("wanted", 1, ItemStack(trades[tradenum][1])) - inv:set_stack("offered", 1, ItemStack(trades[tradenum][2])) - - local formspec = - "size[9,8.75]".. - "background[-0.19,-0.25;9.41,9.49;trading_formspec_bg.png]".. - "bgcolor[#080808BB;true]".. - "listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]".. - "list[current_player;main;0,4.5;9,3;9]".. - "list[current_player;main;0,7.74;9,1;]" - .."list[detached:trading_inv;wanted;2,1;1,1;]" - .."list[detached:trading_inv;offered;5.75,1;1,1;]" - .."list[detached:trading_inv;input;2,2.5;1,1;]" - .."list[detached:trading_inv;output;5.75,2.5;1,1;]" - minetest.sound_play("Villagertrade", {to_player = clicker:get_player_name()}) - minetest.show_formspec(clicker:get_player_name(), "tradespec", formspec) - end, - - ]] -}) - --- compatibility -mobs:alias_mob("mobs:villager", "mobs_mc:villager") - --- spawn eggs -mobs:register_egg("mobs_mc:villager", "Villager", "spawn_egg_villager.png") - - -if minetest.settings:get_bool("log_mods") then - minetest.log("action", "MC mobs loaded") -end