Initial commit

master
Hugo Locurcio 2017-10-15 18:53:28 +02:00
commit 2c0a5d0f02
8 changed files with 161 additions and 0 deletions

14
CHANGELOG.md Normal file
View File

@ -0,0 +1,14 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [1.0.0] - 2017-10-15
- Initial versioned release.
[Unreleased]: https://github.com/Calinou/bedrock/compare/v1.0.0...HEAD

10
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,10 @@
# Contributing to Bedrock
Thank you for your interest in Bedrock! Before contributing,
be sure to know about these few guidelines:
- Contributions have to be licensed under the zlib license (or compatible)
for code, and CC BY-SA 3.0 (or compatible) for assets.
- Make sure to update the changelog, keeping the
[changelog format](http://keepachangelog.com/en/1.0.0/) we use.
- Don't bump the version yourself. Maintainers will do this when necessary.

13
LICENSE.md Normal file
View File

@ -0,0 +1,13 @@
# zlib license
Copyright (c) 2013-2017 Hugo Locurcio and contributors
**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

73
README.md Normal file
View File

@ -0,0 +1,73 @@
# Bedrock
Bedrock for [Minetest](https://www.minetest.net/), a free and open source infinite
world block sandbox game.
[**Forum topic**](https://forum.minetest.net/viewtopic.php?f=11&t=9231)
## Installation
### Download the mod
To install Bedrock, clone this Git repository into your Minetest's `mods/`
directory:
```
git clone https://github.com/Calinou/bedrock.git
```
You can also
[download a ZIP archive](https://github.com/Calinou/bedrock/archive/master.zip)
of Bedrock. If you do so, you will need to extract the archive, then rename
the resulting folder from `bedrock-master` to `bedrock` this is
**absolutely** necessary to do, else, it won't work!
### Enable the mod
Once you have installed Bedrock, you need to enable it in Minetest.
The procedure is as follows:
#### Using the client's main menu
This is the easiest way to enable Bedrock when playing in singleplayer
(or on a server hosted from a client).
1. Start Minetest and switch to the **Local Game** tab.
2. Select the world you want to enable Bedrock in.
3. Click **Configure**, then enable `bedrock` by double-clicking it
(or ticking the **Enabled** checkbox).
4. Save the changes, then start a game on the world you enabled Bedrock on.
5. Bedrock should now be running on your world.
#### Using a text editor
This is the recommended way to enable the mod on a server without using a GUI.
1. Make sure Minetest is not currently running (else, it will overwrite
the changes when exiting).
2. Open the world's `world.mt` file using a text editor.
3. Add the following line at the end of the file:
```
load_mod_bedrock = true
```
If the line is already present in the file, then replace `false` with `true` on that line.
4. Save the file, then start a game on the world you enabled Bedrock on.
5. Bedrock should now be running on your world.
## Version compatibility
Bedrock is currently primarily tested with Minetest 0.4.16.
It may or may not work with newer or older versions. Issues arising in older
versions than 0.4.16 will generally not be fixed.
## License
Copyright © 2011-2017 Hugo Locurcio and contributors
- Bedrock code is licensed under the zlib license, see
[`LICENSE.md`](LICENSE.md) for details.
- Unless otherwise specified, Bedrock textures are licensed under
[CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/).

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

50
init.lua Normal file
View File

@ -0,0 +1,50 @@
--[[
=====================================================================
Minetest mod: Bedrock
Copyright (c) 2013-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]
minetest.register_ore({
ore_type = "scatter",
ore = "bedrock:bedrock",
wherein = "default:stone",
clust_scarcity = 1 * 1 * 1,
clust_num_ores = 5,
clust_size = 2,
height_min = -30912, -- Engine changes can modify this value
height_max = -30656, -- This ensures the bottom of the world is not even loaded
})
minetest.register_ore({
ore_type = "scatter",
ore = "bedrock:deepstone",
wherein = "default:stone",
clust_scarcity = 1 * 1 * 1,
clust_num_ores = 5,
clust_size = 2,
height_min = -30656,
height_max = -30000,
})
minetest.register_node("bedrock:bedrock", {
description = "Bedrock",
tile_images = {"bedrock_bedrock.png"},
drop = "",
groups = {unbreakable = 1, not_in_creative_inventory = 1}, -- For Map Tools' admin pickaxe
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("bedrock:deepstone", {
description = "Deepstone",
tile_images = {"bedrock_deepstone.png"},
drop = "default:stone", -- Intended
groups = {cracky = 1},
sounds = default.node_sound_stone_defaults(),
})
if minetest.setting_getbool("log_mods") then
minetest.log("action", "[bedrock] loaded.")
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B