From 7ae2d1dc4fd3d7a1bf0bdfe6454ab292a441a778 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Feb 2017 21:14:10 +0100 Subject: [PATCH] Make compass clickable in craft guide --- mods/HUD/mcl_craftguide/depends.txt | 1 + mods/HUD/mcl_craftguide/init.lua | 1 + mods/ITEMS/mcl_compass/init.lua | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/mods/HUD/mcl_craftguide/depends.txt b/mods/HUD/mcl_craftguide/depends.txt index 315237e07b..a37919b65e 100644 --- a/mods/HUD/mcl_craftguide/depends.txt +++ b/mods/HUD/mcl_craftguide/depends.txt @@ -1 +1,2 @@ mcl_core +mcl_compass diff --git a/mods/HUD/mcl_craftguide/init.lua b/mods/HUD/mcl_craftguide/init.lua index 743bea0d0a..47a426c974 100644 --- a/mods/HUD/mcl_craftguide/init.lua +++ b/mods/HUD/mcl_craftguide/init.lua @@ -48,6 +48,7 @@ local group_stereotypes = { shulker_box = "mcl_chests:violet_shulker_box", quartz_block = "mcl_nether:quartz_block", mesecon_conductor_craftable = "mesecons:wire_00000000_off", + compass = mcl_compass.stereotype, } local group_names = { diff --git a/mods/ITEMS/mcl_compass/init.lua b/mods/ITEMS/mcl_compass/init.lua index d2913a3d19..9ef680d3c9 100644 --- a/mods/ITEMS/mcl_compass/init.lua +++ b/mods/ITEMS/mcl_compass/init.lua @@ -1,3 +1,4 @@ +mcl_compass = {} local default_spawn_settings = minetest.setting_get("static_spawnpoint") @@ -73,3 +74,8 @@ minetest.register_craft({ }) minetest.register_alias("mcl_compass:compass", "mcl_compass:"..stereotype_frame) + +-- Export stereotype item for other mods to use +mcl_compass.stereotype = "mcl_compass:"..tostring(stereotype_frame) + +