From 09724f2464d64297bbfc521bd1689834f230f81f Mon Sep 17 00:00:00 2001 From: ThePython10110 <87204246+ThePython10110@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:33:56 -0800 Subject: [PATCH] Added awards (untested) --- README.md | 7 +- exchangeclone/awards.lua | 167 +++++++++++++++++++++++++++++ exchangeclone/energy_collector.lua | 2 +- exchangeclone/init.lua | 3 + 4 files changed, 175 insertions(+), 4 deletions(-) create mode 100644 exchangeclone/awards.lua diff --git a/README.md b/README.md index ed5a176..1c8094f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ExchangeClone is tested with the latest release of Minetest, Minetest Game, Mine * Philosopher's Stone * Transmutation Table * Alchemical Tome -* Exchange Orb +* Klein Stars * Deconstructor * Constructor * Energy Collectors @@ -21,7 +21,6 @@ ExchangeClone is tested with the latest release of Minetest, Minetest Game, Mine * Dark and Red Matter Tools * Dark and Red Matter Armor * Dark and Red Matter Furnaces -* PESA (deprecated, WILL BE REMOVED in 7.0) See the [wiki](https://github.com/ThePython10110/ExchangeClone/wiki) for more information @@ -66,7 +65,7 @@ Dependencies: Minetest Game or MineClone. ### PLANS/TODO FOR v7.0 (see dev branch for current progress) * [ ] Achievements/advancements/awards -* [ ] Textures/sounds from ProjectE/ProjectExpansion (I wanted this for a while, but I couldn't figure out how to get permission until I saw [this tweet](https://twitter.com/MercuriusXeno/status/1662203934713212932) from the creator of Equivalent Exchange) +* [x] Textures/sounds from ProjectE/ProjectExpansion (I wanted this for a while, but I couldn't figure out how to get permission until I saw [this tweet](https://twitter.com/MercuriusXeno/status/1662203934713212932) from the creator of Equivalent Exchange) * [ ] Improvements to tools (mostly only in MCL at the moment) * [x] Wear bar for charge level * [x] Charge levels match ProjectE (both in number and in range) @@ -89,6 +88,7 @@ Dependencies: Minetest Game or MineClone. * [ ] Gem of Eternal Density (will only work in player inventory, not Alchemical Chests like ProjectE) * [ ] DM/RM blocks can only be broken by correct (or higher) type. * [ ] Change energy collector recipes to match ProjectE +* [ ] Update screenshots * [ ] Edit wiki: * [ ] Achievements? * [ ] Divining rods @@ -99,6 +99,7 @@ Dependencies: Minetest Game or MineClone. * [ ] Modify tools page * [ ] Klein Stars * [ ] Remove page for PESA + * [ ] Update screenshots ## Changelog
Look at this fancy expanding changelog diff --git a/exchangeclone/awards.lua b/exchangeclone/awards.lua new file mode 100644 index 0000000..2b55a5c --- /dev/null +++ b/exchangeclone/awards.lua @@ -0,0 +1,167 @@ +awards.register_award("exchangeclone:best_friend", { + title = "An alchemist's best friend", + description = "Let's get things started! Craft a Philosopher's Stone", + icon = "exchangeclone_philosophers_stone.png", + trigger = { + type = "craft", + item = "exchangeclone:philosophers_stone", + } +}) + +awards.register_award("exchangeclone:this_into_that", { + title = "Transmute this into that!", + description = "The beginning (and end) of everything.", + icon = "exchangeclone_transmutation_table_top.png", + trigger = { + type = "craft", + item = "exchangeclone:transmutation_table", + } +}) + +awards.register_award("exchangeclone:on_the_go", { + title = "Transmutation on the go!", + description = "And then you thought things couldn't get better.", + icon = "exchangeclone_transmutation_tablet.png", + trigger = { + type = "craft", + item = "exchangeclone:transmutation_tablet", + } +}) + +awards.register_award("exchangeclone:energy_batteries", { + title = "Energy Batteries", + description = "Storing energy for a rainy day.", + icon = "exchangeclone_klein_star_ein.png", + trigger = { + type = "craft", + item = "exchangeclone:klein_star_ein", + } +}) + +awards.register_award("exchangeclone:energy_batteries", { + title = "BIG Energy Batteries", + description = "Holding the universe in your pocket.", + icon = "exchangeclone_klein_star_omega.png", + trigger = { + type = "craft", + item = "exchangeclone:klein_star_omega", + } +}) + +awards.register_award("exchangeclone:big_energy_batteries", { + title = "MASSIVE Energy Batteries", + description = "Holding... uhh... the multiverse in your pocket.", + icon = "exchangeclone_magnum_star_omega.png", + trigger = { + type = "craft", + item = "exchangeclone:magnum_star_omega", + } +}) + +awards.register_award("exchangeclone:storage_upgrade", { + title = "Storage Upgrade!", + description = 'A "little" chest upgrade.' + icon = "exchangeclone_alchemical_chest_top.png", + trigger = { + type = "craft", + item = "exchangeclone:alchemical_chest" + } +}) + +awards.register_award("exchangeclone:matter_on_matter", { + title = "Using Matter on Matter?", + description = "Because why not?", + icon = "exchangeclone_dark_matter_pickaxe.png", + trigger = { + type = "craft", + item = "exchangeclone:dark_matter_pickaxe" + } +}) + +awards.register_award("exchangeclone:is_this_safe", { + title = "Is this thing safe?", + description = "Probably not.", + icon = "exchangeclone_red_matter_pickaxe.png", + trigger = { + type = "craft", + item = "exchangeclone:red_matter_pickaxe" + } +}) + +awards.register_award("exchangeclone:even_hotter_matter", { + title = "Even hotter matter!", + description = "Wow, that thing is fast.", + icon = "exchangeclone_red_matter_furnace_active.png", + trigger = { + type = "craft", + item = "exchangeclone:red_matter_furnace" + } +}) + +awards.register_award("exchangeclone:hot_matter", { + title = "Hot matter!", + description = "A furnace is even better when made from dark matter.", + icon = "exchangeclone_red_matter_furnace_active.png", + trigger = { + type = "craft", + item = "exchangeclone:red_matter_furnace" + } +}) + +awards.register_award("exchangeclone:pocket_storage", { + title = "Pocket storage!", + description = "All the wonders of an alchemical chest, in your pocket.", + icon = "exchangeclone_alchemical_bag.png", + trigger = { + type = "craft", + item = "group:alchemical_bag" + } +}) + +awards.register_award("exchangeclone:power_of_sun", { + title = "The power of the sun!", + description = "Now the fun begins.", + icon = "exchangeclone_energy_collector_base.png^exchangeclone_energy_collector_overlay.png", + trigger = "craft", + item = "group:energy_collector" +}) + +awards.register_award("exchangeclone:all_that_matters", { + title = "All that Matters.", + description = "It looks... weird....", + icon = "exchangeclone_dark_matter.png", + trigger = { + type = "craft", + item = "exchangeclone:dark_matter" + } +}) + +awards.register_award("exchangeclone:even_better_matter", { + title = "Even better Matter!", + description = "The space time continuum may be broken.", + icon = "exchangeclone_red_matter.png", + trigger = { + type = "craft", + item = "exchangeclone:red_matter" + } +}) + +awards.register_award("exchangeclone:red_and_shiny", { + title = "Red and shiny!", + description = "Now you're getting somewhere!", + icon = "exchangeclone_red_matter_block.png", + trigger = { + type = "craft", + item = "exchangeclone:red_matter_block" + } +}) + +awards.register_award("exchangeclone:block_that_matters", { + title = "A block that Matters!!", + description = "Stuffing matter together. Because that's a good idea.", + icon = "exchangeclone_darkmatter_block.png", + trigger = { + type = "craft", + item = "exchangeclone:dark_matter_block" + } +}) \ No newline at end of file diff --git a/exchangeclone/energy_collector.lua b/exchangeclone/energy_collector.lua index 6b1adbd..9138928 100644 --- a/exchangeclone/energy_collector.lua +++ b/exchangeclone/energy_collector.lua @@ -129,7 +129,7 @@ function exchangeclone.register_energy_collector(itemstring, name, amount, modif "exchangeclone_energy_collector_base.png", "exchangeclone_energy_collector_base.png", }, - groups = {cracky = 2, container = 2, pickaxey = 2, energy_collector = amount, tubedevice = 1, tubedevice_receiver = 1}, + groups = {cracky = 2, container = 2, pickaxey = 2, energy_collector = 1, tubedevice = 1, tubedevice_receiver = 1}, _mcl_hardness = 3, _mcl_blast_resistance = 6, sounds = exchangeclone.sound_mod.node_sound_metal_defaults(), diff --git a/exchangeclone/init.lua b/exchangeclone/init.lua index 5ef4dd9..f238e19 100644 --- a/exchangeclone/init.lua +++ b/exchangeclone/init.lua @@ -136,6 +136,9 @@ dofile(modpath.."/infinite_food.lua") dofile(modpath.."/alchemical_chests.lua") dofile(modpath.."/transmutation_table.lua") dofile(modpath.."/furnaces.lua") +if minetest.get_modpath("awards") then + dofile(modpath.."/awards.lua") +end minetest.register_on_mods_loaded(function() local energy_start_time = minetest.get_us_time()