diff --git a/catacomb/fill_chest.lua b/catacomb/fill_chest.lua new file mode 100644 index 0000000..e69de29 diff --git a/catacomb/init.lua b/catacomb/init.lua index 85dfc25..f88ca33 100644 --- a/catacomb/init.lua +++ b/catacomb/init.lua @@ -1,13 +1,13 @@ -- Parameters -- Approximate generation limits -local YMIN = -10000 -local YMAX = 10000 -local XMIN = -24000 -local XMAX = 34000 -local ZMIN = -13000 +local YMIN = -33000 +local YMAX = 33000 +local XMIN = -33000 +local XMAX = 39000 +local ZMIN = -33000 local ZMAX = 33000 -local YMAXSPA = -330 -- Maximum y for initial catacomb spawn and steps in air +local YMAXSPA = -3330 -- Maximum y for initial catacomb spawn and steps in air -- Spawn and generation local TCATSPA = 2.0 -- 3D noise threshold for initial chamber @@ -1012,3 +1012,5 @@ minetest.register_abm({ --print ("[catacomb] Chamber west " .. chugent .. "ms") end, }) +local path = minetest.get_modpath("catacomb") +dofile(path .. "/fill_chest.lua") diff --git a/dungeon-crawl/init.lua b/dungeon-crawl/init.lua deleted file mode 100644 index d416c61..0000000 --- a/dungeon-crawl/init.lua +++ /dev/null @@ -1,16 +0,0 @@ --- Gravestones, Mobs, and lore found in default dungeons. -local path = minetest.get_modpath("dungeon-crawl") -dungeon-crawl = {} - -dofile(path.."/spawn.lua") - --- Mobs -dofile(path.."/mobs/kobold.lua") - - --- Nodes -minetest.register_node(":dungeon-crawl:dudresser", { - description = "Dungeon drawer", - tiles = {"dresser_top.png", "dresser_front.png"}, - drop = "dungeon-crawl:dudresser", - diff --git a/dungeon-crawl/mobs/kobold.lua b/dungeon-crawl/mobs/kobold.lua deleted file mode 100644 index cba9d09..0000000 --- a/dungeon-crawl/mobs/kobold.lua +++ /dev/null @@ -1,32 +0,0 @@ --- The kobold mob that is rarer than the goblin and slightly larger. -mobs:register_mob("dungeon-crawl:kobold", { - type = "monster", - hp_max = 35, - hp_min = 30, - visual = "mesh", - fear_height = 10, - textures = -- How do I add .png files to GitHub repo? What do you think the Kobold should look like? - visual_size = {x=1, y=3}, - mesh = -- How do I create meshes? - collisionbox = -- What the heck is a collisionbox? - makes_footstep_sound = true, - view_range = 15, - walk_velocity = 1.0, - run_velocity = 1.5, - lifetimer = -- What does this do? - rotate = 360, - sounds = { - -- TODO, make sounds. - } - damage = 4, - jump = true, - drops = { - -- TODO, drop a kobold corpse with a chance of 100%, drop everything the kobold is wielding, low chance of potions. - } - water_damage = 0, - lava_damage = 12, - light_damage = 0, - end - end -}) --- TODO, make kobold spawn only occasionally in the catacombs. Make kobold model, make kobold animations. Make kobold slightly more difficult than goblin. diff --git a/dungeon-crawl/textures/README.md b/dungeon-crawl/textures/README.md deleted file mode 100644 index e299de1..0000000 --- a/dungeon-crawl/textures/README.md +++ /dev/null @@ -1,10 +0,0 @@ -Textures for nodes to be in dungeons. - - -The dungeon dresser needs some improvements in regards to appearance. - -There will be tables, candles, jail doors, etc. All kinds of things that are in roguelike games. - -You can help too! Put anything related to roguelikes and minetest in the commits. - -I will accept legitimate pull requests. diff --git a/dungeon-crawl/depends.txt b/dungeon_crawl/depends.txt similarity index 100% rename from dungeon-crawl/depends.txt rename to dungeon_crawl/depends.txt diff --git a/dungeon_crawl/init.lua b/dungeon_crawl/init.lua new file mode 100644 index 0000000..3f53a45 --- /dev/null +++ b/dungeon_crawl/init.lua @@ -0,0 +1,23 @@ +-- Mobs, and runes found in dungeons. +dungeon_crawl = {} +local path = minetest.get_modpath("dungeon_crawl") +local worldpath=minetest.get_worldpath() +local S +if minetest.get_modpath("intllib") then + S = intllib.Getter() +else + S = function(s) return s end +end +local function initialize_inventory() + return { + [1] = "", [2] = "", [3] = "", [4] = "", + [5] = "", [6] = "", [7] = "", [8] = "", + [9] = "", [10] = "", [11] = "", [12] = "", + [13] = "", [14] = "", [15] = "", [16] = "", + } +end +dungeon_crawl.intllib = S +dofile(path.."/spawn.lua") +dofile(path.."/mobs/kobold.lua") +dofile(path.."/nodes.lua") +print("Dungeon Crawl mod loaded") diff --git a/dungeon_crawl/mobs/kobold.lua b/dungeon_crawl/mobs/kobold.lua new file mode 100644 index 0000000..f28032e --- /dev/null +++ b/dungeon_crawl/mobs/kobold.lua @@ -0,0 +1,72 @@ +local S = mobs.intllib +mobs:register_mob("dungeon_crawl:kobold", { + type = "monster", + passive = false, + attack_type = "dogfight", + hp_max = 12, + gravity = 20, + hp_min = 12, + visual = "mesh", + fear_height = 10, + textures = { + "kobold.png" + }, + initial_inventory = { + {"default:sword_steel", chance = 1}, + {"default:sword_bronze", chance 1} + }, + if initial_inventory={"default:sword_steel"}; then + return nil "default:sword_bronze" + end, + if initial_inventory={"default:sword_bronze"}; then + return nil "default:sword_steel" + end, + visual_size = {x=1, y=2}, + mesh = "character.b3d", + collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35}, + makes_footstep_sound = true, + view_range = 15, + walk_velocity = 1.0, + run_velocity = 1.5, + rotate = 360, + armor = 70, + light_resistant = true, + sounds = { + -- TODO, make sounds. + }, + damage = 4, + jump = true, + drops = { + {name = "dungeon_crawl:kobold_corpse", chance = 1, min = 1, max = 1}, + + -- TODO, Drop everything the kobold is wielding. + }, + animation = { + speed_normal = 15, + speed_run = 20, + stand_start = 0, + stand_end = 15, + walk_start = 14, + walk_end = 30, + run_start = 30, + run_end = 60, + punch_start = 30, + punch_end = 70, + }, + water_damage = 0, + lava_damage = 12, + light_damage = 0, +}) +mobs:spawn({ + name = "dungeon_crawl:kobold", + nodes = {"default:cobble", "default:mossycobble"}, + max_light = 10, + chance 350, + active_object_count = 1, + max_height = -100, +}) +mobs:register_egg("dungeon_crawl:kobold", S("Kobold"), "kobold.png", 1, true) + +-- Wielded weapon + +--TODO, Make kobold model, make kobold slightly more difficult than goblin. diff --git a/dungeon-crawl/mod.conf b/dungeon_crawl/mod.conf similarity index 100% rename from dungeon-crawl/mod.conf rename to dungeon_crawl/mod.conf diff --git a/dungeon_crawl/nodes.lua b/dungeon_crawl/nodes.lua new file mode 100644 index 0000000..f73b2d8 --- /dev/null +++ b/dungeon_crawl/nodes.lua @@ -0,0 +1,15 @@ +-- Nodes here +local S = dungeon_crawl.intllib +local sound_wood = default.node_sound_wood_defaults() +local sound_stone = default.node_sound_stone_defaults() +local sound_glass = default.node_sound_glass_defaults() +local sound_leaves = default.node_sound_leaves_defaults() + +minetest.register_item(": dungeon_crawl:scroll", { + +}) + +minetest.register_node(":dungeon_crawl:dudresser", { + description = "Dungeon Dresser", + sounds = default.node_sound_wood_defaults() + diff --git a/lore.txt b/lore.txt new file mode 100644 index 0000000..6c9670e --- /dev/null +++ b/lore.txt @@ -0,0 +1,835 @@ +“Faerie contains many things besides elves and fays, and besides dwarfs, witches, trolls, giants, or dragons: +it holds the seas, the sun, the moon, the sky; and the earth, and all things that are in it: tree and bird, water and +stone, wine and bread, and ourselves, mortal men, when we are enchanted.” + +All that is gold does not glitter, +Not all those who wander are lost; +The old that is strong does not wither, +Deep roots are not reached by the frost. +From the ashes a fire shall be woken, +A light from the shadows shall spring; +Renewed shall be blade that was broken, +The crownless again shall be king. + + +The Road goes ever on and on + Down from the door where it began. +Now far ahead the Road has gone, + And I must follow, if I can, +Pursuing it with eager feet, + Until it joins some larger way +Where many paths and errands meet. + And whither then? I cannot say. + + +Ho! Ho! Ho! To the bottle I go +To heal my heart and drown my woe. +Rain may fall and wind may blow, +And many miles be still to go +But under a tall tree I will lie, +And let the clouds go sailing by. + + +"The leaves were long, the grass was green, +The hemlock-umbels tall and fair, +And in the glade a light was seen +Of stars in shadow shimmering. +Tinuviel was dancing there +To music of a pipe unseen, +And light of stars was in her hair, +And in her raiment glimmering. + + +There Beren came from mountains cold. +And lost he wandered under leaves, +And where the Elven-river rolled +He walked alone and sorrowing. +He peered between the hemlock-leaves +And saw in wonder flowers of gold +Upon her mantle and her sleeves, +And her hair like shadow following. + +Enchantment healed his weary feet +That over hills were doomed to roam; +And forth he hastened, strong and fleet, +And grasped at moonbeams glistening. +Through woven woods in Elvenhome +She lightly fled on dancing feet, +And left him lonely still to roam +In the silent forest listening. + +He heard there oft the flying sound +Of feet as light as linden-leaves, +Or music welling underground, +In hidden hollows quavering. +Now withered lay the hemlock-sheaves, +And one by one with sighing sound +Whispering fell the beachen leaves +In wintry woodland wavering. + +He sought her ever, wandering far +Where leaves of years were thickly strewn, +By light of moon and ray of star +In frosty heavens shivering. +Her mantle glinted in the moon, +As on a hill-top high and far +She danced, and at her feet was strewn +A mist of silver quivering. + +When winter passed, she came again, +And her song released the sudden spring, +Like rising lark, and falling rain, +And melting water bubbling. +He saw the elven-flowers spring +About her feet, and healed again +He longed by her to dance and sing +Upon the grass untroubling. + +Again she fled, but swift he came, +Tinuviel! Tinuviel! +He called her by her elvish name; +And there she halted listening. +One moment stood she, and a spell +His voice laid on her: Beren came, +And doom fell on Tinuviel +That in his arms lay glistening. + +As Beren looked into her eyes +Within the shadows of her hair, +The trembling starlight of the skies +He saw there mirrored shimmering. +Tinuviel the elven-fair, +Immortal maiden elven-wise, +About him cast her shadowy hair +And arms like silver glimmering. + +Long was the way that fate them bore, +O'er stony mountains cold and grey, +Through halls of iron and darkling door, +And woods of nightshade morrowless. +The Sundering Seas between them lay, +And yet at last they met once more, +And long ago they passed away +In the forest singing sorrowless." + + +In western lands beneath the Sun +The flowers may rise in Spring, +The trees may bud, the waters run, +The merry finches sing. +Or there maybe 'tis cloudless night, +And swaying branches bear +The Elven-stars as jewels white +Amid their branching hair. + +Though here at journey's end I lie +In darkness buried deep, +Beyond all towers strong and high, +Beyond all mountains steep, +Above all shadows rides the Sun +And Stars for ever dwell: +I will not say the Day is done, +Nor bid the Stars farewell. + + +Far over the Misty Mountains cold, +To dungeons deep and caverns old, +We must away, ere break of day, +To seek our pale enchanted gold. + +The dwarves of yore made mighty spells, +While hammers fell like ringing bells, +In places deep, where dark things sleep, +In hollow halls beneath the fells. + +For ancient king and elvish lord +There many a gleaming golden hoard +They shaped and wrought, and light they caught, +To hide in gems on hilt of sword. + +On silver necklaces they strung +The flowering stars, on crowns they hung +The dragon-fire, on twisted wire +They meshed the light of moon and sun. + +Far over the Misty Mountains cold, +To dungeons deep and caverns old, +We must away, ere break of day, +To claim our long-forgotten gold. + +Goblets they carved there for themselves, +And harps of gold, where no man delves +There lay they long, and many a song +Was sung unheard by men or elves. + +The pines were roaring on the heights, +The wind was moaning in the night, +The fire was red, it flaming spread, +The trees like torches blazed with light. + +The bells were ringing in the dale, +And men looked up with faces pale. +The dragon's ire, more fierce than fire, +Laid low their towers and houses frail. + +The mountain smoked beneath the moon. +The dwarves, they heard the tramp of doom. +They fled the hall to dying fall +Beneath his feet, beneath the moon. + +Far over the Misty Mountains grim, +To dungeons deep and caverns dim, +We must away, ere break of day, +To win our harps and gold from him! + +The wind was on the withered heath, +But in the forest stirred no leaf: +There shadows lay be night or day, +And dark things silent crept beneath. + +The wind came down from mountains cold, +And like a tide it roared and rolled. +The branches groaned, the forest moaned, +And leaves were laid upon the mould. + +The wind went on from West to East; +All movement in the forest ceased. +But shrill and harsh across the marsh, +Its whistling voices were released. + +The grasses hissed, their tassels bent, +The reeds were rattling—on it went. +O'er shaken pool under heavens cool, +Where racing clouds were torn and rent. + +It passed the Lonely Mountain bare, +And swept above the dragon's lair: +There black and dark lay boulders stark, +And flying smoke was in the air. + +It left the world and took its flight +Over the wide seas of the night. +The moon set sale upon the gale, +And stars were fanned to leaping light. + +Under the Mountain dark and tall, +The King has come unto his hall! +His foe is dead, the Worm of Dread, +And ever so his foes shall fall! + +The sword is sharp, the spear is long, +The arrow swift, the Gate is strong. +The heart is bold that looks on gold; +The dwarves no more shall suffer wrong. + +The dwarves of yore made mighty spells, +While hammers fell like ringing bells +In places deep, where dark things sleep, +In hollow halls beneath the fells. + +On silver necklaces they strung +The light of stars, on crowns they hung +The dragon-fire, from twisted wire +The melody of harps they wrung. + +The mountain throne once more is freed! +O! Wandering folk, the summons heed! +Come haste! Come haste! Across the waste! +The king of friend and kin has need. + +Now call we over the mountains cold, +'Come back unto the caverns old!' +Here at the gates the king awaits, +His hands are rich with gems and gold. + +The king has come unto his hall +Under the Mountain dark and tall. +The Worm of Dread is slain and dead, +And ever so our foes shall fall! + +Farewell we call to hearth and hall! +Though wind may blow and rain may fall, +We must away, ere break of day +Far over the wood and mountain tall. + +To Rivendell, where Elves yet dwell +In glades beneath the misty fell. +Through moor and waste we ride in haste, +And whither then we cannot tell. + +With foes ahead, behind us dread, +Beneath the sky shall be our bed, +Until at last our toil be passed, +Our journey done, our errand sped. + +We must away! We must away! +We ride before the break of day! + + +Ash nazg durbatulûk, ash nazg gimbatul, +Ash nazg thrakutulûk agh burzum-ishi krimpatul. + +Three Rings for the Elven-kings under the sky, +Seven for the dwarf-lords in their halls of stone, +Nine for Mortal Men doomed to die, +One for the Dark Lord on his dark throne, +In the Land of Mordor where the Shadows lie. +One Ring to rule them all, One Ring to find them, +One Ring to bring them all and in the darkness bind them +In the Land of Mordor where the Shadows lie. + + +The world was young, the mountains green, +No stain yet on the Moon was seen, +No words were laid on stream or stone, +When Durin woke and walked alone. +He named the nameless hills and dells; +He drank from yet untasted wells; +He stooped and looked in Mirrormere, +And saw a crown of stars appear, +As gems upon a silver thread, +Above the shadow of his head. + +The world was fair, the mountains tall, +In Elder Days before the fall +Of mighty kings in Nargothrond +And Gondolin, who now beyond +The Western Seas have passed away: +The world was fair in Durin's Day. + +A king he was on carven throne +In many-pillared halls of stone +With golden roof and silver floor, +And runes of power upon the door. +The light of sun and star and moon +In shining lamps of crystal hewn +Undimmed by cloud or shade of night +There shone for ever fair and bright. + +There hammer on the anvil smote, +There chisel clove, and graver wrote; +There forged was blade, and bound was hilt; +The delver mined, the mason built. +There beryl, pearl, and opal pale, +And metal wrought like fishes' mail, +Buckler and corslet, axe and sword, +And shining spears were laid in hoard. + +Unwearied then were Durin's folk; +Beneath the mountains music woke: +The harpers harped, the minstrels sang, +And at the gates the trumpets rang. + +The world is grey, the mountains old, +The forge's fire is ashen-cold; +No harp is wrung, no hammer falls: +The darkness dwells in Durin's halls; +The shadow lies upon his tomb +In Moria, in Khazad-dum. +But still the sunken stars appear +In dark and windless Mirrormere; +There lies his crown in water deep, +Till Durin wakes again from sleep. + + +He chanted a song of wizardry, +Of piercing, opening, of treachery, +Revealing, uncovering, betraying. +Then sudden Felagund there swaying +Sang in answer a song of staying, +Resisting, battling against power, +Of secrets kept, strength like a tower, +And trust unbroken, freedom, escape; +Of changing and of shifting shape +Of snares eluded, broken traps, +The prison opening, the chain that snaps. + Backwards and forwards swayed their song. +Reeling and foundering, as ever more strong +The chanting swelled, Felagund fought, +And all the magic and might he brought +Of Elvenesse into his words. +Softly in the gloom they heard the birds +Singing afar in Nargothrond, +The sighing of the Sea beyond, +Beyond the western world, on sand, +On sand of pearls in Elvenland. + Then the gloom gathered; darkness growing +In Valinor, the red blood flowing +Beside the Sea, where the Noldor slew +The Foamriders, and stealing drew +Their white ships with their white sails +From lamplit havens. The wind wails, +The wolf howls. The ravens flee. +The ice mutters in the mouths of the Sea. +The captives sad in Angband mourn. +Thunder rumbles, the fires burn —- + And Finrod fell before the throne. + +Sing all ye joyful, now sing all together! +The wind's in the tree-top, the wind's in the heather; +The stars are in blossom, the moon is in flower, +And bright are the windows of night in her tower. + +Dance all ye joyful, now dance all together! +Soft is the grass, and let foot be like feather! +The river is silver, the shadows are fleeting; +Merry is May-time, and merry our meeting. + +Sigh no more pine, till the wind of the morn! +Fall Moon! Dark be the land! +Hush! Hush! Oak, ash and thorn! +Hushed by all water, till dawn is at hand! + +I sang of leaves, of leaves of gold, and leaves of gold there grew: +Of wind I sang, a wind there came and in the branches blew. +Beyond the Sun, beyond the Moon, the foam was on the Sea, +And by the strand of Ilmarin there grew a golden Tree. +Beneath the stars of Ever-eve in Eldamar it shone, +In Eldamar beside the walls of Elven Tirion. +There long the golden leaves have grown upon the branching years, +While here beyond the Sundering Seas now fall the Elven-tears. +O Lórien! The Winter comes, the bare and leafless Day; +The leaves are falling in the stream, the River flows away. +O Lórien! Too long I have dwelt upon this Hither Shore +And in a fading crown have twined the golden elanor. +But if of ships I now should sing, what ship would come to me, +What ship would bear me ever back across so wide a Sea? + + +Farewell we call to hearth and hall! +Though wind may blow and rain may fall, +We must away ere break of day +Far over wood and mountain tall. + +To Rivendell, where Elves yet dwell +In glades beneath the misty fell, +Through moor and waste we ride in haste, +And whither then we cannot tell. + +With foes ahead, behind us dread, +Beneath the sky shall be our bed, +Until at last our toil be passed, +Our journey done, our errand sped. + +We must away! We must away! +We ride before the break of day! + + +The King beneath the mountains, +The King of carven stone, +The lord of silver fountains, +Shall come into his own! + +His crown shall be upholden, +His harp shall be restrung, +His halls shall echo golden, +To songs of yore re-sung. + +The woods shall wave on mountains, +And grass beneath the sun; +His wealth shall flow in fountains, +And the rivers golden run. + +The streams shall run in gladness, +The lakes shall shine and burn, +All sorrow fail and sadness, +At the Mountain-king's return. + + +When the black breath blows, +And death's shadow grows, +Come Athelas! Come Athelas! +Life to the dying, +In the king's hand lying! + + +Earendil was a mariner +that tarried in Arvernien; +he built a boat of timber felled +in Nimbrethil to journey in; +her sails he wove of silver fair, +of silver were her lanterns made, +her prow was fashioned like a swan +and light upon her banners laid. + +In panolpy of ancient kings, +in chained rings he armoured him; +his shining shield was scored with runes +to ward all wounds and harm from him; +his bow was made of dragon-horn, +his arrows shorn of ebony; +of silver was his habergeon, +his scabbard of chalcedony; +his sword of steel was valient, +of adamant his helmet tall, +an eagle-plume upon his crest, +upon his breast an emerald. + +Beneath the Moon and under star +he wandered far from northern strands, +bewildered on enchanted ways +beyond the days of mortal lands. + +From gnashing of the Narrow Ice +where shadow lies on frozen hills, +from nether heats and burning waste +he turned in haste, and roving still +on starless waters far astray +at last he came to Night of Naught, +and passed, and never sight he saw +of shining shore nor light he sought. + +The winds of wrath came driving him, +and blindly in the foam he fled +from west to east and errandless, +unheralded he homeward sped. + +There flying Elwing came to him, +and flame was in the darkness lit; +more bright than light of diamond +the fire on her carcanet. + +The Silmaril she bound on him +and crowned him with the living light, +and dauntless then with burning brow +he turned his prow; and in the night +from otherworld beyond the Sea +there strong and free a storm arose, +a wind of power in Tarmenel; +by paths that seldom mortal goes +his boat it bore with biting breath +as might of death across the grey +and long forsaken seas distressed; +from east to west he passed away. + +Thought Evernight he back was borne +on black and roaring waves that ran +o'er leagues unlit and foundered shores +that drowned before the Days began, +until he hears on strands of pearl +where end the world the music long, +where ever-foaming billows roll +the yellow gold and jewels wan. + +He saw the Mountain silent rise +where twilight lies upon the knees +of Valinor, and Eldamar +beheld afar beyond the seas. + +A wanderer escaped from night +to haven white he came at last, +to Elvenhome the green and fair +where keen the air, where pale as glass +beneath the Hill of Ilmarin +a-glimmer in a valley sheer +the lamplit towers of Tirion +are mirrored on the Shadowmere. + +He tarried there from errantry, +and melodies they taught to him, +and sages old him marvels told, +and harps of gold they brought to him. + +They clothed him then in elven-white, +and seven lights before him sent, +as through the Calacirian +to hidden land forlorn he went. + +He came unto the timeless halls +where shining fall the countless years, +and endless reigns the Elder King +in Ilmarin on Mountain sheer; +and words unheard were spoken then +of folk and Men and Elven-kin, +beyond the world were visions showed +forbid to those that dwell therein. + +A ship then new they built for him +of mithril and of elven glass +with shining prow; no shaven oar +nor sail she bore on silver mast: +the Silmaril as lantern light +and banner bright with living flame +to gleam thereon by Elbereth +herself was set, who thither came +and wings immortal made for him, +and laid on him undying doom, +to sail the shoreless skies and come +behind the Sun and light of Moon. + +From Evergreen's lofty hills +where softly silver fountains fall +his wings him bore, a wandering light, +beyond the mighty Mountain Wall. + +From a World's End there he turned away, +and yearned again to find afar +his home through shadows journeying, +and burning as an island star +on high above the mists he came, +a distant flame before the Sun, +a wonder ere the waking dawn +where grey the Norland waters run. + +And over Middle-Earth he passed +and heard at last the weeping sore +of women and of elven-maids +in Elder Days, in years of yore. + +But on him mighty doom was laid, +till Moon should fade, an orbed star +to pass, and tarry never more +on Hither Shores where Mortals are; +or ever still a herald on +an errand that should never rest +to bear his shining lamp afar, +to Flammifer of Westernesse. + + +Snow-white! Snow-white! O lady clear! +O Queen beyond the Western Sea! +O Light to us that wander here +Amid the world of woven trees! + +Gilthoniel! O Elbereth! +Clear are thy eyes and bright thy breath. +Snow-white! Snow-white! We sing to thee +In a far land beyond the Sea. + +O stars that in the Sunless Year +With shining hand by her were sown, +In windy fields now bright and clear +We see your silver blossom blown. + +O Elbereth! Gilthoniel! +We still remember, we who dwell +In this far land beneath the trees, +Thy starlight on the Western Seas. + +A Elbereth Gilthoniel, +Silivren penna miriel +O menal aglar elenath! +Na-chaered palan-diriel +O galadhremmin ennorath, +Fanuilos, le linnathon +nef aear, si nef aearon! + +Ai! laurie lantar lassi surinen! +Yeni unotime ve ramar aldaron, +Yeni ve linte yuldar vanier +Mi oromardi lisse-miruvoreva +Andune pella Vardo tellumar +Nu luini yassen tintilar i eleni +Omaryo airetari-lirinen. + +Si man i yulma nin enquantuva? + +An si Tintalle Varda Oilosseo +Ve fanyar maryat Elentari ortane, +Ar ilye tier undulare lumbule; +Ar sindanoriello caita mornie +I falmalinnar imbe met, ar hisie +Untupa Calaciryo miri oiale. +Si vanwa na, Romello vanwa, Valimar! +Namarie! Nai hiruvalye Valimar. +Nai elye hiruva. Namarie! + +Ah! Like gold fall the leaves in the wind, +Long years numberless as the wings of trees! +The long years have passed like swift draughts of the sweet mead +In lofty halls beyond the West +Beneath the blue vaults of Varda +Wherein the stars tremble in the song of her voice, +Holy and queenly. + +Who now shall refill the cup for me? + +For now the Kindler, Varda, +The Queen of the Stars, from Mount Everwhite +Has uplifted her hands like clouds, +And all paths are drowned deep in shadow; +And out of a grey country darkness lies on the foaming waves between us, +And mist covers the jewels of Calacirya for ever. +Now lost, lost to those from the East is Valimar! + +Farewell! Maybe thou shalt find Valimar. +Maybe even thou shalt find it! Farewell! + +Gilthoniel A Elbereth! +A Elbereth Gilthoniel +O menel palan-diriel, +Le nallon si dinguruthos! +A tiro nin, Fanuilos! + +A! Elbereth Gilthoniel! +Silivren penna miriel +O menal aglar elenath, +Gilthoniel, A! Elbereth! +We still remember, we who dwell +In this far land beneath the trees +Thy starlight on the Western Seas. + + + + + O! What are you doing, +And where are you going? +Your ponies need shoeing! +The River is flowing! +O! Tra-la-la-lally +Here down in the valley! + +O! What are you seeking, +And where are you making? +The faggots are reeking! +The bannocks are baking! +O! Tril-lil-lil-lolly +The valley is jolly +Ha ha! + +O! Where are you going, +With beards all a-wagging? +No knowing, no knowing +What brings Mister Baggins, +And Balin and Dwalin +Down into the valley +In June +Ha ha! + +O! Will you be staying, +Or will you be flying? +Your ponies are straying! +The daylight is dying! +To fly would be folly, +To stay would be jolly! +And listen and hark +Till the end of the dark +To our tune. + +Ha ha! + +The dragon is withered, +His bones are now crumbled! +His armor is shivered, +His splendour is humbled! +Though sword shall be rusted +And throne and crown perish, +With strength that men trusted +And wealth that they cherish, +Here grass is still growing, +And leaves are yet swinging! +The white water is flowing, +And elves are yet singing! +Come! Tra-la-la-lally! +Come back to the valley! + +The stars are far brighter +Than gems without measure, +The moon is far whiter +Than silver in treasure: +The fire is more shining +On hearth in the gloaming +Than gold won by mining, +So why so a-roaming? +O! Tra-la-la-lally! +Come back to the Valley! + +O! Where are you going? +So late in returning? +The water is flowing! +The stars are all burning! +O! Whither so laden, +So sad and so dreary? +Here elf and elf-maiden +Now welcome the weary! +With tra-la-la-lally +Come back to the Valley, +Tra-la-la-lally +Fa-la-la-lally +Ha ha! + + + He chanted a song of wizardry, +Of piercing, opening, of treachery, +Revealing, uncovering, betraying. + +Then sudden Felagund there swaying +Sang in answer a song of staying, +Resisting, battling against power, +Of secrets kept, strength like a tower, +And trust unbroken, freedom, escape; +Of changing and of shifting shape +Of snares eluded, broken traps, +The prison opening, the chain that snaps. + +Backwards and forwards swayed their song. + +Reeling and foundering, as ever more strong +The chanting swelled, Felagund fought, +And all the magic and might he brought +Of Elvenesse into his words. + +Softly in the gloom they heard the birds +Singing afar in Nargothrond, +The sighing of the Sea beyond, +Beyond the western world, on sand, +On sand of pearls in Elvenland. + +Then the gloom gathered; darkness growing +In Valinor, the red blood flowing +Beside the Sea, where the Noldor slew +The Foamriders, and stealing drew +Their white ships with their white sails +From lamplit havens. + The wind wails, +The wolf howls. + The ravens flee. + +The ice mutters in the mouths of the Sea. + +The captives sad in Angband mourn. + +Thunder rumbles, the fires burn --- +And Finrod fell before the throne. + + + + + Day is ended, dim my eyes, +But journey long before me lies. + +Farewell, friends! I hear the call. + +The ship's beside the stony wall. + +Foam is white and waves are grey; +beyond the sunset leads my way. + +Foam is salt, the wind is free; +I hear the rising of the sea. + + +Farewell, friends! The sails are set, +the wind is east, the moorings fret. + +Shadows long before me lie, +beneath the ever-bending sky, +but islands lie behind the Sun +that i shall raise ere all is done; +lands there are to west of West, +where night is quiet and sleep is rest. + + +Guided by the Lonely Star, +beyond the utmost harbour-bar, +I'll find the heavens fair and free, +and beaches of the Starlit Sea. + +Ship my ship! I seek the West, +and fields and mountains ever blest. + +Farewell to Middle-earth at last. + +I see the star above my mast! + + diff --git a/nethack/depends.txt b/nethack/depends.txt new file mode 100644 index 0000000..89d79b7 --- /dev/null +++ b/nethack/depends.txt @@ -0,0 +1,2 @@ +default +catacomb diff --git a/nethack/init.lua b/nethack/init.lua index 8b13789..1dfc57a 100644 --- a/nethack/init.lua +++ b/nethack/init.lua @@ -1 +1,19 @@ +-- Nethack init.lua +local path = minetest.get_modpath("nethack") +nethack = {} +-- Intllib +local S +if minetest.global_exists("intllib") then + if intllib.make_gettext_pair then + S = intllib.make_gettext_pair() + else + S = intllib.Getter() + end +else + S = function(s) return s end +end +nethack.intllib = S +dofile(path.."/mobs/hill_orc.lua") + +print("Nethack mod loaded") diff --git a/nethack/mobs/hill_orc.lua b/nethack/mobs/hill_orc.lua index 7c7cebc..d36260a 100644 --- a/nethack/mobs/hill_orc.lua +++ b/nethack/mobs/hill_orc.lua @@ -1,3 +1,33 @@ -- The hill orcs usually found in mines. They will spawn outside of dungeons and stay underground. -hill_orc={ - gravity=15, +local S = nethack.intllib +mobs:register_mob("nethack:hill_orc", { + gravity= 15, + type = "monster", + passive = false, + hp_min = 30, + hp_max = 30, + visual = "mesh", + fear_height = 30, + textures = { + "hill_orc.png", + }, + visual_size = {x=1, y=3}, + mesh = -- TODO, Create mesh + collisionbox = --What should I put in for collision box for 1 block wide and 1 block tall? + makes_footstep_sound = true, + view_range = 10, + walk_velocity = 1.5, + run_velocity = 2.0, + rotate = 360, + sounds = { + -- TODO make growling and roaring orc sounds + }, + damage = 7, + jump = true, + drops = { + -- TODO drop orc corpse 100% of the time, drop armor 25% of the time, drop wielded weapons 100% of the time. + }, + water_damage = 1, + lava_damage = 10, + light_damage = 0, +})