1
0
Fork 0

Remove non-PC achievements for now

This commit is contained in:
Wuzzy 2017-03-10 00:25:31 +01:00
parent 80634edb84
commit 6db2bcc56b
1 changed files with 69 additions and 61 deletions

View File

@ -1,3 +1,8 @@
-- Settings
-- If true, activates achievements from other Minecraft editions (XBox, PS, etc.)
local non_pc_achievement = false
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
@ -157,6 +162,7 @@ awards.register_achievement("mcl:snipeSkeleton", {
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
if non_pc_achievements then
awards.register_achievement("mcl:n_placeDispenser", {
title = S("Dispense With This"),
description = S("Place a dispenser."),
@ -168,6 +174,7 @@ awards.register_achievement("mcl:n_placeDispenser", {
}
})
-- FIXME: Eating achievements don't work when you have exactly one of these items on hand
awards.register_achievement("mcl:n_eatPorkchop", {
title = S("Pork Chop"),
description = S("Eat a cooked porkchop."),
@ -220,6 +227,7 @@ awards.register_achievement("mcl:n_emeralds", {
target = 30,
}
})
end
-- Show achievements formspec when the button was pressed
minetest.register_on_player_receive_fields(function(player, formname, fields)