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
|
default
|
||||||
dye
|
dye
|
||||||
stairsplus?
|
|
150
init.lua
Normal file → Executable file
@ -1,72 +1,78 @@
|
|||||||
local COLOURS = {
|
---------------------------------------------
|
||||||
"Black",
|
-- Coloured Stone Bricks Mod by CraigyDavi --
|
||||||
"Cyan",
|
---------------------------------------------
|
||||||
"Brown",
|
|
||||||
"Dark Blue",
|
local COLOURS = {
|
||||||
"Dark Green",
|
"Black",
|
||||||
"Dark Grey",
|
"Cyan",
|
||||||
"Dark Pink",
|
"Brown",
|
||||||
"Green",
|
"Dark Blue",
|
||||||
"Grey",
|
"Dark Green",
|
||||||
"Orange",
|
"Dark Grey",
|
||||||
"Pink",
|
"Dark Pink",
|
||||||
"Purple",
|
"Green",
|
||||||
"Red",
|
"Grey",
|
||||||
"White",
|
"Orange",
|
||||||
"Yellow"
|
"Pink",
|
||||||
}
|
"Purple",
|
||||||
|
"Red",
|
||||||
local COLOURS2 = {
|
"White",
|
||||||
"black",
|
"Yellow"
|
||||||
"cyan",
|
}
|
||||||
"brown",
|
|
||||||
"dark_blue",
|
local COLOURS2 = {
|
||||||
"dark_green",
|
"black",
|
||||||
"dark_grey",
|
"cyan",
|
||||||
"dark_pink",
|
"brown",
|
||||||
"green",
|
"dark_blue",
|
||||||
"grey",
|
"dark_green",
|
||||||
"orange",
|
"dark_grey",
|
||||||
"pink",
|
"dark_pink",
|
||||||
"purple",
|
"green",
|
||||||
"red",
|
"grey",
|
||||||
"white",
|
"orange",
|
||||||
"yellow"
|
"pink",
|
||||||
}
|
"purple",
|
||||||
|
"red",
|
||||||
for number = 1, 15 do
|
"white",
|
||||||
|
"yellow"
|
||||||
local colour = COLOURS[number]
|
}
|
||||||
local colour2 = COLOURS2[number]
|
|
||||||
|
for number = 1, 15 do
|
||||||
minetest.register_node("colouredstonebricks:"..colour2, {
|
|
||||||
description = colour.." Stone Brick",
|
local colour = COLOURS[number]
|
||||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
local colour2 = COLOURS2[number]
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_defaults(),
|
minetest.register_node("colouredstonebricks:"..colour2, {
|
||||||
})
|
description = colour.." Stone Brick",
|
||||||
|
tiles = {"colouredstonebricks_"..colour2..".png"},
|
||||||
minetest.register_craft({
|
groups = {cracky=3},
|
||||||
type = "shapeless",
|
sounds = default.node_sound_stone_defaults(),
|
||||||
output = 'colouredstonebricks:'..colour2,
|
})
|
||||||
recipe = {
|
|
||||||
'dye:'..colour2, 'default:stonebrick',
|
minetest.register_craft({
|
||||||
}
|
type = "shapeless",
|
||||||
})
|
output = 'colouredstonebricks:'..colour2,
|
||||||
|
recipe = {
|
||||||
-- Support for stairsplus mod
|
'dye:'..colour2, 'default:stonebrick',
|
||||||
|
}
|
||||||
stairsplus:register_all("colouredstonebricks", colour2, "colouredstonebricks:"..colour2, {
|
})
|
||||||
description = colour.." Stone Brick",
|
|
||||||
tiles = {"colouredstonebricks_"..colour2..".png"},
|
-- Stairs
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_defaults(),
|
stairsplus:register_all("colouredstonebricks", colour2, "colouredstonebricks:"..colour2, {
|
||||||
sunlight_propagates = true,
|
description = colour.." Stone Brick",
|
||||||
})
|
tiles = {"colouredstonebricks_"..colour2..".png"},
|
||||||
end
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
sunlight_propagates = true,
|
||||||
|
})
|
||||||
minetest.register_alias("dye:dark_blue","dye:blue")
|
end
|
||||||
minetest.register_alias("dye:dark_pink","dye:magenta")
|
|
||||||
minetest.register_alias("dye:purple","dye:violet")
|
|
||||||
|
|
||||||
|
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 |