Version MFF.
39
.gitignore
vendored
@ -1,39 +0,0 @@
|
||||
#--------------------------------------------------------
|
||||
# Ignore these files when committing to a git repository.
|
||||
# See https://git-scm.com/docs/gitignore
|
||||
#--------------------------------------------------------
|
||||
|
||||
# Windows
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
Desktop.ini
|
||||
$RECYCLE.BIN/
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
*.lnk
|
||||
|
||||
# OS X
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
Icon
|
||||
._*
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# Linux
|
||||
*~
|
||||
.fuse_hidden*
|
||||
.directory
|
||||
.Trash-*
|
26
.travis.yml
@ -1,26 +0,0 @@
|
||||
before_install:
|
||||
# Unfortunately there's no other way to install a recent luarocks release
|
||||
- cd ../
|
||||
- wget https://keplerproject.github.io/luarocks/releases/luarocks-2.2.2.tar.gz -O luarocks-2.2.2.tar.gz
|
||||
- tar -xvf luarocks-2.2.2.tar.gz
|
||||
- cd luarocks-2.2.2
|
||||
- ./configure
|
||||
- make build
|
||||
- sudo make install
|
||||
- cd ../colouredstonebricks
|
||||
|
||||
install:
|
||||
- sudo luarocks install luacheck
|
||||
|
||||
script:
|
||||
# Run luacheck and always return 0 for warnings
|
||||
- luacheck . || true
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- lua5.2
|
||||
- liblua5.2-dev
|
||||
|
||||
notifications:
|
||||
email: false
|
@ -1,22 +0,0 @@
|
||||
# Contributing
|
||||
|
||||
> **Contributions are welcome!** Here's how you can help. :raised_hands:
|
||||
|
||||
<p align="center">
|
||||
<b><a href="#code">Code</a></b>
|
||||
·
|
||||
<b><a href="#something-else">Something else</a></b>
|
||||
</p>
|
||||
|
||||
## Code
|
||||
|
||||
1. [Fork](https://help.github.com/articles/fork-a-repo/) the repository and [clone](https://help.github.com/articles/cloning-a-repository/) your fork.
|
||||
2. Start editing!
|
||||
3. Commit & [push](https://help.github.com/articles/pushing-to-a-remote/) your changes to a new branch.
|
||||
4. Once you're happy with your changes, [create a pull request](https://help.github.com/articles/creating-a-pull-request/).
|
||||
|
||||
## Something else
|
||||
|
||||
Questions, feedback & ideas are all welcome - just [open an issue](https://github.com/davisonio/colouredstonebricks/issues)! :smile:
|
||||
|
||||
Alternatively you can [contact the authors](https://github.com/davisonio/colouredstonebricks#authors).
|
47
README.md
@ -1,47 +0,0 @@
|
||||
# [Coloured stone bricks](https://davison.io/minetest/colouredstonebricks) :video_game: [![](https://img.shields.io/travis/davisonio/colouredstonebricks.svg?style=flat-square)](https://travis-ci.org/davisonio/colouredstonebricks) [![](https://img.shields.io/gitter/room/davisonio/colouredstonebricks.svg)](https://gitter.im/davisonio/colouredstonebricks)
|
||||
|
||||
> Coloured stone bricks mod for [Minetest](http://www.minetest.net)
|
||||
|
||||
<p align="center">
|
||||
<b><a href="#install">Install</a></b>
|
||||
·
|
||||
<b><a href="#authors">Authors</a></b>
|
||||
·
|
||||
<b><a href="#license--credits">License & Credits</a></b>
|
||||
</p>
|
||||
|
||||
Decorative blocks which would look nice on any building or creation.
|
||||
|
||||
- [Minetest Forum Topic](https://forum.minetest.net/viewtopic.php?id=8784)
|
||||
|
||||
![](https://davison.io/assets/img/minetest-colouredstonebricks-screenshot.png)
|
||||
|
||||
## Install
|
||||
|
||||
###### Requirements
|
||||
|
||||
- [Minetest](http://www.minetest.net) >= 0.4.10
|
||||
- default
|
||||
- dye
|
||||
|
||||
###### Supports
|
||||
|
||||
- stairsplus
|
||||
|
||||
[Download](https://github.com/davisonio/colouredstonebricks/archive/master.zip) & unzip the mod, rename it to "colouredstonebricks" and move it into your `minetest/mods` folder.
|
||||
|
||||
## Authors
|
||||
|
||||
**[Craig Davison](https://davison.io)**
|
||||
|
||||
[![](https://img.shields.io/github/followers/davisonio.svg?style=social&label=Follow%20davisonio)](https://github.com/davisonio) [![](https://img.shields.io/twitter/follow/davisonio.svg?style=social)](https://twitter.com/davisonio)
|
||||
|
||||
With many thanks to the [contributors](https://github.com/davisonio/colouredstonebricks/graphs/contributors). :clap:
|
||||
|
||||
**Contributions are welcome!** Check out the [Contributing Guidelines](https://github.com/davisonio/colouredstonebricks/blob/master/CONTRIBUTING.md). :raised_hands:
|
||||
|
||||
## License & Credits
|
||||
|
||||
Unless otherwise stated:
|
||||
|
||||
- Copyright © 2014+ [Craig Davison](https://davison.io). Released under the [WTFPL](http://www.wtfpl.net/txt/copying/).
|
13
README.txt
Executable file
@ -0,0 +1,13 @@
|
||||
Coloured Stone Bricks
|
||||
=====================
|
||||
This mod adds coloured stone bricks! These are decorative blocks which would look nice on any building or creation.
|
||||
|
||||
Crafting
|
||||
--------
|
||||
You can craft the blocks by placing a stone brick and a coloured dye in the craft grid:
|
||||
|
||||
Depends: default, dye
|
||||
Licence: Code and textures, CC BY-SA 4.0
|
||||
Installation: Unzip the file and rename it to "colouredstonebricks". Then move it to the mod directory.
|
||||
|
||||
More information and discussion: https://forum.minetest.net/viewtopic.php?id=8784
|
3
depends.txt
Normal file → Executable file
@ -1,3 +1,2 @@
|
||||
default
|
||||
dye
|
||||
stairsplus?
|
||||
dye
|
150
init.lua
Normal file → Executable file
@ -1,72 +1,78 @@
|
||||
local COLOURS = {
|
||||
"Black",
|
||||
"Cyan",
|
||||
"Brown",
|
||||
"Dark Blue",
|
||||
"Dark Green",
|
||||
"Dark Grey",
|
||||
"Dark Pink",
|
||||
"Green",
|
||||
"Grey",
|
||||
"Orange",
|
||||
"Pink",
|
||||
"Purple",
|
||||
"Red",
|
||||
"White",
|
||||
"Yellow"
|
||||
}
|
||||
|
||||
local COLOURS2 = {
|
||||
"black",
|
||||
"cyan",
|
||||
"brown",
|
||||
"dark_blue",
|
||||
"dark_green",
|
||||
"dark_grey",
|
||||
"dark_pink",
|
||||
"green",
|
||||
"grey",
|
||||
"orange",
|
||||
"pink",
|
||||
"purple",
|
||||
"red",
|
||||
"white",
|
||||
"yellow"
|
||||
}
|
||||
|
||||
for number = 1, 15 do
|
||||
|
||||
local colour = COLOURS[number]
|
||||
local colour2 = COLOURS2[number]
|
||||
|
||||
minetest.register_node("colouredstonebricks:"..colour2, {
|
||||
description = colour.." Stone Brick",
|
||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'colouredstonebricks:'..colour2,
|
||||
recipe = {
|
||||
'dye:'..colour2, 'default:stonebrick',
|
||||
}
|
||||
})
|
||||
|
||||
-- Support for stairsplus mod
|
||||
|
||||
stairsplus:register_all("colouredstonebricks", colour2, "colouredstonebricks:"..colour2, {
|
||||
description = colour.." Stone Brick",
|
||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_defaults(),
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
minetest.register_alias("dye:dark_blue","dye:blue")
|
||||
minetest.register_alias("dye:dark_pink","dye:magenta")
|
||||
minetest.register_alias("dye:purple","dye:violet")
|
||||
---------------------------------------------
|
||||
-- Coloured Stone Bricks Mod by CraigyDavi --
|
||||
---------------------------------------------
|
||||
|
||||
local COLOURS = {
|
||||
"Black",
|
||||
"Cyan",
|
||||
"Brown",
|
||||
"Dark Blue",
|
||||
"Dark Green",
|
||||
"Dark Grey",
|
||||
"Dark Pink",
|
||||
"Green",
|
||||
"Grey",
|
||||
"Orange",
|
||||
"Pink",
|
||||
"Purple",
|
||||
"Red",
|
||||
"White",
|
||||
"Yellow"
|
||||
}
|
||||
|
||||
local COLOURS2 = {
|
||||
"black",
|
||||
"cyan",
|
||||
"brown",
|
||||
"dark_blue",
|
||||
"dark_green",
|
||||
"dark_grey",
|
||||
"dark_pink",
|
||||
"green",
|
||||
"grey",
|
||||
"orange",
|
||||
"pink",
|
||||
"purple",
|
||||
"red",
|
||||
"white",
|
||||
"yellow"
|
||||
}
|
||||
|
||||
for number = 1, 15 do
|
||||
|
||||
local colour = COLOURS[number]
|
||||
local colour2 = COLOURS2[number]
|
||||
|
||||
minetest.register_node("colouredstonebricks:"..colour2, {
|
||||
description = colour.." Stone Brick",
|
||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'colouredstonebricks:'..colour2,
|
||||
recipe = {
|
||||
'dye:'..colour2, 'default:stonebrick',
|
||||
}
|
||||
})
|
||||
|
||||
-- Stairs
|
||||
|
||||
stairsplus:register_all("colouredstonebricks", colour2, "colouredstonebricks:"..colour2, {
|
||||
description = colour.." Stone Brick",
|
||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sunlight_propagates = true,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
minetest.register_alias("dye:dark_blue","dye:blue")
|
||||
minetest.register_alias("dye:dark_pink","dye:magenta")
|
||||
minetest.register_alias("dye:purple","dye:violet")
|
||||
|
||||
minetest.log ("action", "Coloured Stone Bricks [colouredstonebricks] has loaded!")
|
||||
|
BIN
screenshot.png
Executable file
After Width: | Height: | Size: 169 KiB |
BIN
textures/colouredstonebricks_black.png
Normal file → Executable file
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 193 B |
BIN
textures/colouredstonebricks_brown.png
Normal file → Executable file
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 343 B |
BIN
textures/colouredstonebricks_cyan.png
Normal file → Executable file
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 362 B |
BIN
textures/colouredstonebricks_dark_blue.png
Normal file → Executable file
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 362 B |
BIN
textures/colouredstonebricks_dark_green.png
Normal file → Executable file
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 362 B |
BIN
textures/colouredstonebricks_dark_grey.png
Normal file → Executable file
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 234 B |
BIN
textures/colouredstonebricks_dark_pink.png
Normal file → Executable file
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 362 B |
BIN
textures/colouredstonebricks_green.png
Normal file → Executable file
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 362 B |
BIN
textures/colouredstonebricks_grey.png
Normal file → Executable file
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 234 B |
BIN
textures/colouredstonebricks_orange.png
Normal file → Executable file
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 362 B |
BIN
textures/colouredstonebricks_pink.png
Normal file → Executable file
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 363 B |
BIN
textures/colouredstonebricks_purple.png
Normal file → Executable file
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 363 B |
BIN
textures/colouredstonebricks_red.png
Normal file → Executable file
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 363 B |
BIN
textures/colouredstonebricks_white.png
Normal file → Executable file
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 222 B |
BIN
textures/colouredstonebricks_yellow.png
Normal file → Executable file
Before Width: | Height: | Size: 437 B After Width: | Height: | Size: 362 B |