Git Product home page Git Product logo

peak's Introduction

Peak is a Minecraft density function library that computes coordinates.

Peak is licensed under the Mozilla Public License version 2.0. A copy of the license is included, and an FAQ regarding the license can be found here.

The current supported versions of Minecraft are 1.19 and 1.19.1, however the pack may still work on older versions.

The x and z coordinates provided are inexact, and may change for a given seed based on implementation details, so implementations are given different names. A given version of Peak is guaranteed to be compatible with any other version based on the same Minecraft version, meaning that all density functions and noises in all stable implementations will work, and give the same result, when multiple versions of Peak are loaded. The purpose of this is to make embedding Peak in a data pack safer, and to make it easier to build new implementations from other ones, while also maintaining performance. Stable implementations reside in peak:s/, while unstable ones should be in peak:exp/.

The density functions that compute the coordinates can be accessed at peak:s/<impl>/x, peak:s/<impl>/y, and peak:s/<impl>/z. With the simple (and currently only) implementation base, it would look like peak:s/base/x.

Embedding Peak into a data pack is suggested for ease of distribution, and because loading multiple data packs containing different versions of Peak should not cause any issues. The peak namespace folder in data contains an additional copy of the license, so the entire folder can just be copied into a data pack.

peak's People

Stargazers

radiish avatar  avatar Klinbee avatar Coosanta avatar kohara avatar Apollo avatar Dawn avatar

Watchers

kohara avatar Syphia avatar

peak's Issues

Worldgen very slow?

Normally I wouldn't make an issue post on something like this (but I couldn't find any other way to contact you). I tried out using this data pack library and noticed that the worldgen was VERY slow using it (a few minutes to load the world, even with sodium, lithium, and other performance mods).

I was wondering if this was due to my implementation of it, or if it is normal for it to be very slow to use (as it does seem rather complex). Also, I was doing this on version 1.20.2 even though this was made for 1.19.

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.