Skip to content

Instantly share code, notes, and snippets.

@depressed-pho
Last active July 23, 2018 08:14
Show Gist options
  • Save depressed-pho/e7d32eb867d2a32c2d49cc9e1ac1e83e to your computer and use it in GitHub Desktop.
Save depressed-pho/e7d32eb867d2a32c2d49cc9e1ac1e83e to your computer and use it in GitHub Desktop.

Mechanical Trader Mod

Nobody has ever seen Villagers replenishing their stock. Experiments have shown that they are in fact magical beings that can do some sort of alchemy in their body, transforming mundane things like pumpkins into highly valuable emeralds. They just can't create gems out of thin air. So why not exploit their property without getting (too) bothered by their annoyance?

Item: Thin Blade

Recipe:

# =
# =
U |    #: Sandstone, =: Iron Ingot, U = Bucket of Water, | = Wooden Stick

Thin Blade is a weapon added by this mod. It can deal the same amount of damage as Diamond Sword (4 hearts) but its durability is as poor as Wooden Sword (60). It has one special property: mobs killed with Thin Blade have a chance of dropping their head (or an increased chance for Wither Skeleton), and most importantly Villagers have 100% chance of leaving behind their remains.

Item: Villager Head

The Villager Head is a mob head dropped from a Villager. It can be used in combination with Mechanical Trader to automate trading (see below). Note that it is no longer sentient for an obvious reason, which means offers it can make are fixed at the time when it's killed, and no trades can be locked or unlocked afterwards.

Baby villagers will drop their head too, but it cannot be used for automatic trading at all.

Machine: Basic Mechanical Trader

Recipe:

% U %
% U %
* C *    %: Any Glass, U: Bucket of Water, *: Emerald, C: Redstone Comparator

The Basic Mechanical Trader is a machine added by this mod. In its GUI it has 3 x 3 = 9 slots for item input, 1 slot to place in a Villager Head, and 1 slot for item output. It also has a list of trades the head currently in the machine can offer, and it can be reordered to change the preference of automatic trading.

When there are items in the input slots, the Mechanical Trader looks up a matching alchemy recipe in the list, in the order specified by the user, and tries to apply it automatically. For instance, suppose it has a Farmer head which sells 4 Breads for 1 emerald with a higher priority, and 3 Pumpkin Pies for 1 emerald with a lower priority. When a user puts in 2 emeralds in the machine, it will always transform those emeralds into 8 breads. XP orbs cannot be gained by making trades in this way.

The Basic Mechanical Trader cannot interact with hoppers, or any other item transportation mechanisms. It can only make 1 trade every 6 seconds (120 ticks).

While doing the transformation, the machine makes a possibly annoying noise (Uh-huh!) with possibly distracting green particles. It appears that those noises are coming directly from the alchemical transformation steps being performed, and no known methods to suppress them have been found. Bear with that.

Machine: Refined Mechanical Trader

Recipe:

* * *
@ B @
* * *    *: Emerald, @: Diamond, B: Basic Mechanical Trader

The Refined Mechanical Trader is an upgraded version of the Basic Mechanical Trader. It can do everything the basic one can do with the following improvements:

The machine can interact with item transportation mechanisms such as hoppers. Items can be pushed into input slots from the sides of a Mechanical Trader, and items in the output slot can be pulled from below.

Villagers cannot do the alchemy efficiently without their body. However, by infusing some emeralds and diamonds into the Trader it is possible to upgrade the speed of transformation. The refined one can make 1 trade every 3 seconds, which is 2 times faster than the basic one.

Machine: Advanced Mechanical Trader

Recipe:

# # #
% R %
# # #    #: Block of Emerald, %: Block of Diamond, R: Refined Mechanical Trader

The Advanced Mechanical Trader is an upgraded version of the Refined Mechanical Trader. It can do the transformation even faster than the refined one at the rate of 1 trade every 0.5 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment