From d2ed498f45bf4c5f55833205bd0ff1c4977ca165 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 1 Dec 2020 00:08:38 -0700 Subject: [PATCH] add a few edibles to the primordial layer --- df_primordial_items/doc.lua | 6 +++++ df_primordial_items/edibles.lua | 23 ++++++++++++++++++ df_primordial_items/fungal_nodes.lua | 13 ++++++++++ df_primordial_items/init.lua | 3 ++- df_primordial_items/jungle_nodes.lua | 15 ++++++++++++ .../locale/df_primordial_items.de.tr | 12 +++++++++ .../locale/df_primordial_items.it.tr | 12 +++++++++ df_primordial_items/locale/template.txt | 12 +++++++++ .../textures/dfcaverns_glowtato.png | Bin 0 -> 698 bytes .../textures/dfcaverns_primordial_fruit.png | Bin 0 -> 619 bytes 10 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 df_primordial_items/edibles.lua create mode 100644 df_primordial_items/textures/dfcaverns_glowtato.png create mode 100644 df_primordial_items/textures/dfcaverns_primordial_fruit.png diff --git a/df_primordial_items/doc.lua b/df_primordial_items/doc.lua index 89c20ee..59a0dce 100644 --- a/df_primordial_items/doc.lua +++ b/df_primordial_items/doc.lua @@ -72,3 +72,9 @@ df_primordial_items.doc.plant_matter_usage = df_primordial_items.doc.packed_root -- --df_primordial_items.doc.thorn_desc = --df_primordial_items.doc.thorn_usage = + +df_primordial_items.doc.primordial_fruit_desc = S("This strange fruit from the depths has absorbed healthful energies.") +df_primordial_items.doc.primordial_fruit_usage = S("Eating this fruit will improve your vitality.") + +df_primordial_items.doc.glowtato_desc = S("A strangely glowing starchy nodule from a plant that grew deeper than any plant has a right to.") +df_primordial_items.doc.glowtato_usage = S("Much energy is contained in this tuber. It tastes surprisingly good, too. You could cook with it but any change in its pure state would only reduce its value.") diff --git a/df_primordial_items/edibles.lua b/df_primordial_items/edibles.lua new file mode 100644 index 0000000..3a89fb8 --- /dev/null +++ b/df_primordial_items/edibles.lua @@ -0,0 +1,23 @@ +local S = df_primordial_items.S + +minetest.register_craftitem("df_primordial_items:primordial_fruit", { + description = S("Primordial Fruit"), + _doc_items_longdesc = df_primordial_items.doc.primordial_fruit_desc, + _doc_items_usagehelp = df_primordial_items.doc.primordial_fruit_usage, + inventory_image = "dfcaverns_primordial_fruit.png", + groups = {food = 8}, + sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}}, + on_use = minetest.item_eat(8), + _hunger_ng = {heals = 8}, +}) + +minetest.register_craftitem("df_primordial_items:glowtato", { + description = S("Glowtato"), + _doc_items_longdesc = df_primordial_items.doc.glowtato_desc, + _doc_items_usagehelp = df_primordial_items.doc.glowtato_usage, + inventory_image = "dfcaverns_glowtato.png", + sound = {eat = {name = "df_farming_chomp_crunch", gain = 1.0}}, + groups = {food = 8, dfcaverns_cookable = 1}, + on_use = minetest.item_eat(8), + _hunger_ng = {satiates = 8}, +}) diff --git a/df_primordial_items/fungal_nodes.lua b/df_primordial_items/fungal_nodes.lua index 2a36211..4556485 100644 --- a/df_primordial_items/fungal_nodes.lua +++ b/df_primordial_items/fungal_nodes.lua @@ -92,6 +92,19 @@ minetest.register_node("df_primordial_items:glow_pods", { groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1, primordial_fungal_plant = 1, light_sensitive_fungus = 13}, paramtype = "light", drawtype = "plantlike", + drop = { + max_items = 2, + items = { + { + rarity = 3, + items = {"df_primordial_items:primordial_fruit"}, + }, + { + rarity = 3, + items = {"df_primordial_items:primordial_fruit"}, + }, + }, + }, buildable_to = true, is_ground_content = false, walkable = false, diff --git a/df_primordial_items/init.lua b/df_primordial_items/init.lua index 2e18a71..c6253ac 100644 --- a/df_primordial_items/init.lua +++ b/df_primordial_items/init.lua @@ -14,4 +14,5 @@ dofile(modpath.."/giant_fern.lua") dofile(modpath.."/fungal_nodes.lua") dofile(modpath.."/ceiling_fungus.lua") dofile(modpath.."/primordial_mushroom.lua") -dofile(modpath.."/giant_mycelium.lua") \ No newline at end of file +dofile(modpath.."/giant_mycelium.lua") +dofile(modpath.."/edibles.lua") \ No newline at end of file diff --git a/df_primordial_items/jungle_nodes.lua b/df_primordial_items/jungle_nodes.lua index 07a513d..083a77d 100644 --- a/df_primordial_items/jungle_nodes.lua +++ b/df_primordial_items/jungle_nodes.lua @@ -61,6 +61,19 @@ minetest.register_node("df_primordial_items:glow_plant_1", { is_ground_content = false, walkable = false, light_source = 6, + drop = { + max_items = 2, + items = { + { + rarity = 3, + items = {"df_primordial_items:primordial_fruit"}, + }, + { + rarity = 3, + items = {"df_primordial_items:primordial_fruit"}, + }, + }, + }, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = true, sunlight_propagates = true, @@ -80,6 +93,7 @@ minetest.register_node("df_primordial_items:glow_plant_2", { buildable_to = true, is_ground_content = false, walkable = false, + drop = "df_primordial_items:glowtato", light_source = 6, sounds = df_primordial_items.sounds.leaves, use_texture_alpha = true, @@ -97,6 +111,7 @@ minetest.register_node("df_primordial_items:glow_plant_3", { _dfcaverns_dead_node = df_primordial_items.node_names.dry_shrub, paramtype = "light", drawtype = "plantlike", + drop = "df_primordial_items:glowtato 2", buildable_to = true, is_ground_content = false, walkable = false, diff --git a/df_primordial_items/locale/df_primordial_items.de.tr b/df_primordial_items/locale/df_primordial_items.de.tr index 65b6f9c..ce4a882 100644 --- a/df_primordial_items/locale/df_primordial_items.de.tr +++ b/df_primordial_items/locale/df_primordial_items.de.tr @@ -16,9 +16,12 @@ Primordial Fungal Orb=Urpilzkugel ### doc.lua ### +A strangely glowing starchy nodule from a plant that grew deeper than any plant has a right to.= + #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Compared to the behemoths found elsewhere in the deep places of the world, the giant mushrooms of the primordial jungles are on the smaller side - often overwhelmed by the green plants that grow in the mysterious light below. Still, they can become substantial resources.=Im Vergleich zu den Giganten, die anderswo in den Tiefen der Welt zu finden sind, sind die riesigen Pilze des Urdschungels eher klein - oft überwältigt von den grünen Pflanzen, die im mysteriösen Licht unten wachsen. Dennoch können sie zu erheblichen Ressourcen werden. +Eating this fruit will improve your vitality.= #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Fibers extracted from gigantic fungal hyphae.=Fasern aus riesigen Pilzhyphen. @@ -34,6 +37,8 @@ Ivy is climbable, if it hangs close enough to the ground it can serve as a path #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Like wood of the surface world, primordial jungle trees can be chopped and carved as building material or as fuel.=Ursprüngliche Dschungelbäume können wie Holz der Oberflächenwelt als Baumaterial oder als Brennstoff gehackt und geschnitzt werden. +Much energy is contained in this tuber. It tastes surprisingly good, too. You could cook with it but any change in its pure state would only reduce its value.= + #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Much like a rope, hyphae have fibers inside that can be unraveled and used for a variety of crafts.=Ähnlich wie ein Seil haben Hyphen Fasern im Inneren, die entwirrt und für eine Vielzahl von Handwerken verwendet werden können. @@ -88,6 +93,8 @@ These fibrous plants that grow in the deep appear similar to grass at a glance, #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE These hanging roots are climbable.=Diese hängenden Wurzeln sind kletterbar. +This strange fruit from the depths has absorbed healthful energies.= + #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE When a fern grows to such sizes its stem becomes dense enough to be used as a form of wood.=Wenn ein Farn so groß wird, wird sein Stamm dicht genug, um als Holzform verwendet zu werden. @@ -98,6 +105,11 @@ When left uncultivated mycelial soil will sprout all manner of strange wild fung When left uncultivated primordial jungle soil will sprout all manner of strange wild plants.=Wenn sie nicht kultiviert werden, sprießen alle Arten von seltsamen Wildpflanzen aus dem ursprünglichen Dschungelboden. +### edibles.lua ### + +Glowtato= +Primordial Fruit= + ### fungal_nodes.lua ### #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE diff --git a/df_primordial_items/locale/df_primordial_items.it.tr b/df_primordial_items/locale/df_primordial_items.it.tr index 0767857..51f1591 100644 --- a/df_primordial_items/locale/df_primordial_items.it.tr +++ b/df_primordial_items/locale/df_primordial_items.it.tr @@ -16,9 +16,12 @@ Primordial Fungal Orb=Globo fungino primordiale ### doc.lua ### +A strangely glowing starchy nodule from a plant that grew deeper than any plant has a right to.= + #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Compared to the behemoths found elsewhere in the deep places of the world, the giant mushrooms of the primordial jungles are on the smaller side - often overwhelmed by the green plants that grow in the mysterious light below. Still, they can become substantial resources.=Rispetto ai behemoth che si trovano altrove nelle profondità del mondo, i funghi giganti delle giungle primordiali sono sul lato più piccolo, spesso sopraffatti dalle piante verdi che crescono nella misteriosa luce sottostante. Tuttavia, possono diventare risorse sostanziali. +Eating this fruit will improve your vitality.= #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Fibers extracted from gigantic fungal hyphae.=Fibre estratte da gigantesche ife fungine. @@ -34,6 +37,8 @@ Ivy is climbable, if it hangs close enough to the ground it can serve as a path #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Like wood of the surface world, primordial jungle trees can be chopped and carved as building material or as fuel.=Come il legno del mondo di superficie, gli alberi della giungla primordiale possono essere tagliati e intagliati come materiale da costruzione o come combustibile. +Much energy is contained in this tuber. It tastes surprisingly good, too. You could cook with it but any change in its pure state would only reduce its value.= + #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE Much like a rope, hyphae have fibers inside that can be unraveled and used for a variety of crafts.=Proprio come una corda, le ife hanno fibre all'interno che possono essere svelate e utilizzate per una varietà di mestieri. @@ -88,6 +93,8 @@ These fibrous plants that grow in the deep appear similar to grass at a glance, #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE These hanging roots are climbable.=Queste radici pendenti sono scalabili. +This strange fruit from the depths has absorbed healthful energies.= + #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE When a fern grows to such sizes its stem becomes dense enough to be used as a form of wood.=Quando una felce raggiunge tali dimensioni, il suo gambo diventa abbastanza denso da essere usato come una forma di legno. @@ -98,6 +105,11 @@ When left uncultivated mycelial soil will sprout all manner of strange wild fung When left uncultivated primordial jungle soil will sprout all manner of strange wild plants.=Se lasciato incolto, il terreno della giungla primordiale germoglierà ogni sorta di strane piante selvatiche. +### edibles.lua ### + +Glowtato= +Primordial Fruit= + ### fungal_nodes.lua ### #WARNING: AUTOTRANSLATED BY GOOGLE TRANSLATE diff --git a/df_primordial_items/locale/template.txt b/df_primordial_items/locale/template.txt index bc2f161..20836c6 100644 --- a/df_primordial_items/locale/template.txt +++ b/df_primordial_items/locale/template.txt @@ -13,8 +13,11 @@ Primordial Fungal Orb= ### doc.lua ### +A strangely glowing starchy nodule from a plant that grew deeper than any plant has a right to.= + Compared to the behemoths found elsewhere in the deep places of the world, the giant mushrooms of the primordial jungles are on the smaller side - often overwhelmed by the green plants that grow in the mysterious light below. Still, they can become substantial resources.= +Eating this fruit will improve your vitality.= Fibers extracted from gigantic fungal hyphae.= Fungal fibers have infiltrated the ground in a spongy mass, making the soil half mineral and half living matter.= @@ -25,6 +28,8 @@ Ivy is climbable, if it hangs close enough to the ground it can serve as a path Like wood of the surface world, primordial jungle trees can be chopped and carved as building material or as fuel.= +Much energy is contained in this tuber. It tastes surprisingly good, too. You could cook with it but any change in its pure state would only reduce its value.= + Much like a rope, hyphae have fibers inside that can be unraveled and used for a variety of crafts.= Much like the giant mushrooms of higher cavern layers, these can be carved into woody material for use as fuel or for building things. The grain of these primordial mushrooms is knurled.= @@ -61,6 +66,8 @@ These fibrous plants that grow in the deep appear similar to grass at a glance, These hanging roots are climbable.= +This strange fruit from the depths has absorbed healthful energies.= + When a fern grows to such sizes its stem becomes dense enough to be used as a form of wood.= When left uncultivated mycelial soil will sprout all manner of strange wild fungi.= @@ -68,6 +75,11 @@ When left uncultivated mycelial soil will sprout all manner of strange wild fung When left uncultivated primordial jungle soil will sprout all manner of strange wild plants.= +### edibles.lua ### + +Glowtato= +Primordial Fruit= + ### fungal_nodes.lua ### Dirt with Primordial Mycelium= diff --git a/df_primordial_items/textures/dfcaverns_glowtato.png b/df_primordial_items/textures/dfcaverns_glowtato.png new file mode 100644 index 0000000000000000000000000000000000000000..6456425dc1b054e8707e5ebbd3661207b0e7b5ed GIT binary patch literal 698 zcmV;r0!96aP)z0R;dK-9DDQ0000PbVXQnLvL+uWo~o;Lvm$dbY)~9 zcWHEJAV*0}P*;Ht7XSbPG)Y83R5;7cl1Xb5aTvyb|C!02)TBw;#z`vH-syRG1(-CiJpB_1r8Y8OLO176>8SkeEw)^Zw?$P|q!sOiLtN<8) zoBIc+E~>)HooZ9s&;nkXTEgC-Pop_NPXG@iL+yQ`hJ0}jZUSh3ns@hK+g~dcZ(B~) zaM#K#E1diO@P$s>9gTO!%c=ih8Btt2nAR-9Zb_95ztTyY(M}FMLO#1tKXpW z*md9b&hD$F9fD(;xZmei^g`BWV43r3a$&bf-1jiv8H~1VQ;o`a?yfVgO5n6mF9hEvT2A0p-@$b3uuBz z6g4GSBCOWj`*lEf(%IAIc&OSsenZG4p(O-{XxJWMy#%5_^MWQ|+C1Ob7Cc{H!K*nB z+7gfm3to?+;=qO|$_Rz3@L|>E%`)UIPeiq_cV3#cy<9j*lLy( zu0TUj_?oMjuipQdE|iT0Jryc;#XRqB4H)ZNMtS1ye8=E{ozq4v-upJ^_7}dJAM>Vt gc;-UK7yfJg1T-Gm4-`{-{{R3007*qoM6N<$f(0fv4*&oF literal 0 HcmV?d00001 diff --git a/df_primordial_items/textures/dfcaverns_primordial_fruit.png b/df_primordial_items/textures/dfcaverns_primordial_fruit.png new file mode 100644 index 0000000000000000000000000000000000000000..723374b77ca73fd718423c1dfe3718d9b99a5b31 GIT binary patch literal 619 zcmWkqYe-W87`-}6Ge(6aSe8&`rWXA$u&AJ%q%np$QJO`SJqd!~M@0%^ zINtpKJa`-i9@r!%2$wU_!q^B-GI+~kipFz51=sn+8U*w zT2l2kHB~3kY0}BXQhQT^zCo&coiU=43^ybU^`}l(OS-#~rqmK$ZG3-)xT`8otGP4@ zfO39WwXCv?2{1ZTPILeyKyw>`k6=Fl4qy$|o_V^F!3#hGECQT;0C)%5I>TbrTnt;4 z1C@XhcmoUqTA&k{0BisYL*8#Z1ge2rpb>ZpEP-8S0j_}lRkX}L0u-3IX=KY`tzE-= z;3u#Gi~=LT9591i39pd*W@u)NNK9PZR-H4K;!Xyu=XRzV{C14bhb1}XTL