Git Product home page Git Product logo

minetest-k-colorblocks's Introduction

K Color Blocks

What this does

This mod add stainable blocks for creative mode.

If you want to relax and play with pseudo Legos for a while or want your kids to leave you alone for a few hours.

I made this mod because my kids requested it. Built in dyes didn't quite cover the range that the minetest engine can deliver. And unifieddyes exists, and while pretty nice, has a different problem where the the palette index 0 would stain everything slightly pink. The implementation felt a little clunky to me and so I came my with my even clunkier one.

Currently supports only one palette with 15 grey values and 240 color values split into 12 hues. Each hue has 10 full saturation with scaled luminance and the remaining ten are lower saturation. It's not a palette that evenly splits all RGB colours into 256 but rather colours that are subjectively fun to paint with.

Open an issue if you have suggestions or find a bug.

Features and Usage

Requires creative mode to be able to access the Colouring Wand and blocks.

  • Colors are numerically coded to easily find which one you last used instead of eyeballing it.
  • Conveniently shows active colour of pointed thing if any. Also shows actively selected colour and aux colour if any.
  • Double click to pick a colour instead of clicking OK each time on the form for a more relaxed experience.
  • "Continuous firing", behaves like a real paint brush and don't have to click each node separately.
  • Comes with a plain white and a textured quartz block off-white node as a neutral base for staining thing. There is a glowing and non glowing variant of each.
    • Also comes with about 24 tinted plain blocks in glowing and non glowing variant. Theses can be use to further overlay another tint to create even more variety.
    • And on top of that, translucent variants and connected glass blocks. So a lot to play with. If we get ray tracing in this engine, this will look not half bad.
  • Auxiliary colour - You can pick 2 colours to paint with at a time.
    • After selecting second color, click the Aux button to set it.
    • Hold aux1 button while dragging tool across surface to use aux colour.
    • Typical usage for this would have aux be palette index 0 which is white. This can serve as undo feature so you don't have to switch back and forth between the colour you want and 0 if you make mistakes.
  • Setting to automatically register certain nodes as stainable, more or less safely.
    • See k_colorblocks.autoregister_nodes setting. Disabled by default
    • Works in Mineclonia and default game to some extent
      • Concrete blocks, slabs, and powder
      • Terracotta patterns
      • wools and carpets.
      • snow and ice. kind of.
    • iNSaNiTy MODE (new in 1.0.2)
      • Attempts to make everything colourable.
      • EXPERIMENTAL. WILL PROBABLY BREAK SOME THINGS.
      • See k_colorblocks.iNSaNiTy setting. Disabled by default. Overrides k_colorblocks.autoregister_nodes if enabled.
    • Auto registration of nodes (both safe and insanity mode) does not work with nodes which are already using param2 and paramtype2 for different purposes. such as rotation values for beds and stair blocks.
  • Brush radius (new in 1.0.3)
    • Main/Aux colours can have separate brush radius.
    • Brush radius attempts to colour a square in the same flat 2D plane along the punched face of targeted node. Does not wrap around uneven surfaces for now.
      • radius 0 = 1 node dot, radius 1 = 3x3 square, radius 2 = 5x5 square, radius n = (2n+1)x(2n+1) square, up to radius 9 = 19x19 square
  • Pointed Thing Texture Preview (new in 1.0.4)
    • Attempts to show what the target node texture will look like with selected palette. Useful in insanity mode or when using a non white base.

Place stainable blocks in whatever configuration you fancy, right click with the wand to show the color picker, pick a color and click OK or just double-click on the color tile, and paint away.

Stained blocks retain their tint when you dig them again so you can prepare a swatch of colored blocks before hand and then build your imagination without having to tweak color each time.

License

see LICENSE file.

Code is under GPL 3.0 or Later.

The textures for the quartz block were lifted from mineclonia, which is using pixelperfection texture pack, so the media license for those textures is CC-BY-SA-4.0.

All other textures and media created by me, including palette files, are also licensed CC-BY-SA-4.0.

minetest-k-colorblocks's People

Contributors

ketwaroo avatar

Watchers

 avatar  avatar

minetest-k-colorblocks's Issues

Can't delete blocks

I'm running Minetest 5.8.0 on Windows 10. After adding blocks from this mod into my game (Minetest Game), the blocks cannot be deleted. But I can add as many as I want. Please help.

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.