When a custom Data Driven Villager Trade is set to display a larger number of trades, the scroll bar used to view the trades does not stay with the cursor. Instead, while moving ‘down’ it accelerates ahead of the cursor and stops before the bottom of the list has been reached. While moving ‘up’ the cursor moves significantly before the scroll button starts to move upwards.
In the provided datapack, all trades of the Wandering Trader are offered. There are 96.
This was done by editing the ‘amount' value for the following files as shown:
#trade_scoll_slider_bug/data/minecraft/trade_set/wandering_trader/buying.json
{
"amount": 6.0,
"random_sequence": "minecraft:trade_set/wandering_trader/buying",
"trades": "#minecraft:wandering_trader/buying"
}#trade_scoll_slider_bug/data/minecraft/trade_set/wandering_trader/common.json
{
"amount": 75.0,
"random_sequence": "minecraft:trade_set/wandering_trader/common",
"trades": "#minecraft:wandering_trader/common"
}#trade_scoll_slider_bug/data/minecraft/trade_set/wandering_trader/uncommon.json
{
"amount": 15.0,
"random_sequence": "minecraft:trade_set/wandering_trader/uncommon",
"trades": "#minecraft:wandering_trader/uncommon"
}The datapack to reproduce this, as well as a video demonstrating this issue are attached.
Thank you.
Thank you for helping us improve Minecraft! We saved your files: