Releases: Axolottl/MythicMobsExtension
Releases · Axolottl/MythicMobsExtension
MMExtension | 1.18 Support thanks to @cricri211, MMOItems support, Bending Support
Changelog :
- @cricri211's fork has been used to update to 1.18 👍
- #deprecated{already implemented in default MM with 4.x.x} MMOItems feature to test for handheld item
- Bending with Project-korra checking, test if player has specific bending in mm
MMExtension | Added Dynamic Trading Support
Example :
#Mob Section
Trader:
Type: Villager
Health: 20
Skills:
- skill{s=VarInitializeTraderAIR} @self ~onSpawn
- skill{s=OneTimeTrade} ~onInteract
#Skill Section
##Single Trade items to pick from randomly
SugarTrade:
Cooldown: 99999
Skills:
- setvariable{var=caster.placeholderItem;type=STRING;value="SUGAR"}
- setvariable{var=caster.placeholderAmount;type=STRING;value="2to4"}
- setvariable{var=caster.placeholderItem1;type=STRING;value="ironcoin"}
- setvariable{var=caster.placeholderAmount1;type=STRING;value="1"}
OliveTrade:
Cooldown: 99999
Skills:
- setvariable{var=caster.placeholderItem;type=STRING;value="olive"}
- setvariable{var=caster.placeholderAmount;type=STRING;value="2to4"}
- setvariable{var=caster.placeholderItem1;type=STRING;value="ironcoin"}
- setvariable{var=caster.placeholderAmount1;type=STRING;value="1"}
SaltTrade:
Cooldown: 99999
Skills:
- setvariable{var=caster.placeholderItem;type=STRING;value="sea_salt"}
- setvariable{var=caster.placeholderAmount;type=STRING;value="8to13"}
- setvariable{var=caster.placeholderItem1;type=STRING;value="ironcoin"}
- setvariable{var=caster.placeholderAmount1;type=STRING;value="1"}
# Random Trade picker for selling
RandomTradeSell:
Skills:
- randomskill{s=SugarTrade,OliveTrade,SaltTrade}
# Trade Initializer and setup
VarInitializeTraderAIR:
Skills:
- skill{s=RandomAirNomadName} @self
#
- setvariable{var=caster.placeholderItem;type=STRING;value="APPLE"}
- setvariable{var=caster.placeholderAmount;type=STRING;value="1"}
- setvariable{var=caster.placeholderItem1;type=STRING;value="ironcoin"}
- setvariable{var=caster.placeholderAmount1;type=STRING;value="3to6"}
# Assign placeholders with a random trade
- skill{s=RandomTradeSell}
# First Trade
- setvariable{var=caster.amountPrice1;type=STRING;value=<caster.var.placeholderAmount>}
- setvariable{var=caster.resultsItem1;type=STRING;value=<caster.var.placeholderItem>}
- setvariable{var=caster.resultsAmount1;type=STRING;value=<caster.var.placeholderAmount1>}
- setvariable{var=caster.priceItem1;type=STRING;value=<caster.var.placeholderItem1>}
#
- setvariable{var=caster.placeholderItem;type=STRING;value="APPLE"}
- setvariable{var=caster.placeholderAmount;type=STRING;value="1"}
- setvariable{var=caster.placeholderItem1;type=STRING;value="ironcoin"}
- setvariable{var=caster.placeholderAmount1;type=STRING;value="3to6"}
# Assign placeholders with a random trade
- skill{s=RandomTradeSell}
# First Trade
- setvariable{var=caster.amountPrice2;type=STRING;value=<caster.var.placeholderAmount>}
- setvariable{var=caster.resultsItem2;type=STRING;value=<caster.var.placeholderItem>}
- setvariable{var=caster.resultsAmount2;type=STRING;value=<caster.var.placeholderAmount1>}
- setvariable{var=caster.priceItem2;type=STRING;value=<caster.var.placeholderItem1>}
# Interact Trading Setup
OneTimeTrade:
Cooldown: 99999
Skills:
- trade{
1=result:<caster.var.resultsItem1>:<caster.var.resultsAmount1>,price1:<caster.var.priceItem1>:<caster.var.amountPrice1>,uses:20;
2=result:<caster.var.resultsItem2>:<caster.var.resultsAmount2>,price1:<caster.var.priceItem2>:<caster.var.amountPrice2>,uses:20;
}