mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 10:22:29 +00:00
Add python script to help create language files
This commit is contained in:
parent
930483b56a
commit
d45bcb5a94
19
script/README.md
Normal file
19
script/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Language Script
|
||||
|
||||
A script to convert Minecraft language files to ShopChest language files. <br>
|
||||
The plugin's messages need to be added manually.
|
||||
|
||||
## Usage
|
||||
|
||||
To get a Minecraft language file (that is not `en_us`), follow these steps:
|
||||
|
||||
1. Get in your `.minecraft/assets/indexes` folder and open the file that is named the desired version.
|
||||
|
||||
2. Search for your language code (e.g. `de_de` or `fr_fr`). There should be 2 results: One for the realms language file and one for the normal language file.
|
||||
|
||||
3. Copy the `hash` code and search for it in the `.minecraft/assets` folder. The hash code is the filename of the language file.
|
||||
|
||||
Once done, copy the language file into a working directory and launch `lang.py` (via Python3). The output file will be encoded in `UTF-8` (line endings: LF).<br>
|
||||
Now add any missing entries (e.g. by checking other language files) and copy the plugin's messages.
|
||||
|
||||
Don't forget to append `-legacy` to the file name when dealing with version below 1.13.
|
823
script/entries-legacy.txt
Normal file
823
script/entries-legacy.txt
Normal file
@ -0,0 +1,823 @@
|
||||
book.generation.0
|
||||
book.generation.1
|
||||
book.generation.2
|
||||
book.generation.3
|
||||
effect.damageBoost
|
||||
effect.fireResistance
|
||||
effect.harm
|
||||
effect.heal
|
||||
effect.invisibility
|
||||
effect.jump
|
||||
effect.luck
|
||||
effect.moveSlowdown
|
||||
effect.moveSpeed
|
||||
effect.nightVision
|
||||
effect.poison
|
||||
effect.regeneration
|
||||
effect.waterBreathing
|
||||
effect.weakness
|
||||
enchantment.arrowDamage
|
||||
enchantment.arrowFire
|
||||
enchantment.arrowInfinite
|
||||
enchantment.arrowKnockback
|
||||
enchantment.binding_curse
|
||||
enchantment.damage.all
|
||||
enchantment.damage.arthropods
|
||||
enchantment.damage.undead
|
||||
enchantment.digging
|
||||
enchantment.durability
|
||||
enchantment.fire
|
||||
enchantment.fishingSpeed
|
||||
enchantment.frostWalker
|
||||
enchantment.knockback
|
||||
enchantment.level.1
|
||||
enchantment.level.10
|
||||
enchantment.level.2
|
||||
enchantment.level.3
|
||||
enchantment.level.4
|
||||
enchantment.level.5
|
||||
enchantment.level.6
|
||||
enchantment.level.7
|
||||
enchantment.level.8
|
||||
enchantment.level.9
|
||||
enchantment.lootBonus
|
||||
enchantment.lootBonusDigger
|
||||
enchantment.lootBonusFishing
|
||||
enchantment.mending
|
||||
enchantment.oxygen
|
||||
enchantment.protect.all
|
||||
enchantment.protect.explosion
|
||||
enchantment.protect.fall
|
||||
enchantment.protect.fire
|
||||
enchantment.protect.projectile
|
||||
enchantment.sweeping
|
||||
enchantment.thorns
|
||||
enchantment.untouching
|
||||
enchantment.vanishing_curse
|
||||
enchantment.waterWalker
|
||||
enchantment.waterWorker
|
||||
entity.Bat.name
|
||||
entity.Blaze.name
|
||||
entity.CaveSpider.name
|
||||
entity.Chicken.name
|
||||
entity.Cow.name
|
||||
entity.Creeper.name
|
||||
entity.Donkey.name
|
||||
entity.ElderGuardian.name
|
||||
entity.Enderman.name
|
||||
entity.Endermite.name
|
||||
entity.EntityHorse.name
|
||||
entity.EvocationIllager.name
|
||||
entity.Ghast.name
|
||||
entity.Guardian.name
|
||||
entity.Horse.name
|
||||
entity.Husk.name
|
||||
entity.IllusionIllager.name
|
||||
entity.LavaSlime.name
|
||||
entity.Llama.name
|
||||
entity.Mule.name
|
||||
entity.MushroomCow.name
|
||||
entity.Ozelot.name
|
||||
entity.Parrot.name
|
||||
entity.Pig.name
|
||||
entity.PigZombie.name
|
||||
entity.PolarBear.name
|
||||
entity.Rabbit.name
|
||||
entity.Sheep.name
|
||||
entity.Shulker.name
|
||||
entity.Silverfish.name
|
||||
entity.Skeleton.name
|
||||
entity.SkeletonHorse.name
|
||||
entity.Slime.name
|
||||
entity.Spider.name
|
||||
entity.Squid.name
|
||||
entity.Stray.name
|
||||
entity.Vex.name
|
||||
entity.Villager.name
|
||||
entity.VindicationIllager.name
|
||||
entity.Witch.name
|
||||
entity.WitherSkeleton.name
|
||||
entity.Wolf.name
|
||||
entity.Zombie.name
|
||||
entity.ZombieHorse.name
|
||||
entity.ZombieVillager.name
|
||||
item.apple.name
|
||||
item.appleGold.name
|
||||
item.armorStand.name
|
||||
item.arrow.name
|
||||
item.banner.black.name
|
||||
item.banner.blue.name
|
||||
item.banner.brown.name
|
||||
item.banner.cyan.name
|
||||
item.banner.gray.name
|
||||
item.banner.green.name
|
||||
item.banner.lightBlue.name
|
||||
item.banner.lime.name
|
||||
item.banner.magenta.name
|
||||
item.banner.orange.name
|
||||
item.banner.pink.name
|
||||
item.banner.purple.name
|
||||
item.banner.red.name
|
||||
item.banner.silver.name
|
||||
item.banner.white.name
|
||||
item.banner.yellow.name
|
||||
item.bed.black.name
|
||||
item.bed.blue.name
|
||||
item.bed.brown.name
|
||||
item.bed.cyan.name
|
||||
item.bed.gray.name
|
||||
item.bed.green.name
|
||||
item.bed.lightBlue.name
|
||||
item.bed.lime.name
|
||||
item.bed.magenta.name
|
||||
item.bed.name
|
||||
item.bed.orange.name
|
||||
item.bed.pink.name
|
||||
item.bed.purple.name
|
||||
item.bed.red.name
|
||||
item.bed.silver.name
|
||||
item.bed.white.name
|
||||
item.bed.yellow.name
|
||||
item.beefCooked.name
|
||||
item.beefRaw.name
|
||||
item.beetroot.name
|
||||
item.beetroot_seeds.name
|
||||
item.beetroot_soup.name
|
||||
item.blazePowder.name
|
||||
item.blazeRod.name
|
||||
item.boat.acacia.name
|
||||
item.boat.birch.name
|
||||
item.boat.dark_oak.name
|
||||
item.boat.jungle.name
|
||||
item.boat.oak.name
|
||||
item.boat.spruce.name
|
||||
item.bone.name
|
||||
item.book.name
|
||||
item.bootsChain.name
|
||||
item.bootsCloth.name
|
||||
item.bootsDiamond.name
|
||||
item.bootsGold.name
|
||||
item.bootsIron.name
|
||||
item.bow.name
|
||||
item.bowl.name
|
||||
item.bread.name
|
||||
item.brewingStand.name
|
||||
item.brick.name
|
||||
item.bucket.name
|
||||
item.bucketLava.name
|
||||
item.bucketWater.name
|
||||
item.cake.name
|
||||
item.carrotGolden.name
|
||||
item.carrotOnAStick.name
|
||||
item.carrots.name
|
||||
item.cauldron.name
|
||||
item.charcoal.name
|
||||
item.chestplateChain.name
|
||||
item.chestplateCloth.name
|
||||
item.chestplateDiamond.name
|
||||
item.chestplateGold.name
|
||||
item.chestplateIron.name
|
||||
item.chickenCooked.name
|
||||
item.chickenRaw.name
|
||||
item.chorusFruit.name
|
||||
item.chorusFruitPopped.name
|
||||
item.clay.name
|
||||
item.clock.name
|
||||
item.coal.name
|
||||
item.comparator.name
|
||||
item.compass.name
|
||||
item.cookie.name
|
||||
item.diamond.name
|
||||
item.diode.name
|
||||
item.doorAcacia.name
|
||||
item.doorBirch.name
|
||||
item.doorDarkOak.name
|
||||
item.doorIron.name
|
||||
item.doorJungle.name
|
||||
item.doorOak.name
|
||||
item.doorSpruce.name
|
||||
item.dragon_breath.name
|
||||
item.dyePowder.black.name
|
||||
item.dyePowder.blue.name
|
||||
item.dyePowder.brown.name
|
||||
item.dyePowder.cyan.name
|
||||
item.dyePowder.gray.name
|
||||
item.dyePowder.green.name
|
||||
item.dyePowder.lightBlue.name
|
||||
item.dyePowder.lime.name
|
||||
item.dyePowder.magenta.name
|
||||
item.dyePowder.orange.name
|
||||
item.dyePowder.pink.name
|
||||
item.dyePowder.purple.name
|
||||
item.dyePowder.red.name
|
||||
item.dyePowder.silver.name
|
||||
item.dyePowder.white.name
|
||||
item.dyePowder.yellow.name
|
||||
item.egg.name
|
||||
item.elytra.name
|
||||
item.emerald.name
|
||||
item.emptyMap.name
|
||||
item.enchantedBook.name
|
||||
item.end_crystal.name
|
||||
item.enderPearl.name
|
||||
item.expBottle.name
|
||||
item.eyeOfEnder.name
|
||||
item.feather.name
|
||||
item.fermentedSpiderEye.name
|
||||
item.fireball.name
|
||||
item.fireworks.name
|
||||
item.fireworksCharge.name
|
||||
item.fish.clownfish.raw.name
|
||||
item.fish.cod.cooked.name
|
||||
item.fish.cod.raw.name
|
||||
item.fish.pufferfish.raw.name
|
||||
item.fish.salmon.cooked.name
|
||||
item.fish.salmon.raw.name
|
||||
item.fishingRod.name
|
||||
item.flint.name
|
||||
item.flintAndSteel.name
|
||||
item.flowerPot.name
|
||||
item.frame.name
|
||||
item.ghastTear.name
|
||||
item.glassBottle.name
|
||||
item.goldNugget.name
|
||||
item.hatchetDiamond.name
|
||||
item.hatchetGold.name
|
||||
item.hatchetIron.name
|
||||
item.hatchetStone.name
|
||||
item.hatchetWood.name
|
||||
item.helmetChain.name
|
||||
item.helmetCloth.name
|
||||
item.helmetDiamond.name
|
||||
item.helmetGold.name
|
||||
item.helmetIron.name
|
||||
item.hoeDiamond.name
|
||||
item.hoeGold.name
|
||||
item.hoeIron.name
|
||||
item.hoeStone.name
|
||||
item.hoeWood.name
|
||||
item.horsearmordiamond.name
|
||||
item.horsearmorgold.name
|
||||
item.horsearmormetal.name
|
||||
item.ingotGold.name
|
||||
item.ingotIron.name
|
||||
item.ironNugget.name
|
||||
item.knowledgeBook.name
|
||||
item.leash.name
|
||||
item.leather.name
|
||||
item.leggingsChain.name
|
||||
item.leggingsCloth.name
|
||||
item.leggingsDiamond.name
|
||||
item.leggingsGold.name
|
||||
item.leggingsIron.name
|
||||
item.magmaCream.name
|
||||
item.map.name
|
||||
item.melon.name
|
||||
item.milk.name
|
||||
item.minecart.name
|
||||
item.minecartChest.name
|
||||
item.minecartCommandBlock.name
|
||||
item.minecartFurnace.name
|
||||
item.minecartHopper.name
|
||||
item.minecartTnt.name
|
||||
item.monsterPlacer.name
|
||||
item.mushroomStew.name
|
||||
item.muttonCooked.name
|
||||
item.muttonRaw.name
|
||||
item.nameTag.name
|
||||
item.netherStalkSeeds.name
|
||||
item.netherStar.name
|
||||
item.netherbrick.name
|
||||
item.netherquartz.name
|
||||
item.painting.name
|
||||
item.paper.name
|
||||
item.pickaxeDiamond.name
|
||||
item.pickaxeGold.name
|
||||
item.pickaxeIron.name
|
||||
item.pickaxeStone.name
|
||||
item.pickaxeWood.name
|
||||
item.porkchopCooked.name
|
||||
item.porkchopRaw.name
|
||||
item.potato.name
|
||||
item.potatoBaked.name
|
||||
item.potatoPoisonous.name
|
||||
item.potion.name
|
||||
item.prismarineCrystals.name
|
||||
item.prismarineShard.name
|
||||
item.pumpkinPie.name
|
||||
item.rabbitCooked.name
|
||||
item.rabbitFoot.name
|
||||
item.rabbitHide.name
|
||||
item.rabbitRaw.name
|
||||
item.rabbitStew.name
|
||||
item.record.11.desc
|
||||
item.record.13.desc
|
||||
item.record.blocks.desc
|
||||
item.record.cat.desc
|
||||
item.record.chirp.desc
|
||||
item.record.far.desc
|
||||
item.record.mall.desc
|
||||
item.record.mellohi.desc
|
||||
item.record.name
|
||||
item.record.stal.desc
|
||||
item.record.strad.desc
|
||||
item.record.wait.desc
|
||||
item.record.ward.desc
|
||||
item.redstone.name
|
||||
item.reeds.name
|
||||
item.rottenFlesh.name
|
||||
item.saddle.name
|
||||
item.seeds.name
|
||||
item.seeds_melon.name
|
||||
item.seeds_pumpkin.name
|
||||
item.shears.name
|
||||
item.shield.name
|
||||
item.shovelDiamond.name
|
||||
item.shovelGold.name
|
||||
item.shovelIron.name
|
||||
item.shovelStone.name
|
||||
item.shovelWood.name
|
||||
item.shulkerShell.name
|
||||
item.sign.name
|
||||
item.skull.char.name
|
||||
item.skull.creeper.name
|
||||
item.skull.dragon.name
|
||||
item.skull.skeleton.name
|
||||
item.skull.wither.name
|
||||
item.skull.zombie.name
|
||||
item.slimeball.name
|
||||
item.snowball.name
|
||||
item.speckledMelon.name
|
||||
item.spectral_arrow.name
|
||||
item.spiderEye.name
|
||||
item.stick.name
|
||||
item.string.name
|
||||
item.sugar.name
|
||||
item.sulphur.name
|
||||
item.swordDiamond.name
|
||||
item.swordGold.name
|
||||
item.swordIron.name
|
||||
item.swordStone.name
|
||||
item.swordWood.name
|
||||
item.tipped_arrow.name
|
||||
item.totem.name
|
||||
item.wheat.name
|
||||
item.writingBook.name
|
||||
item.writtenBook.name
|
||||
item.yellowDust.name
|
||||
lingering_potion.effect.awkward
|
||||
lingering_potion.effect.empty
|
||||
lingering_potion.effect.fire_resistance
|
||||
lingering_potion.effect.harming
|
||||
lingering_potion.effect.healing
|
||||
lingering_potion.effect.invisibility
|
||||
lingering_potion.effect.leaping
|
||||
lingering_potion.effect.luck
|
||||
lingering_potion.effect.mundane
|
||||
lingering_potion.effect.night_vision
|
||||
lingering_potion.effect.poison
|
||||
lingering_potion.effect.regeneration
|
||||
lingering_potion.effect.slowness
|
||||
lingering_potion.effect.strength
|
||||
lingering_potion.effect.swiftness
|
||||
lingering_potion.effect.thick
|
||||
lingering_potion.effect.water
|
||||
lingering_potion.effect.water_breathing
|
||||
lingering_potion.effect.weakness
|
||||
potion.effect.awkward
|
||||
potion.effect.empty
|
||||
potion.effect.fire_resistance
|
||||
potion.effect.harming
|
||||
potion.effect.healing
|
||||
potion.effect.invisibility
|
||||
potion.effect.leaping
|
||||
potion.effect.luck
|
||||
potion.effect.mundane
|
||||
potion.effect.night_vision
|
||||
potion.effect.poison
|
||||
potion.effect.regeneration
|
||||
potion.effect.slowness
|
||||
potion.effect.strength
|
||||
potion.effect.swiftness
|
||||
potion.effect.thick
|
||||
potion.effect.water
|
||||
potion.effect.water_breathing
|
||||
potion.effect.weakness
|
||||
splash_potion.effect.awkward
|
||||
splash_potion.effect.empty
|
||||
splash_potion.effect.fire_resistance
|
||||
splash_potion.effect.harming
|
||||
splash_potion.effect.healing
|
||||
splash_potion.effect.invisibility
|
||||
splash_potion.effect.leaping
|
||||
splash_potion.effect.luck
|
||||
splash_potion.effect.mundane
|
||||
splash_potion.effect.night_vision
|
||||
splash_potion.effect.poison
|
||||
splash_potion.effect.regeneration
|
||||
splash_potion.effect.slowness
|
||||
splash_potion.effect.strength
|
||||
splash_potion.effect.swiftness
|
||||
splash_potion.effect.thick
|
||||
splash_potion.effect.water
|
||||
splash_potion.effect.water_breathing
|
||||
splash_potion.effect.weakness
|
||||
tile.acaciaFence.name
|
||||
tile.acaciaFenceGate.name
|
||||
tile.activatorRail.name
|
||||
tile.anvil.intact.name
|
||||
tile.anvil.slightlyDamaged.name
|
||||
tile.anvil.veryDamaged.name
|
||||
tile.barrier.name
|
||||
tile.beacon.name
|
||||
tile.bedrock.name
|
||||
tile.birchFence.name
|
||||
tile.birchFenceGate.name
|
||||
tile.blockCoal.name
|
||||
tile.blockDiamond.name
|
||||
tile.blockEmerald.name
|
||||
tile.blockGold.name
|
||||
tile.blockIron.name
|
||||
tile.blockLapis.name
|
||||
tile.blockRedstone.name
|
||||
tile.boneBlock.name
|
||||
tile.bookshelf.name
|
||||
tile.brick.name
|
||||
tile.button.name
|
||||
tile.cactus.name
|
||||
tile.chainCommandBlock.name
|
||||
tile.chest.name
|
||||
tile.chestTrap.name
|
||||
tile.chorusFlower.name
|
||||
tile.chorusPlant.name
|
||||
tile.clay.name
|
||||
tile.clayHardened.name
|
||||
tile.clayHardenedStained.black.name
|
||||
tile.clayHardenedStained.blue.name
|
||||
tile.clayHardenedStained.brown.name
|
||||
tile.clayHardenedStained.cyan.name
|
||||
tile.clayHardenedStained.gray.name
|
||||
tile.clayHardenedStained.green.name
|
||||
tile.clayHardenedStained.lightBlue.name
|
||||
tile.clayHardenedStained.lime.name
|
||||
tile.clayHardenedStained.magenta.name
|
||||
tile.clayHardenedStained.orange.name
|
||||
tile.clayHardenedStained.pink.name
|
||||
tile.clayHardenedStained.purple.name
|
||||
tile.clayHardenedStained.red.name
|
||||
tile.clayHardenedStained.silver.name
|
||||
tile.clayHardenedStained.white.name
|
||||
tile.clayHardenedStained.yellow.name
|
||||
tile.cloth.black.name
|
||||
tile.cloth.blue.name
|
||||
tile.cloth.brown.name
|
||||
tile.cloth.cyan.name
|
||||
tile.cloth.gray.name
|
||||
tile.cloth.green.name
|
||||
tile.cloth.lightBlue.name
|
||||
tile.cloth.lime.name
|
||||
tile.cloth.magenta.name
|
||||
tile.cloth.orange.name
|
||||
tile.cloth.pink.name
|
||||
tile.cloth.purple.name
|
||||
tile.cloth.red.name
|
||||
tile.cloth.silver.name
|
||||
tile.cloth.white.name
|
||||
tile.cloth.yellow.name
|
||||
tile.cobbleWall.mossy.name
|
||||
tile.cobbleWall.normal.name
|
||||
tile.commandBlock.name
|
||||
tile.concrete.black.name
|
||||
tile.concrete.blue.name
|
||||
tile.concrete.brown.name
|
||||
tile.concrete.cyan.name
|
||||
tile.concrete.gray.name
|
||||
tile.concrete.green.name
|
||||
tile.concrete.lightBlue.name
|
||||
tile.concrete.lime.name
|
||||
tile.concrete.magenta.name
|
||||
tile.concrete.orange.name
|
||||
tile.concrete.pink.name
|
||||
tile.concrete.purple.name
|
||||
tile.concrete.red.name
|
||||
tile.concrete.silver.name
|
||||
tile.concrete.white.name
|
||||
tile.concrete.yellow.name
|
||||
tile.concretePowder.black.name
|
||||
tile.concretePowder.blue.name
|
||||
tile.concretePowder.brown.name
|
||||
tile.concretePowder.cyan.name
|
||||
tile.concretePowder.gray.name
|
||||
tile.concretePowder.green.name
|
||||
tile.concretePowder.lightBlue.name
|
||||
tile.concretePowder.lime.name
|
||||
tile.concretePowder.magenta.name
|
||||
tile.concretePowder.orange.name
|
||||
tile.concretePowder.pink.name
|
||||
tile.concretePowder.purple.name
|
||||
tile.concretePowder.red.name
|
||||
tile.concretePowder.silver.name
|
||||
tile.concretePowder.white.name
|
||||
tile.concretePowder.yellow.name
|
||||
tile.darkOakFence.name
|
||||
tile.darkOakFenceGate.name
|
||||
tile.daylightDetector.name
|
||||
tile.deadbush.name
|
||||
tile.detectorRail.name
|
||||
tile.dirt.coarse.name
|
||||
tile.dirt.default.name
|
||||
tile.dirt.podzol.name
|
||||
tile.dispenser.name
|
||||
tile.doublePlant.fern.name
|
||||
tile.doublePlant.grass.name
|
||||
tile.doublePlant.paeonia.name
|
||||
tile.doublePlant.rose.name
|
||||
tile.doublePlant.sunflower.name
|
||||
tile.doublePlant.syringa.name
|
||||
tile.dragonEgg.name
|
||||
tile.dropper.name
|
||||
tile.enchantmentTable.name
|
||||
tile.endBricks.name
|
||||
tile.endPortalFrame.name
|
||||
tile.endRod.name
|
||||
tile.enderChest.name
|
||||
tile.farmland.name
|
||||
tile.fence.name
|
||||
tile.fenceGate.name
|
||||
tile.fenceIron.name
|
||||
tile.fire.name
|
||||
tile.flower1.dandelion.name
|
||||
tile.flower2.allium.name
|
||||
tile.flower2.blueOrchid.name
|
||||
tile.flower2.houstonia.name
|
||||
tile.flower2.oxeyeDaisy.name
|
||||
tile.flower2.poppy.name
|
||||
tile.flower2.tulipOrange.name
|
||||
tile.flower2.tulipPink.name
|
||||
tile.flower2.tulipRed.name
|
||||
tile.flower2.tulipWhite.name
|
||||
tile.furnace.name
|
||||
tile.glass.name
|
||||
tile.glazedTerracottaBlack.name
|
||||
tile.glazedTerracottaBlue.name
|
||||
tile.glazedTerracottaBrown.name
|
||||
tile.glazedTerracottaCyan.name
|
||||
tile.glazedTerracottaGray.name
|
||||
tile.glazedTerracottaGreen.name
|
||||
tile.glazedTerracottaLightBlue.name
|
||||
tile.glazedTerracottaLime.name
|
||||
tile.glazedTerracottaMagenta.name
|
||||
tile.glazedTerracottaOrange.name
|
||||
tile.glazedTerracottaPink.name
|
||||
tile.glazedTerracottaPurple.name
|
||||
tile.glazedTerracottaRed.name
|
||||
tile.glazedTerracottaSilver.name
|
||||
tile.glazedTerracottaWhite.name
|
||||
tile.glazedTerracottaYellow.name
|
||||
tile.goldenRail.name
|
||||
tile.grass.name
|
||||
tile.grassPath.name
|
||||
tile.gravel.name
|
||||
tile.hayBlock.name
|
||||
tile.hellrock.name
|
||||
tile.hellsand.name
|
||||
tile.hopper.name
|
||||
tile.ice.name
|
||||
tile.icePacked.name
|
||||
tile.ironTrapdoor.name
|
||||
tile.jukebox.name
|
||||
tile.jungleFence.name
|
||||
tile.jungleFenceGate.name
|
||||
tile.ladder.name
|
||||
tile.lava.name
|
||||
tile.leaves.acacia.name
|
||||
tile.leaves.big_oak.name
|
||||
tile.leaves.birch.name
|
||||
tile.leaves.jungle.name
|
||||
tile.leaves.oak.name
|
||||
tile.leaves.spruce.name
|
||||
tile.lever.name
|
||||
tile.lightgem.name
|
||||
tile.litpumpkin.name
|
||||
tile.log.acacia.name
|
||||
tile.log.big_oak.name
|
||||
tile.log.birch.name
|
||||
tile.log.jungle.name
|
||||
tile.log.oak.name
|
||||
tile.log.spruce.name
|
||||
tile.magma.name
|
||||
tile.melon.name
|
||||
tile.mobSpawner.name
|
||||
tile.monsterStoneEgg.brick.name
|
||||
tile.monsterStoneEgg.chiseledbrick.name
|
||||
tile.monsterStoneEgg.cobble.name
|
||||
tile.monsterStoneEgg.crackedbrick.name
|
||||
tile.monsterStoneEgg.mossybrick.name
|
||||
tile.monsterStoneEgg.stone.name
|
||||
tile.mushroom.name
|
||||
tile.musicBlock.name
|
||||
tile.mycel.name
|
||||
tile.netherBrick.name
|
||||
tile.netherFence.name
|
||||
tile.netherStalk.name
|
||||
tile.netherWartBlock.name
|
||||
tile.netherquartz.name
|
||||
tile.notGate.name
|
||||
tile.observer.name
|
||||
tile.obsidian.name
|
||||
tile.oreCoal.name
|
||||
tile.oreDiamond.name
|
||||
tile.oreEmerald.name
|
||||
tile.oreGold.name
|
||||
tile.oreIron.name
|
||||
tile.oreLapis.name
|
||||
tile.oreRedstone.name
|
||||
tile.pistonBase.name
|
||||
tile.pistonStickyBase.name
|
||||
tile.portal.name
|
||||
tile.pressurePlateStone.name
|
||||
tile.pressurePlateWood.name
|
||||
tile.prismarine.bricks.name
|
||||
tile.prismarine.dark.name
|
||||
tile.prismarine.rough.name
|
||||
tile.pumpkin.name
|
||||
tile.purpurBlock.name
|
||||
tile.purpurPillar.name
|
||||
tile.purpurSlab.name
|
||||
tile.quartzBlock.chiseled.name
|
||||
tile.quartzBlock.default.name
|
||||
tile.quartzBlock.lines.name
|
||||
tile.rail.name
|
||||
tile.redNetherBrick.name
|
||||
tile.redSandStone.chiseled.name
|
||||
tile.redSandStone.default.name
|
||||
tile.redSandStone.smooth.name
|
||||
tile.redstoneLight.name
|
||||
tile.repeatingCommandBlock.name
|
||||
tile.sand.default.name
|
||||
tile.sand.red.name
|
||||
tile.sandStone.chiseled.name
|
||||
tile.sandStone.default.name
|
||||
tile.sandStone.smooth.name
|
||||
tile.sapling.acacia.name
|
||||
tile.sapling.big_oak.name
|
||||
tile.sapling.birch.name
|
||||
tile.sapling.jungle.name
|
||||
tile.sapling.oak.name
|
||||
tile.sapling.spruce.name
|
||||
tile.seaLantern.name
|
||||
tile.shulkerBoxBlack.name
|
||||
tile.shulkerBoxBlue.name
|
||||
tile.shulkerBoxBrown.name
|
||||
tile.shulkerBoxCyan.name
|
||||
tile.shulkerBoxGray.name
|
||||
tile.shulkerBoxGreen.name
|
||||
tile.shulkerBoxLightBlue.name
|
||||
tile.shulkerBoxLime.name
|
||||
tile.shulkerBoxMagenta.name
|
||||
tile.shulkerBoxOrange.name
|
||||
tile.shulkerBoxPink.name
|
||||
tile.shulkerBoxPurple.name
|
||||
tile.shulkerBoxRed.name
|
||||
tile.shulkerBoxSilver.name
|
||||
tile.shulkerBoxWhite.name
|
||||
tile.shulkerBoxYellow.name
|
||||
tile.slime.name
|
||||
tile.snow.name
|
||||
tile.sponge.dry.name
|
||||
tile.sponge.wet.name
|
||||
tile.spruceFence.name
|
||||
tile.spruceFenceGate.name
|
||||
tile.stainedGlass.black.name
|
||||
tile.stainedGlass.blue.name
|
||||
tile.stainedGlass.brown.name
|
||||
tile.stainedGlass.cyan.name
|
||||
tile.stainedGlass.gray.name
|
||||
tile.stainedGlass.green.name
|
||||
tile.stainedGlass.lightBlue.name
|
||||
tile.stainedGlass.lime.name
|
||||
tile.stainedGlass.magenta.name
|
||||
tile.stainedGlass.orange.name
|
||||
tile.stainedGlass.pink.name
|
||||
tile.stainedGlass.purple.name
|
||||
tile.stainedGlass.red.name
|
||||
tile.stainedGlass.silver.name
|
||||
tile.stainedGlass.white.name
|
||||
tile.stainedGlass.yellow.name
|
||||
tile.stairsBrick.name
|
||||
tile.stairsNetherBrick.name
|
||||
tile.stairsPurpur.name
|
||||
tile.stairsQuartz.name
|
||||
tile.stairsRedSandStone.name
|
||||
tile.stairsSandStone.name
|
||||
tile.stairsStone.name
|
||||
tile.stairsStoneBrickSmooth.name
|
||||
tile.stairsWood.name
|
||||
tile.stairsWoodAcacia.name
|
||||
tile.stairsWoodBirch.name
|
||||
tile.stairsWoodDarkOak.name
|
||||
tile.stairsWoodJungle.name
|
||||
tile.stairsWoodSpruce.name
|
||||
tile.stone.andesite.name
|
||||
tile.stone.andesiteSmooth.name
|
||||
tile.stone.diorite.name
|
||||
tile.stone.dioriteSmooth.name
|
||||
tile.stone.granite.name
|
||||
tile.stone.graniteSmooth.name
|
||||
tile.stone.stone.name
|
||||
tile.stoneMoss.name
|
||||
tile.stoneSlab.brick.name
|
||||
tile.stoneSlab.cobble.name
|
||||
tile.stoneSlab.netherBrick.name
|
||||
tile.stoneSlab.quartz.name
|
||||
tile.stoneSlab.sand.name
|
||||
tile.stoneSlab.smoothStoneBrick.name
|
||||
tile.stoneSlab.stone.name
|
||||
tile.stoneSlab.wood.name
|
||||
tile.stoneSlab2.red_sandstone.name
|
||||
tile.stonebrick.name
|
||||
tile.stonebricksmooth.chiseled.name
|
||||
tile.stonebricksmooth.cracked.name
|
||||
tile.stonebricksmooth.default.name
|
||||
tile.stonebricksmooth.mossy.name
|
||||
tile.structureBlock.name
|
||||
tile.structureVoid.name
|
||||
tile.tallgrass.fern.name
|
||||
tile.tallgrass.grass.name
|
||||
tile.tallgrass.shrub.name
|
||||
tile.thinGlass.name
|
||||
tile.thinStainedGlass.black.name
|
||||
tile.thinStainedGlass.blue.name
|
||||
tile.thinStainedGlass.brown.name
|
||||
tile.thinStainedGlass.cyan.name
|
||||
tile.thinStainedGlass.gray.name
|
||||
tile.thinStainedGlass.green.name
|
||||
tile.thinStainedGlass.lightBlue.name
|
||||
tile.thinStainedGlass.lime.name
|
||||
tile.thinStainedGlass.magenta.name
|
||||
tile.thinStainedGlass.orange.name
|
||||
tile.thinStainedGlass.pink.name
|
||||
tile.thinStainedGlass.purple.name
|
||||
tile.thinStainedGlass.red.name
|
||||
tile.thinStainedGlass.silver.name
|
||||
tile.thinStainedGlass.white.name
|
||||
tile.thinStainedGlass.yellow.name
|
||||
tile.tnt.name
|
||||
tile.torch.name
|
||||
tile.trapdoor.name
|
||||
tile.tripWireSource.name
|
||||
tile.vine.name
|
||||
tile.water.name
|
||||
tile.waterlily.name
|
||||
tile.web.name
|
||||
tile.weightedPlate_heavy.name
|
||||
tile.weightedPlate_light.name
|
||||
tile.whiteStone.name
|
||||
tile.wood.acacia.name
|
||||
tile.wood.big_oak.name
|
||||
tile.wood.birch.name
|
||||
tile.wood.jungle.name
|
||||
tile.wood.oak.name
|
||||
tile.wood.spruce.name
|
||||
tile.woodSlab.acacia.name
|
||||
tile.woodSlab.big_oak.name
|
||||
tile.woodSlab.birch.name
|
||||
tile.woodSlab.jungle.name
|
||||
tile.woodSlab.oak.name
|
||||
tile.woodSlab.spruce.name
|
||||
tile.woolCarpet.black.name
|
||||
tile.woolCarpet.blue.name
|
||||
tile.woolCarpet.brown.name
|
||||
tile.woolCarpet.cyan.name
|
||||
tile.woolCarpet.gray.name
|
||||
tile.woolCarpet.green.name
|
||||
tile.woolCarpet.lightBlue.name
|
||||
tile.woolCarpet.lime.name
|
||||
tile.woolCarpet.magenta.name
|
||||
tile.woolCarpet.orange.name
|
||||
tile.woolCarpet.pink.name
|
||||
tile.woolCarpet.purple.name
|
||||
tile.woolCarpet.red.name
|
||||
tile.woolCarpet.silver.name
|
||||
tile.woolCarpet.white.name
|
||||
tile.woolCarpet.yellow.name
|
||||
tile.workbench.name
|
||||
tipped_arrow.effect.awkward
|
||||
tipped_arrow.effect.empty
|
||||
tipped_arrow.effect.fire_resistance
|
||||
tipped_arrow.effect.harming
|
||||
tipped_arrow.effect.healing
|
||||
tipped_arrow.effect.invisibility
|
||||
tipped_arrow.effect.leaping
|
||||
tipped_arrow.effect.luck
|
||||
tipped_arrow.effect.mundane
|
||||
tipped_arrow.effect.night_vision
|
||||
tipped_arrow.effect.poison
|
||||
tipped_arrow.effect.regeneration
|
||||
tipped_arrow.effect.slowness
|
||||
tipped_arrow.effect.strength
|
||||
tipped_arrow.effect.swiftness
|
||||
tipped_arrow.effect.thick
|
||||
tipped_arrow.effect.water
|
||||
tipped_arrow.effect.water_breathing
|
||||
tipped_arrow.effect.weakness
|
1122
script/entries.txt
Normal file
1122
script/entries.txt
Normal file
File diff suppressed because it is too large
Load Diff
62
script/lang.py
Normal file
62
script/lang.py
Normal file
@ -0,0 +1,62 @@
|
||||
def get_required_entries(legacy: bool):
|
||||
fileName = "entries-legacy.txt" if legacy else "entries.txt"
|
||||
entries = set([line.strip(' "\t\r\n') for line in open(fileName)])
|
||||
return entries
|
||||
|
||||
|
||||
def json_to_shopchest(required_entries: set):
|
||||
fileIn = input("JSON Input File: ")
|
||||
fileOut = input("Output File: ")
|
||||
|
||||
with open(fileOut, "w", encoding="utf-8") as out:
|
||||
for line in open(fileIn, "r"):
|
||||
new_line = line.strip(' "\t\r\n') # Trim whitespace (start and end)
|
||||
new_line = new_line.replace('": "', "=") # Replace ": " with = (middle part)
|
||||
new_line = new_line.replace('",', "") # Delete ", (end part)
|
||||
new_line = new_line.encode("utf-8").decode("unicode-escape") # Decode unicode characters
|
||||
|
||||
prop_name = new_line.split("=")[0]
|
||||
if prop_name in required_entries:
|
||||
out.write(new_line + "\n")
|
||||
required_entries.remove(prop_name)
|
||||
|
||||
if len(required_entries) > 0:
|
||||
print()
|
||||
print(str(len(required_entries)) + " required entries missing from input file:")
|
||||
|
||||
for prop_name in required_entries:
|
||||
print("- " + prop_name)
|
||||
|
||||
|
||||
def lang_to_shopchest(required_entries: set):
|
||||
fileIn = input("Input File: ")
|
||||
fileOut = input("Output File: ")
|
||||
|
||||
with open(fileOut, "w", encoding="utf-8") as out:
|
||||
for line in open(fileIn, encoding="utf-8"):
|
||||
new_line = line.strip(' "\t\r\n') # Trim whitespace (start and end)
|
||||
prop_name = new_line.split("=")[0]
|
||||
if prop_name in required_entries:
|
||||
out.write(new_line + "\n")
|
||||
required_entries.remove(prop_name)
|
||||
|
||||
if len(required_entries) > 0:
|
||||
print()
|
||||
print(str(len(required_entries)) + " required entries missing from input file:")
|
||||
|
||||
for prop_name in required_entries:
|
||||
print("- " + prop_name)
|
||||
|
||||
|
||||
legacy = input("Pre 1.13? [y/n]: ") == 'y'
|
||||
required_entries = get_required_entries(legacy)
|
||||
|
||||
print()
|
||||
print("Legacy: " + str(legacy))
|
||||
print(str(len(required_entries)) + " entries required")
|
||||
print()
|
||||
|
||||
if legacy:
|
||||
lang_to_shopchest(required_entries)
|
||||
else:
|
||||
json_to_shopchest(required_entries)
|
Loading…
Reference in New Issue
Block a user