Jump to content

newrealmcoder

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

newrealmcoder's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hmmm. That I's kinda odd.
  2. Follow the following link to see my code: https://github.com/newrealmcoder/realm the files I am focusing on are: https://github.com/n...eExtractor.java https://github.com/n...eExtractor.java https://github.com/n...eExtractor.java and https://github.com/n...eExtractor.java The GUI appears and you can place things in the slots, but can't get them back out. IT doesn't seem to recognize the iron ore inside the middle most slot. Also it duplicates stacks when shift-clicked. I've narrowed down the problems to either the container's transferItemToSlot() and or some part in the tile entity. If anyone could help me I would be most appreciative.
  3. Thank you so much. And also if anyone is interested after testing around with this if you use a switch for the villager's profession in the Village Handler and put your trades within that under the villagers's ID it will set the trades to specific types of villagers. i.e. @Override public void manipulateTradesForVillager(EntityVillager villager, MerchantRecipeList recipeList, Random random) { switch(villager.getProfession()) { case 59: recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond), (new ItemStack(Item.emerald, 2)), (new ItemStack(Item.pickaxeDiamond)))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond), new ItemStack(Item.emerald), new ItemStack(Item.swordDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond), new ItemStack(Item.emerald,2), new ItemStack(Item.axeDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond), new ItemStack(Item.emerald,2), new ItemStack(Item.shovelDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond), new ItemStack(Item.emerald,2), new ItemStack(Item.hoeDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond,2), new ItemStack(Item.emerald,2), new ItemStack(Item.bootsDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond,4), new ItemStack(Item.emerald,4), new ItemStack(Item.plateDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond,2), new ItemStack(Item.emerald,3), new ItemStack(Item.helmetDiamond))); recipeList.add(new MerchantRecipe(new ItemStack(Item.diamond,3), new ItemStack(Item.emerald,4), new ItemStack(Item.legsDiamond))); break; case 60: recipeList.add(new MerchantRecipe(new ItemStack(Item.carrot),new ItemStack(Item.bread))); recipeList.add(new MerchantRecipe(new ItemStack(Item.ingotIron), new ItemStack(Item.bread, 5))); recipeList.add(new MerchantRecipe(new ItemStack(Item.ingotGold),new ItemStack(Item.appleRed, 64))); recipeList.add(new MerchantRecipe(new ItemStack(Item.potato, 9), new ItemStack(Item.coal), new ItemStack(Item.bakedPotato, )); recipeList.add(new MerchantRecipe(new ItemStack(Item.emerald),new ItemStack(Item.appleGold))); break; } }
  4. Thank you. I got the first part down but adding the trades confused me. Thanks for the help anyways. I'll look around some more and if I find anything I'll let you know.
  5. I can't figure out how to make a new Villager. Does anyone know of a good tutorial on it?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.