GithubHelp home page GithubHelp logo

minetest_letters's Introduction

Letters: A mod for Minetest!

The majority of this code was taken (and altered significantly) from Calinou's Moreblocks mod. It is designed to add letters in all different materials. Code is licensed under the zlib license, textures under the CC BY-SA license.

The Letter Cutter textures use parts of the default wood and tree textures made by Blockmen and Cisoun respectively.

Allowing letters to be made from nodes:

Use this code to allow blocks to have letters registered from them:

letters.register_letters(modname, subname, from_node, description, tiles, def)
  • Modname is the mod that the node belongs to.
  • Subname is the actual name of the node.
  • From_node is the node that the letters will be crafted from (Usually modname:subname).
  • Description is the description of the node.
  • Tiles defines the image that will be used with the node.
  • Def (optional) may contain additional node definition parameters. Some might be overwritten to make the letters look and work as intended.

For example, if I wanted to register marble, from the mod darkage, this is the code I would use:

letters.register_letters("darkage", "marble", "darkage:marble", "Marble", "darkage_marble.png")

Add letters with unifieddye.

letters.register_letters("darkage",
	"marble",
	"darkage:marble", 
	"Marble", 
	"darkage_marble.png",
	{
		paramtype2 = "colorwallmounted", 
		palette = "unifieddyes_palette_colorwallmounted.png", 
		groups = {
			not_in_creative_inventory = 1,
			not_in_craft_guide = 1, 
			oddly_breakable_by_hand = 1, 
			attached_node = 1, 
			ud_param2_colorable = 1
		}
	}
)

You will need to add letters as a dependency to your mod, or include the registrations is the code:

if minetest.get_modpath("letters") then
	letters.register_letters("darkage", "marble", "darkage:marble", "Marble", "darkage_marble.png")
	--ect ect...
end

Most of the default nodes have already been registered, and I have added/will add mods I like, as an optional dependancy.

This mod is fairly stable, and shouldn't crash, but be warned that it is in its early stages of development, and so things may change considerably

Screenshots! Screenshot Another screenshot!

minetest_letters's People

Contributors

amaz1 avatar buckaroobanzay avatar jat15 avatar pyrollo avatar rdococ avatar taylorskalyo avatar

Watchers

 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.