From 6cdc3bf1798bad1aa0837181398ead1860bbdb2a Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Mon, 27 May 2019 21:38:24 +0200 Subject: [PATCH] help page added --- oil/explore.lua | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/oil/explore.lua b/oil/explore.lua index 76afa07..44be931 100644 --- a/oil/explore.lua +++ b/oil/explore.lua @@ -173,7 +173,7 @@ end -- Used as storage for already explored blocks minetest.register_node("techage:oilstorage", { - description = "TA Oil Storage", + description = I("TA Oil Storage"), tiles = {"default_stone.png"}, groups = {not_in_creative_inventory=1}, diggable = false, @@ -181,7 +181,7 @@ minetest.register_node("techage:oilstorage", { }) minetest.register_node("techage:oilexplorer", { - description = "Oil Explorer", + description = I("TA Oil Explorer"), tiles = { "techage_filling_ta3.png^techage_appl_oilexplorer_top.png^techage_frame_ta3_top.png", "techage_filling_ta3.png^techage_frame_ta3.png", @@ -198,7 +198,7 @@ minetest.register_node("techage:oilexplorer", { }) minetest.register_node("techage:oilexplorer_on", { - description = "Oil Explorer", + description = I("TA Oil Explorer"), tiles = { { image = "techage_filling4_ta3.png^techage_appl_oilexplorer_top4.png^techage_frame4_ta3_top.png", @@ -265,6 +265,7 @@ minetest.register_node("techage:oil_source", { liquid_alternative_source = "techage:oil_source", liquid_viscosity = 20, liquid_range = 10, + damage_per_second = 1, post_effect_color = {a = 200, r = 1, g = 1, b = 1}, groups = {liquid = 5}, }) @@ -272,7 +273,7 @@ minetest.register_node("techage:oil_source", { minetest.register_node("techage:oil_flowing", { - description = "Flowing Oil", + description = I("Flowing Oil"), drawtype = "flowingliquid", tiles = {"techage_oil.png"}, special_tiles = { @@ -311,6 +312,7 @@ minetest.register_node("techage:oil_flowing", { liquid_alternative_source = "techage:oil_source", liquid_viscosity = 20, liquid_range = 10, + damage_per_second = 1, post_effect_color = {a = 200, r = 1, g = 1, b = 1}, groups = {liquid = 5, not_in_creative_inventory = 1}, }) @@ -329,3 +331,13 @@ minetest.register_craft({ {"group:wood", "techage:vacuum_tube", "group:wood"}, }, }) + +techage.register_help_page(I("TA Oil Explorer"), +I([[Used to find oil. +Oil can be used as fuel for the Coal Power Station. +Place the block and right-click on the block to explore the underground. +The block will explore a 16x16 field with a depth of up to 400 m. +To go deeper, you can click on the block several times. +When oil is found, the position for the Oil Tower is highlighted. +Hint: Mark and protect the position for later use.]]), +"techage:oilexplorer")