update language data, blocks and items
This commit is contained in:
@ -33,7 +33,7 @@ func init() {
|
||||
BitsPerBlock = int(math.Ceil(math.Log2(blockStatesLen)))
|
||||
}
|
||||
|
||||
const blockStatesLen = 11270 + 1
|
||||
const blockStatesLen = 11336 + 1
|
||||
|
||||
// Generate with follow steps:
|
||||
// java -cp minecraft_server.1.15.jar net.minecraft.data.Main --all
|
||||
|
4388
data/lang/en-us/en_us.go
Normal file
4388
data/lang/en-us/en_us.go
Normal file
File diff suppressed because it is too large
Load Diff
802
data/soundIDs.go
Normal file
802
data/soundIDs.go
Normal file
@ -0,0 +1,802 @@
|
||||
package data
|
||||
|
||||
//TODO: check updates sound names
|
||||
|
||||
//SoundNames match the sound IDs' name
|
||||
var SoundNames = []string{
|
||||
"ambient.cave",
|
||||
"ambient.underwater.enter",
|
||||
"ambient.underwater.exit",
|
||||
"ambient.underwater.loop",
|
||||
"ambient.underwater.loop.additions",
|
||||
"ambient.underwater.loop.additions.rare",
|
||||
"ambient.underwater.loop.additions.ultra_rare",
|
||||
"block.anvil.break",
|
||||
"block.anvil.destroy",
|
||||
"block.anvil.fall",
|
||||
"block.anvil.hit",
|
||||
"block.anvil.land",
|
||||
"block.anvil.place",
|
||||
"block.anvil.step",
|
||||
"block.anvil.use",
|
||||
"item.armor.equip_chain",
|
||||
"item.armor.equip_diamond",
|
||||
"item.armor.equip_elytra",
|
||||
"item.armor.equip_generic",
|
||||
"item.armor.equip_gold",
|
||||
"item.armor.equip_iron",
|
||||
"item.armor.equip_leather",
|
||||
"item.armor.equip_turtle",
|
||||
"entity.armor_stand.break",
|
||||
"entity.armor_stand.fall",
|
||||
"entity.armor_stand.hit",
|
||||
"entity.armor_stand.place",
|
||||
"entity.arrow.hit",
|
||||
"entity.arrow.hit_player",
|
||||
"entity.arrow.shoot",
|
||||
"item.axe.strip",
|
||||
"block.bamboo.break",
|
||||
"block.bamboo.fall",
|
||||
"block.bamboo.hit",
|
||||
"block.bamboo.place",
|
||||
"block.bamboo.step",
|
||||
"block.bamboo_sapling.break",
|
||||
"block.bamboo_sapling.hit",
|
||||
"block.bamboo_sapling.place",
|
||||
"block.barrel.close",
|
||||
"block.barrel.open",
|
||||
"entity.bat.ambient",
|
||||
"entity.bat.death",
|
||||
"entity.bat.hurt",
|
||||
"entity.bat.loop",
|
||||
"entity.bat.takeoff",
|
||||
"block.beacon.activate",
|
||||
"block.beacon.ambient",
|
||||
"block.beacon.deactivate",
|
||||
"block.beacon.power_select",
|
||||
"block.bell.use",
|
||||
"block.bell.resonate",
|
||||
"entity.blaze.ambient",
|
||||
"entity.blaze.burn",
|
||||
"entity.blaze.death",
|
||||
"entity.blaze.hurt",
|
||||
"entity.blaze.shoot",
|
||||
"entity.boat.paddle_land",
|
||||
"entity.boat.paddle_water",
|
||||
"item.book.page_turn",
|
||||
"item.book.put",
|
||||
"entity.fishing_bobber.retrieve",
|
||||
"entity.fishing_bobber.splash",
|
||||
"entity.fishing_bobber.throw",
|
||||
"block.blastfurnace.fire_crackle",
|
||||
"item.bottle.empty",
|
||||
"item.bottle.fill",
|
||||
"item.bottle.fill_dragonbreath",
|
||||
"block.brewing_stand.brew",
|
||||
"block.bubble_column.bubble_pop",
|
||||
"block.bubble_column.upwards_ambient",
|
||||
"block.bubble_column.upwards_inside",
|
||||
"block.bubble_column.whirlpool_ambient",
|
||||
"block.bubble_column.whirlpool_inside",
|
||||
"item.bucket.empty",
|
||||
"item.bucket.empty_fish",
|
||||
"item.bucket.empty_lava",
|
||||
"item.bucket.fill",
|
||||
"item.bucket.fill_fish",
|
||||
"item.bucket.fill_lava",
|
||||
"block.campfire.crackle",
|
||||
"entity.cat.ambient",
|
||||
"entity.cat.stray_ambient",
|
||||
"entity.cat.death",
|
||||
"entity.cat.eat",
|
||||
"entity.cat.hiss",
|
||||
"entity.cat.beg_for_food",
|
||||
"entity.cat.hurt",
|
||||
"entity.cat.purr",
|
||||
"entity.cat.purreow",
|
||||
"block.chest.close",
|
||||
"block.chest.locked",
|
||||
"block.chest.open",
|
||||
"entity.chicken.ambient",
|
||||
"entity.chicken.death",
|
||||
"entity.chicken.egg",
|
||||
"entity.chicken.hurt",
|
||||
"entity.chicken.step",
|
||||
"block.chorus_flower.death",
|
||||
"block.chorus_flower.grow",
|
||||
"item.chorus_fruit.teleport",
|
||||
"block.wool.break",
|
||||
"block.wool.fall",
|
||||
"block.wool.hit",
|
||||
"block.wool.place",
|
||||
"block.wool.step",
|
||||
"entity.cod.ambient",
|
||||
"entity.cod.death",
|
||||
"entity.cod.flop",
|
||||
"entity.cod.hurt",
|
||||
"block.comparator.click",
|
||||
"block.composter.empty",
|
||||
"block.composter.fill",
|
||||
"block.composter.fill_success",
|
||||
"block.composter.ready",
|
||||
"block.conduit.activate",
|
||||
"block.conduit.ambient",
|
||||
"block.conduit.ambient.short",
|
||||
"block.conduit.attack.target",
|
||||
"block.conduit.deactivate",
|
||||
"entity.cow.ambient",
|
||||
"entity.cow.death",
|
||||
"entity.cow.hurt",
|
||||
"entity.cow.milk",
|
||||
"entity.cow.step",
|
||||
"entity.creeper.death",
|
||||
"entity.creeper.hurt",
|
||||
"entity.creeper.primed",
|
||||
"block.crop.break",
|
||||
"item.crop.plant",
|
||||
"item.crossbow.hit",
|
||||
"item.crossbow.loading_end",
|
||||
"item.crossbow.loading_middle",
|
||||
"item.crossbow.loading_start",
|
||||
"item.crossbow.quick_charge_1",
|
||||
"item.crossbow.quick_charge_2",
|
||||
"item.crossbow.quick_charge_3",
|
||||
"item.crossbow.shoot",
|
||||
"block.dispenser.dispense",
|
||||
"block.dispenser.fail",
|
||||
"block.dispenser.launch",
|
||||
"entity.dolphin.ambient",
|
||||
"entity.dolphin.ambient_water",
|
||||
"entity.dolphin.attack",
|
||||
"entity.dolphin.death",
|
||||
"entity.dolphin.eat",
|
||||
"entity.dolphin.hurt",
|
||||
"entity.dolphin.jump",
|
||||
"entity.dolphin.play",
|
||||
"entity.dolphin.splash",
|
||||
"entity.dolphin.swim",
|
||||
"entity.donkey.ambient",
|
||||
"entity.donkey.angry",
|
||||
"entity.donkey.chest",
|
||||
"entity.donkey.death",
|
||||
"entity.donkey.hurt",
|
||||
"entity.drowned.ambient",
|
||||
"entity.drowned.ambient_water",
|
||||
"entity.drowned.death",
|
||||
"entity.drowned.death_water",
|
||||
"entity.drowned.hurt",
|
||||
"entity.drowned.hurt_water",
|
||||
"entity.drowned.shoot",
|
||||
"entity.drowned.step",
|
||||
"entity.drowned.swim",
|
||||
"entity.egg.throw",
|
||||
"entity.elder_guardian.ambient",
|
||||
"entity.elder_guardian.ambient_land",
|
||||
"entity.elder_guardian.curse",
|
||||
"entity.elder_guardian.death",
|
||||
"entity.elder_guardian.death_land",
|
||||
"entity.elder_guardian.flop",
|
||||
"entity.elder_guardian.hurt",
|
||||
"entity.elder_guardian.hurt_land",
|
||||
"item.elytra.flying",
|
||||
"block.enchantment_table.use",
|
||||
"block.ender_chest.close",
|
||||
"block.ender_chest.open",
|
||||
"entity.ender_dragon.ambient",
|
||||
"entity.ender_dragon.death",
|
||||
"entity.dragon_fireball.explode",
|
||||
"entity.ender_dragon.flap",
|
||||
"entity.ender_dragon.growl",
|
||||
"entity.ender_dragon.hurt",
|
||||
"entity.ender_dragon.shoot",
|
||||
"entity.ender_eye.death",
|
||||
"entity.ender_eye.launch",
|
||||
"entity.enderman.ambient",
|
||||
"entity.enderman.death",
|
||||
"entity.enderman.hurt",
|
||||
"entity.enderman.scream",
|
||||
"entity.enderman.stare",
|
||||
"entity.enderman.teleport",
|
||||
"entity.endermite.ambient",
|
||||
"entity.endermite.death",
|
||||
"entity.endermite.hurt",
|
||||
"entity.endermite.step",
|
||||
"entity.ender_pearl.throw",
|
||||
"block.end_gateway.spawn",
|
||||
"block.end_portal_frame.fill",
|
||||
"block.end_portal.spawn",
|
||||
"entity.evoker.ambient",
|
||||
"entity.evoker.cast_spell",
|
||||
"entity.evoker.celebrate",
|
||||
"entity.evoker.death",
|
||||
"entity.evoker_fangs.attack",
|
||||
"entity.evoker.hurt",
|
||||
"entity.evoker.prepare_attack",
|
||||
"entity.evoker.prepare_summon",
|
||||
"entity.evoker.prepare_wololo",
|
||||
"entity.experience_bottle.throw",
|
||||
"entity.experience_orb.pickup",
|
||||
"block.fence_gate.close",
|
||||
"block.fence_gate.open",
|
||||
"item.firecharge.use",
|
||||
"entity.firework_rocket.blast",
|
||||
"entity.firework_rocket.blast_far",
|
||||
"entity.firework_rocket.large_blast",
|
||||
"entity.firework_rocket.large_blast_far",
|
||||
"entity.firework_rocket.launch",
|
||||
"entity.firework_rocket.shoot",
|
||||
"entity.firework_rocket.twinkle",
|
||||
"entity.firework_rocket.twinkle_far",
|
||||
"block.fire.ambient",
|
||||
"block.fire.extinguish",
|
||||
"entity.fish.swim",
|
||||
"item.flintandsteel.use",
|
||||
"entity.fox.aggro",
|
||||
"entity.fox.ambient",
|
||||
"entity.fox.bite",
|
||||
"entity.fox.death",
|
||||
"entity.fox.eat",
|
||||
"entity.fox.hurt",
|
||||
"entity.fox.screech",
|
||||
"entity.fox.sleep",
|
||||
"entity.fox.sniff",
|
||||
"entity.fox.spit",
|
||||
"block.furnace.fire_crackle",
|
||||
"entity.generic.big_fall",
|
||||
"entity.generic.burn",
|
||||
"entity.generic.death",
|
||||
"entity.generic.drink",
|
||||
"entity.generic.eat",
|
||||
"entity.generic.explode",
|
||||
"entity.generic.extinguish_fire",
|
||||
"entity.generic.hurt",
|
||||
"entity.generic.small_fall",
|
||||
"entity.generic.splash",
|
||||
"entity.generic.swim",
|
||||
"entity.ghast.ambient",
|
||||
"entity.ghast.death",
|
||||
"entity.ghast.hurt",
|
||||
"entity.ghast.scream",
|
||||
"entity.ghast.shoot",
|
||||
"entity.ghast.warn",
|
||||
"block.glass.break",
|
||||
"block.glass.fall",
|
||||
"block.glass.hit",
|
||||
"block.glass.place",
|
||||
"block.glass.step",
|
||||
"block.grass.break",
|
||||
"block.grass.fall",
|
||||
"block.grass.hit",
|
||||
"block.grass.place",
|
||||
"block.grass.step",
|
||||
"block.wet_grass.break",
|
||||
"block.wet_grass.fall",
|
||||
"block.wet_grass.hit",
|
||||
"block.wet_grass.place",
|
||||
"block.wet_grass.step",
|
||||
"block.coral_block.break",
|
||||
"block.coral_block.fall",
|
||||
"block.coral_block.hit",
|
||||
"block.coral_block.place",
|
||||
"block.coral_block.step",
|
||||
"block.gravel.break",
|
||||
"block.gravel.fall",
|
||||
"block.gravel.hit",
|
||||
"block.gravel.place",
|
||||
"block.gravel.step",
|
||||
"block.grindstone.use",
|
||||
"entity.guardian.ambient",
|
||||
"entity.guardian.ambient_land",
|
||||
"entity.guardian.attack",
|
||||
"entity.guardian.death",
|
||||
"entity.guardian.death_land",
|
||||
"entity.guardian.flop",
|
||||
"entity.guardian.hurt",
|
||||
"entity.guardian.hurt_land",
|
||||
"item.hoe.till",
|
||||
"entity.horse.ambient",
|
||||
"entity.horse.angry",
|
||||
"entity.horse.armor",
|
||||
"entity.horse.breathe",
|
||||
"entity.horse.death",
|
||||
"entity.horse.eat",
|
||||
"entity.horse.gallop",
|
||||
"entity.horse.hurt",
|
||||
"entity.horse.jump",
|
||||
"entity.horse.land",
|
||||
"entity.horse.saddle",
|
||||
"entity.horse.step",
|
||||
"entity.horse.step_wood",
|
||||
"entity.hostile.big_fall",
|
||||
"entity.hostile.death",
|
||||
"entity.hostile.hurt",
|
||||
"entity.hostile.small_fall",
|
||||
"entity.hostile.splash",
|
||||
"entity.hostile.swim",
|
||||
"entity.husk.ambient",
|
||||
"entity.husk.converted_to_zombie",
|
||||
"entity.husk.death",
|
||||
"entity.husk.hurt",
|
||||
"entity.husk.step",
|
||||
"entity.ravager.ambient",
|
||||
"entity.ravager.attack",
|
||||
"entity.ravager.celebrate",
|
||||
"entity.ravager.death",
|
||||
"entity.ravager.hurt",
|
||||
"entity.ravager.step",
|
||||
"entity.ravager.stunned",
|
||||
"entity.ravager.roar",
|
||||
"entity.illusioner.ambient",
|
||||
"entity.illusioner.cast_spell",
|
||||
"entity.illusioner.death",
|
||||
"entity.illusioner.hurt",
|
||||
"entity.illusioner.mirror_move",
|
||||
"entity.illusioner.prepare_blindness",
|
||||
"entity.illusioner.prepare_mirror",
|
||||
"block.iron_door.close",
|
||||
"block.iron_door.open",
|
||||
"entity.iron_golem.attack",
|
||||
"entity.iron_golem.death",
|
||||
"entity.iron_golem.hurt",
|
||||
"entity.iron_golem.step",
|
||||
"block.iron_trapdoor.close",
|
||||
"block.iron_trapdoor.open",
|
||||
"entity.item_frame.add_item",
|
||||
"entity.item_frame.break",
|
||||
"entity.item_frame.place",
|
||||
"entity.item_frame.remove_item",
|
||||
"entity.item_frame.rotate_item",
|
||||
"entity.item.break",
|
||||
"entity.item.pickup",
|
||||
"block.ladder.break",
|
||||
"block.ladder.fall",
|
||||
"block.ladder.hit",
|
||||
"block.ladder.place",
|
||||
"block.ladder.step",
|
||||
"block.lantern.break",
|
||||
"block.lantern.fall",
|
||||
"block.lantern.hit",
|
||||
"block.lantern.place",
|
||||
"block.lantern.step",
|
||||
"block.lava.ambient",
|
||||
"block.lava.extinguish",
|
||||
"block.lava.pop",
|
||||
"entity.leash_knot.break",
|
||||
"entity.leash_knot.place",
|
||||
"block.lever.click",
|
||||
"entity.lightning_bolt.impact",
|
||||
"entity.lightning_bolt.thunder",
|
||||
"entity.lingering_potion.throw",
|
||||
"entity.llama.ambient",
|
||||
"entity.llama.angry",
|
||||
"entity.llama.chest",
|
||||
"entity.llama.death",
|
||||
"entity.llama.eat",
|
||||
"entity.llama.hurt",
|
||||
"entity.llama.spit",
|
||||
"entity.llama.step",
|
||||
"entity.llama.swag",
|
||||
"entity.magma_cube.death",
|
||||
"entity.magma_cube.hurt",
|
||||
"entity.magma_cube.jump",
|
||||
"entity.magma_cube.squish",
|
||||
"block.metal.break",
|
||||
"block.metal.fall",
|
||||
"block.metal.hit",
|
||||
"block.metal.place",
|
||||
"block.metal_pressure_plate.click_off",
|
||||
"block.metal_pressure_plate.click_on",
|
||||
"block.metal.step",
|
||||
"entity.minecart.inside",
|
||||
"entity.minecart.riding",
|
||||
"entity.mooshroom.convert",
|
||||
"entity.mooshroom.eat",
|
||||
"entity.mooshroom.milk",
|
||||
"entity.mooshroom.suspicious_milk",
|
||||
"entity.mooshroom.shear",
|
||||
"entity.mule.ambient",
|
||||
"entity.mule.chest",
|
||||
"entity.mule.death",
|
||||
"entity.mule.hurt",
|
||||
"music.creative",
|
||||
"music.credits",
|
||||
"music.dragon",
|
||||
"music.end",
|
||||
"music.game",
|
||||
"music.menu",
|
||||
"music.nether",
|
||||
"music.under_water",
|
||||
"block.nether_wart.break",
|
||||
"item.nether_wart.plant",
|
||||
"block.note_block.basedrum",
|
||||
"block.note_block.bass",
|
||||
"block.note_block.bell",
|
||||
"block.note_block.chime",
|
||||
"block.note_block.flute",
|
||||
"block.note_block.guitar",
|
||||
"block.note_block.harp",
|
||||
"block.note_block.hat",
|
||||
"block.note_block.pling",
|
||||
"block.note_block.snare",
|
||||
"block.note_block.xylophone",
|
||||
"block.note_block.iron_xylophone",
|
||||
"block.note_block.cow_bell",
|
||||
"block.note_block.didgeridoo",
|
||||
"block.note_block.bit",
|
||||
"block.note_block.banjo",
|
||||
"entity.ocelot.hurt",
|
||||
"entity.ocelot.ambient",
|
||||
"entity.ocelot.death",
|
||||
"entity.painting.break",
|
||||
"entity.painting.place",
|
||||
"entity.panda.pre_sneeze",
|
||||
"entity.panda.sneeze",
|
||||
"entity.panda.ambient",
|
||||
"entity.panda.death",
|
||||
"entity.panda.eat",
|
||||
"entity.panda.step",
|
||||
"entity.panda.cant_breed",
|
||||
"entity.panda.aggressive_ambient",
|
||||
"entity.panda.worried_ambient",
|
||||
"entity.panda.hurt",
|
||||
"entity.panda.bite",
|
||||
"entity.parrot.ambient",
|
||||
"entity.parrot.death",
|
||||
"entity.parrot.eat",
|
||||
"entity.parrot.fly",
|
||||
"entity.parrot.hurt",
|
||||
"entity.parrot.imitate.blaze",
|
||||
"entity.parrot.imitate.creeper",
|
||||
"entity.parrot.imitate.drowned",
|
||||
"entity.parrot.imitate.elder_guardian",
|
||||
"entity.parrot.imitate.ender_dragon",
|
||||
"entity.parrot.imitate.enderman",
|
||||
"entity.parrot.imitate.endermite",
|
||||
"entity.parrot.imitate.evoker",
|
||||
"entity.parrot.imitate.ghast",
|
||||
"entity.parrot.imitate.guardian",
|
||||
"entity.parrot.imitate.husk",
|
||||
"entity.parrot.imitate.illusioner",
|
||||
"entity.parrot.imitate.magma_cube",
|
||||
"entity.parrot.imitate.panda",
|
||||
"entity.parrot.imitate.phantom",
|
||||
"entity.parrot.imitate.pillager",
|
||||
"entity.parrot.imitate.polar_bear",
|
||||
"entity.parrot.imitate.ravager",
|
||||
"entity.parrot.imitate.shulker",
|
||||
"entity.parrot.imitate.silverfish",
|
||||
"entity.parrot.imitate.skeleton",
|
||||
"entity.parrot.imitate.slime",
|
||||
"entity.parrot.imitate.spider",
|
||||
"entity.parrot.imitate.stray",
|
||||
"entity.parrot.imitate.vex",
|
||||
"entity.parrot.imitate.vindicator",
|
||||
"entity.parrot.imitate.witch",
|
||||
"entity.parrot.imitate.wither",
|
||||
"entity.parrot.imitate.wither_skeleton",
|
||||
"entity.parrot.imitate.wolf",
|
||||
"entity.parrot.imitate.zombie",
|
||||
"entity.parrot.imitate.zombie_pigman",
|
||||
"entity.parrot.imitate.zombie_villager",
|
||||
"entity.parrot.step",
|
||||
"entity.phantom.ambient",
|
||||
"entity.phantom.bite",
|
||||
"entity.phantom.death",
|
||||
"entity.phantom.flap",
|
||||
"entity.phantom.hurt",
|
||||
"entity.phantom.swoop",
|
||||
"entity.pig.ambient",
|
||||
"entity.pig.death",
|
||||
"entity.pig.hurt",
|
||||
"entity.pig.saddle",
|
||||
"entity.pig.step",
|
||||
"entity.pillager.ambient",
|
||||
"entity.pillager.celebrate",
|
||||
"entity.pillager.death",
|
||||
"entity.pillager.hurt",
|
||||
"block.piston.contract",
|
||||
"block.piston.extend",
|
||||
"entity.player.attack.crit",
|
||||
"entity.player.attack.knockback",
|
||||
"entity.player.attack.nodamage",
|
||||
"entity.player.attack.strong",
|
||||
"entity.player.attack.sweep",
|
||||
"entity.player.attack.weak",
|
||||
"entity.player.big_fall",
|
||||
"entity.player.breath",
|
||||
"entity.player.burp",
|
||||
"entity.player.death",
|
||||
"entity.player.hurt",
|
||||
"entity.player.hurt_drown",
|
||||
"entity.player.hurt_on_fire",
|
||||
"entity.player.hurt_sweet_berry_bush",
|
||||
"entity.player.levelup",
|
||||
"entity.player.small_fall",
|
||||
"entity.player.splash",
|
||||
"entity.player.splash.high_speed",
|
||||
"entity.player.swim",
|
||||
"entity.polar_bear.ambient",
|
||||
"entity.polar_bear.ambient_baby",
|
||||
"entity.polar_bear.death",
|
||||
"entity.polar_bear.hurt",
|
||||
"entity.polar_bear.step",
|
||||
"entity.polar_bear.warning",
|
||||
"block.portal.ambient",
|
||||
"block.portal.travel",
|
||||
"block.portal.trigger",
|
||||
"entity.puffer_fish.ambient",
|
||||
"entity.puffer_fish.blow_out",
|
||||
"entity.puffer_fish.blow_up",
|
||||
"entity.puffer_fish.death",
|
||||
"entity.puffer_fish.flop",
|
||||
"entity.puffer_fish.hurt",
|
||||
"entity.puffer_fish.sting",
|
||||
"block.pumpkin.carve",
|
||||
"entity.rabbit.ambient",
|
||||
"entity.rabbit.attack",
|
||||
"entity.rabbit.death",
|
||||
"entity.rabbit.hurt",
|
||||
"entity.rabbit.jump",
|
||||
"event.raid.horn",
|
||||
"music_disc.11",
|
||||
"music_disc.13",
|
||||
"music_disc.blocks",
|
||||
"music_disc.cat",
|
||||
"music_disc.chirp",
|
||||
"music_disc.far",
|
||||
"music_disc.mall",
|
||||
"music_disc.mellohi",
|
||||
"music_disc.stal",
|
||||
"music_disc.strad",
|
||||
"music_disc.wait",
|
||||
"music_disc.ward",
|
||||
"block.redstone_torch.burnout",
|
||||
"entity.salmon.ambient",
|
||||
"entity.salmon.death",
|
||||
"entity.salmon.flop",
|
||||
"entity.salmon.hurt",
|
||||
"block.sand.break",
|
||||
"block.sand.fall",
|
||||
"block.sand.hit",
|
||||
"block.sand.place",
|
||||
"block.sand.step",
|
||||
"block.scaffolding.break",
|
||||
"block.scaffolding.fall",
|
||||
"block.scaffolding.hit",
|
||||
"block.scaffolding.place",
|
||||
"block.scaffolding.step",
|
||||
"entity.sheep.ambient",
|
||||
"entity.sheep.death",
|
||||
"entity.sheep.hurt",
|
||||
"entity.sheep.shear",
|
||||
"entity.sheep.step",
|
||||
"item.shield.block",
|
||||
"item.shield.break",
|
||||
"item.shovel.flatten",
|
||||
"entity.shulker.ambient",
|
||||
"block.shulker_box.close",
|
||||
"block.shulker_box.open",
|
||||
"entity.shulker_bullet.hit",
|
||||
"entity.shulker_bullet.hurt",
|
||||
"entity.shulker.close",
|
||||
"entity.shulker.death",
|
||||
"entity.shulker.hurt",
|
||||
"entity.shulker.hurt_closed",
|
||||
"entity.shulker.open",
|
||||
"entity.shulker.shoot",
|
||||
"entity.shulker.teleport",
|
||||
"entity.silverfish.ambient",
|
||||
"entity.silverfish.death",
|
||||
"entity.silverfish.hurt",
|
||||
"entity.silverfish.step",
|
||||
"entity.skeleton.ambient",
|
||||
"entity.skeleton.death",
|
||||
"entity.skeleton_horse.ambient",
|
||||
"entity.skeleton_horse.death",
|
||||
"entity.skeleton_horse.hurt",
|
||||
"entity.skeleton_horse.swim",
|
||||
"entity.skeleton_horse.ambient_water",
|
||||
"entity.skeleton_horse.gallop_water",
|
||||
"entity.skeleton_horse.jump_water",
|
||||
"entity.skeleton_horse.step_water",
|
||||
"entity.skeleton.hurt",
|
||||
"entity.skeleton.shoot",
|
||||
"entity.skeleton.step",
|
||||
"entity.slime.attack",
|
||||
"entity.slime.death",
|
||||
"entity.slime.hurt",
|
||||
"entity.slime.jump",
|
||||
"entity.slime.squish",
|
||||
"block.slime_block.break",
|
||||
"block.slime_block.fall",
|
||||
"block.slime_block.hit",
|
||||
"block.slime_block.place",
|
||||
"block.slime_block.step",
|
||||
"entity.magma_cube.death_small",
|
||||
"entity.magma_cube.hurt_small",
|
||||
"entity.magma_cube.squish_small",
|
||||
"entity.slime.death_small",
|
||||
"entity.slime.hurt_small",
|
||||
"entity.slime.jump_small",
|
||||
"entity.slime.squish_small",
|
||||
"block.smoker.smoke",
|
||||
"entity.snowball.throw",
|
||||
"block.snow.break",
|
||||
"block.snow.fall",
|
||||
"entity.snow_golem.ambient",
|
||||
"entity.snow_golem.death",
|
||||
"entity.snow_golem.hurt",
|
||||
"entity.snow_golem.shoot",
|
||||
"block.snow.hit",
|
||||
"block.snow.place",
|
||||
"block.snow.step",
|
||||
"entity.spider.ambient",
|
||||
"entity.spider.death",
|
||||
"entity.spider.hurt",
|
||||
"entity.spider.step",
|
||||
"entity.splash_potion.break",
|
||||
"entity.splash_potion.throw",
|
||||
"entity.squid.ambient",
|
||||
"entity.squid.death",
|
||||
"entity.squid.hurt",
|
||||
"entity.squid.squirt",
|
||||
"block.stone.break",
|
||||
"block.stone_button.click_off",
|
||||
"block.stone_button.click_on",
|
||||
"block.stone.fall",
|
||||
"block.stone.hit",
|
||||
"block.stone.place",
|
||||
"block.stone_pressure_plate.click_off",
|
||||
"block.stone_pressure_plate.click_on",
|
||||
"block.stone.step",
|
||||
"entity.stray.ambient",
|
||||
"entity.stray.death",
|
||||
"entity.stray.hurt",
|
||||
"entity.stray.step",
|
||||
"block.sweet_berry_bush.break",
|
||||
"block.sweet_berry_bush.place",
|
||||
"item.sweet_berries.pick_from_bush",
|
||||
"enchant.thorns.hit",
|
||||
"entity.tnt.primed",
|
||||
"item.totem.use",
|
||||
"item.trident.hit",
|
||||
"item.trident.hit_ground",
|
||||
"item.trident.return",
|
||||
"item.trident.riptide_1",
|
||||
"item.trident.riptide_2",
|
||||
"item.trident.riptide_3",
|
||||
"item.trident.throw",
|
||||
"item.trident.thunder",
|
||||
"block.tripwire.attach",
|
||||
"block.tripwire.click_off",
|
||||
"block.tripwire.click_on",
|
||||
"block.tripwire.detach",
|
||||
"entity.tropical_fish.ambient",
|
||||
"entity.tropical_fish.death",
|
||||
"entity.tropical_fish.flop",
|
||||
"entity.tropical_fish.hurt",
|
||||
"entity.turtle.ambient_land",
|
||||
"entity.turtle.death",
|
||||
"entity.turtle.death_baby",
|
||||
"entity.turtle.egg_break",
|
||||
"entity.turtle.egg_crack",
|
||||
"entity.turtle.egg_hatch",
|
||||
"entity.turtle.hurt",
|
||||
"entity.turtle.hurt_baby",
|
||||
"entity.turtle.lay_egg",
|
||||
"entity.turtle.shamble",
|
||||
"entity.turtle.shamble_baby",
|
||||
"entity.turtle.swim",
|
||||
"ui.button.click",
|
||||
"ui.loom.select_pattern",
|
||||
"ui.loom.take_result",
|
||||
"ui.cartography_table.take_result",
|
||||
"ui.stonecutter.take_result",
|
||||
"ui.stonecutter.select_recipe",
|
||||
"ui.toast.challenge_complete",
|
||||
"ui.toast.in",
|
||||
"ui.toast.out",
|
||||
"entity.vex.ambient",
|
||||
"entity.vex.charge",
|
||||
"entity.vex.death",
|
||||
"entity.vex.hurt",
|
||||
"entity.villager.ambient",
|
||||
"entity.villager.celebrate",
|
||||
"entity.villager.death",
|
||||
"entity.villager.hurt",
|
||||
"entity.villager.no",
|
||||
"entity.villager.trade",
|
||||
"entity.villager.yes",
|
||||
"entity.villager.work_armorer",
|
||||
"entity.villager.work_butcher",
|
||||
"entity.villager.work_cartographer",
|
||||
"entity.villager.work_cleric",
|
||||
"entity.villager.work_farmer",
|
||||
"entity.villager.work_fisherman",
|
||||
"entity.villager.work_fletcher",
|
||||
"entity.villager.work_leatherworker",
|
||||
"entity.villager.work_librarian",
|
||||
"entity.villager.work_mason",
|
||||
"entity.villager.work_shepherd",
|
||||
"entity.villager.work_toolsmith",
|
||||
"entity.villager.work_weaponsmith",
|
||||
"entity.vindicator.ambient",
|
||||
"entity.vindicator.celebrate",
|
||||
"entity.vindicator.death",
|
||||
"entity.vindicator.hurt",
|
||||
"block.lily_pad.place",
|
||||
"entity.wandering_trader.ambient",
|
||||
"entity.wandering_trader.death",
|
||||
"entity.wandering_trader.disappeared",
|
||||
"entity.wandering_trader.drink_milk",
|
||||
"entity.wandering_trader.drink_potion",
|
||||
"entity.wandering_trader.hurt",
|
||||
"entity.wandering_trader.no",
|
||||
"entity.wandering_trader.reappeared",
|
||||
"entity.wandering_trader.trade",
|
||||
"entity.wandering_trader.yes",
|
||||
"block.water.ambient",
|
||||
"weather.rain",
|
||||
"weather.rain.above",
|
||||
"entity.witch.ambient",
|
||||
"entity.witch.celebrate",
|
||||
"entity.witch.death",
|
||||
"entity.witch.drink",
|
||||
"entity.witch.hurt",
|
||||
"entity.witch.throw",
|
||||
"entity.wither.ambient",
|
||||
"entity.wither.break_block",
|
||||
"entity.wither.death",
|
||||
"entity.wither.hurt",
|
||||
"entity.wither.shoot",
|
||||
"entity.wither_skeleton.ambient",
|
||||
"entity.wither_skeleton.death",
|
||||
"entity.wither_skeleton.hurt",
|
||||
"entity.wither_skeleton.step",
|
||||
"entity.wither.spawn",
|
||||
"entity.wolf.ambient",
|
||||
"entity.wolf.death",
|
||||
"entity.wolf.growl",
|
||||
"entity.wolf.howl",
|
||||
"entity.wolf.hurt",
|
||||
"entity.wolf.pant",
|
||||
"entity.wolf.shake",
|
||||
"entity.wolf.step",
|
||||
"entity.wolf.whine",
|
||||
"block.wooden_door.close",
|
||||
"block.wooden_door.open",
|
||||
"block.wooden_trapdoor.close",
|
||||
"block.wooden_trapdoor.open",
|
||||
"block.wood.break",
|
||||
"block.wooden_button.click_off",
|
||||
"block.wooden_button.click_on",
|
||||
"block.wood.fall",
|
||||
"block.wood.hit",
|
||||
"block.wood.place",
|
||||
"block.wooden_pressure_plate.click_off",
|
||||
"block.wooden_pressure_plate.click_on",
|
||||
"block.wood.step",
|
||||
"entity.zombie.ambient",
|
||||
"entity.zombie.attack_wooden_door",
|
||||
"entity.zombie.attack_iron_door",
|
||||
"entity.zombie.break_wooden_door",
|
||||
"entity.zombie.converted_to_drowned",
|
||||
"entity.zombie.death",
|
||||
"entity.zombie.destroy_egg",
|
||||
"entity.zombie_horse.ambient",
|
||||
"entity.zombie_horse.death",
|
||||
"entity.zombie_horse.hurt",
|
||||
"entity.zombie.hurt",
|
||||
"entity.zombie.infect",
|
||||
"entity.zombie_pigman.ambient",
|
||||
"entity.zombie_pigman.angry",
|
||||
"entity.zombie_pigman.death",
|
||||
"entity.zombie_pigman.hurt",
|
||||
"entity.zombie.step",
|
||||
"entity.zombie_villager.ambient",
|
||||
"entity.zombie_villager.converted",
|
||||
"entity.zombie_villager.cure",
|
||||
"entity.zombie_villager.death",
|
||||
"entity.zombie_villager.hurt",
|
||||
"entity.zombie_villager.step",
|
||||
}
|
@ -26,11 +26,11 @@ func (r *Realms) Compatible() (string, error) {
|
||||
|
||||
// TOS is what to join Realms servers you must agree to.
|
||||
// Call this function will set this flag.
|
||||
func (r *Realms) TOS()error{
|
||||
resp,err:=r.c.Post(Domain+"/mco/tos/agreed","application/json",nil)
|
||||
func (r *Realms) TOS() error {
|
||||
resp, err := r.c.Post(Domain+"/mco/tos/agreed", "application/json", nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ type Realms struct {
|
||||
c http.Client
|
||||
}
|
||||
|
||||
|
||||
type Error struct {
|
||||
ErrorCode int
|
||||
ErrorMsg string
|
||||
|
@ -15,8 +15,8 @@ func ExampleAuthenticate() {
|
||||
fmt.Println(resp.AccessToken())
|
||||
}
|
||||
|
||||
func Example(){
|
||||
var user, password string// set your proof
|
||||
func Example() {
|
||||
var user, password string // set your proof
|
||||
|
||||
// Sign in
|
||||
resp, err := Authenticate(user, password)
|
||||
@ -49,7 +49,7 @@ func Example(){
|
||||
fmt.Println("at status: ", ok)
|
||||
|
||||
// Invalidate access token
|
||||
err=resp.Invalidate()
|
||||
err = resp.Invalidate()
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
@ -69,4 +69,4 @@ func Example(){
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user