Coder Social home page Coder Social logo

minecraft-freebsd's Introduction

Minecraft 1.20.2 on FreeBSD: Getting Started

This repository uses LWJG from #431.

Thanks to their work!

with the build versions of er2off used here

You will now be able to run Minecraft 1.20.2 on FreeBSD.

And Minecraft will be able to recognize multiple cpu cores!(for me, only 1.20.2 now, you maybe want Check the link above)

Setting up Prism Launcher

We will mostly be following the OpenBSD build instructions at https://prismlauncher.org/wiki/development/build-instructions/#openbsd.

  1. Install Dependencies: sudo pkg install qt5 qt6 cmake kf5-cmake-extra-modules openjdk8 openjdk17 lwjgl glfw git
  2. Clone the repo: git clone --recursive https://github.com/PrismLauncher/PrismLauncher.git and cd PrismLauncher
  3. Configure environment: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/local" -DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake -DENABLE_LTO=ON
  4. Actually build Prism Launcher: cd build and sudo make -j$(nproc) install

Building LWJGL3 and configuring script

For FreeBSD 13.2+ or other version:

Before we get started, you might want to check this.


  1. Download lwjgl3.tar.gz and extract it somewhere.

  2. Go to the folder you extracted, make install clean

  3. If the build succeeds, you should be able to find the built files in the following path:

    /usr/local/lib/lwjgl3

    /usr/local/share/java/classes/lwjgl3

    This should be correct for FreeBSD 13.2, But if not, open minecraft-runtime in a text editor, modify it:

    LWJGL_JLP_OVRD

    LWJGL_OVRD

    LWJGL_OGL_OVRD

    LWJGL_OAL_OVRD

    LWJGL_GLFW_OVRD

    LWJGL_STB_OVRD

    LWJGL_JEM_OVRD


Configuring Prism

  1. Go to Settings (either Global or Instance), then go in the Java section.
  2. Set Java Runtime/Tick and set Java Installation to the location of the minecraft-runtime script.
  3. Click Test, if you did everything correctly, it should say that the Test succeeded.

Sources

minecraft-freebsd's People

Contributors

duckyondiscord avatar mtfbella109 avatar oblivcheck avatar pog5 avatar

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.