mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-26 03:47:25 +02:00
Remove non-PC achievements for now
This commit is contained in:
parent
80634edb84
commit
6db2bcc56b
@ -1,3 +1,8 @@
|
|||||||
|
-- Settings
|
||||||
|
|
||||||
|
-- If true, activates achievements from other Minecraft editions (XBox, PS, etc.)
|
||||||
|
local non_pc_achievement = false
|
||||||
|
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
@ -157,6 +162,7 @@ awards.register_achievement("mcl:snipeSkeleton", {
|
|||||||
|
|
||||||
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
||||||
|
|
||||||
|
if non_pc_achievements then
|
||||||
awards.register_achievement("mcl:n_placeDispenser", {
|
awards.register_achievement("mcl:n_placeDispenser", {
|
||||||
title = S("Dispense With This"),
|
title = S("Dispense With This"),
|
||||||
description = S("Place a dispenser."),
|
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", {
|
awards.register_achievement("mcl:n_eatPorkchop", {
|
||||||
title = S("Pork Chop"),
|
title = S("Pork Chop"),
|
||||||
description = S("Eat a cooked porkchop."),
|
description = S("Eat a cooked porkchop."),
|
||||||
@ -220,6 +227,7 @@ awards.register_achievement("mcl:n_emeralds", {
|
|||||||
target = 30,
|
target = 30,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- Show achievements formspec when the button was pressed
|
-- Show achievements formspec when the button was pressed
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
|
Loading…
Reference in New Issue
Block a user