This utility parse a Custom heads data, for importing to Wandering Trades minecraft plugin.
- https://minecraft-heads.com/custom-heads/search?searchword=pumpkin
- https://minecraft-heads.com/custom-heads/food-drinks
- https://minecraft-heads.com/custom-heads
- and other similar.
To run this script, you need to follow these steps:
- make sure that you have installed 3.x.x
Pythonversion, andpip. - execute command
pip install -r requirements.txtincmd. - run
start.batfile and wait. - after finish parsing
heads.ymlwill be created.
Edit config.ini file, to configure parser.
-
[parser]scope_url = https://minecraft-heads.com/custom-heads- This is parsing scope, also you can use links like:
- https://minecraft-heads.com/custom-heads/search?searchword=pumpkin
- https://minecraft-heads.com/custom-heads/food-drinks
- https://minecraft-heads.com/custom-heads
- and other similar.
-
[parser]requests = 16- number of concurrent requests to the server.
-
[buy_price]material = DIAMOND- Resource for which you can buy a head, you can use:
- EMERALD, DRAGON_EGG, GRASS, GOLD_INGOT and etc.
-
[buy_price]amount = 3:10- payment resource amount, number 6 equal 6
- 5:10 is equal of range from 5 to 10.
-
[wandering_trader]heads_chance = 1- the chance that the seller will trade heads, 0.3 equal 30%
-
[wandering_trader]heads_amount = 2:5- number of heads seller shows at one time, 2:5 equal from 2 to 5 heads
To integrate into "Wandering Trades" plugin you need:
- After parsing, copy
heads.ymlfile toyou_server/plugins/WanderingTrades/trades/catalog. - Use
/wt reloadcommand - for reload plugin settings in you server. - Use
/wt summon heads ~ ~ ~command for summon test NPC.