Commit graph

238 commits

Author SHA1 Message Date
ORelio
b2e6953075 Fix missing packet IDs for older MC versions
Fix packets not implemented for versions older than 1.14
Please implement all versions when adding a new packet!
2020-05-26 13:01:01 +02:00
ORelio
efb49fd05d Improve documentation, fix file encoding (#1026) 2020-05-26 11:20:12 +02:00
Рома Данилов
87b2d3bf4a
new command /animation (#1026) 2020-05-26 11:02:09 +02:00
ORelio
23870711a0 Code refactoring (related to #1024) 2020-05-25 21:39:24 +02:00
Рома Данилов
d120001d70
Add Entity.Name & /inventory 0 creative <slot> <itemtype> <count> (#1024)
* Update Program.cs

* Update Entity.cs

Add Entity.Name

* Update Program.cs
* Update Entity.cs

Add break;

* Update Entity.cs

* Update Inventory.cs

Add /inventory 0 creative <slot> <item> <count>

* Update PacketOutgoingType.cs

+ CreativeInventoryAction

* Update Protocol16.cs

+ SendCreativeInventorAction

* Update Protocol18.cs

+ SendCreativeInventorAction

* Update IMinecraftCom.cs

+ SendCreativeInventorAction

* Update McTcpClient.cs

+ DoCreativeInventorAction

* Update ChatBot.cs

+ CreativeInventorAction

* Update McTcpClient.cs
* Update ChatBot.cs
* Update Inventory.cs

Add show count

* Update ChatBot.cs

+ ChatBot fix

* Update Inventory.cs

Inventory update and Fix

* Update Entity.cs
* Update McTcpClient.cs
* Update Program.cs
* Update Protocol16.cs
* Update Protocol18.cs
* Update IMinecraftCom.cs
* Update Entity.cs
2020-05-25 21:16:53 +02:00
ORelio
4362de4540 Fix #1018 (ThreadAbortException) 2020-05-24 19:57:32 +02:00
ORelio
bd85c46663 Implement entity types (#1001)
Implement palette generation and investigate palette changes between
versions. Turns out 1.13- has legacy IDs, 1.14 switches to entity
palette and 1.15 refreshes the whole palette just to insert Bee.

Also refactor entity handling code here and there.
2020-05-24 18:21:22 +02:00
eulertour0
06714423a3 Replace List to Queue 2020-05-24 14:47:40 +02:00
ReinforceZwei
aaf6dca522 Add drop item for inventory 2020-05-24 14:44:33 +02:00
ReinforceZwei
902527502e start implement 2020-05-24 14:44:33 +02:00
ReinforceZwei
d6022d1ee9 Rename ClickWindow to WindowAction 2020-05-24 14:44:33 +02:00
ReinforceZwei
1e5b9fc94b Implement middle click 2020-05-24 14:44:33 +02:00
ReinforceZwei
4f96aa2081 Implement inventory right click 2020-05-24 14:44:33 +02:00
CarbonNeuron
384c804e54 Added Entity Action handling, and A TSneak command that will Toggle Sneak. 2020-05-01 08:28:22 -05:00
ORelio
116efc5e78 Add additional error messages on login failures
See #976
2020-04-30 17:37:57 +02:00
ReinforceZwei
959b62f35f Fix Entity Properties Modifiers are not calculated correctly
#933
2020-04-09 20:50:34 +02:00
ReinforceZwei
2e1e79bcef Add AutoEat
#923
2020-04-09 20:50:34 +02:00
ORelio
80ae600b39 Reset action number on inventory close
Fix for #928
2020-04-06 23:52:52 +02:00
ReinforceZwei
bf86259b4b Rename command Status to Health 2020-04-04 15:39:05 +02:00
ReinforceZwei
975e6d4daa Add command to check player health and saturation 2020-04-04 15:39:05 +02:00
ORelio
fe020c74c7 Catch exceptions from ChatBots for new API events 2020-04-02 23:31:00 +02:00
ORelio
dbe02c063c Inventory handling improvements
Fix click issue for item with NBT
Show custom display names in inventory
See issues #910 #912 #914
2020-04-01 22:05:44 +02:00
ReinforceZwei
e93f03bd4e Add auto repsawn if player was dead 2020-04-01 20:53:40 +02:00
ReinforceZwei
ddcc9ee8e6 Fix EntityHandling not disabled when version unsupported 2020-03-31 15:40:41 +02:00
ReinforceZwei
ef9064c91e Fix EntityHandling not disabled when version unsupported 2020-03-31 15:40:41 +02:00
ReinforceZwei
5d0172a1f9 Fix Console Client crashes when using the /inventory click command
issues #912
2020-03-31 11:06:59 +02:00
ORelio
e04f06cece Interact with inventories
The /inventory command allow listing inventory and clicking on items
Should be enough for operating GUI menus such as Server chooser/teleporter
2020-03-29 18:41:26 +02:00
ORelio
03023c8059 Fix unspecified Item slot ID
Item must have a slot ID when created
2020-03-28 17:56:19 +01:00
ORelio
6929ae236a Add code documentation for inventories 2020-03-28 15:01:08 +01:00
ORelio
195e162c7d Add code documentation, move and rename a few methods 2020-03-28 00:48:41 +01:00
ReinforceZwei
137855a71d Add GetShort() method in dataTypes 2020-03-27 13:10:37 +01:00
ReinforceZwei
311815be9f Fix backwards support for entity, inventory handling
Seems AutoAttack not work in 1.12.2
Entity handling currently only support 1.13 or higher
2020-03-27 13:10:37 +01:00
ReinforceZwei
13206614c4 Add inventory type convert 2020-03-27 13:10:37 +01:00
ReinforceZwei
bc449b404e Inventory handling 2020-03-27 13:10:37 +01:00
ReinforceZwei
4b08912407 Made Open Window to only parse packet before MC1.14 2020-03-24 19:23:59 +01:00
ReinforceZwei
364afdfc72 Update Inventory support version to 1.15.2 and Remove GetInventoryEnabled condition bypass 2020-03-24 19:23:59 +01:00
ReinforceZwei
dbf5334758 Moved Auto attack and auto fishing to ChatBots and added ChatBotAPI for entity handling 2020-03-24 19:23:59 +01:00
ReinforceZwei
8b8f3a719b Implemented basic player inventory items handle 2020-03-24 19:23:59 +01:00
ReinforceZwei
51d03b9ced Added basic auto fishing 2020-03-24 19:23:59 +01:00
ReinforceZwei
833de25110 auto attack added MC1.8-1.15 packet support 2020-03-24 19:23:59 +01:00
ReinforceZwei
6ee16513e0 Final code clean up and adding summary 2020-03-24 19:23:59 +01:00
ReinforceZwei
0b0e3c334e auto attack 2020-03-24 19:23:59 +01:00
ORelio
9b9d4023bb Remind in config that inventory is not implemented yet 2020-02-11 21:33:22 +01:00
rvankammen
921ec5aaf5 Added the 1.15.2 protocol 2020-02-09 14:27:26 +01:00
ORelio
aba2ec79d1 Add 1.15.1 (1/2) 2019-12-25 11:11:55 +01:00
ORelio
c6f00ce686 Add support for Minecraft 1.15
See #834
2019-12-14 14:22:24 +01:00
ORelio
94e96b11dd Better handling of SocketException variants
See #817
2019-12-08 21:44:25 +01:00
ORelio
96eda73dce Mark Terrain & Movement as supported for 1.14.4
See #794 #820 #822
2019-11-01 12:07:57 +01:00
Pokechu22
6ac3cd90ee Fix VarInt too big for player position and look 2019-10-29 19:53:28 +01:00
ORelio
877e50579d Add connection timeout using server keepalives
Vanilla client will consider that connection has been lost
when no server keepalive was received during the last 30 seconds.
This commit implements a similar mechanism in MCC. See #802
2019-09-15 17:01:53 +02:00