From 631a844f2fc026ababc64b476bb66ef1ae81352d Mon Sep 17 00:00:00 2001 From: Solebull Date: Mon, 31 Dec 2018 03:06:03 +0100 Subject: [PATCH] Now earning XPs for technic ores --- ROADMAP | 27 ++++++++++++++++++++++++--- TODO | 1 + mods/xpro/init.lua | 1 + mods/xpro/mods_suportados/technic.lua | 16 ++++++++++++++++ 4 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 mods/xpro/mods_suportados/technic.lua diff --git a/ROADMAP b/ROADMAP index fd71222..166e93b 100644 --- a/ROADMAP +++ b/ROADMAP @@ -97,7 +97,7 @@ It's really fast. May be used on a website, to show the actual map. - [X] Add a /list command to list connected players - [ ] Bigger player inventory -**** TODO *New streamed test* +**** TODO New streamed test CLOCK: [2018-12-21 ven. 02:39]--[2018-12-21 ven. 03:01] => 0:22 CLOCK: [2018-12-13 jeu. 15:01]--[2018-12-13 jeu. 15:30] => 0:29 @@ -225,7 +225,29 @@ It's really fast. May be used on a website, to show the actual map. **** Try mumble-link - see https://github.com/chipgw/minetest-mumble-wrapper *** v0.0.2 -**** [feature_showLevel] Our own mod +**** TODO How to add more ores to xopro + CLOCK: [2018-12-31 lun. 01:45]--[2018-12-31 lun. 02:16] => 0:31 + CLOCK: [2018-12-30 dim. 21:28]--[2018-12-30 dim. 21:48] => 0:20 + *No XP when digging zinc and lead* + *zinc is from technic/ mod* +- [X] Try to find a zinc block to search his name + technic:mineral_lead in technic_worldgen/oregen.lua +- [X] List all technic ores +technic:mineral_uranium", +technic:mineral_chromium", +technic:mineral_zinc", +technic:mineral_zinc", +technic:mineral_lead", +technic:mineral_sulfur") + +- [ ] Not sure for this one : +technic:mineral_diamond +- [ ] Add a technic.lua file in mods_suportados/ + Copy this file from an existing one + +- [ ] We're not gaining XP while killing monsters : for example slimes + +**** DONE Our own mod CLOCK: [2018-12-30 dim. 19:23]--[2018-12-30 dim. 20:51] => 1:28 CLOCK: [2018-12-30 dim. 18:06]--[2018-12-30 dim. 18:40] => 0:34 *xpro doesn't show total level ? Maybe write a show_level mod ?* @@ -236,7 +258,6 @@ It's really fast. May be used on a website, to show the actual map. - [X] Find a way to permanently print the player's level - [X] Multiplayer test - [X] Now remove all errors -- [ ] No XP when digging zinc and lead **** DONE Try an XP+levels mod CLOCK: [2018-12-29 sam. 15:55]--[2018-12-29 sam. 16:17] => 0:22 *level 2 : not showing it! but a cool annoucement with novice etc...* diff --git a/TODO b/TODO index 58c3701..fb5fc2b 100644 --- a/TODO +++ b/TODO @@ -11,6 +11,7 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt. * v0.0.1-4 (29 Dec. 2018 - ???) CLOC ???,??? +- (4) Now earning XPs for technic ores - show_level mod works - Printed show_level first text - Trying an XP/level mod diff --git a/mods/xpro/init.lua b/mods/xpro/init.lua index fbcd886..2f1c01a 100644 --- a/mods/xpro/init.lua +++ b/mods/xpro/init.lua @@ -57,6 +57,7 @@ dofile(modpath.."/mods_suportados/3d_armor.lua") dofile(modpath.."/mods_suportados/3d_armor_stand.lua") dofile(modpath.."/mods_suportados/shields.lua") dofile(modpath.."/mods_suportados/xdecor.lua") +dofile(modpath.."/mods_suportados/technic.lua") notificar("OK") diff --git a/mods/xpro/mods_suportados/technic.lua b/mods/xpro/mods_suportados/technic.lua new file mode 100644 index 0000000..11cd154 --- /dev/null +++ b/mods/xpro/mods_suportados/technic.lua @@ -0,0 +1,16 @@ +-- Add support for technic's provided ores + +if not minetest.get_modpath("technic") then return end + +-- Register dignodes +for name,xp in pairs({ + -- Minerals + ["technic:mineral_uranium"] = 4, + ["technic:mineral_chromium"] = 3, + ["technic:mineral_zinc"] = 1, + ["technic:mineral_lead"] = 1, + ["technic:mineral_sulfur"] = 2, +}) do + xpro.register_on_dignode(name, xp) +end +