maxsupermanhd / meteor-villager-roller

Module for Meteor Client that continiously breaks and places work block of villager until it has desired trade
GNU General Public License v3.0
89 stars 15 forks source link

Entity interactions on 2b2t #37

Open sebseb7 opened 2 weeks ago

sebseb7 commented 2 weeks ago

Hi,

it seems that mc.interactionManager.interactEntity(mc.player, rollingVillager, Hand.MAIN_HAND);

https://github.com/maxsupermanhd/meteor-villager-roller/blob/bd1a1a14ebfeefbcfda76d9eb26d2ebe98219ea0/src/main/java/maxsuperman/addons/roller/modules/VillagerRoller.java#L510C12-L510C19

no longer works on 2b2t for some reason.

maxsupermanhd commented 2 weeks ago

Oh yeah, I am aware. A guy reached to me at may 4th and we tried to troubleshoot it but it just seems like server completely ignores the clicks. Funny thing is if you schedule an autoclicker (on os level) it would interact properly.

Unfortunately I don't really get the difference between having an actual click and just executing interactEntity so I can't do much. I don't play on 2b but if you have a solution for it you are welcome to create pull requests with your suggestions. Just make sure if it can potentially break stuff for non 2b players put it behind a toggle.

sebseb7 commented 2 weeks ago

is there a packet logger I can try compare client difference between "clicks" issued on keypress level and clicks issues indirectly at interactionManager level?

maxsupermanhd commented 2 weeks ago

Sure can, you can use https://github.com/adepierre/SniffCraft and to be honest probably any packet logger will do the job.

sebseb7 commented 2 weeks ago

btw. looking at the villger and issuing

KeyBinding.setKeyPressed(InputUtil.fromTranslationKey(mc.options.useKey.getBoundKeyTranslationKey()),true);

does work in my testing if the viewpoint is static.

maxsupermanhd commented 2 weeks ago

if the viewpoint is static

Hmm. I did send a test version with randomized delay before interaction to the guy that was troubleshooting with me but it did not work out.

This is very confusing...

btw you can reach me in discord.

sebseb7 commented 2 weeks ago

will do tomorrow