Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
f9ad052b23 | |||
0655c20564 | |||
6b42cc8213 | |||
dc71b951c4 |
39
.gitignore
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#--------------------------------------------------------
|
||||||
|
# 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
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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
|
22
CONTRIBUTING.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# 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
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# [Coloured stone bricks](https://davison.io/minetest/colouredstonebricks) :video_game: [](https://travis-ci.org/davisonio/colouredstonebricks) [](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)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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://github.com/davisonio) [](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
@ -1,13 +0,0 @@
|
|||||||
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
|
|
4
depends.txt
Executable file → Normal file
@ -1,2 +1,4 @@
|
|||||||
default
|
default
|
||||||
dye
|
dye
|
||||||
|
stairs?
|
||||||
|
moreblocks?
|
||||||
|
132
init.lua
Executable file → Normal file
@ -1,78 +1,54 @@
|
|||||||
---------------------------------------------
|
local colours = {
|
||||||
-- Coloured Stone Bricks Mod by CraigyDavi --
|
{"black", "Black"},
|
||||||
---------------------------------------------
|
{"cyan", "Cyan"},
|
||||||
|
{"brown", "Brown"},
|
||||||
local COLOURS = {
|
{"dark_blue", "Dark Blue"},
|
||||||
"Black",
|
{"dark_green", "Dark Green"},
|
||||||
"Cyan",
|
{"dark_grey", "Dark Grey"},
|
||||||
"Brown",
|
{"dark_pink", "Dark Pink"},
|
||||||
"Dark Blue",
|
{"green", "Green"},
|
||||||
"Dark Green",
|
{"grey", "Grey"},
|
||||||
"Dark Grey",
|
{"orange", "Orange"},
|
||||||
"Dark Pink",
|
{"pink", "Pink"},
|
||||||
"Green",
|
{"purple", "Purple"},
|
||||||
"Grey",
|
{"red", "Red"},
|
||||||
"Orange",
|
{"white", "White"},
|
||||||
"Pink",
|
{"yellow", "Yellow"}
|
||||||
"Purple",
|
}
|
||||||
"Red",
|
|
||||||
"White",
|
for _, row in ipairs(colours) do
|
||||||
"Yellow"
|
|
||||||
}
|
local name = row[1]
|
||||||
|
local description = row[2]
|
||||||
local COLOURS2 = {
|
|
||||||
"black",
|
minetest.register_node("colouredstonebricks:"..name, {
|
||||||
"cyan",
|
description = description.." Stone Brick",
|
||||||
"brown",
|
tiles = {"colouredstonebricks_"..name..".png"},
|
||||||
"dark_blue",
|
groups = {cracky=3},
|
||||||
"dark_green",
|
sounds = default.node_sound_stone_defaults(),
|
||||||
"dark_grey",
|
})
|
||||||
"dark_pink",
|
|
||||||
"green",
|
minetest.register_craft({
|
||||||
"grey",
|
type = "shapeless",
|
||||||
"orange",
|
output = 'colouredstonebricks:'..name,
|
||||||
"pink",
|
recipe = {
|
||||||
"purple",
|
'dye:'..name, 'default:stonebrick',
|
||||||
"red",
|
}
|
||||||
"white",
|
})
|
||||||
"yellow"
|
|
||||||
}
|
-- Support for stairsplus mod
|
||||||
|
if minetest.get_modpath("moreblocks") then
|
||||||
for number = 1, 15 do
|
stairsplus:register_all("colouredstonebricks", name, "colouredstonebricks:"..name, {
|
||||||
|
description = description.." Stone Brick",
|
||||||
local colour = COLOURS[number]
|
tiles = {"colouredstonebricks_"..name..".png"},
|
||||||
local colour2 = COLOURS2[number]
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
minetest.register_node("colouredstonebricks:"..colour2, {
|
sunlight_propagates = true,
|
||||||
description = colour.." Stone Brick",
|
})
|
||||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
end
|
||||||
groups = {cracky=3},
|
end
|
||||||
sounds = default.node_sound_stone_defaults(),
|
|
||||||
})
|
-- We don't have blue, violet or magenta coloured stone bricks (yet)
|
||||||
|
--minetest.register_alias("dye:dark_blue","dye:blue")
|
||||||
minetest.register_craft({
|
--minetest.register_alias("dye:dark_pink","dye:magenta")
|
||||||
type = "shapeless",
|
--minetest.register_alias("dye:purple","dye:violet")
|
||||||
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
Before Width: | Height: | Size: 169 KiB |
BIN
textures/colouredstonebricks_black.png
Executable file → Normal file
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 310 B |
BIN
textures/colouredstonebricks_brown.png
Executable file → Normal file
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 391 B |
BIN
textures/colouredstonebricks_cyan.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 440 B |
BIN
textures/colouredstonebricks_dark_blue.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 440 B |
BIN
textures/colouredstonebricks_dark_green.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 438 B |
BIN
textures/colouredstonebricks_dark_grey.png
Executable file → Normal file
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 383 B |
BIN
textures/colouredstonebricks_dark_pink.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 440 B |
BIN
textures/colouredstonebricks_green.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 448 B |
BIN
textures/colouredstonebricks_grey.png
Executable file → Normal file
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 377 B |
BIN
textures/colouredstonebricks_orange.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 450 B |
BIN
textures/colouredstonebricks_pink.png
Executable file → Normal file
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 428 B |
BIN
textures/colouredstonebricks_purple.png
Executable file → Normal file
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 444 B |
BIN
textures/colouredstonebricks_red.png
Executable file → Normal file
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 440 B |
BIN
textures/colouredstonebricks_white.png
Executable file → Normal file
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 361 B |
BIN
textures/colouredstonebricks_yellow.png
Executable file → Normal file
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 437 B |