mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01:00
Minetest Game - The default game for the Minetest engine
https://github.com/minetest/minetest_game.git
b848e35ca5
Combine slabs if identical based on orientations using a simple lookup table if the nodes are identical. Otherwise relies on place_node() to place the node, which properly handles rotation compared to adjacent nodes already, and can orient based on look_dir as well. Initial slabs placed are oriented based on (1) the orientation of the pointed "face" (assumes nodes are cubic, of course), and uses the player look direction to orient the node n/e/w/s if the slab is horizontal or upside-down. If placed against a vertical face, the slab is placed against the face without rotation around the axis perpendicular to that vertical face. This allows upside down placement and vertical placement without screwdriver. If a slab is placed on top of an upside down slab, or below a normally placed slab, the rotation is inverted so that no "floating" slab is created. Largely based on kilbith's #807 PR. Slab combining and place_node() usage by sofar. Since this relies entirely on `on_place` mechanics, this fails to combine slabs into a plain node if the space *above* is occupied. This is unavoidable due to the fact that on_place() happens after the checks required to see if pointed_thing.above is empty or not. |
||
---|---|---|
menu | ||
mods | ||
.gitignore | ||
.luacheckrc | ||
.travis.yml | ||
game_api.txt | ||
game.conf | ||
minetest.conf | ||
minetest.conf.example | ||
README.txt |
Minetest Game [minetest_game] ============================= The main subgame for the Minetest engine ======================================== To use this subgame with the Minetest engine, insert this repository as /games/minetest_game The Minetest engine can be found in: https://github.com/minetest/minetest/ Compatibility -------------- The Minetest Game github master HEAD is generally compatible with the github master HEAD of the Minetest engine. Additionally, when the Minetest engine is tagged to be a certain version (eg. 0.4.10), Minetest Game is tagged with the version too. When stable releases are made, Minetest Game is packaged and made available in http://minetest.net/download and in case the repository has grown too much, it may be reset. In that sense, this is not a "real" git repository. (Package maintainers please note!) License of source code ---------------------- Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com> See README.txt in each mod directory for information about other authors. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. License of media (textures and sounds) -------------------------------------- Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com> See README.txt in each mod directory for information about other authors. Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) http://creativecommons.org/licenses/by-sa/3.0/ License of menu/header.png Copyright (C) 2015 paramat CC BY-SA 3.0