Giter VIP home page Giter VIP logo

luscious's Introduction

luscious

Makes your map luscious.

This mod heavily modifies your base landscape and modifies various nodes like dirt and leaves so that they become colored using node coloring.

The color selection of each node is decided based on the biome data, using heat and humidity. These are mapped on a 16x16 palette where the heat is mapped along the x axis from 0-15 and the humidity along the y axis with the same range. This gives us a total of 256 possible colorizations of each node.

Manual placing of the nodes, and sapling placement is also modified to make trees growing or manual placing of nodes also result in colorized nodes in the landscape.

features

  • Player placed blocks are properly colored.
  • Saplings that grow into trees color correctly.
  • separate palette to color leaves and grass.
  • should not break with texture packs, but you'll lose texture pack specific leaf and grass textures.
  • grass spread places the correct color.
  • jungle dirt is replaced by dirt with grass.
  • jungle grass is also colored.
  • dirt with dry grass is replaced by dirt with grass.
  • dirt with snow is replaced by dirt with grass.
  • dry grass is replaced with grass.

bugs

  • leaf decay is broken due to p2 usage
  • snowy pine trees are no longer generated, only regular pines

palette

The large palette image is generated with:

  convert textures/luscious_grass_palette.png -filter point \
   -resize 256x256 textures/luscious_grass_palette_large.png

Installation

Create a new world, enable this mod. Do not use this mod in an existing world, ever.

How does this work?

The biome data is available in a special thread when mapgen emerges new map blocks. This mod captures the biome heat and humidity values right as mapgen creates them and stores them permanently for later use. This is why you need to have a luscious folder in the world folder. In this folder, we store the heat & humidity param2 values for each node that needs coloring in an X-Z map (Y is discarded as biome data does not use Y and is not 3d noise, it's only 2D).

Once the biome data is known, we can retrieve it to set the correct p2 values when a player places any of the nodes that need coloring, or when a tree grows. This is also why the biome data needs to be stored on disk - otherwise it would be lost. The storage of the biome data is reasonably small - it is stored compressed and uses about 600 bytes or so per x, z chunk, which is small compared to the actual map.sqlite size. The data increases the size of your world by about 12% or so.

luscious's People

Contributors

sofar avatar dacmot avatar nixnoxus 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.