Comments (11)
Unless I'm missing something here, can't you use self.to_client() and
self.to_server() to do that? E.g:
self.to_server({"msgtype": 0x03, "msg": "An artificial chat message"})
On 25 Jan 2013 14:32, "Robin Lambertz" [email protected] wrote:
Make it possible for plugins to send packets (through PacketSenderManager
?). This would make the plugin system way more useful.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/11.
from pycraft.
How would that work ? I don't see the code for it anywhere. Will try.
from pycraft.
BTW, would like to say that this doesn't work. Any chance this will be looked into ?
from pycraft.
ohey, this project. My plan to address this was to create a main plugin class that plugins can inherent methods from which includes a method to get the sender interface
from pycraft.
So is the client ever going to be able to send packets? I'd really like to code this functionality in but I'm not sure how.
from pycraft.
jckbigggs, I suggest you just modify the NetworkManager code for now. Plugins support is obviously not complete ^^.
from pycraft.
My apologies, I've just re-read my earlier response and realised I was
talking about a completely different project. Sorry if I have misled you
On 22 Mar 2013 08:41, "Robin Lambertz" [email protected] wrote:
jckbigggs, I suggest you just modify the NetworkManager code for now.
Plugins support is obviously not complete ^^.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-15286181
.
from pycraft.
Hopefully Ammar won't see this as recruiting/credit-stealing (I don't think he will, from the conversations I've had with him he seems like a very nice person), but may I refer you to my library?
McClientLib _Inspired by Ammars pyCraft_
My version of pyCraft _A version of pyCraft that uses McClientLib, good example of the API_
from pycraft.
@dkkline ammaraskar is a very nice person indeed ^^.
Anyhow, this looks cool dkkline, not EXACTLY what I'm looking for, but useful regardless.
The thing is, what your library do is allow one to write third-party clients easily. What I'm looking for is the ability to have a third-party in which I can easily add in "additional features" (plugins) that can easily be enabled/disabled. Kind of like how bukkit manages plugins, but for a third-party minecraft client.
from pycraft.
@dkkline ❤️
I'm gonna be pulling in stuff from downstream soon. I really do appreciate you rewriting my terrible terrible base. I'd have done it myself if I had the time. You should look into adding in the plugin system, which can essentially wrap around the normal mcclientlib stuff to your pyCraft fork
from pycraft.
ayyy, I rewrote the whole project, you can now just do with the Connection
class
write_packet(self, packet, force=False)
https://github.com/ammaraskar/pyCraft/blob/master/network/connection.py#L52
from pycraft.
Related Issues (20)
- How to reconnect to the server? HOT 1
- attempting to write None field (workaround included)
- 1.19 support? HOT 24
- Unable to dig block HOT 3
- 1.18.2 support HOT 1
- disconnect.timeout HOT 1
- Logging in, getting 403 invalid credentials. HOT 2
- We need pyCraft3 HOT 5
- a1.2.6 supported?
- Rooted Roku HOT 4
- Baritone Bot integration? HOT 1
- 1.18.2 support?
- Microsoft authentication failure HOT 2
- Can't import Minecraft from PyCraft?
- 1.19 and 1.20 support ? HOT 2
- 支持1.20.2?
- 1.20. support? HOT 1
- "ModuleNotFoundError: No module named 'mutf8'" HOT 2
- PlayerPositionAndLookPacket
- 1.20.6 porting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycraft.