Coder Social home page Coder Social logo

minecraftchat's Introduction

MinecraftChat

Circle CI

Web based Minecraft chat client for 1.8 servers.

MinecraftChat Screenshot

Description

This is a very lightweight application... ~500kb without modules. It is built on Node and utilizes tools such as mineflayer, node-minecraft-protocol and socket.io. The whole purpose is that you can chat on Minecraft servers from your browser. This makes it easier to just jump in, say a few things, and leave without having to wait for your game to load.

Installing on your own server

git clone https://github.com/AlexKvazos/MinecraftChat
cd MinecraftChat
npm install && grunt build
npm start

This will start the application on port 3000 or the one specified by the PORTenvironment variable.

Grunt tasks

  • grunt debug - Builds the client-side javascript application with no minification
  • grunt build - Builds the client-side javascript application with minification
  • grunt watch - Automatically runs grunt debug when client-side code changes
  • grunt server - Starts server and automatically restart when server-side code changes

minecraftchat's People

Contributors

alexkvazos avatar jonathanperret avatar rom1504 avatar shugen002 avatar threnklyn avatar ulisesgascon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minecraftchat's Issues

Support for 1.9

Hey Guys,
Just wondering if you intend to continue support after the upgrade to Minecraft 1.9? Since the pre-releases have been pushed you can likely start testing.
Jon

why not contain a entity radar init

from the mineflayer , i see a Third Party Plugins "radar"
i think if it contain into this project , it will be a wonderful idea .

i hope this project will be a web Minecraft Client one day .

Predefined message

How can I send a predefined command when successfully connected to the server?

Weird looking Interface

Hey, I would really like to use your Webchat here but i got only a weird interface when I install and run your app.

Error Image

derPi@TimsTower MINGW64 /d/Code_Test/MinecraftChat (master)
$ yarn install
yarn install v1.9.2
info No lockfile found.
[1/4] Resolving packages...
warning babel > babel-core > [email protected]: Please update to minimatch 3.0.2
 or higher to avoid a RegExp DoS issue
warning grunt > [email protected]: Please update to minimatch 3.0.2 or higher to
 avoid a RegExp DoS issue
warning grunt > glob > [email protected]: Please update to minimatch 3.0.2 or hi
gher to avoid a RegExp DoS issue
warning grunt > glob > [email protected]: please upgrade to graceful-fs 4 for c
ompatibility with current and future versions of Node.js
warning grunt > [email protected]: CoffeeScript on NPM has moved to "coffeesc
ript" (no hyphen)
warning grunt > findup-sync > glob > [email protected]: Please update to minimatc
h 3.0.2 or higher to avoid a RegExp DoS issue
warning grunt-browserify > browserify > glob > [email protected]: Please update
to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning grunt-contrib-watch > gaze > globule > [email protected]: Please update
to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gruntify-eslint > eslint > [email protected]: Please update to minimatch
 3.0.2 or higher to avoid a RegExp DoS issue
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check.
 Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 21.28s.

derPi@TimsTower MINGW64 /d/Code_Test/MinecraftChat (master)
$ grunt build
Running "browserify:pro" (browserify) task
>> Bundle public/js/app.js created.

Running "uglify:target" (uglify) task
>> 1 file created.

Done, without errors.

derPi@TimsTower MINGW64 /d/Code_Test/MinecraftChat (master)
$ yarn start
yarn run v1.9.2
$ node bin/start
{ Error: ENOENT: no such file or directory, open 'D:\Code_Test\MinecraftChat\.env'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.config (D:\Code_Test\MinecraftChat\node_modules\dotenv\lib\main.js:30:37)
    at Object.<anonymous> (D:/Code_Test/MinecraftChat/app/server/index.js:17:8)    at Module._compile (module.js:65
2:30)
    at normalLoader (D:\Code_Test\MinecraftChat\node_modules\babel-core\lib\api\register\node.js:199:5)
    at Object.require.extensions.(anonymous function) [as .js] (D:\Code_Test\MinecraftChat\node_modules\babel-core\
lib\api\register\node.js:216:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'D:\\Code_Test\\MinecraftChat\\.env' }
> Server running on port 3000

DOES NOT WORK

I opened it up, at first glance it DOES work but now it doesn't. I can type in all the fields and hit connect and it refreshes the page.

Not showing at :3000

I've managed to get it installed and started(Although more detailed instructions would be a great idea)
I'm running ubuntu with no head

Installed npm, node.js and nodejs-legacy

I tried to run npm install && grunt build

The npm installed with various errors and warnings
grunt was not found on the system, and I couldn't figure out how to install it (I tried npm install -g grunt, no luck)

Ignoring all the errors praying that this might still work I went ahead and did npm start:

~/MinecraftChat$ npm start

> [email protected] start /home/user/MinecraftChat
> node bin/start

{ [Error: ENOENT: no such file or directory, open '.env'] errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }
> Server running on port 3000

But when I try to go to the ur(xxx.xxx.x.xx:3000) it just loads for a long time before

Help Error

pi@raspberrypi:~/MinecraftChat $ npm start
npm WARN npm npm does not support Node.js v10.21.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/

[email protected] start /home/pi/MinecraftChat
node bin/start

{ Error: ENOENT: no such file or directory, open '.env'
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:343:35)
at Object.config (/home/pi/MinecraftChat/node_modules/dotenv/lib/main.js:30:37)
at Object. (/home/pi/MinecraftChat/app/server/index.js:17:8)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at normalLoader (/home/pi/MinecraftChat/node_modules/babel-core/lib/api/register/node.js:199:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/pi/MinecraftChat/node_modules/babel-core/lib/api/register/node.js:216:7)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3) errno: -2, syscall: 'open', code: 'ENOENT', path: '.env' }

Server running on port 3000

Ideas

So there's a nice server feature where you can bookmark servers, maybe add an option to import/export the current configs and modules?

Also, along the lines of modules I was thinking a scripting module where you could make the chat do commands upon logging into the server or manually activated.

Can't Connect to Servers

I get this error when trying to connect.
[i] Error: {"errno":-5,"code":"Z_BUF_ERROR"}

You have been disconnected from the Minecraft server.

is reading chat working?

while using the chatterbox example, i noticed chat messages wouldnt get logged to the console. whispers would still work fine though. below is the function that should fire when chat updates but its not firing. is it just me or is it happening to others as well?

bot.on('chat', function(username, message) {
console.log(username + ": " + message);
});

Clickable names

I tried everything I could think of to make this work, but am having a very hard time making player names in the player list clickable, when clicking on them the name should be inserted into the chat box.

Unfortunately I'm not familiar with angularjs at all, and have found it very difficult to accomplish this, is there any way you could implement this or give me a demonstration on how to do it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.