Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 137
    • Issues 137
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • AddTrade

AddTrade · Changes

Page history
Create skills/mechanics/AddTrade authored Jun 12, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 36 additions and 0 deletions
+36 -0
  • skills/mechanics/AddTrade.md skills/mechanics/AddTrade.md +36 -0
  • No files found.
skills/mechanics/AddTrade.md 0 → 100644
View page @ 7c5025fd
## Description
Changes the trades of a villager.
The villager will become a nitwit if it doesn't have any profession assigned when using this mechanic.
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| action | mode, m | The action to perform. Can be `ADD`, `REMOVE`,`REPLACE` | ADD |
| slot | s , index | The slot to be selected for the action. Slot starts at 0, so if a villager has 3 trades, the middle trade would be slot 1 | 0 |
| ingredient| item, ingredient1, item1, i, i1 | The first ingredient | STONE |
|ingredient2| item2, i2 | The second ingredient | |
| result | r | The result item of the trade | STONE |
| maxUses | uses, u | The uses of the trade |<Max Int>|
| experienceReward | expReward, exp, dropExp | If the trade should drop experience | false |
| priceMultiplier|multiplier|The multiplier for the price when the player has made the villager angry |0 |
| demand | d | The demand of the trade | 1 |
| specialPrice | special| The special price for when the villager is friendly to the player (player reputation or hero of the village effect) | 1 |
| ignoreDiscounts | discounts | If the discounts should be ignored | false |
## Examples
```yaml
TestVillager:
Type: Villager
Display: 'OwO'
Skills:
- addTrade{item=DIAMOND 1;item2=EMERALD 2;result=IRON_INGOT 3;expReward=True;villExp=999;multiplier=0} @self ~onDamaged
- addTrade{action=REPLACE;slot=1;item=DIRT 1;item2=COAL 2;result=DIAMOND_BLOCK 3;expReward=True;villExp=999;multiplier=0} @self ~onSignal:rev
```
## Aliases
- [x] setTrade
- [x] removeTrade
- [x] replaceTrade
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples