Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Element-0/ElementZero

Run windows version of BDS in linux with Mod support
https://github.com/Element-0/ElementZero

bds bedrock-server-mod minecraft mod-support

Last synced: 2 months ago
JSON representation

Run windows version of BDS in linux with Mod support

Awesome Lists containing this project

README

        



![status](https://img.shields.io/github/workflow/status/Element-0/ElementZero/CI?style=for-the-badge)
![platform](https://img.shields.io/badge/platform-win--x64%20%7C%20wine--linux--x64-green?style=for-the-badge)
![Telegram](https://img.shields.io/badge/telegram-ezloader-%232CA5E0?style=for-the-badge&logo=Telegram)

![Latest Tag](https://img.shields.io/github/v/tag/Element-0/ElementZero?label=LATEST%20TAG&style=for-the-badge)![GitHub Releases (by Asset)](https://img.shields.io/github/downloads/Element-0/ElementZero/latest/total?style=for-the-badge)

Run windows version of BDS in linux with Mod support (Yes, it is also can be run in windows)

## Installation and usage instructions :point_right: [Wiki](https://github.com/Element-0/ElementZero/wiki)

## Features

0. Compatiable with official BDS
1. And support behavior pack with custom item/recipes/scripts (* vanilla server *does* support them, but disabled in code)
2. Can be run in windows and linux (with wine)
3. Native modding support
4. /transferserver is back!

## FAQ

Q: Why not use a native linux version?

A: The windows version has noticeable performance improvements, even when running under wine.

Q: Can the Windows version run directly under wine?

A: No, because Microsoft uses Chakra.dll, which contains a lot of references to private dlls. (It also prevents you from running on systems prior to Windows 10.)

Q: How it works?

A: I created a dll that simply forwards all APIs to the open source version of Chakra engine i.e. ChakraCore. And this version can run directly under wine.

## Build and install (optional)

0. Download bedrock dedicated server binary
1. Generate bedrock_server_mod.lib (see below)
2. Install vcpkg and install dependencies (see below)
3. Build it with Visual Studio 2019 (or use CMake manually see .githubn/workflows/ci.yaml)
4. Copy Dist/* to bds folder (or use [symlink](https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/))
5. Run bedrock_server_mod.exe

## Visual Studio 2019 workloads and components

0. Microsoft.VisualStudio.Workload.NativeDesktop
1. Microsoft.VisualStudio.Workload.ManagedDesktop
2. Microsoft.VisualStudio.Component.VC.Tools.x86.x64
3. Microsoft.VisualStudio.Component.Windows10SDK.18362
4. Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang

## How to use vcpkg

0. Install vcpkg in source tree `cd vcpkg && bootstrap-vcpkg.bat`
1. Install dependencies by `vcpkg\vcpkg.exe install @vcpkg.txt` (run in $(SolutionDir))

## How to get bedrock_server_mod.lib

0. Download and install [EatPdb](https://github.com/CodeHz/EatPdb)
1. Copy $(SolutionDir)\eatpdb.yaml to bds folder
2. Run `eatpdb exec eatpdb.yaml`
3. Open `x64 Native Tools Command Prompt for VS 2019`, then run `lib /def:bedrock_server_mod.def /machine:x64`
4. Copy bedrock_server_mod.lib, addition_symbols.db, bedrock_server_mod.exe to $(SolutionDir)Lib\

## LICENSE

GPLv3