Commit graph

638 commits

Author SHA1 Message Date
CarbonNeuron
04068cdb24 Return False for unimplemented actions 2020-05-03 11:22:41 -05:00
CarbonNeuron
0cd7f2043b Rename Action to EntityActionType, Apply Rename refactoring. 2020-05-03 11:21:34 -05:00
CarbonNeuron
222a552c88 Rename TSneak to Sneak 2020-05-03 11:19:22 -05:00
CarbonNeuron
5fdbff94c7 Rename Result to result to be compliant. 2020-05-03 11:18:18 -05:00
CarbonNeuron
bb5ea0280a Get rid of String interpolation, replace with string format. 2020-05-03 10:56:55 -05:00
CarbonNeuron
2fdb89c11a Change OnlyInternal to OnlyInternalCommands 2020-05-03 10:55:55 -05:00
CarbonNeuron
a78623bf84 Rename SendAction to SendEntityAction in ChatBot.cs 2020-05-03 10:52:58 -05:00
CarbonNeuron
add1dd2dcd Merge Unseak and sneak into one function 2020-05-03 10:51:50 -05:00
CarbonNeuron
c5a19f4b8b Get rid of UseItemOnHand in using chatbots, replace with UseItemInHand 2020-05-03 10:49:51 -05:00
CarbonNeuron
7207a9ea0e Get rid of UseItemOnHand, in ChatBot.cs, function called UseItemInHand already does this (Same function). 2020-05-03 10:48:02 -05:00
CarbonNeuron
799bc814c5 Add Chatbot API for Sneaking / Unsneaking without using SendAction 2020-05-02 03:55:23 -05:00
CarbonNeuron
b2075bb811 Add Chatbot API for accessing SendAction for things like Shift/Unshift 2020-05-02 03:53:39 -05:00
CarbonNeuron
89c97c794c Add Chatbot API for accessing Using Hand and changing slot 2020-05-02 03:52:17 -05:00
CarbonNeuron
2fb4a91252 Fix the PacketID on 1.13.2 2020-05-01 11:47:00 -05:00
CarbonNeuron
8b57b657e6 Add ChatBot methods to get inventories. 2020-05-01 10:52:43 -05:00
CarbonNeuron
6eb12fd489 Merge branch 'Staging' 2020-05-01 09:42:29 -05:00
CarbonNeuron
06ea43f6c0 Add Internal command logging. 2020-05-01 09:41:17 -05:00
CarbonNeuron
bdf37e427c Add some features of command logging 2020-05-01 09:41:17 -05:00
CarbonNeuron
02ebf067b9 Add Internal command logging. 2020-05-01 09:37:15 -05:00
CarbonNeuron
3e11d89ffd Merge branch 'master' into Staging 2020-05-01 09:29:41 -05:00
CarbonNeuron
cd3b6a0845 Add the EntityAction Outgoing type. 2020-05-01 09:28:33 -05:00
CarbonNeuron
ff92aeab85 Add some features of command logging 2020-05-01 09:26:51 -05:00
CarbonNeuron
16959d6e65 Remove AutoLook.cs Chatbot because it is not in main project. Also removes it in McTcpClient.cs, and gets rid of the Settings.cs and Default paramaters. 2020-05-01 09:02:15 -05:00
CarbonNeuron
384c804e54 Added Entity Action handling, and A TSneak command that will Toggle Sneak. 2020-05-01 08:28:22 -05:00
ORelio
9dae40153c Implement pull request #982
LookAtLocation and AutoLook
2020-05-01 14:02:23 +02:00
ORelio
c2dc483d36 Add /inventory player and /inventory container
Allow interacting with an inventory without specifying an ID
Useful for automated interactions when container has in incremental ID
Eg. /inventory container click 1
See #981
2020-05-01 13:41:26 +02:00
CarbonNeuron
2f1b99c064 Added UUID initializers for the functions that support it in McTcpClient.cs, Also Fixed some redundant Object creation. 2020-04-30 23:40:07 +02:00
CarbonNeuron
1c2e4ab6d8 Added UUID to spawning players. And UUID property to Entity.cs 2020-04-30 23:40:07 +02:00
ORelio
116efc5e78 Add additional error messages on login failures
See #976
2020-04-30 17:37:57 +02:00
OverHash
770a82e2d2 Check player is in range each entity attack
This commit should make it so that MCC will check that the player is in range before attacking entities each iteration of the cooldown.

This was problematic before, because, if the entities were still they would be added to the attack list, and then if they stayed still and the client teleported away, it would still attempt to attack the entities, even though it is now out of range.
2020-04-27 18:35:59 +02:00
ORelio
7f1ad036b1 AutoAttack coding style fixes 2020-04-27 18:35:59 +02:00
OverHash
83852511bc Don't attack entities whilst dead
MCC will now not attempt to attack entities if the client is dead
2020-04-27 18:35:59 +02:00
OverHash
a378089f1b Clean AutoAttack
A lot of this code is messy and has unused variables. Additionally, there are memory leaks as dead entities are not removed from meory.
2020-04-27 18:35:59 +02:00
ORelio
ba0cc0f649 Create issue templates
Add template for Bug report, Feature request, General question.
2020-04-24 12:38:23 +02:00
CarbonNeuron
26a7db6f39 Fix "Failed to check session cache" Add range between 200-300 2020-04-19 17:09:11 +02:00
CarbonNeuron
3799d2062f Fix "Failed to check session cache" 2020-04-19 17:09:11 +02:00
CarbonNeuron
52248d1aba Fix "Failed to check session cache" 2020-04-19 17:09:11 +02:00
ORelio
e4cae97dd7 ConsoleIO: Rewrite backspace handling
Manually move the cursor instead of using the backspace character.
Should help when deleting characters requiring multiple keypresses
like Chinese characters. Fix attempt for #941
2020-04-15 14:54:36 +02:00
ReinforceZwei
0acb17e105 Make AutoEat not to use Threading 2020-04-13 17:49:24 +02:00
ReinforceZwei
3e76baeeb1 Fix AutoAttack stop working with AutoEat enabled and no food on hotbar
#934
2020-04-13 17:49:24 +02:00
ReinforceZwei
8e32c3747c Revert "Improve AutoEat"
This reverts commit 51f54979da.
2020-04-13 17:49:24 +02:00
ReinforceZwei
e9d91ce572 Improve AutoEat 2020-04-13 17:49:24 +02:00
ReinforceZwei
959b62f35f Fix Entity Properties Modifiers are not calculated correctly
#933
2020-04-09 20:50:34 +02:00
ReinforceZwei
3f9b084a45 Remove IsFood method from Item class 2020-04-09 20:50:34 +02:00
ReinforceZwei
b1121e91e3 Add Item type extension 2020-04-09 20:50:34 +02:00
ReinforceZwei
31d45b0950 Update Inventory.cs 2020-04-09 20:50:34 +02:00
ReinforceZwei
97b0b03c33 Move AutoEat to a ChatBot 2020-04-09 20:50:34 +02:00
ReinforceZwei
044c19114c Fix current slot may reset to 0 after auto eating 2020-04-09 20:50:34 +02:00
ReinforceZwei
2e1e79bcef Add AutoEat
#923
2020-04-09 20:50:34 +02:00
ReinforceZwei
70e5ae85d7 Fix command Health command name not changed 2020-04-09 20:50:34 +02:00