Skip to content

Commit

Permalink
fix up enchanting books in trading post enchanter trader. Closes #176.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmage45 committed Dec 2, 2014
1 parent 04949bd commit 7aa0818
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Binary file modified project_resources/template/default_structure_pack.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ plugin=AWNpc
number=4
data:
position=10,1,18
JSON:{{"val":{"entityData":{"val":{"DropChances":{"val":[{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"}],"id":"ls"},"Attributes":{"val":[{"val":{"Name":{"val":"generic.maxHealth","id":"ss"},"Base":{"val":"20.0","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.knockbackResistance","id":"ss"},"Base":{"val":"0.0","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.movementSpeed","id":"ss"},"Base":{"val":"0.325","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.followRange","id":"ss"},"Base":{"val":"60.0","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.attackDamage","id":"ss"},"Base":{"val":"2.0","id":"pd"}},"id":"ct"}],"id":"ls"},"Motion":{"val":[{"val":"0.0","id":"pd"},{"val":"-0.0784000015258789","id":"pd"},{"val":"0.0","id":"pd"}],"id":"ls"},"CustomName":{"val":"Enchanter","id":"ss"},"tradeList":{"val":{"ticks":{"val":"19393915","id":"pi"},"tradeList":{"val":[{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"ench":{"val":[{"val":{"id":{"val":"32","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"ench":{"val":[{"val":{"id":{"val":"34","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"ench":{"val":[{"val":{"id":{"val":"0","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_nugget","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_nugget","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"2","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"ench":{"val":[{"val":{"id":{"val":"2","id":"ps"},"lvl":{"val":"3","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"ench":{"val":[{"val":{"id":{"val":"16","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"ench":{"val":[{"val":{"id":{"val":"19","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"Health":{"val":"20","id":"ps"},"HealF":{"val":"20.0","id":"pf"},"CustomNameVisible":{"val":"0","id":"pb"},"AttackTime":{"val":"0","id":"ps"},"Fire":{"val":"-1","id":"ps"},"attackDamageOverride":{"val":"-1","id":"pi"},"Invulnerable":{"val":"0","id":"pb"},"DeathTime":{"val":"0","id":"ps"},"AbsorptionAmount":{"val":"0.0","id":"pf"},"OnGround":{"val":"1","id":"pb"},"HurtTime":{"val":"0","id":"ps"},"Dimension":{"val":"0","id":"pi"},"Air":{"val":"300","id":"ps"},"customTex":{"val":"","id":"ss"},"armorValueOverride":{"val":"-1","id":"pi"},"Pos":{"val":[{"val":"-165.50000137070856","id":"pd"},{"val":"105.0","id":"pd"},{"val":"179.30000001192093","id":"pd"}],"id":"ls"},"CanPickUpLoot":{"val":"0","id":"pb"},"PortalCooldown":{"val":"0","id":"pi"},"PersistenceRequired":{"val":"1","id":"pb"},"Leashed":{"val":"0","id":"pb"},"owner":{"val":"shadowmage4513","id":"ss"},"FallDistance":{"val":"0.0","id":"pf"},"Rotation":{"val":[{"val":"3420.0","id":"pf"},{"val":"0.0","id":"pf"}],"id":"ls"},"levelingStats":{"val":{"level":{"val":"0","id":"pi"},"xp":{"val":"0","id":"pi"},"entryList":{"val":[],"id":"ls"}},"id":"ct"}},"id":"ct"},"xOffset":{"val":"0.49999863","id":"pf"},"mobID":{"val":"AncientWarfareNpc.desert.trader","id":"ss"},"zOffset":{"val":"0.3","id":"pf"},"rotation":{"val":"180.0","id":"pf"},"equipmentData":{"val":{"equipmentContents":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"length":{"val":"5","id":"pi"}},"id":"ct"}},"id":"ct"}}
JSON:{{"val":{"entityData":{"val":{"DropChances":{"val":[{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"},{"val":"1.0","id":"pf"}],"id":"ls"},"Attributes":{"val":[{"val":{"Name":{"val":"generic.maxHealth","id":"ss"},"Base":{"val":"20.0","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.knockbackResistance","id":"ss"},"Base":{"val":"0.0","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.movementSpeed","id":"ss"},"Base":{"val":"0.325","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.followRange","id":"ss"},"Base":{"val":"60.0","id":"pd"}},"id":"ct"},{"val":{"Name":{"val":"generic.attackDamage","id":"ss"},"Base":{"val":"2.0","id":"pd"}},"id":"ct"}],"id":"ls"},"Motion":{"val":[{"val":"0.0","id":"pd"},{"val":"-0.0784000015258789","id":"pd"},{"val":"0.0","id":"pd"}],"id":"ls"},"CustomName":{"val":"Enchanter","id":"ss"},"tradeList":{"val":{"ticks":{"val":"19393915","id":"pi"},"tradeList":{"val":[{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:enchanted_book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"StoredEnchantments":{"val":[{"val":{"id":{"val":"32","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:enchanted_book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"StoredEnchantments":{"val":[{"val":{"id":{"val":"34","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:enchanted_book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"StoredEnchantments":{"val":[{"val":{"id":{"val":"0","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_nugget","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_nugget","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"2","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:enchanted_book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"StoredEnchantments":{"val":[{"val":{"id":{"val":"2","id":"ps"},"lvl":{"val":"3","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:enchanted_book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"StoredEnchantments":{"val":[{"val":{"id":{"val":"16","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"},{"val":{"currentAvailable":{"val":"1","id":"pi"},"refillFrequency":{"val":"6000","id":"pi"},"inputItems":{"val":[{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"},{"val":{"item":{"val":"minecraft:gold_ingot","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"},"outputItems":{"val":[{"val":{"item":{"val":"minecraft:enchanted_book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"stackTag":{"val":{"StoredEnchantments":{"val":[{"val":{"id":{"val":"19","id":"ps"},"lvl":{"val":"2","id":"ps"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"ticksTilRefill":{"val":"6000","id":"pi"},"maxAvailable":{"val":"1","id":"pi"}},"id":"ct"}],"id":"ls"}},"id":"ct"},"Health":{"val":"20","id":"ps"},"HealF":{"val":"20.0","id":"pf"},"CustomNameVisible":{"val":"0","id":"pb"},"AttackTime":{"val":"0","id":"ps"},"Fire":{"val":"-1","id":"ps"},"attackDamageOverride":{"val":"-1","id":"pi"},"Invulnerable":{"val":"0","id":"pb"},"DeathTime":{"val":"0","id":"ps"},"AbsorptionAmount":{"val":"0.0","id":"pf"},"OnGround":{"val":"1","id":"pb"},"HurtTime":{"val":"0","id":"ps"},"Dimension":{"val":"0","id":"pi"},"Air":{"val":"300","id":"ps"},"customTex":{"val":"","id":"ss"},"armorValueOverride":{"val":"-1","id":"pi"},"Pos":{"val":[{"val":"-165.50000137070856","id":"pd"},{"val":"105.0","id":"pd"},{"val":"179.30000001192093","id":"pd"}],"id":"ls"},"CanPickUpLoot":{"val":"0","id":"pb"},"PortalCooldown":{"val":"0","id":"pi"},"PersistenceRequired":{"val":"1","id":"pb"},"Leashed":{"val":"0","id":"pb"},"owner":{"val":"shadowmage4513","id":"ss"},"FallDistance":{"val":"0.0","id":"pf"},"Rotation":{"val":[{"val":"3420.0","id":"pf"},{"val":"0.0","id":"pf"}],"id":"ls"},"levelingStats":{"val":{"level":{"val":"0","id":"pi"},"xp":{"val":"0","id":"pi"},"entryList":{"val":[],"id":"ls"}},"id":"ct"}},"id":"ct"},"xOffset":{"val":"0.49999863","id":"pf"},"mobID":{"val":"AncientWarfareNpc.desert.trader","id":"ss"},"zOffset":{"val":"0.3","id":"pf"},"rotation":{"val":"180.0","id":"pf"},"equipmentData":{"val":{"equipmentContents":{"val":[{"val":{"item":{"val":"minecraft:book","id":"ss"},"damage":{"val":"0","id":"pi"},"quantity":{"val":"1","id":"pi"},"slot":{"val":"0","id":"pi"}},"id":"ct"}],"id":"ls"},"length":{"val":"5","id":"pi"}},"id":"ct"}},"id":"ct"}}
:enddata
:endentity

Expand Down
Binary file not shown.

0 comments on commit 7aa0818

Please sign in to comment.