ToBuyAndSell

Mod for new villager professions and some cosmetic changes in the game

(   Warning info: 

 

Hello. I want to apologize to everyone who waited for the update. Despite the long waiting time for it, I still failed to do what I intended - there are some mistakes. So the modification was only adjusted to work properly without any major changes.

 

 

)

 

This file contains a table of contents added by mod To Buy And Sell by MartinBrickenPL.

1. New 'normal' village professions:
Florist ( requires a block - minecraft:flower_pot ) - allows you to buy flowers and other plants, and also sell some of them
Miner ( requires a block - minecraft:iron_block ) - allows you to buy raw mineral ores
Wood Chopper ( requires a block - minecraft:crafting_table ) - allows you to buy wood logs, tree seedlings and rare forest flora
Leader ( requires a block - minecraft:emerald_block ) - allows you the sale of basic building materials and crops. Allows you to buy eggs that spawn animals and humanoid mobs
Hunter ( requires a block - minecraft:bone_block ) - allows you to buy items dropped by mobs
Digger ( requires a block - minecraft:hopper ) - allows you to buy soil, sand, gravel and snow
Musician ( requires a block - minecraft:jukebox ) - allows you to buy music CDs and sell diamonds and redstone
Wizard ( requires a block - minecraft:enchanting_table ) - allows you to sell redstone, lapis lazuli, gunpowder, quart and some other rare items. Allows you to buy rabbit spawning eggs, dolphins, squid and parrots
Electrician ( requires a block - minecraft:raw_copper_ore ) - allows you to sell metals ingot and buy rails, redstone torch and repeater
Guildmaster ( requires a block - minecraft:bookshelf ) - allows you to buy mainly enchanted books

 

WANDER_TRADER ( requires a block - --- ) - uses trade regulations Minecraft:WANDERING_TRADER

 

 

2. Great village professions:

 

Great Wizard ( requires a block - minecraft:lapis_block )
- allows you to buy marine flora, glow squid spawn egg and end portal frames

Skills:

GREAT_WIZARD_MAGICAL_ATTACK_SKILL_TEST ( RNG 1 / 120 per tick ) - attacks hostile mobs up to 16 squares away from Him at moderate power
GREAT_WIZARD_THE_AURA_OF_FEAR_SKILL_TEST ( RNG 1 / 800 per tick ) - slows down hostile mobs over a large area, making it virtually impossible for them to move quickly
GREAT_WIZARD_SHARING_EXPERIENCE_SKILL_TEST ( RNG 1 / 600 per tick ) - throws an experience bottle at players within close range of Him ( one for each player )


Requires:
A minimum of 8 points and an advantage of at least 3 points over other great professions.
Points awarded for each:
- ToBuyAndSell:WIZARD_PROFESSION
- Minecraft:NITWIT
- Minecraft:CARTOGRAPHER
- ToBuyAndSell:HUNTER_PROFESSION
- ToBuyAndSell:GUILDMASTER_PROFESSION





Great Prophet( requires a block - minecraft:redstone_block )
- allows you to buy mainly potions

Skills:
GREAT_PROPHET_ENHANCED_HEAL_SKILL_TEST ( RNG 1 / 120 per tick ) - imposes a short but strong regeneration effect on settlers up to 16 tiles away from Him
GREAT_PROPHET_CONVERTING_THE_PAGANS_SKILL_TEST ( RNG 1 / 1000 per tick ) - converts Illusioners, Witches and Evokers to villagers. Range radius - 10
GREAT_PROPHET_A_BLESSING_IN_NEED_SKILL_TEST ( RNG 1 / 2000 per tick ) - imposes several positive effects on the player and settlers, and slightly slows down enemy mobs. Effects last for 1000 ticks ( 50 seconds )

Requires:
A minimum of 8 points and an advantage of at least 3 points over other great professions.
Points awarded for each:
- Minecraft:CLERIC
- Minecraft:FARMER
- Minecraft:LIBRARIAN
- Minecraft:FISHERMAN
- Minecraft:SHEPHERD



Great Engineer ( requires a block - minecraft:netherite_block )
- allows you to sell metal bars, diamonds, as well as buy armor for a horse, saddles and elytra


Skills:
GREAT_ENGINEER_ENHANCED_REPAIR_SKILL_TEST ( RNG 1 / 200 per tick ) - restores iron golems a small amount of health. Works on a radius of 6
GREAT_ENGINEER_GOLEM_UPGRADE_SKILL_TEST ( RNG 1 / 1000 per tick ) - Increases the speed and damage of iron golems for 400 ticks (20 seconds). It has a range radius of 16
GREAT_ENGINEER_TECHNICAL_SUPPORT_SKILL_TEST ( RNG 1 / 2000 per tick ) - creates an iron golem on its own if there are none nearby

Requires:
A minimum of 8 points and an advantage of at least 3 points over other great professions.
Points awarded for each:
- Minecraft:ARMORER
- Minecraft:TOOLSMITH
- Minecraft:WEAPONSMITH
- Minecraft:MASON
- ToBuyAndSell:ELECTRICIAN_PROFESSION


Great Merchant ( requires a block - minecraft:chest )
- you to buy diamonds, netherite ingots, shulker shells, saddles, dragon eggs, diamond horse armor, elytra, golden apple and enchanted golden apple ( so-called cox )


Skills:
GREAT_MERCHANT_BUSINESS_HAPPINES_SKILL_TEST ( RNG 1 / 500 per tick ) - increases the happiness of the settlers for a short time. It has a range radius of 16
GREAT_MERCHANT_MYTHICAL_MERCHANT_SKILL_TEST ( RNG 1 / 6000 per tick ) - Spawns a Traveling Merchant if no other Merchant is nearby
GREAT_MERCHANT_INVESTMENT_SKILL_TEST ( RNG 1 / 9000 per tick ) - He throws each player a maximum of 10 emeralds based on the number of villagers near the Great Merchant. The player must be no more than 4 tiles from him

Requires:
A minimum of 8 points and an advantage of at least 3 points over other great professions.
Points awarded for each:
- ToBuyAndSell:LEADER_PROFESSION
- ToBuyAndSell:WOOD_CHOPPER_PROFESSION
- Minecraft:BUTCHER
- Minecraft:LEATHERWORKER
- ToBuyAndSell:MINER_PROFESSION



Only 1 great person can be x 64 y 20 from 64 blocks at a time. If a collision is detected, only 1 great person with more support and experience will remain.
In the event of an extreme scoring of support points, all great people will lose their professions.


3. Additional passive skills of the villagers:

CLERIC_REGENERATION_SKILL_TEST ( RNG 1 / 800 per tick ; only for Minecraft:CLERIC ) - gives a regeneration effect to villagers within a small radius of it

FARMER_SPAWN_CAT_SKILL_TEST ( RNG 1 / 511 per tick; only for Minecraft:FARMER ) - spawns a cat if there is no other cat nearby

 

WIZARD_BASIC_ATTACK_SKILL_TEST ( RNG 1 / 201 per tick; only for ToBuyAndSell:WIZARD_PROFESSION ) - attacks hostile mobs in close range of him


WIZARD_ADVANCED_ATTACK_SKILL_TEST ( RNG 1 / 300 per tick; only for ToBuyAndSell:WIZARD_PROFESSION ) - attacks hostile mobs in close range of him


WIZARD_SPAWN_CAT_SKILL_TEST ( RNG 1 / 511 per tick; only for ToBuyAndSell:WIZARD_PROFESSION ) - spawns a cat if there is no other cat nearby

 

MECHANIC_BASIC_REPAIR_SKILL_TEST ( RNG 1 / 200 per tick; only for Minecraft:ARMORER, Minecraft:TOOLSMITH, Minecraft:WEAPONSMITH ) - restores a small amount of health to iron golems close to the mechanic


MECHANIC_ADVANCED_REPAIR_SKILL_TEST ( RNG 1 / 1000 per tick; only for Minecraft:ARMORER, Minecraft:TOOLSMITH, Minecraft:WEAPONSMITH ) - restores a moderate amount of health to iron golems close to the mechanic

 

MERCHANT_BASIC_HAPPY_SKILL_TEST ( RNG 1 / 3000 per tick; only for ToBuyAndSell:LEADER_PROFESSION, ToBuyAndSell:WOOD_CHOPPER_PROFESSION, Minecraft:BUTCHER, Minecraft:LEATHERWORKER ) -increases the happiness of the villagers for a very short time


MERCHANT_ADVANCED_HAPPY_SKILL_TEST ( RNG 1 / 15000 per tick; only for ToBuyAndSell:LEADER_PROFESSION, ToBuyAndSell:WOOD_CHOPPER_PROFESSION, Minecraft:BUTCHER, Minecraft:LEATHERWORKER ) -increases the happiness of the villagers for a very short time

LEARNING_THE_SETTLERS_SKILL_TEST ( RNG 1 / 5000 per tick; only for ToBuyAndSell:GUILDMASTER_PROFESSION ) - Adds a very small amount of experience points to settlers (except: no profession or NITWIT), provided that the Master's experience level is higher than that of the Apprentice (currently a 2: 1 ratio).


It works within a very small radius. This feature is only meant to help you train your salespeople faster. If I find the speed is too fast, or the ratio is too low, it will be changed.

ELECTRICIAN_GOLEM_UPGRADE_SKILL_TEST ( RNG 1 / 3000 per tick; only for ToBuyAndSell:ELECTRICIAN_PROFESSION ) - adds a DAMAGE_BOOST (level 1) and MOVEMENT_SPEED (level 1) effect on nearby Iron Golems. It works for a short time. This is a very weakened version: GREAT_ENGINEER_GOLEM_UPGRADE_SKILL_TEST

WANDERING_TRADER_RESTOCK_SKILL ( RNG 1 / 30000 per tick; only for ToBuyAndSell:WANDERING_TRADER ) - restock (items for sale);

 

4. Player repair golems: Right-click the Iron Golem while you have the active item in your hand. By default, ToBuyAndSell has been registered to repair golems with: Copper Ingots (1 item per 2 hp), Iron Ingots (1 item per 3 hp), Gold Bars (1 item per 10 hp), and Netherite Ingots (1 item per 100 hp) .


Each repair of the golem gives a certain amount of experience to the player and does little to increase the happiness of nearby villagers.
In case of success, the player should shrink 1 item per click, but use this option with caution because of the possibility of excessive use of items (it is best to allocate 1 inventory space and repair golems using 1 piece of equipment in the case of netherite and gold).



5. The mod allows villagers to pick up most of the edible items and use them as a food source. This operation is performed automatically and does not require any external intervention.


6. Villagers paid functions
Minecraft:CLERIC ( requires 4 minecraft:redstone_block ) - by clicking the right mouse button with the active slot containing the required item, it 'converts' 1 witch located up to 6 blocks from the settler. This will spawn a new settler there. Only the success of the operation shrink our items.

 

Minecraft:CLERIC ( requires 4 minecraft:lapis_block ) - clicking the right mouse button with an active slot containing the required item forces the HARM and WITHER effect to be imposed on the following mobs: Vex, Ghast, Phantom, Blaze, WitherBoss. Only the success of the operation takes our items. Base radius: 10 + 4 for each Cleric nearby.

 

ToBuyAndSell:WIZARD_PROFESSION ( requires 4 minecraft:lapis_block ) - clicking the right mouse button with an active slot containing the required item forces the HARM and WITHER effect to be imposed on the following mobs: Zombies, Skeletons, Spiders. Only the success of the operation takes our items. Base radius: 20 + 8 for each nearby wizard.

 

ToBuyAndSell:WIZARD_PROFESSION ( requires 4 minecraft:obsidian ) - clicking the right mouse button with an active slot containing the required item forces the HARM and WITHER effect to be imposed on the following mobs: EnderMan, Creeper, Slime, Endermite. Only the success of the operation takes our items. Base radius: 20 + 8 for each nearby wizard.

 

Minecraft:CLERIC or ToBuyAndSell:WIZARD_PROFESSION ( requires 4 minecraft:gold_block ) - clicking the right mouse button with an active slot containing the required item forces the HARM and WITHER effect to be imposed on all hostile mobs. Only the success of the operation takes our items. Base radius: 12 + 4 for each nearby wizard or cleric.

 

ToBuyAndSell:GUILDMASTER_PROFESSION ( requires 4 minecraft:book ) - works within 5 tiles of the Master. The first NITWIT settler detected at the moment is changed to a settler with no profession. Personally, I was not able to test it due to the fact that I could not find a settler of the NITWIT profession.

 

Minecraft:WANDERING_TRADER ( requires 1 minecraft:bed ) - clicking the right mouse button with an active slot containing the required item forces to keep the Wandering Trader in the village forever (also changes his behavior to a regular Settler ).

 

ToBuyAndSell:WANDERING_TRADER ( requires 1 minecraft:stick ) - clicking the right mouse button with an active slot containing the required item forces to the Wandering Trader to leave the village and act like the one in Minecraft: WANDERING_TRADER again.

 

ToBuyAndSell:WOOD_CHOPPER ( requires 20 tree saplings ) - clicking the right mouse button with an active slot containing the required item forces to the WOOD_CHOPPER for to sell tree seedlings and get 1 emerald. The seedlings must be the same. I wrote this to make it work for other mods. In the LOGS file you can check if a given tree seedling was recognized while loading the modification.

 

7. Hostile mobs - additional skills

WITCH_SPAWN_ZOMBIE_SKILL_TEST ( RNG 1 / 1000 per tick ) - The witch will spawn 1 zombie if there are none nearby
WITCH_GOLEM_CORROSION_SKILL_TEST ( RNG 1 / 600 per tick ) - The witch imposes HARM and WITHER effects on nearby Iron Golems

EVOKER_SPAWN_WITCH_SKILL_TEST ( RNG 1 / 1500 per tick ) - The evoker will spawn 1 witch if there are none nearby

ILLUSIONER_SPAWN_SKELETON_SKILL_TEST ( RNG 1 / 1000 per tick ) - The illusioner will spawn 1 skeleton if there are none nearby

RAVAGER_SPAWN_ENDERMAN_SKILL_TEST ( RNG 1/ 2000 per tick ) - The ravager will spawn 1 enderman if there are none nearby

 

8. A better farmer
From now on, Minecraft: Farmer can buy grains and agricultural products (32 pieces per 1 emerald). To do this, you need to select an item from the HUD's inventory bar and right-click on the Farmer. His GUI should open and 32 items should be taken from your Inventory. The Farmer and the Player receive 10 experience points as a result of this 'transaction'.
When selling a watermelon, a full block, not quarters, counts. This feature is automatic and does not require special registration to sell vegetables from other modifications. This works by checking to see if a given item name uses the syntax "seed", and if so, then the item with the closest (but different) name to the seed name is searched for.
It sounds a bit complicated, but it's very easy. you can safely sell excess seeds and agricultural products. Only potatoes and carrots were registered by hand as they do not contain this simple naming mechanism :)

 

The ToBuyAndSell Team

profile avatar
  • 1
    Projects
  • 1.5K
    Downloads