World Border (Fabric)

World Border (Fabric)

261k Downloads

"Infinite Trading" mod causing price increase

GSCY123 opened this issue ยท 3 comments

commented

Information

Minecraft version: 1.17.1
Modloader: Fabric
Fabric loader version: 0.8.2
Environment: Singleplayer

Mod name: Infinite Trading
Mod version: 1.9

Description

Both buy and sell price increase,your deal will get worse over time till the item you need to give to the villager hit the stack limit.
To reproduce this glitch,stay in a village for 10~30 minutes,without doing anything but sleep at night.(just make your popularity remain still and spend some time in the village)

Thank you for your time,and i love your mod and idea!

commented

Next time this happens, will you please post the output from running the following command?

/execute as @e[type=villager] run data get entity @s

(You may need to "Open to LAN" with "Allow Cheats: ON" before doing this)

commented

I set up a new world and wait in a village for like 15 minute or so,and found the leatherworker in the village has increase the price,then i type the command,here is the result:

[15:41:40] [Render thread/INFO]: [CHAT] Leatherworker has the following entity data: {Brain: {memories: {"minecraft:meeting_point": {value: {pos: [I; -275, 75, -327], dimension: "minecraft:overworld"}}, "minecraft:home": {value: {pos: [I; -282, 76, -336], dimension: "minecraft:overworld"}}, "minecraft:last_slept": {value: 12867L}, "minecraft:last_woken": {value: 12882L}, "minecraft:last_worked_at_poi": {value: 16388L}, "minecraft:job_site": {value: {pos: [I; -281, 72, -311], dimension: "minecraft:overworld"}}}}, HurtByTimestamp: 0, Attributes: [{Base: 48.0d, Modifiers: [{Amount: -0.04191396670306466d, Operation: 1, UUID: [I; 671658067, 490426305, -1200180858, -725383956], Name: "Random spawn bonus"}], Name: "minecraft:generic.follow_range"}, {Base: 0.5d, Name: "minecraft:generic.movement_speed"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 16388L, FallDistance: 0.0f, DeathTime: 0s, Xp: 0, LastGossipDecay: 1L, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, UUID: [I; 1880423456, -356823930, -1408167877, 742139119], Age: 0, Motion: [0.0d, -0.0784000015258789d, 0.0d], Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Offers: {Recipes: [{maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:leather", Count: 6b}, sell: {id: "minecraft:emerald", Count: 1b}, xp: 2, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 2, rewardExp: 1b}, {maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 7b}, sell: {id: "minecraft:leather_chestplate", Count: 1b, tag: {Damage: 0, display: {color: 11255178}}}, xp: 1, uses: 0, priceMultiplier: 0.2f, specialPrice: 0, demand: 2, rewardExp: 1b}]}, Rotation: [132.25955f, 0.0f], HandItems: [{}, {}], RestocksToday: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Pos: [-280.15896598345506d, 72.0d, -309.1873846619994d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:leatherworker", level: 1, type: "minecraft:plains"}, HurtTime: 0s, Inventory: []}
[15:41:40] [Render thread/INFO]: [CHAT] Leatherworker has the following entity data: {Brain: {memories: {"minecraft:meeting_point": {value: {pos: [I; -275, 75, -327], dimension: "minecraft:overworld"}}, "minecraft:home": {value: {pos: [I; -273, 72, -365], dimension: "minecraft:overworld"}}, "minecraft:last_slept": {value: 12403L}, "minecraft:last_woken": {value: 12885L}, "minecraft:last_worked_at_poi": {value: 16401L}, "minecraft:golem_detected_recently": {value: 1b, ttl: 116L}, "minecraft:job_site": {value: {pos: [I; -281, 72, -313], dimension: "minecraft:overworld"}}}}, HurtByTimestamp: 0, Attributes: [{Base: 48.0d, Modifiers: [{Amount: -0.10524955522882412d, Operation: 1, UUID: [I; -1106693091, -432979313, -1500359422, -185028326], Name: "Random spawn bonus"}], Name: "minecraft:generic.follow_range"}, {Base: 0.5d, Name: "minecraft:generic.movement_speed"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 16401L, FallDistance: 0.0f, DeathTime: 0s, Xp: 0, LastGossipDecay: 1L, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, UUID: [I; 315519343, -747157117, -1749719010, -297367078], Age: 0, Motion: [0.031627244476012874d, -0.0784000015258789d, -0.0349249223586734d], Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Offers: {Recipes: [{maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 3b}, sell: {id: "minecraft:leather_leggings", Count: 1b, tag: {Damage: 0, display: {color: 6192150}}}, xp: 1, uses: 0, priceMultiplier: 0.2f, specialPrice: 0, demand: 2, rewardExp: 1b}, {maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 7b}, sell: {id: "minecraft:leather_chestplate", Count: 1b, tag: {Damage: 0, display: {color: 16351261}}}, xp: 1, uses: 0, priceMultiplier: 0.2f, specialPrice: 0, demand: 2, rewardExp: 1b}]}, Rotation: [223.4417f, 13.640209f], HandItems: [{}, {}], RestocksToday: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Pos: [-274.74986655138815d, 73.0d, -314.1830280430781d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:leatherworker", level: 1, type: "minecraft:plains"}, HurtTime: 0s, Inventory: []}
[15:41:40] [Render thread/INFO]: [CHAT] Mason has the following entity data: {Brain: {memories: {"minecraft:meeting_point": {value: {pos: [I; -275, 75, -327], dimension: "minecraft:overworld"}}, "minecraft:last_worked_at_poi": {value: 16692L}, "minecraft:job_site": {value: {pos: [I; -303, 77, -319], dimension: "minecraft:overworld"}}}}, HurtByTimestamp: 0, Attributes: [{Base: 48.0d, Modifiers: [{Amount: 0.012312745584821877d, Operation: 1, UUID: [I; 317019209, 1487161746, -1365281960, -1007774081], Name: "Random spawn bonus"}], Name: "minecraft:generic.follow_range"}, {Base: 0.5d, Name: "minecraft:generic.movement_speed"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 15781L, FallDistance: 0.0f, DeathTime: 0s, Xp: 0, LastGossipDecay: 1L, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, UUID: [I; -871286422, -271628891, -1919271592, -1839143209], Age: 0, Motion: [0.0d, -0.0784000015258789d, 0.0d], Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Offers: {Recipes: [{maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:clay_ball", Count: 10b}, sell: {id: "minecraft:emerald", Count: 1b}, xp: 2, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 2, rewardExp: 1b}, {maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 1b}, sell: {id: "minecraft:brick", Count: 10b}, xp: 1, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 2, rewardExp: 1b}]}, Rotation: [80.16846f, 0.0f], HandItems: [{}, {}], RestocksToday: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Pos: [-302.1968101689701d, 77.5625d, -318.55691606136264d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:mason", level: 1, type: "minecraft:plains"}, HurtTime: 0s, Inventory: []}
[15:41:40] [Render thread/INFO]: [CHAT] Farmer has the following entity data: {Brain: {memories: {"minecraft:meeting_point": {value: {pos: [I; -275, 75, -327], dimension: "minecraft:overworld"}}, "minecraft:home": {value: {pos: [I; -282, 76, -344], dimension: "minecraft:overworld"}}, "minecraft:last_slept": {value: 12265L}, "minecraft:last_woken": {value: 12873L}, "minecraft:last_worked_at_poi": {value: 16284L}, "minecraft:job_site": {value: {pos: [I; -292, 74, -361], dimension: "minecraft:overworld"}}}}, HurtByTimestamp: 0, Attributes: [{Base: 48.0d, Modifiers: [{Amount: 0.02773528841868238d, Operation: 1, UUID: [I; 1767198246, -1048689474, -1675023136, -1977021189], Name: "Random spawn bonus"}], Name: "minecraft:generic.follow_range"}, {Base: 0.5d, Name: "minecraft:generic.movement_speed"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 16284L, FallDistance: 0.0f, DeathTime: 0s, Xp: 0, LastGossipDecay: 1L, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, UUID: [I; 1350658874, 71716603, -1970686457, -2090758770], Age: 0, Motion: [0.034347489490904944d, -0.0784000015258789d, -0.0283591489530616d], Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Offers: {Recipes: [{maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:wheat", Count: 20b}, sell: {id: "minecraft:emerald", Count: 1b}, xp: 2, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 2, rewardExp: 1b}, {maxUses: 2147483647, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:carrot", Count: 22b}, sell: {id: "minecraft:emerald", Count: 1b}, xp: 2, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 2, rewardExp: 1b}]}, Rotation: [251.37839f, 0.0f], HandItems: [{}, {}], RestocksToday: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Pos: [-290.71901053137464d, 74.0d, -362.1199901192856d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:farmer", level: 1, type: "minecraft:plains"}, HurtTime: 0s, Inventory: []}
[15:41:40] [Render thread/INFO]: [CHAT] Villager has the following entity data: {Brain: {memories: {"minecraft:home": {value: {pos: [I; -537, 70, -506], dimension: "minecraft:overworld"}}}}, HurtByTimestamp: 0, Attributes: [{Base: 48.0d, Modifiers: [{Amount: 0.014081813502523705d, Operation: 1, UUID: [I; -1657255995, -489404451, -1903504170, -1694579089], Name: "Random spawn bonus"}], Name: "minecraft:generic.follow_range"}, {Base: 0.5d, Name: "minecraft:generic.movement_speed"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 0L, FallDistance: 0.0f, DeathTime: 0s, Xp: 0, LastGossipDecay: 15471L, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, UUID: [I; 1547646264, 1568165058, -2117999587, -1870553088], Age: 0, Motion: [0.0d, -0.0784000015258789d, 0.0d], Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Rotation: [-221.17838f, 0.0f], HandItems: [{}, {}], RestocksToday: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Pos: [-537.3685447101018d, 70.0d, -504.72049861908556d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:none", level: 1, type: "minecraft:plains"}, HurtTime: 0s, Inventory: []}
[15:41:40] [Render thread/INFO]: [CHAT] Villager has the following entity data: {Brain: {memories: {"minecraft:home": {value: {pos: [I; -524, 68, -496], dimension: "minecraft:overworld"}}, "minecraft:potential_job_site": {value: {pos: [I; -546, 71, -492], dimension: "minecraft:overworld"}}}}, HurtByTimestamp: 0, Attributes: [{Base: 48.0d, Modifiers: [{Amount: 0.09305065870259796d, Operation: 1, UUID: [I; -1168269990, -34386668, -1903174403, -474526818], Name: "Random spawn bonus"}], Name: "minecraft:generic.follow_range"}, {Base: 0.5d, Name: "minecraft:generic.movement_speed"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 0L, FallDistance: 0.0f, DeathTime: 0s, Xp: 0, LastGossipDecay: 13042L, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, UUID: [I; 702250868, -183680193, -1930630686, -436603564], Age: 0, Motion: [-0.07209295389431464d, -0.0784000015258789d, 0.013847697541868926d], Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Rotation: [80.33978f, -9.846216f], HandItems: [{}, {}], RestocksToday: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], Pos: [-529.8521986486154d, 67.0d, -496.60738084441687d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:none", level: 1, type: "minecraft:plains"}, HurtTime: 0s, Inventory: [{id: "minecraft:bread", Count: 1b}, {id: "minecraft:carrot", Count: 7b}]}

commented

Thanks for giving the mod a try and submitting the bug report! I've just released version 2.0 of Infinite Trading which should fix the issues you were having.

https://www.curseforge.com/minecraft/mc-mods/infinite-trading-fabric/files/all