def create_score_stat(mobId, title, mobText): mcstats.registry.append( mcstats.MinecraftStat( 'score_' + mobId, { 'title': title, 'desc': 'Score vs ' + mobText, 'unit': 'int', }, mcstats.StatDiffReader( mcstats.StatReader(['minecraft:killed', 'minecraft:' + mobId]), mcstats.StatReader( ['minecraft:killed_by', 'minecraft:' + mobId]))))
def create_kill_stat(mobId, minVersion = 0, maxVersion = float("inf")): reader = mcstats.StatReader(['minecraft:killed','minecraft:' + mobId]) mcstats.registry.append( mcstats.MinecraftStat( 'kill_' + mobId, { 'unit': 'int', }, mcstats.StatReader(['minecraft:killed','minecraft:' + mobId]), minVersion, maxVersion ))
def create_kill_stat(mobId, title, mobText): mcstats.registry.append( mcstats.MinecraftStat( 'kill_' + mobId, { 'title': title, 'desc': mobText + ' killed', 'unit': 'int', }, mcstats.StatReader(['minecraft:killed', 'minecraft:' + mobId])))
def create_kill_stat(mobId, title, mobText, minVersion=0): mcstats.registry.append( mcstats.MinecraftStat( 'kill_' + mobId, { 'title': title, 'desc': '總共殺過的' + mobText + '數量', 'unit': 'int', }, mcstats.StatReader(['minecraft:killed', 'minecraft:' + mobId]), minVersion))
def create_ore_stat(title, oreId, oreName, minVersion=0): mcstats.registry.append( mcstats.MinecraftStat( 'mine_' + oreId, { 'title': title, 'desc': oreName + ' mined', 'unit': 'int', }, mcstats.StatReader(['minecraft:mined', 'minecraft:' + oreId]), minVersion))
def create_ore_stat(title, oreId, oreName): mcstats.registry.append( mcstats.MinecraftStat( 'mine_' + oreId + '_ore', { 'title': title, 'desc': '挖過的' + oreName + '礦的數量', 'unit': 'int', }, mcstats.StatReader( ['minecraft:mined', 'minecraft:' + oreId + '_ore'])))
def create_ore_stat(oreIds, minVersion=0): readers = [] for ore in oreIds: readers.append( mcstats.StatReader(['minecraft:mined', 'minecraft:' + ore])) mcstats.registry.append( mcstats.MinecraftStat('mine_' + oreIds[0], { 'unit': 'int', }, mcstats.StatSumReader(readers), minVersion))
def register_craft(id, title, desc): mcstats.registry.append( mcstats.MinecraftStat( "craft_" + id, { "title": title, "desc": desc, "unit": "int" }, mcstats.StatReader(["minecraft:crafted", "minecraft:" + id]), ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'place_lodestone', { 'title': 'Lodecrumb Trail', 'desc': 'Lodestone placed', 'unit': 'int', }, mcstats.StatReader(['minecraft:used', 'minecraft:lodestone']), 2520 # added in 20w13a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'drop', { 'title': 'Dropper', 'desc': 'Items dropped', 'unit': 'int', }, mcstats.StatReader(['minecraft:custom', 'minecraft:drop'])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'interact_cartography', { 'title': 'Cartographer', 'desc': 'Cartography table interactions', 'unit': 'int', }, mcstats.StatReader( ['minecraft:custom', 'minecraft:interact_with_cartography_table']), 1921 # stonecutters usable since 19w02a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'walk', { 'title': 'Voyageur', 'desc': 'Distance parcourue en marchant', 'unit': 'cm', }, mcstats.StatReader(['minecraft:custom', 'minecraft:walk_one_cm'])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( "use_crossbow", { "title": "Tireur d'élite", "desc": "Fléches tirées avec une arbalète", "unit": "int", }, mcstats.StatReader(["minecraft:used", "minecraft:crossbow"]), 1901, # crossbows added in 18w43a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'place_chorus_flower', { 'title': 'Chorus Farmer', 'desc': 'Chorus Flowers planted', 'unit': 'int', }, mcstats.StatReader(['minecraft:used', 'minecraft:chorus_flower'])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'eat_junkfood', { 'unit': 'int', }, mcstats.StatSumReader([ mcstats.StatReader(['minecraft:used', 'minecraft:rotten_flesh']), mcstats.StatReader(['minecraft:used', 'minecraft:spider_eye']), mcstats.StatReader( ['minecraft:used', 'minecraft:poisonous_potato']), ])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'use_totem', { 'unit': 'int', }, mcstats.StatReader(['minecraft:used', 'minecraft:totem_of_undying'])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'interact_lectern', { 'title': '講師', 'desc': '使用講台的次數', 'unit': 'int', }, mcstats.StatReader( ['minecraft:custom', 'minecraft:interact_with_stonecutter']), 1921 # lecterns usable since 19w02a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'enchant', { 'title': 'Merlin l\'enchanteur', 'desc': 'Items enchantés', 'unit': 'int', }, mcstats.StatReader(['minecraft:custom', 'minecraft:enchant_item'])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'damage_shield', { 'title': 'Shield', 'desc': 'Damage blocked', 'unit': 'int', }, mcstats.StatReader( ['minecraft:custom', 'minecraft:damage_blocked_by_shield']), 1623 # stat added in 18w32a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'interact_loom', { 'title': 'Tailor', 'desc': 'Loom interactions', 'unit': 'int', }, mcstats.StatReader( ['minecraft:custom', 'minecraft:interact_with_loom']), 1901 # looms added in 18w43a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'craft_mineral_block', { 'unit': 'int', }, mcstats.StatSumReader([ mcstats.StatReader(['minecraft:crafted', 'minecraft:coal_block']), mcstats.StatReader(['minecraft:crafted', 'minecraft:copper_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:diamond_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:emerald_block']), mcstats.StatReader(['minecraft:crafted', 'minecraft:gold_block']), mcstats.StatReader(['minecraft:crafted', 'minecraft:iron_block']), mcstats.StatReader(['minecraft:crafted', 'minecraft:lapis_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:netherite_block']), mcstats.StatReader(['minecraft:crafted', 'minecraft:quartz_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:raw_copper_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:raw_gold_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:raw_iron_block']), mcstats.StatReader( ['minecraft:crafted', 'minecraft:redstone_block']), ])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'craft_item_frame', { 'title': 'Museum', 'desc': 'Item frames craftés', 'unit': 'int', }, mcstats.StatReader(['minecraft:crafted', 'minecraft:item_frame']), ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'place_lantern', { 'title': 'Fear Of The Dark', 'desc': 'Lanterns placed', 'unit': 'int', }, mcstats.StatDiffReader( mcstats.StatReader(['minecraft:used', 'minecraft:lantern']), mcstats.StatReader(['minecraft:mined', 'minecraft:lantern']), ), 1910 # lanterns added in 18w46a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'use_honey_bottle', { 'unit': 'int', }, mcstats.StatReader(['minecraft:used','minecraft:honey_bottle']), 2200 # honey added in 19w34a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'craft_glowstone', { 'title': 'Eclairage naturel', 'desc': 'Glowstone craftés', 'unit': 'int', }, mcstats.StatSumReader([ mcstats.StatReader(['minecraft:crafted', 'minecraft:glowstone']), mcstats.StatReader(['minecraft:mined', 'minecraft:glowstone']), ])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'craft_respawn_anchor', { 'title': 'Respawn', 'desc': 'Respawn Anchors crafted', 'unit': 'int', }, mcstats.StatSumReader([ mcstats.StatReader( ['minecraft:crafted', 'minecraft:respawn_anchor']), ]), 2515 # introduced in 20w12a ))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'mine_grass', { 'title': 'Tondeuse à gazon', 'desc': 'Hautes-herbes tondues', 'unit': 'int', }, mcstats.StatSumReader([ mcstats.StatReader(['minecraft:mined', 'minecraft:grass']), mcstats.StatReader(['minecraft:mined', 'minecraft:tall_grass']), ])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'mine_snow', { 'title': 'Snow Pusher', 'desc': 'Snow removed', 'unit': 'int', }, mcstats.StatSumReader([ mcstats.StatReader(['minecraft:mined', 'minecraft:snow']), mcstats.StatReader(['minecraft:mined', 'minecraft:snow_block']), mcstats.StatReader(['minecraft:mined', 'minecraft:powder_snow']), ])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'launch_trident', { 'title': 'Arme à impulsion', 'desc': 'Propulsions en utilisant le trident', 'unit': 'int', }, mcstats.StatReader(['minecraft:custom', 'minecraft:launch_trident'])))
from mcstats import mcstats mcstats.registry.append( mcstats.MinecraftStat( 'use_egg', { 'title': 'Attrape !', 'desc': 'Oeufs lancés', 'unit': 'int', }, mcstats.StatReader(['minecraft:used','minecraft:egg']) ))