forked from MineClone5/MineClone5
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,69 +162,72 @@ awards.register_achievement("mcl:snipeSkeleton", {
|
||||||
|
|
||||||
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
||||||
|
|
||||||
awards.register_achievement("mcl:n_placeDispenser", {
|
if non_pc_achievements then
|
||||||
title = S("Dispense With This"),
|
awards.register_achievement("mcl:n_placeDispenser", {
|
||||||
description = S("Place a dispenser."),
|
title = S("Dispense With This"),
|
||||||
icon = "mcl_dispensers_dispenser_front_horizontal.png",
|
description = S("Place a dispenser."),
|
||||||
trigger = {
|
icon = "mcl_dispensers_dispenser_front_horizontal.png",
|
||||||
type = "place",
|
trigger = {
|
||||||
node = "mcl_dispensers:dispenser",
|
type = "place",
|
||||||
target = 1
|
node = "mcl_dispensers:dispenser",
|
||||||
}
|
target = 1
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
|
||||||
awards.register_achievement("mcl:n_eatPorkchop", {
|
-- FIXME: Eating achievements don't work when you have exactly one of these items on hand
|
||||||
title = S("Pork Chop"),
|
awards.register_achievement("mcl:n_eatPorkchop", {
|
||||||
description = S("Eat a cooked porkchop."),
|
title = S("Pork Chop"),
|
||||||
icon = "mcl_mobitems_porkchop_cooked.png",
|
description = S("Eat a cooked porkchop."),
|
||||||
trigger = {
|
icon = "mcl_mobitems_porkchop_cooked.png",
|
||||||
type = "eat",
|
trigger = {
|
||||||
item= "mcl_mobitems:cooked_porkchop",
|
type = "eat",
|
||||||
target = 1,
|
item= "mcl_mobitems:cooked_porkchop",
|
||||||
}
|
target = 1,
|
||||||
})
|
}
|
||||||
awards.register_achievement("mcl:n_eatRabbit", {
|
})
|
||||||
title = S("Rabbit Season"),
|
awards.register_achievement("mcl:n_eatRabbit", {
|
||||||
icon = "mcl_mobitems_rabbit_cooked.png",
|
title = S("Rabbit Season"),
|
||||||
description = S("Eat a cooked rabbit."),
|
icon = "mcl_mobitems_rabbit_cooked.png",
|
||||||
trigger = {
|
description = S("Eat a cooked rabbit."),
|
||||||
type = "eat",
|
trigger = {
|
||||||
item= "mcl_mobitems:cooked_rabbit",
|
type = "eat",
|
||||||
target = 1,
|
item= "mcl_mobitems:cooked_rabbit",
|
||||||
}
|
target = 1,
|
||||||
})
|
}
|
||||||
awards.register_achievement("mcl:n_eatRottenFlesh", {
|
})
|
||||||
title = S("Iron Belly"),
|
awards.register_achievement("mcl:n_eatRottenFlesh", {
|
||||||
description = S("Get really desperate and eat rotten flesh."),
|
title = S("Iron Belly"),
|
||||||
icon = "mcl_mobitems_rotten_flesh.png",
|
description = S("Get really desperate and eat rotten flesh."),
|
||||||
trigger = {
|
icon = "mcl_mobitems_rotten_flesh.png",
|
||||||
type = "eat",
|
trigger = {
|
||||||
item= "mcl_mobitems:rotten_flesh",
|
type = "eat",
|
||||||
target = 1,
|
item= "mcl_mobitems:rotten_flesh",
|
||||||
}
|
target = 1,
|
||||||
})
|
}
|
||||||
awards.register_achievement("mcl:n_placeFlowerpot", {
|
})
|
||||||
title = S("Pot Planter"),
|
awards.register_achievement("mcl:n_placeFlowerpot", {
|
||||||
description = S("Place a flower pot."),
|
title = S("Pot Planter"),
|
||||||
icon = "mcl_flowerpots_flowerpot_inventory.png",
|
description = S("Place a flower pot."),
|
||||||
trigger = {
|
icon = "mcl_flowerpots_flowerpot_inventory.png",
|
||||||
type = "place",
|
trigger = {
|
||||||
node = "mcl_flowerpots:flower_pot",
|
type = "place",
|
||||||
target = 1,
|
node = "mcl_flowerpots:flower_pot",
|
||||||
}
|
target = 1,
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
|
||||||
awards.register_achievement("mcl:n_emeralds", {
|
awards.register_achievement("mcl:n_emeralds", {
|
||||||
title = S("The Haggler"),
|
title = S("The Haggler"),
|
||||||
-- TODO: Should also count emeralds bought from villagers
|
-- TODO: Should also count emeralds bought from villagers
|
||||||
description = S("Mine 30 emerald ore."),
|
description = S("Mine 30 emerald ore."),
|
||||||
icon = "default_emerald.png",
|
icon = "default_emerald.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "mcl_core:stone_with_emerald",
|
node = "mcl_core:stone_with_emerald",
|
||||||
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