Code Monkey home page Code Monkey logo

core's Introduction

Phpcraft Build Status

A PHP library for all things Minecraft: Java Edition.

This project has been abandoned! The limited subset of 1.8.x - 1.15.x that has been implemented should work fine. If and how anything after that works is entirely dependant on what changed about the protocol.

Prerequisites

You'll need PHP (CLI), Composer, and Git.

Instructions

  • Debian: apt-get -y install php-cli composer git
  • Windows:
    1. Install Cone, which will install the latest PHP with it.
    2. Run cone get composer as administrator.
    3. Install Git for Windows.

Projects using Phpcraft

Using Phpcraft

Thanks to Composer, using Phpcraft is really easy. Just head into your project folder and run:

composer require craft/core --no-suggest --ignore-platform-reqs

Next, we'll run a self check:

php vendor/craft/core/selfcheck.php

If any dependencies are missing, follow the instructions, and then run the self check again.

Finally, you can require "vendor/autoload.php"; to use Phpcraft's many APIs.

In addition to the "Projects using Phpcraft" section above serving up great example code, there's also the docs and wiki for you to read.

Modules

You can use modules to extend the functionality of Phpcraft:

Thanks

  • Thanks to wiki.vg and the people who're maintaining it.
  • Thanks to Jetbrains for providing me with an open-source license for PhpStorm — it's a lovely PHP IDE, and made working on this project much easier.

Phpcraft is not partnered or associated with Microsoft or Mojang.

core's People

Contributors

automatic-beyond-belief avatar sainan avatar timmyrs avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

newpersonhere

core's Issues

"Compile" data

Files such as protocol.json are only used for packet IDs, so there's a lot of superfluous data, and bytes.

Support Windows

The only reason why Windows currently isn't supported is because STDIN doesn't work properly. However, STDIN is as much a dependency to Phpcraft as mbstring is, so everything should be a bit more Windows-friendly. Things that come to mind are:

  • Removing references to apt-get (or at least checking the OS before printing such) especially in selfcheck.php
  • Not using FancyUserInterface on Windows as it requires UNIX-specific commands to determine Terminal size

And finally, when all is said and done: Updating the README.

Receive 1.16 Chunk Format

 22:25 <Karang> let's say you have bitPerValue = 5, you can fit 12 x 5 bits values, and you'll have 4 bit remaining
 22:25 <Karang> in the old version, you would store the first 4 bit of the value in the same long, and the remaining 1 bit in the next
 22:25 <Karang> in 1.16, you store the 5 bits in the next, and you leave 4 bits of padding

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.