Commit graph

588 commits

Author SHA1 Message Date
ORelio
20fb2323a4 Read all files as UTF-8 (#1035)
Fix encoding issues with some languages such as Chinese
by forcing UTF-8 everywhere. Configuration files written
in ANSI/Latin-1 and other encodings will need conversion.
2020-05-29 20:23:03 +02:00
Рома Данилов
cf9bc4c3d5
Add SendPlaceBlock, PlayerDigging, OnExplosion, OnGamemodeUpdate, OnSetExperience (#1027)
* Update ChatBot.cs

+ PlaceBlock

* Update AutoAttack.cs

+ HitAnimation

* Update PacketIncomingType.cs

+ Explosion,

* Update McTcpClient.cs

+ OnExplosion

* Update ChatBot.cs

+ OnExplosion

* Update IMinecraftComHandler.cs

+ OnExplosion

* Update Protocol18PacketTypes.cs

+ PacketIncomingType.Explosion

* Update ChatBot.cs

+ Fix

* Update AutoAttack.cs

+ Fix

* Update ChatBot.cs

+ Fix

* Update Protocol18PacketTypes.cs

+ Old versions

* Update Protocol18PacketTypes.cs

+ 1.7 - 1.8 Explosion ID

* Update Protocol18PacketTypes.cs

+ Fix

* Update McTcpClient.cs

+ int ExplosionRecordCount

* Update ChatBot.cs

+ recordcount

* Update IMinecraftComHandler.cs

+ ExplosionRecordCount

* Update Protocol18.cs

* Update CSharpRunner.cs

+ using MinecraftClient.Inventory;

* add OnGamemodeUpdate

+ OnGamemodeUpdate

* + OnGamemodeUpdate(playername, uuid, gamemode)

+ OnGamemodeUpdate

* Update Protocol18.cs

* Update IMinecraftComHandler.cs

* Update McTcpClient.cs

Fix

* Update McTcpClient.cs

* Update Protocol18.cs

+ Location explodelocation

* Update McTcpClient.cs

+ Location explode

* Update ChatBot.cs

+ Fix

* Update ChatBot.cs

Remove excess +

* Update Plays animation

* Improve documentation

* ItemType fix

* OnExplosion(Location explod);

* Update PacketIncomingType.cs add SetExperience,

* + Old versions

* Update IMinecraftComHandler.cs

* Update McTcpClient.cs

* Update Protocol18.cs

* add GetLevel & GetTotalExperience

* Fix

* add GetLevel & GetTotalExperience

* OnSetExpience

* Update ChatBot.cs

Fix

* Update McTcpClient.cs

+ bot.OnSetExperience

* Update Protocol18.cs

+ Fix

* Update McTcpClient.cs

+ PlayerDigging

* Update PacketOutgoingType.cs

+ PlayerDigging

* Update Protocol18PacketTypes.cs

+ case PacketOutgoingType.PlayerDigging

* Update Protocol18.cs

+ SendPlayerDigging

* Update IMinecraftCom.cs

+ SendPlayerDigging

* Update McTcpClient.cs

+ PlayerDigging

* Update Protocol16.cs

+ SendPlayerDigging

* Update ChatBot.cs

+ PlayerDigging

* Update ChatBot.cs

+ Fix

* Update McTcpClient.cs

+ Fix

* Update ChatBot.cs

Add WindowAction

* ChatBot.cs Fixes

* Further ChatBot.cs fixes

* Further ChatBot.cs fixes

* Protocol Handler fixes

* Protocol Handler fixes

* IMinecraftCom fixes

* documentation fixes

Co-authored-by: ORelio <oreliogitantispam.l0gin@spamgourmet.com>
2020-05-29 20:18:34 +02:00
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
86e5fe54ea Fix file encoding 2020-05-26 11:29:38 +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
ReinforceZwei
65620e2e95 Fix empty NBT not getting handled correctly
#1011
2020-05-25 20:05:14 +02:00
ORelio
4362de4540 Fix #1018 (ThreadAbortException) 2020-05-24 19:57:32 +02:00
ORelio
b2bcfca8ec Allow Forge detection with manual MC version (#1004) 2020-05-24 19:53:31 +02:00
ORelio
3996f72d23 Remove leftover files in EntityPalettes 2020-05-24 18:27:02 +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
ORelio
5b0b0c9cc3 Inventory drop 1/all + message 2020-05-24 15:17:05 +02:00
ORelio
9eeb052bb7 Avoid iterating twice in ReadData() 2020-05-24 14:47:40 +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
02d393fe4d Small fixes 2020-05-24 14:44:33 +02:00
ReinforceZwei
4f96aa2081 Implement inventory right click 2020-05-24 14:44:33 +02:00
ReinforceZwei
5da55a2f9a tiny improve of sneak command 2020-05-23 18:07:19 +02:00
ReinforceZwei
d6a3ea0726 Fix EntityAction packet ID and tiny improve of sneak command 2020-05-23 18:07:19 +02:00
Reinforce Zwei
cdb217840d Remove unused using 2020-05-22 17:30:02 +02:00
Reinforce Zwei
06ed5c0a45 Fix #1006 2020-05-22 17:30:02 +02:00
5tanly
a018304f99
Strip Minecraft Color Codes (§) in BasicIO-NoColor mode (#995)
Strip Minecraft color codes and formatting (§) if in BasicIO mode by using BasicIO-NoColor.
2020-05-14 19:36:56 +02:00
CarbonNeuron
5a0f106884 Get Rid of AutoLook setting. 2020-05-03 11:23:41 -05:00
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
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