Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
aleksey_t

[TFC 0.79.23+] Merchants Addon for TFC

139 posts in this topic

This addon allows trade using TFC containers.

The main idea is that player can setup warehouse at location and then setup one or more trade stalls that allows to trade goods from this warehouse.

The main advantage of this addon comparing to others trading plugins and mods is that it allows trade using TFC native containers (chests, log piles and etc)

How to setup warehouse and trade stall:

1) It is required to build warehouse as you usually do this (place chests, log piles and etc)

2) Then place here new block "Warehouse" which marks cube 7x7x7 with center in "warehouse" block as warehouse area

Posted Image

3) Place new "Stall" blocks at the place where you want to trade.

"Stall" allows to specify which warehouse is using, allows to specify prices and allows to do trade operations.

"Stall" should be placed not far than 10m from "Warehouse" block.

Posted Image

4) "Warehouse Book" is used for linking "Warehouse" and "Stall":

a. Make "Book and Quill" item

b. Go to "Warehouse" and right click it

c. Put "Book and Quill" to the slot

d. Click "Sign" button

5) Go to "Stall", right click it and place "Warehouse Book" to the "Warehouse" slot

When book is placed here - then "Stall" is considered as privated by player and only this player can change prices in the "Stall"

It is allowed to sell/buy items only when "Warehouse Book" is placed in "Stall".

At the top of "Stall"'s GUI panel is shown name of the user who put (owns stall) the book.

If "Warehouse" block is destroyed - then book(s) signed in this warehouse are considered as non-valid and should be re-signed.

6) If you want to trade heavy/large items (such as anvil, bellows, crucible, large vessel, barrel, wooden doors) which could not be placed in standard TFC container, then Storage Rack block should be used.

How to specify prices in the "Stall":

1) Right click it (stall should be non-owned or owned by you)

2) Then put to the appropriate slots "price" items and "goods" items

It is working in the same way as with usual containers with exclusion that items which you put to the slot not removed from player's hand.

3) Since food is measured in "oz" but not in items - then "Stall" is working with "oz" as well.

"Stall" is working with 10oz as 1 item - i.e. if you right click with food item on the slot - it will add 10oz of the food to the slot.

4) If you put "Warehouse Book" in the "Stall" - then right to the "Goods" slot will be shown sum of all accessible items in the warehouse.

For usual items will be shown number of items, for food will be shown total weight (minus decay).

5) If you want to specify limit on how much Stall could accept "Price Items" from player then click "minus" symbol and enter required value.

Zero or empty value means that limit is absent.

Posted Image

How to trade:

1) Right click on the "Stall" (or Sneak + Right click if you owner of this stall)

2) Click slot under "Goods" to buy specified item(s)

3) "Stall" will check if trade allowed (player has enough pay items, warehouse has enough goods to sell and enough free space for pay items)

If trade is allowed - then goods will be moved to the player's hand and pay will be moved from player to one of warehouse containers)

Note: "Stall"/"Warehouse" is not adding automatically new containers (log piles or ingot piles), but it could extend existing ingot pile or log pile and remove log pile or ingot pile when all items are sold from the pile.

Vessels, Barrels and Food

How it works when some small vessels present in warehouse:

1) Small vessels are working as usual container - payment item could be put into the small vessel by the mod

2) Small vessels are the highest priority containers for the food - this will be the first place to where mod will try to put food

3) Small vessel will be visible for Stall if it is stored in Chest, Barrel or Large Vessel

How barrels and large veessels are working:

1) Goods stored in barrel or large vessel are visible in Stall only if container is not sealed (exclusion is pickled food)

2) Pickled food is always visible in Stall even if barrel or large vessel is sealed

3) Barrel or large vessel could be used as storage for payments only if these containers are not sealed and there is no liquid in them

Money, coinage:

Starting from 1.0.22 it is allowed to mint coins.

Process of minting is based on Hammered Coinage

How to mint coin:

1) Craft Trussel, Anvil Die and Flan(s)

2) Make Trussel as active item and right click, will be opened window that allows to specify currency details:

Posted Image

- Name is specifying currency name.

- Die matrix is specifying what will be shown on the coin.

- Weight is specyfing how much coins can be made from 1 Flan.

3) After all parameters are specified - click Create button (this information cannot be edited later)

4) Place vertical log block in location where you want to have Anvil Die block (block for minting)

5) Take Anvil Die item to the hand and right click it to the top of the log block - will be created Anvil Die block

Posted Image

6) Right click Anvil Die block and mint coins:

- Put Hammer at the top slot

- Put Trussel at the next slot

- Put Flan at the next slot

- Click Mint button

7) If you need to look Trussel info or make copy of the currency to another empty Trussel - then take Trussel to the hand and right click

Coinage rules:

1) Each currency has unique key - this means that if someone will create Trussel with the same name, die and weight as yourth - coins made using these Trussels are not the same.

2) The only way to make Trussel which could make "the same coins" - is to make copy of this Trussel as described above.

3) Coins made using the same Die but from different metal - are considered as different coins

4) Flan (and thefeore coin) could be made from any metal or alloy of 0 - 5 tiers.

5) Trussel or Anvil Die could be made from any metal or alloy of 1 - 6 tiers.

6) Coin can be minted only if used Trussel and Anvil Die are made from the metal where tier of this metal is larger at least by 1 than Flan's metal.

Recipes:

Warehouse block could be made from:

- 8 Lumbers

- 1 Feather

Posted Image

Stall block could be made from:

- 7 Lumbers

- 1 Book and Quill

- 1 Wool Cloth or 1 Slik Cloth or 1 Burlap Cloth

Posted Image

Storage Rack block could be made from:

- 5 Lumbers

- 3 Sticks

Posted Image

Trussel item could be made from any ingot of 1 - 6 tier:

Posted Image

Anvil Die item could be made from any double ingot of 1 - 6 tier:

Posted Image

Flan item could be made from any ingot of 0 - 5 tier:

Posted Image

Addon supports following containers:

- Chest (TFC and vanilla)

- Log Pile

- Ingot Pile

- Barrel

- Large Vessel

- Small Vessel

- Tool Rack

- Storage Rack (TFC Merchants Addon)

- Cellar Shelf (TFC Cellars Addon) - additionally requires Merchants-Containers addon

- Crate (CustomNpcs mod) - additionally requires Merchants-Containers addon

Please let me know if you have any suggestions regarding addon.

Download:

Merchants-1.1.3

Merchants-Containers-1.0.1

Old versions:

Merchants-1.1.2

Merchants-1.1.1

Merchants-1.1.0

Merchants-1.0.33

Merchants-1.0.31

Texture Pack:

Nyssa's Touch of Realism

Changes:

1.1.3

- Updated to support TFC 0.79.23

1.1.2

Bug fixes:

- Fixed crash report when rendering Stall item in the hotbar right after user login

1.1.1

Bug fixes:

- Fixed recipe for Storage Rack

1.1.0

Bug fixes:

- Fixed crash when rendering Stall for Graphics=Fast

- Fixed crash when registering anvil recipes and OptiFine is not installed.

New features:

- Added new block StorageRack for storing/trading anvil, bellows, crucible, large vessel, barrel, wooden doors

- Texture for Stall and Warehouse now depends on wood from which it was crafted

- Merchants blocks in creative mode now placed on separate tab

- Added support for Cellar Shelf (TFC Merchants Addon) and Crate (CustomNpcs mod) via additional addon Merchants-Containers

1.0.33

New features:

- Items for sell now are displaying under the Stall

- If you have installed Waila - hint for Stall will show owner's name

1.0.31

Bug fixes:

- Fixed rendering issue - anvil die, stall and warehouse are invisible when placed at y=144 and chunk haven't solid blocks above 144

1.0.30

Bug fixes:

- Fix anvil recipes to support TFC 0.79.18

1.0.29

Bug fixes:

- Fix: Duplicate item on the client side when buying

1.0.28

- Updated to support TFC 0.79.17

- Lead now is working as Tier 1 metal (the same as copper)

1.0.26

New features:

- Added support for limits in Stall

- Stall now determine owner by UUID but not by IGN as previously

1.0.22

New features:

- Added money

1.0.15

Some bugs have been fixed.

New features:

- Added support for: Barrel, Large Vessel, Small Vessel and Tool Rack

- Log Pile now auto-extendable like Ingot Pile

1.0.10

Bug fixes:

- Fix: Stall incorrectly handles multiples of ingots traded

New features:

- Added support of Shift+Click for Stall GUI

Sources:

Merchants sources on GitHub

Merchants-Containers sources on GitHub

Feel free to include this addon to your modpack.

Other my addons:

Decorations Addon for TFC

Edited by aleksey_t
2

Share this post


Link to post
Share on other sites

You make a very usefull and great mods, you have eyes in TFC community and game needs, thanks.

but it is sad that almost few servers venture to use them to improve the gameplay. It is my opinion.

0

Share this post


Link to post
Share on other sites

We are in

 

You make a very usefull and great mods, you have eyes in TFC community and game needs, thanks.but it is sad that almost few servers venture to use them to improve the gameplay. It is my opinion.

We are installing the mod today, and we have created a new market area at Spawn where each town will have its own warehouse and trade shop.

0

Share this post


Link to post
Share on other sites

Addon have been updated to 1.0.10

Look at the Changes section for details.

0

Share this post


Link to post
Share on other sites

Would it be possible to add a coins or another form of currency to this? Something that server admins can spawn in to help facilitate trade?

0

Share this post


Link to post
Share on other sites

Yes, I'm planning to introduce money.

Below is what I'm planning:

1) it will be allowed to make coins from any metal/alloy using mint block

2) coin will be cheap (for ex. 1 ingot = 128 coins or 256 coins)

3) each mint block has unique key and when coin is produced - then coin will have unique key aswell

4) therefore coin made from the same metal but in different mints - will be not the same items (their NBT data differs)

5) therefore each nation/town/settlement/person can have unique currency

6) it will be allowed to specify currency name in the mint block

Also, I'm planning to make possibility to specify custom black-white texture for coin sign.

But not sure how easy this will be and if it will be possible at all.

Mod will not control prices, coinage policy and etc.

Players are free to make so much coins as they need and set such price as they need.

But I could propose the way on how I see this should work.

More detailes I will provide later when "coins" feature will be implemented.

For now I'm focused on adding support for other TFC containers in Stall-Warehouse.

0

Share this post


Link to post
Share on other sites

Cool, very interesting what you have planned. I look forward to it

0

Share this post


Link to post
Share on other sites

One of the things I think would be good is the ability to add permissions for friends. We use towny in our server and it would help if the mayor could add the assistants to the market.

0

Share this post


Link to post
Share on other sites

One of the things I think would be good is the ability to add permissions for friends. We use towny in our server and it would help if the mayor could add the assistants to the market.

I'm guessing this require to implement some interaction between mod and plugin.Look like this is doable, but I need first to investigate how plugins for CraftBukkit/Cauldron are working.But this will be done after already planned features will be completed.Also I can propose to introduce option to config file that allows for operators/admins to change prices in any Stall.
0

Share this post


Link to post
Share on other sites

Integration with Towny would be wonderfull, but I guess a simple friend system would solve the issue. I mean for a player to be able to add a friend to the warehouse system, so the friend can interact with the chests, to restock the sold items.

0

Share this post


Link to post
Share on other sites

> I mean for a player to be able to add a friend to the warehouse system, so the friend can interact with the chests, to restock the sold items.

Ahh, ok, I understood what you meant.

Mod is not controlling direct access to chests or piles - it working as usually - player could open chest if he/she granted permission for this by Towny plugin.

For example:

1) You claiming some plots (using Towny plugin) in your town Avalon

2) Then you build here a shop with one or more Warehouses and one or more Stalls

3) Then you create references between Warehouse and Stalls using "Warehouse Books"

And now - only you can open Stall in "Owner" mode (for setting/unsetting book and changing prices), but access to chests is working as previously:

a. You can use chests

b. Your friends can use chets

c. Other users who is in admin group could access chests

Therefore mod is controlling only who can change prices in the Stall(s), but interaction with chests is controlled by Towny plugin, Factions plugin and etc - as it was before mod was installed.

0

Share this post


Link to post
Share on other sites

That's great. So the mod is already perfect.

Thank you very much

0

Share this post


Link to post
Share on other sites

Addon have been updated to 1.0.15.

Look in the "Changes" and "Vessels, Barrels and Food" sections for details.

0

Share this post


Link to post
Share on other sites

Addong have been updated to 1.0.22.

Looks in the "Changes" and "Money, coinage" sections for details.

0

Share this post


Link to post
Share on other sites

I have tried to start coin minting on my server, but placing an anvil on a wood block (tried wrought iron anvil on douglas fir, then copper anvil on willow log) continuously crashes the player's game, and makes it impossible for them to log in. Another player then coming close to the anvil also continuously crashes the other player's game. The only solution we had was an admin in creative mode flying near it and breaking it from a distance. we tried placing the anvil in different locations, different anvil/log combinations, etc. Same result. We are on the suggested forge version, and newest TFC update, with Decorations, Merchants, and Simply sit mods on the server (All updated versions)

I have a copy of a crash log as well:http://pastebin.com/embed_js.php?i=tzzD82uz

0

Share this post


Link to post
Share on other sites

You need to provide crash log, either in spoiler tags or a pastebin link to it. No crash log means it didn't happen. If server can provide any relevant console logs that is helpful as well.

0

Share this post


Link to post
Share on other sites

I have tried to start coin minting on my server, but placing an anvil on a wood block (tried wrought iron anvil on douglas fir, then copper anvil on willow log) continuously crashes the player's game, and makes it impossible for them to log in. Another player then coming close to the anvil also continuously crashes the other player's game. The only solution we had was an admin in creative mode flying near it and breaking it from a distance. we tried placing the anvil in different locations, different anvil/log combinations, etc. Same result. We are on the suggested forge version, and newest TFC update, with Decorations, Merchants, and Simply sit mods on the server (All updated versions)

I have a copy of a crash log as well:http://pastebin.com/embed_js.php?i=tzzD82uz

 

That crash report shows that it's caused by NEI, and it also shows that you are using a very outdated version of NEI as well as CodeChickenCore, and the NEI plugin.

0

Share this post


Link to post
Share on other sites

Huh. I didn't use NEI for this though :(Oh well, I'll update it and see if that fixes it. Thanks!

0

Share this post


Link to post
Share on other sites

Hey aleksey. Don't know if is possible, but I would like to limit how much the market buys of one item. Like just because I am buying andesite does not mean I want someone to fill all my chests with it.

Once again thank you for this wonderful addon. 

0

Share this post


Link to post
Share on other sites

A possible brute force method, decide how many stacks you want, leave that number of slots empty, fill rest with non-andesite items.

0

Share this post


Link to post
Share on other sites

But the market checks all chests within the 7 x 7 area. So I would have to build one market for each resource. 

0

Share this post


Link to post
Share on other sites

Thank you for suggestion.

I will try to implement it for the next update.

0

Share this post


Link to post
Share on other sites

One of the things I like about this mod is because is a in the world place soo players have to haul the items to and from the Market, also they can trade for coins or exchange for goods.

0

Share this post


Link to post
Share on other sites