Swiftpack.co - stackotter/delta-client as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by stackotter.
stackotter/delta-client v0.1.0-snapshot.8
An open source Minecraft Java Edition client built for speed.
⭐️ 271
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/stackotter/delta-client.git", from: "v0.1.0-snapshot.8")

Delta Client - Changing the meaning of speed

Discord

An open source rewrite of the Minecraft: Java Edition client, written in Swift for macOS and iOS (experimental). Currently Delta Client only supports connecting to 1.16.1 servers.

Disclaimers

This client is not finished yet. If you're looking for a client to use to play Minecraft today, then this is not for you. I am NOT responsible for anti-cheat bans, the client has not been thoroughly tested yet and is still deep in development.

This software is not affiliated with Mojang AB, the original developer of Minecraft.

Overview

The main focus of this project is to create a highly efficient Java Edition compatible client written in Swift for macOS. The client also has experimental support for iOS, and is in the process of getting ported to Linux using SwiftCrossUI and eventually Kinzoku (once it is ready).

If you want to have a say in the development of the client or have any questions, feel free to join the community on Discord.

Playing with Delta Client in a Hypixel lobby

Performance

One of the biggest advantages of Delta Client is its performance. Epic comparison graphs are in progress, but for now have some dot-points.

  • Start-up time:
    • M2 MacBook Air: 0.9 seconds (vanilla takes 43 seconds)
    • i5 MacBook Air: 2.7 seconds (vanilla takes ~60 seconds)
  • FPS on 10 render distance in the mountains (bad for fps):
    • M2 MacBook Air (on 1080p monitor): ~120 fps (vanilla gets ~75 fps)
    • i5 MacBook Air: ~70 fps (vanilla gets ~35fps)

Installation

Prebuilt

  1. Visit Delta Client's downloads page and download the latest build from the main branch.
  2. Unzip the downloaded zip archive and open the app inside
  3. You will get a security alert, click ok
  4. Right click the app in finder and select open
  5. You should get another pop-up, click 'Open'
  6. Delta Client will now open and start downloading the required assets (this only has to happen once and should take around 40s with a mediocre internet speed)
  7. You can move Delta Client to your Applications folder for ease of use if you want

To view application logs, click View > Logs in the menu bar while Delta Client is open.

Building from source

To build Delta Client you'll first need to install Xcode 14 and the latest version of Swift Bundler. Please note that using Xcode 13 is ok but you may run into some weird memory corruption issues, so test with Xcode 14 before assuming that it's a Delta Client bug. Once you've installed the requirements, run the following commands in terminal;

# Clone Delta Client
git clone https://github.com/stackotter/delta-client
cd delta-client

# Perform a release build and output the bundled app to the current directory
sh ./build.sh

# If you want to develop Delta Client using Xcode, run the following command
swift bundler generate-xcode-support
# And then open Package.swift with Xcode and you'll be able to build it from Xcode too

Minecraft version support

At the moment the client only supports joining 1.16.1 servers. In the future I plan to support more versions.

Not every version will be perfectly supported but I will try and have the most polished support for the following versions;

  • 1.8.9
  • the latest speedrunning version (currently 1.16.1)
  • the latest stable version

Features

  • ☑ Networking
    • ☑ Basic networking
    • ☑ Server list ping
    • ☑ Encryption (for non-offline mode servers)
      • ☑ Mojang accounts
      • ☑ Microsoft accounts
    • ☑ LAN server detection
  • ☑ Basic config system
    • ☑ Multi-accounting
  • ☐ Rendering
    • ☑ World
      • ☑ Basic block rendering
      • ☑ Basic chunk rendering
      • ☑ Block culling
      • ☑ Block models
      • ☑ Multipart structures (e.g. fences)
      • ☑ Multiple chunks
      • ☑ Lighting
      • ☑ Animated textures (e.g. lava)
      • ☑ Translucency
      • ☑ Fluids (lava and water)
      • ☑ Chunk frustum culling
      • ☑ Biome blending (mostly)
      • Sky box
    • ☐ Entities
      • ☑ Basic entity rendering (just coloured cubes)
      • ☐ Render entity models
      • ☐ Entity animations
      • ☐ Block entities (e.g. chests)
      • ☐ Item entities
    • ☐ GUI
      • ☑ Chat
      • ☑ F3-style stuff
      • ☐ Bossbars
      • ☐ Scoreboard
      • ☑ Health, hunger and experience
      • ☑ Hotbar
      • ☐ Inventory
        • ☐ Basic inventory
        • ☐ Basic crafting
        • ☐ Inventory actions
        • ☐ Using recipe blocks (like crafting tables and stuff)
        • ☐ Creative inventory
  • ☐ Sound
    • ☐ Basic sounds system
  • ☑ Physics
    • ☑ Physics loop
    • ☑ Input system
    • ☑ Collision system
  • ☐ Interaction
    • ☑ Block placing
    • ☐ Block breaking
    • ☐ Block entity interaction
    • ☐ Entity interaction
  • ☐ Particles
    • ☐ Basic particle system
    • ☐ Block break particles
    • ☐ Ambient particles
    • ☐ Hit particles
    • ☐ Particles from server

Contributing

First, please check out the contributing guidelines. Then you can checkout the issues for a place to get started. Make sure to leave a comment on the issue you choose so that people know that someone's already working on it.

Servers

We now have an official testing server (play.deltaclient.app)! However, if you want to mess around to your hearts content you can run a server on your computer for full control (see below).

To start a test server, download a 1.16.1 server jar from here. Then in Terminal type java -jar and then drag the downloaded .jar file onto the terminal window and then hit enter. Wait for the server to start up. Now add a new server with the address localhost in Delta Client and you should be able to connect to it. Keep in mind the server may use a significant amount of resources and slow down Delta Client.

More screenshots

Delta Client being used to view a survival world from a vantage point on a mountain

Delta Client's server selection UI

GitHub

link
Stars: 271
Last commit: 1 week ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Snapshot 8 - Chunk loading improvements (8.8x faster)
2 years ago

Chunk mesh preparation is now 8.8x faster than in the previous snapshot. This translates to all chunks in a 10 render distance loading in in roughly 20 seconds instead of over 2 and a half minutes.

Changes

  • Pretty much only changed chunk mesh preparation code

Known issues

  • This release doesn't introduce any new bugs to my knowledge

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics