MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

Question about trading reset #221

Closed Jart2606 closed 1 month ago

Jart2606 commented 3 months ago

I have a question about the trading reset sistem it says min. for reset. i have npcs that give trades and i limited the amount of trading they can do in a row, and i want to make it so people have to wait for 15 to 20 minutes to be able to trade again, but no matter what number i put in "min for reset" it always lets people trade after a couple seconds, is there any way to fix this?

MarkusBordihn commented 3 months ago

Could you please let me know how many trading NPCs you are using ?

The reset works on a tick base, so not after the last item was sold. This means if you are unlucky it could be that the reset just happen after an item is sold-out.

I will test this in the developer version to see if I could reproduce the issue.

Cryptic2123 commented 2 months ago

I also have found this issue, you can simply leave the trade menu, and reopen it, and the NPC is restocked. Is there a way to fix this?

wRNarata commented 1 month ago

Hello, I have exactly the same problem, I currently have 12 NPC trading, each with a limit of 5 exchanges per 60 minutes per item. A player on my server told me, that the limit resets when closing the display and reopening it, almost systematically.

Minecraft version: 1.20.1 Mod version: forge 1.20.1-4.5.1

Thanks for your help. Bye !