Difference between revisions of "Mods:Harvest Festival Support"

From MineTweaker 3
Jump to: navigation, search
(0.5.15+)
(0.5.15+)
Line 16: Line 16:
  
 
=== 0.5.15+ ===
 
=== 0.5.15+ ===
'''For a list of npc names you can use the command /hf npcs'''
+
'''Commands'''
 
+
* For a list of npc names you can use the command /hf npcs'''
'''For a list of item purchasable ids in a shop you can use the command /hf items [shopid]'''
+
* For a list of item purchasable ids in a shop you can use the command /hf items [shopid]'''
//Attaching a shop to a npc without a shop already
+
'''Attaching a shop to a npc without a shop already'''
 
  //NPCID, ShopName, ShopGreeting, ShopOpeningHours, OpeningHoursText(Optional),  
 
  //NPCID, ShopName, ShopGreeting, ShopOpeningHours, OpeningHoursText(Optional),  
 
  mods.harvestfestival.Shops.addShopToNPC("fenn", "Vinery", "Welcome to the vinery!", "monday,8000,22000;tuesday,3000,22000", "Well we're open from 8am to 10pm on Mondays and 3am to 10pm on Tuesdays!");
 
  mods.harvestfestival.Shops.addShopToNPC("fenn", "Vinery", "Welcome to the vinery!", "monday,8000,22000;tuesday,3000,22000", "Well we're open from 8am to 10pm on Mondays and 3am to 10pm on Tuesdays!");
  
  //Remove an item from a shop
+
'''Remove an item from a shop'''
 
   //ShopName, PurchasableID
 
   //ShopName, PurchasableID
 
   mods.harvestfestival.Shops.removePurchasable("harvestfestival:barn", "harvestfestival_treat");
 
   mods.harvestfestival.Shops.removePurchasable("harvestfestival:barn", "harvestfestival_treat");
  
  //Adjust a value of an item
+
'''Adjust a value of an item'''
 
   //ShopName, PurchasableId, NewGoldCost
 
   //ShopName, PurchasableId, NewGoldCost
 
   mods.harvestfestival.Shops.adjustPurchasable("harvestfestival:barn", "entityharvestcow", 40000);
 
   mods.harvestfestival.Shops.adjustPurchasable("harvestfestival:barn", "entityharvestcow", 40000);
  
  /Adjust a carpenter price, only works for items that require wood/stone already
+
'''Adjust a carpenter price, only works for items that require wood/stone already'''
 
   //PurchasableID, NewLogsCos, NewStoneCos, NewGoldCost
 
   //PurchasableID, NewLogsCos, NewStoneCos, NewGoldCost
 
   mods.harvestfestival.Shops.adjustCarpenter("harvestfestival_supermarket", 500, 100, 1000000);
 
   mods.harvestfestival.Shops.adjustCarpenter("harvestfestival_supermarket", 500, 100, 1000000);

Revision as of 01:03, 4 December 2016

Handlers Supported

The following handlers are supported as of 0.5.4+: You can only add items with them.

  • Shipping
  • Shop Items

Shipping

//ItemStack, SellValue
mods.harvestfestival.Shipping.addShipping(<minecraft:stick>, 100);

Shops

For a list of shop names you can use the command /hf shops

 //Adding an item
//ShopName, ItemStack, Cost
mods.harvestfestival.Shops.addPurchasable("harvestfestival:cafe", <minecraft:stick>, 1000);

0.5.15+

Commands

  • For a list of npc names you can use the command /hf npcs
  • For a list of item purchasable ids in a shop you can use the command /hf items [shopid]

Attaching a shop to a npc without a shop already

//NPCID, ShopName, ShopGreeting, ShopOpeningHours, OpeningHoursText(Optional), 
mods.harvestfestival.Shops.addShopToNPC("fenn", "Vinery", "Welcome to the vinery!", "monday,8000,22000;tuesday,3000,22000", "Well we're open from 8am to 10pm on Mondays and 3am to 10pm on Tuesdays!");

Remove an item from a shop

 //ShopName, PurchasableID
 mods.harvestfestival.Shops.removePurchasable("harvestfestival:barn", "harvestfestival_treat");

Adjust a value of an item

 //ShopName, PurchasableId, NewGoldCost
 mods.harvestfestival.Shops.adjustPurchasable("harvestfestival:barn", "entityharvestcow", 40000);

Adjust a carpenter price, only works for items that require wood/stone already

 //PurchasableID, NewLogsCos, NewStoneCos, NewGoldCost
 mods.harvestfestival.Shops.adjustCarpenter("harvestfestival_supermarket", 500, 100, 1000000);

Builder Shop

//ItemStack, WoodCost, StoneCost, GoldCost
mods.harvestfestival.Shops.addPurchasableToBuilder(<minecraft:stick>, 100, 100, 1000);