This Villager Market HTML Converter is a tool designed to streamline the process of converting YAML files from the Minecraft plugin
Villager Market
(github) into a JSON array. Additionally, it provides an HTML file that comprehensively displays offers and demands from players and admin shops, utilizing the processed JSON data.
- Stock Quantities
- Prices of Offers and Demands
- Price per Unit
- Best-Price Tags
- Discounts
- Separate Tables for Buying and Selling
- Enchantments and Effects on Items
- Table of Contents (with scroll links to each shop)
- Locations of the Shops
- Custom Currency Symbol
- Search function: Display shops matching search terms.
- Translations (available in German, English, French, Italian, Spanish, Polish, Ukrainian, Portuguese (Brazilian), and Simplified Chinese)
- Python3:
Ensure that Python3 is installed. Refer to the requirements.txt file for necessary plugins.
- Scheduled Jobs:
A scheduled job should provide the YAML files in the subdirectory "data".
Another scheduled job should run the Python script data-yml2json.py to generate JSON data. These tasks can be combined in a single job.
- Batch Script Example:
A sample batch script is provided, containing optional Python installation, required libraries, and exporting output files to an external or internal web server via XCOPY, FTP, or SFTP. Configure the script for proper functionality.
- Web Server:
An internal or external web server is required to host all generated files. For Bukkit users, consider using plugins that provide internal web server functionality. (You can use THIS for example)
- Data Subdirectory Protection:
Consider securing the data subdirectory using tools like .htaccess or similar methods.
- Josh's More Foods Compatibility:
If Josh's More Foods is installed, a script is available to download necessary images. Run it once to ensure compatibility.
Any other datapack or Mods without its own textures should work fine.
We will add more upon request.
- Add more supported plugins and mods (later)
Currently there are no known bugs
(There may be small differences to the release version)