diff --git a/mods/tutorial/init.lua b/mods/tutorial/init.lua index ff829f2..8372edb 100644 --- a/mods/tutorial/init.lua +++ b/mods/tutorial/init.lua @@ -1087,6 +1087,105 @@ minetest.register_node("tutorial:ruler", { groups = {immortal=1, attached_node=1}, }) +-- Crafting guides (example crafting images at crafting section) +minetest.register_node("tutorial:craftguide_paper", { + description = S("crafting guide: paper"), + drawtype = "signlike", + selection_box = { + type = "wallmounted", + wall_side = { -0.5, -0.5, -0.5, -0.4, 0.5, 0.5 }, + }, + walkable = false, + tiles = { "tutorial_craftguide_paper_white.png" }, + inventory_image = "tutorial_craftguide_paper_white.png", + wield_image = "tutorial_craftguide_paper_white.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + groups = {immortal=1, attached_node=1}, +}) + +minetest.register_node("tutorial:craftguide_paper_color", { + description = S("crafting guide: colored paper"), + drawtype = "signlike", + selection_box = { + type = "wallmounted", + wall_side = { -0.5, -0.5, -0.5, -0.4, 0.5, 0.5 }, + }, + walkable = false, + tiles = { + { + name = "tutorial_craftguide_paper_color_anim.png", + animation = { + type = "vertical_frames", + aspect_w = 32, + aspect_h = 32, + length = 16.0, + }, + } + }, + inventory_image = "tutorial_craftguide_paper_color.png", + wield_image = "tutorial_craftguide_paper_color.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + groups = {immortal=1, attached_node=1}, +}) + +minetest.register_node("tutorial:craftguide_wheat", { + description = S("crafting guide: wheat"), + drawtype = "signlike", + selection_box = { + type = "wallmounted", + wall_side = { -0.5, -0.5, -0.5, -0.4, 0.5, 0.5 }, + }, + walkable = false, + tiles = { + { + name = "tutorial_craftguide_wheat_anim.png", + animation = { + type = "vertical_frames", + aspect_w = 32, + aspect_h = 32, + length = 12.0, + }, + } + }, + inventory_image = "tutorial_craftguide_wheat.png", + wield_image = "tutorial_craftguide_wheat.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + groups = {immortal=1, attached_node=1}, +}) + +minetest.register_node("tutorial:craftguide_repair", { + description = S("crafting guide: tool repair"), + drawtype = "signlike", + selection_box = { + type = "wallmounted", + wall_side = { -0.5, -0.5, -0.5, -0.4, 0.5, 0.5 }, + }, + walkable = false, + tiles = { + { + name = "tutorial_craftguide_repair_anim.png", + animation = { + type = "vertical_frames", + aspect_w = 32, + aspect_h = 32, + length = 12.0, + }, + } + }, + inventory_image = "tutorial_craftguide_repair.png", + wield_image = "tutorial_craftguide_repair.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + groups = {immortal=1, attached_node=1}, +}) + --[[ Tutorial cups, awarded for achievements ]] tutorial.cupnodebox = { diff --git a/mods/tutorial/mapdata/sector_24.mts b/mods/tutorial/mapdata/sector_24.mts index 9f9700f..ac7265c 100644 Binary files a/mods/tutorial/mapdata/sector_24.mts and b/mods/tutorial/mapdata/sector_24.mts differ diff --git a/mods/tutorial/mapdata/sector_8.meta b/mods/tutorial/mapdata/sector_8.meta index ccf08e8..cced730 100644 Binary files a/mods/tutorial/mapdata/sector_8.meta and b/mods/tutorial/mapdata/sector_8.meta differ diff --git a/mods/tutorial/mapdata/sector_8.mts b/mods/tutorial/mapdata/sector_8.mts index faa3495..1dfae94 100644 Binary files a/mods/tutorial/mapdata/sector_8.mts and b/mods/tutorial/mapdata/sector_8.mts differ diff --git a/mods/tutorial/textures/tutorial_craftguide_paper_color.png b/mods/tutorial/textures/tutorial_craftguide_paper_color.png new file mode 100644 index 0000000..992f00a Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_paper_color.png differ diff --git a/mods/tutorial/textures/tutorial_craftguide_paper_color_anim.png b/mods/tutorial/textures/tutorial_craftguide_paper_color_anim.png new file mode 100644 index 0000000..1111dc3 Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_paper_color_anim.png differ diff --git a/mods/tutorial/textures/tutorial_craftguide_paper_white.png b/mods/tutorial/textures/tutorial_craftguide_paper_white.png new file mode 100644 index 0000000..1f1ee31 Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_paper_white.png differ diff --git a/mods/tutorial/textures/tutorial_craftguide_repair.png b/mods/tutorial/textures/tutorial_craftguide_repair.png new file mode 100644 index 0000000..a14bfc1 Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_repair.png differ diff --git a/mods/tutorial/textures/tutorial_craftguide_repair_anim.png b/mods/tutorial/textures/tutorial_craftguide_repair_anim.png new file mode 100644 index 0000000..1e5f98a Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_repair_anim.png differ diff --git a/mods/tutorial/textures/tutorial_craftguide_wheat.png b/mods/tutorial/textures/tutorial_craftguide_wheat.png new file mode 100644 index 0000000..df93edc Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_wheat.png differ diff --git a/mods/tutorial/textures/tutorial_craftguide_wheat_anim.png b/mods/tutorial/textures/tutorial_craftguide_wheat_anim.png new file mode 100644 index 0000000..e28104b Binary files /dev/null and b/mods/tutorial/textures/tutorial_craftguide_wheat_anim.png differ