Compare commits
	
		
			141 Commits
		
	
	
		
			v1.1.0
			...
			46d347c00a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 46d347c00a | |||
| 2f211a6545 | |||
| 
						 | 
					1f1959ba54 | ||
| 07b6dd8bfe | |||
| 
						 | 
					3b97ea5697 | ||
| 4f3c1bb39d | |||
| cbfc442206 | |||
| 4692e88b63 | |||
| 
						 | 
					bcd1a5688b | ||
| 
						 | 
					1a03b041dd | ||
| ea335a3745 | |||
| 
						 | 
					b39bb31295 | ||
| d4c94f449a | |||
| 
						 | 
					ddf8b39f5a | ||
| 1323e2e993 | |||
| 
						 | 
					ff7e85094f | ||
| 
						 | 
					0c2c3ad4ef | ||
| cc228754a4 | |||
| 
						 | 
					8a14250127 | ||
| 04a6e0e696 | |||
| 
						 | 
					cf0f875709 | ||
| 
						 | 
					c3b45149b0 | ||
| 
						 | 
					ab91ad967a | ||
| 
						 | 
					5aacb05b14 | ||
| 
						 | 
					87e27d9f20 | ||
| eb7041d784 | |||
| 
						 | 
					26ca7af997 | ||
| b93949c266 | |||
| 
						 | 
					3cfff98fc9 | ||
| 
						 | 
					b67028a417 | ||
| 04810e1f83 | |||
| 
						 | 
					c081caf494 | ||
| e91b0ea1a0 | |||
| 72ef8deeae | |||
| 
						 | 
					f8314c322e | ||
| 
						 | 
					8e6f339313 | ||
| 
						 | 
					6f9b787f3e | ||
| 710b90972b | |||
| aa3dcd5878 | |||
| 
						 | 
					bbfd782300 | ||
| 
						 | 
					6595ebc78d | ||
| 
						 | 
					917a46014f | ||
| 94247a6449 | |||
| 
						 | 
					325999f848 | ||
| 
						 | 
					5cab63c675 | ||
| 
						 | 
					8019f9f309 | ||
| 
						 | 
					873019176b | ||
| 
						 | 
					b934d8ad4d | ||
| 
						 | 
					719494b6c4 | ||
| 
						 | 
					8b10e0721e | ||
| 
						 | 
					b2f1163dad | ||
| 
						 | 
					f421c67372 | ||
| e7547d57ba | |||
| 
						 | 
					72a6ee6032 | ||
| c13321142b | |||
| 
						 | 
					f7ff9644c9 | ||
| 
						 | 
					e09d2fab01 | ||
| 
						 | 
					c30366d2dc | ||
| 
						 | 
					b3d0f0d179 | ||
| 
						 | 
					835aa95f35 | ||
| 
						 | 
					e8293c4994 | ||
| 
						 | 
					d96f110821 | ||
| 
						 | 
					1d054ec431 | ||
| 
						 | 
					0fea5ee25a | ||
| 
						 | 
					2b047f19fd | ||
| 
						 | 
					e6740678f6 | ||
| 
						 | 
					fa43215cd6 | ||
| 
						 | 
					2057441dc2 | ||
| 
						 | 
					8e8078e74b | ||
| 
						 | 
					83f419101c | ||
| 
						 | 
					e2e2af94cc | ||
| 
						 | 
					e9fbdec948 | ||
| 
						 | 
					cf9f7995a0 | ||
| 
						 | 
					8d048f1b14 | ||
| 
						 | 
					d23dc27acf | ||
| 
						 | 
					c7f80ce960 | ||
| 
						 | 
					4605ed7848 | ||
| 
						 | 
					774c4043aa | ||
| 
						 | 
					1aa93322c6 | ||
| 
						 | 
					936306803b | ||
| 
						 | 
					e622c692e1 | ||
| 
						 | 
					7dd3e1f0db | ||
| 
						 | 
					76a00a5365 | ||
| 
						 | 
					e43e4a1911 | ||
| 
						 | 
					555c8ad9d0 | ||
| 
						 | 
					eacee7831a | ||
| 
						 | 
					0e885283c0 | ||
| 
						 | 
					a0ca02f5f4 | ||
| 
						 | 
					b0cb1d325a | ||
| 
						 | 
					b6f6bc8c71 | ||
| 
						 | 
					9ccf94243e | ||
| 
						 | 
					a7b513f181 | ||
| 
						 | 
					2062702295 | ||
| 
						 | 
					95155a3bc6 | ||
| 
						 | 
					1649f91156 | ||
| 
						 | 
					daec458fc6 | ||
| 
						 | 
					df4a2ace0b | ||
| 
						 | 
					9d953ccebf | ||
| 
						 | 
					26f59baba0 | ||
| 
						 | 
					0ace9fe493 | ||
| 
						 | 
					ca45478761 | ||
| 
						 | 
					1482a7810f | ||
| 
						 | 
					01ec8290f6 | ||
| 
						 | 
					723db44933 | ||
| 
						 | 
					5fc5fce74e | ||
| 
						 | 
					846214993f | ||
| 
						 | 
					10dd84a7f1 | ||
| 
						 | 
					8ff1cb598f | ||
| 
						 | 
					7d701da5b9 | ||
| 
						 | 
					d5edcb2a10 | ||
| 
						 | 
					c711946453 | ||
| 
						 | 
					4d2a7ab6fe | ||
| 
						 | 
					832b8f8817 | ||
| 
						 | 
					f6e0db21b2 | ||
| 
						 | 
					413054fd2f | ||
| 
						 | 
					652d431664 | ||
| 
						 | 
					cc7e1271be | ||
| 
						 | 
					e6b5336bad | ||
| 
						 | 
					3f7edb39a1 | ||
| 
						 | 
					64eade096e | ||
| 
						 | 
					2b76b077f0 | ||
| 
						 | 
					d91da8b442 | ||
| 
						 | 
					6f1ee946a0 | ||
| 
						 | 
					9eb4926d8d | ||
| 
						 | 
					281268e7bc | ||
| 
						 | 
					350a5f49e7 | ||
| 
						 | 
					0e2c30ec72 | ||
| 
						 | 
					b7217dd1f7 | ||
| 
						 | 
					a8a06d8deb | ||
| 
						 | 
					4f9b05be4e | ||
| 
						 | 
					da652c16cd | ||
| 
						 | 
					1b78097ab7 | ||
| 
						 | 
					dbba372137 | ||
| 
						 | 
					4c767ad7ff | ||
| 
						 | 
					780df105ea | ||
| 
						 | 
					8f6176f68c | ||
| 
						 | 
					6a996eb86a | ||
| 
						 | 
					80d35c8215 | ||
| 
						 | 
					65e3afdd8b | ||
| 
						 | 
					1fa4669ae8 | ||
| 
						 | 
					f2ede87a5a | 
							
								
								
									
										13
									
								
								.editorconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,13 @@
 | 
			
		||||
root = true
 | 
			
		||||
 | 
			
		||||
[*]
 | 
			
		||||
charset = utf-8
 | 
			
		||||
end_of_line = lf
 | 
			
		||||
indent_style = space
 | 
			
		||||
indent_size = 2
 | 
			
		||||
insert_final_newline = true
 | 
			
		||||
trim_trailing_whitespace = true
 | 
			
		||||
 | 
			
		||||
[*.{lua,luacheckrc}]
 | 
			
		||||
indent_style = tab
 | 
			
		||||
indent_size = 4
 | 
			
		||||
							
								
								
									
										24
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,24 @@
 | 
			
		||||
name: build
 | 
			
		||||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@master
 | 
			
		||||
      - uses: actions/setup-python@master
 | 
			
		||||
 | 
			
		||||
      - run: |
 | 
			
		||||
         sudo apt-get update -qq
 | 
			
		||||
         sudo apt-get install -qqq luarocks
 | 
			
		||||
      - name: Install pre-commit
 | 
			
		||||
        run: pip3 install pre-commit
 | 
			
		||||
 | 
			
		||||
      - name: Install LuaCheck
 | 
			
		||||
        run: luarocks install --local luacheck
 | 
			
		||||
 | 
			
		||||
      - name: Run LuaCheck using pre-commit
 | 
			
		||||
        run: |
 | 
			
		||||
         pre-commit run --all-files
 | 
			
		||||
         $HOME/.luarocks/bin/luacheck .
 | 
			
		||||
							
								
								
									
										39
									
								
								.luacheckrc
									
									
									
									
									
								
							
							
						
						@@ -1,14 +1,35 @@
 | 
			
		||||
std = "lua51+minetest"
 | 
			
		||||
unused_args = false
 | 
			
		||||
allow_defined_top = true
 | 
			
		||||
max_line_length = 999
 | 
			
		||||
 | 
			
		||||
read_globals = {
 | 
			
		||||
	"DIR_DELIM",
 | 
			
		||||
	"minetest", "core",
 | 
			
		||||
	"dump",
 | 
			
		||||
	"vector", "nodeupdate",
 | 
			
		||||
	"VoxelManip", "VoxelArea",
 | 
			
		||||
	"PseudoRandom", "ItemStack",
 | 
			
		||||
	"intllib",
 | 
			
		||||
	"default",
 | 
			
		||||
stds.minetest = {
 | 
			
		||||
	read_globals = {
 | 
			
		||||
		"DIR_DELIM",
 | 
			
		||||
		"minetest",
 | 
			
		||||
		"core",
 | 
			
		||||
		"dump",
 | 
			
		||||
		"vector",
 | 
			
		||||
		"nodeupdate",
 | 
			
		||||
		"VoxelManip",
 | 
			
		||||
		"VoxelArea",
 | 
			
		||||
		"PseudoRandom",
 | 
			
		||||
		"ItemStack",
 | 
			
		||||
		"default",
 | 
			
		||||
		table = {
 | 
			
		||||
			fields = {
 | 
			
		||||
				"copy",
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
read_globals = {
 | 
			
		||||
	"intllib",
 | 
			
		||||
	"protector",
 | 
			
		||||
	"isprotect",
 | 
			
		||||
	"IsPlayerNodeOwner",
 | 
			
		||||
	"HasOwner",
 | 
			
		||||
	"getLastOwner",
 | 
			
		||||
	"GetNodeOwnerName",
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								.pre-commit-config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,10 @@
 | 
			
		||||
repos:
 | 
			
		||||
  - repo: https://github.com/pre-commit/pre-commit-hooks
 | 
			
		||||
    rev: v3.3.0
 | 
			
		||||
    hooks:
 | 
			
		||||
      - id: fix-byte-order-marker
 | 
			
		||||
      - id: end-of-file-fixer
 | 
			
		||||
      - id: trailing-whitespace
 | 
			
		||||
 | 
			
		||||
      - id: mixed-line-ending
 | 
			
		||||
        args: [--fix=lf]
 | 
			
		||||
							
								
								
									
										113
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						@@ -7,6 +7,108 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
 | 
			
		||||
 | 
			
		||||
## [Unreleased]
 | 
			
		||||
 | 
			
		||||
## [2.2.0] - 2021-06-28
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
 | 
			
		||||
- Refactored recipe override mechanism to avoid re-coding recipes
 | 
			
		||||
  when we only want to change the amount produced.
 | 
			
		||||
- [Realigned rail recipe to the changes made in Minetest Game.](https://github.com/minetest-mods/moreblocks/pull/169)
 | 
			
		||||
  - All rail recipes (standard, power, break) were boosted by 50%.
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
- [Shapeless crafting recipes are now handled in redefinitions.](https://github.com/minetest-mods/moreblocks/pull/171)
 | 
			
		||||
- [Aliases are now resolved in Stairs+ circular saw cost calculation.](https://github.com/minetest-mods/moreblocks/pull/175)
 | 
			
		||||
- [Fixed strange placement behavior for non-default Stairs+ nodes.](https://github.com/minetest-mods/moreblocks/pull/168)
 | 
			
		||||
- [Fixed stairs placement over oddly-shaped nodes.](https://github.com/minetest-mods/moreblocks/pull/166)
 | 
			
		||||
 | 
			
		||||
## [2.1.0] - 2020-12-14
 | 
			
		||||
 | 
			
		||||
### Added
 | 
			
		||||
 | 
			
		||||
- Clean Glass versions of Trap and (Super) Glowing Glass.
 | 
			
		||||
- Compressed desert cobblestone.
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
 | 
			
		||||
- Revised placing strategy that takes into account which side of the face
 | 
			
		||||
  (top/bottom for horizontal, left/right for vertical placement) is being clicked.
 | 
			
		||||
  Aux (sprint/special, default E) key can be used to place the node with the orientation
 | 
			
		||||
  it would have if placed from the other side.
 | 
			
		||||
  When placing nodes next to nodes of the same gategory (e.g.slab to slab) the other
 | 
			
		||||
  node's orientation is copied, flipping it placing on top or below an upright or
 | 
			
		||||
  upside-down node. In this case the aux key will disable the special processing of
 | 
			
		||||
  same-category nodes.
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
- Revised minetest_game crafting recipe overrides to match Minetest 5.0.0 and later.
 | 
			
		||||
 | 
			
		||||
### Removed
 | 
			
		||||
 | 
			
		||||
- Legacy Stairs+ conversion code.
 | 
			
		||||
  - It was only required to import worlds last edited before Q3 2013.
 | 
			
		||||
 | 
			
		||||
## [2.0.0] - 2019-11-25
 | 
			
		||||
 | 
			
		||||
### Added
 | 
			
		||||
 | 
			
		||||
- Stairs+ nodes for ice.
 | 
			
		||||
- `settingtypes.txt` file to allow configuring settings in the main menu.
 | 
			
		||||
- Polish translation.
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
 | 
			
		||||
- The minimum supported Minetest version is now 5.0.0.
 | 
			
		||||
- Stairs+ nodes now emit one light level less compared to full nodes to make up
 | 
			
		||||
  for their smaller visual size.
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
- Fixed a recipe conflict that made Centered Wooden Tiles impossible to craft.
 | 
			
		||||
 | 
			
		||||
## [1.3.0] - 2019-03-23
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
 | 
			
		||||
- Stairs+ are now displayed in the creative inventory by default.
 | 
			
		||||
- Localization files now use the gettext `.po` format.
 | 
			
		||||
- Updated intllib support to avoid using deprecated functions.
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
- Node rotation now works correctly when placing Stairs+ nodes.
 | 
			
		||||
- Stairs+ glasslike nodes' textures are now easier to see.
 | 
			
		||||
 | 
			
		||||
## [1.2.0] - 2018-11-24
 | 
			
		||||
 | 
			
		||||
### Added
 | 
			
		||||
 | 
			
		||||
- Stairs+ nodes for `basic_materials`'s concrete, cement and brass blocks.
 | 
			
		||||
- Listring add for circular saw.
 | 
			
		||||
- **Stairs+:** New API function
 | 
			
		||||
  `stairsplus:register_custom_subset(subset, modname, subname, recipeitem, fields)`.
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
- The papyrus crafting recipe override is now properly applied over the
 | 
			
		||||
  `default` mod's recipe.
 | 
			
		||||
- Centered wooden tiles are now craftable.
 | 
			
		||||
- Wool Stairs+ nodes can no longer be used in crafting.
 | 
			
		||||
- The circular saw can no longer replace items from the player's inventory
 | 
			
		||||
  when it is full.
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
 | 
			
		||||
- New crafting recipes for:
 | 
			
		||||
  - Stone Tile
 | 
			
		||||
  - Circle Stone Bricks
 | 
			
		||||
- Stairs+:
 | 
			
		||||
  - Moved definitions to `stairsplus.defs` table into a separate file.
 | 
			
		||||
  - Moved recipe definitions to `stairsplus.register_recipes` function
 | 
			
		||||
    into a separate file.
 | 
			
		||||
 | 
			
		||||
## [1.1.0] - 2017-10-04
 | 
			
		||||
 | 
			
		||||
### Added
 | 
			
		||||
@@ -25,11 +127,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
 | 
			
		||||
  - Straw
 | 
			
		||||
  - Tin Block
 | 
			
		||||
  - Wool (all colors)
 | 
			
		||||
- Other mods can now get a list of all the defined Stairs+ shapes
 | 
			
		||||
- Other mods can now get a list of all the defined Stairs+ shapes.
 | 
			
		||||
 | 
			
		||||
## [1.0.0] - 2017-02-19
 | 
			
		||||
## 1.0.0 - 2017-02-19
 | 
			
		||||
 | 
			
		||||
- Initial versioned release.
 | 
			
		||||
 | 
			
		||||
[Unreleased]: https://github.com/minetest-mods/moreblocks/compare/v2.2.0...HEAD
 | 
			
		||||
[2.2.0]: https://github.com/minetest-mods/moreblocks/compare/v2.1.0...v2.2.0
 | 
			
		||||
[2.1.0]: https://github.com/minetest-mods/moreblocks/compare/v2.0.0...v2.1.0
 | 
			
		||||
[2.0.0]: https://github.com/minetest-mods/moreblocks/compare/v1.3.0...v2.0.0
 | 
			
		||||
[1.3.0]: https://github.com/minetest-mods/moreblocks/compare/v1.2.0...v1.3.0
 | 
			
		||||
[1.2.0]: https://github.com/minetest-mods/moreblocks/compare/v1.1.0...v1.2.0
 | 
			
		||||
[1.1.0]: https://github.com/minetest-mods/moreblocks/compare/v1.0.0...v1.1.0
 | 
			
		||||
[Unreleased]: https://github.com/minetest-mods/moreblocks/compare/v1.0.0...HEAD
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# zlib license
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors
 | 
			
		||||
Copyright © 2011-2020 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.**
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										21
									
								
								README.md
									
									
									
									
									
								
							
							
						
						@@ -1,4 +1,4 @@
 | 
			
		||||
# More Blocks
 | 
			
		||||
# More Blocks [](https://github.com/minetest-mods/moreblocks/actions)
 | 
			
		||||
 | 
			
		||||
More Blocks for [Minetest](https://www.minetest.net/), a free and open source infinite
 | 
			
		||||
world block sandbox game.
 | 
			
		||||
@@ -12,15 +12,13 @@ world block sandbox game.
 | 
			
		||||
To install More Blocks, clone this Git repository into your Minetest's `mods/`
 | 
			
		||||
directory:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
```bash
 | 
			
		||||
git clone https://github.com/minetest-mods/moreblocks.git
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
You can also
 | 
			
		||||
[download a ZIP archive](https://github.com/minetest-mods/moreblocks/archive/master.zip)
 | 
			
		||||
of More Blocks. If you do so, you will need to extract the archive, then rename
 | 
			
		||||
the resulting folder from `moreblocks-master` to `moreblocks` – this is
 | 
			
		||||
**absolutely** necessary to do, else, it won't work!
 | 
			
		||||
of More Blocks.
 | 
			
		||||
 | 
			
		||||
### Enable the mod
 | 
			
		||||
 | 
			
		||||
@@ -43,29 +41,30 @@ This is the easiest way to enable More Blocks when playing in singleplayer
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
1. Make sure Minetest is not currently running (otherwise, 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:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
```text
 | 
			
		||||
load_mod_moreblocks = true
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
If the line is already present in the file, then replace `false` with `true` on that line.
 | 
			
		||||
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 More Blocks on.
 | 
			
		||||
5. More Blocks should now be running on your world.
 | 
			
		||||
 | 
			
		||||
## Version compatibility
 | 
			
		||||
 | 
			
		||||
More Blocks is currently primarily tested with Minetest 0.4.16.
 | 
			
		||||
More Blocks is currently primarily tested with Minetest 5.3.0.
 | 
			
		||||
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.
 | 
			
		||||
versions than 5.0.0 will generally not be fixed.
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
Copyright © 2011-2017 Hugo Locurcio and contributors
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
 | 
			
		||||
- More Blocks code is licensed under the zlib license, see
 | 
			
		||||
  [`LICENSE.md`](LICENSE.md) for details.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										32
									
								
								aliases.lua
									
									
									
									
									
								
							
							
						
						@@ -1,7 +1,7 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: alias definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
@@ -19,6 +19,7 @@ minetest.register_alias("moreblocks:stone_bricks", "default:stonebrick")
 | 
			
		||||
minetest.register_alias("moreblocks:stonebrick", "default:stonebrick")
 | 
			
		||||
minetest.register_alias("moreblocks:junglewood", "default:junglewood")
 | 
			
		||||
minetest.register_alias("moreblocks:jungle_wood", "default:junglewood")
 | 
			
		||||
minetest.register_alias("moreblocks:fence_junglewood", "default:fence_junglewood")
 | 
			
		||||
minetest.register_alias("moreblocks:fence_jungle_wood", "default:fence_junglewood")
 | 
			
		||||
minetest.register_alias("moreblocks:jungle_stick", "default:stick")
 | 
			
		||||
 | 
			
		||||
@@ -31,13 +32,13 @@ minetest.register_alias("moreblocks:horizontaljungletree", "moreblocks:horizonta
 | 
			
		||||
minetest.register_alias("moreblocks:stonesquare", "moreblocks:stone_tile")
 | 
			
		||||
minetest.register_alias("moreblocks:circlestonebrick", "moreblocks:circle_stone_bricks")
 | 
			
		||||
minetest.register_alias("moreblocks:ironstonebrick", "moreblocks:iron_stone_bricks")
 | 
			
		||||
minetest.register_alias("moreblocks:fence_junglewood", "moreblocks:fence_jungle_wood")
 | 
			
		||||
minetest.register_alias("moreblocks:coalstone", "moreblocks:coal_stone")
 | 
			
		||||
minetest.register_alias("moreblocks:ironstone", "moreblocks:iron_stone")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile", "moreblocks:wood_tile")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_full", "moreblocks:wood_tile_full")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_centered", "moreblocks:wood_tile_centered")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_up", "moreblocks:wood_tile_up")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_up", "moreblocks:wood_tile_offset")
 | 
			
		||||
minetest.register_alias("moreblocks:wood_tile_up", "moreblocks:wood_tile_offset")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_down", "moreblocks:wood_tile_down")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_left", "moreblocks:wood_tile_left")
 | 
			
		||||
minetest.register_alias("moreblocks:woodtile_right", "moreblocks:wood_tile_right")
 | 
			
		||||
@@ -56,6 +57,8 @@ minetest.register_alias("moreblocks:emptybookshelf", "moreblocks:empty_bookshelf
 | 
			
		||||
minetest.register_alias("moreblocks:junglestick", "moreblocks:jungle_stick")
 | 
			
		||||
minetest.register_alias("moreblocks:splitstonesquare","moreblocks:split_stone_tile")
 | 
			
		||||
minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree")
 | 
			
		||||
minetest.register_alias("moreblocks:empty_bookshelf","moreblocks:empty_shelf")
 | 
			
		||||
minetest.register_alias("moreblocks:split_stone_tile_alt","moreblocks:checker_stone_tile")
 | 
			
		||||
 | 
			
		||||
-- ABM for horizontal trees (fix facedir):
 | 
			
		||||
local horizontal_tree_convert_facedir = {7, 12, 9, 18}
 | 
			
		||||
@@ -77,3 +80,26 @@ minetest.register_abm({
 | 
			
		||||
		})
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = "moreblocks:reduce_wood_tile_redundancy",
 | 
			
		||||
	nodenames = {
 | 
			
		||||
		"moreblocks:wood_tile_left",
 | 
			
		||||
		"moreblocks:wood_tile_down",
 | 
			
		||||
		"moreblocks:wood_tile_right",
 | 
			
		||||
		"moreblocks:wood_tile_flipped",
 | 
			
		||||
	},
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		if node.name:find("left") then
 | 
			
		||||
			minetest.set_node(pos, {name = "moreblocks:wood_tile_offset", param2=1})
 | 
			
		||||
		elseif node.name:find("down") then
 | 
			
		||||
			minetest.set_node(pos, {name = "moreblocks:wood_tile_offset", param2=2})
 | 
			
		||||
		elseif node.name:find("right") then
 | 
			
		||||
			minetest.set_node(pos, {name = "moreblocks:wood_tile_offset", param2=3})
 | 
			
		||||
		else -- wood_tile_flipped
 | 
			
		||||
			minetest.set_node(pos, {name = "moreblocks:wood_tile", param2=1})
 | 
			
		||||
		end
 | 
			
		||||
		minetest.log('action', "LBM replaced " .. node.name ..
 | 
			
		||||
			" at " .. minetest.pos_to_string(pos))
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,12 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: circular saw
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio, Sokomine and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio, Sokomine and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
local S = moreblocks.S
 | 
			
		||||
local F = minetest.formspec_escape
 | 
			
		||||
 | 
			
		||||
circular_saw = {}
 | 
			
		||||
 | 
			
		||||
@@ -88,8 +89,9 @@ circular_saw.names = {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function circular_saw:get_cost(inv, stackname)
 | 
			
		||||
	local name = minetest.registered_aliases[stackname] or stackname
 | 
			
		||||
	for i, item in pairs(inv:get_list("output")) do
 | 
			
		||||
		if item:get_name() == stackname then
 | 
			
		||||
		if item:get_name() == name then
 | 
			
		||||
			return circular_saw.cost_in_microblocks[i]
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
@@ -126,15 +128,20 @@ end
 | 
			
		||||
function circular_saw:reset(pos)
 | 
			
		||||
	local meta = minetest.get_meta(pos)
 | 
			
		||||
	local inv  = meta:get_inventory()
 | 
			
		||||
	local owned_by = meta:get_string("owner")
 | 
			
		||||
 | 
			
		||||
	if owned_by and owned_by ~= "" then
 | 
			
		||||
		owned_by = (" (%s)"):format(S("owned by @1", meta:get_string("owner")))
 | 
			
		||||
	else
 | 
			
		||||
		owned_by = ""
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	inv:set_list("input",  {})
 | 
			
		||||
	inv:set_list("micro",  {})
 | 
			
		||||
	inv:set_list("output", {})
 | 
			
		||||
	meta:set_int("anz", 0)
 | 
			
		||||
 | 
			
		||||
	meta:set_string("infotext",
 | 
			
		||||
			S("Circular Saw is empty (owned by %s)")
 | 
			
		||||
			:format(meta:get_string("owner") or ""))
 | 
			
		||||
	meta:set_int("anz", 0)
 | 
			
		||||
	meta:set_string("infotext", S("Circular Saw is empty") .. owned_by)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -146,7 +153,7 @@ function circular_saw:update_inventory(pos, amount)
 | 
			
		||||
 | 
			
		||||
	amount = meta:get_int("anz") + amount
 | 
			
		||||
 | 
			
		||||
	-- The material is recycled automaticly.
 | 
			
		||||
	-- The material is recycled automatically.
 | 
			
		||||
	inv:set_list("recycle",  {})
 | 
			
		||||
 | 
			
		||||
	if amount < 1 then -- If the last block is taken out.
 | 
			
		||||
@@ -164,9 +171,17 @@ function circular_saw:update_inventory(pos, amount)
 | 
			
		||||
 | 
			
		||||
	end
 | 
			
		||||
	local node_name = stack:get_name() or ""
 | 
			
		||||
	local node_def = stack:get_definition()
 | 
			
		||||
	local name_parts = circular_saw.known_nodes[node_name] or ""
 | 
			
		||||
	local modname  = name_parts[1] or ""
 | 
			
		||||
	local material = name_parts[2] or ""
 | 
			
		||||
	local owned_by = meta:get_string("owner")
 | 
			
		||||
 | 
			
		||||
	if owned_by and owned_by ~= "" then
 | 
			
		||||
		owned_by = (" (%s)"):format(S("owned by @1", meta:get_string("owner")))
 | 
			
		||||
	else
 | 
			
		||||
		owned_by = ""
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	inv:set_list("input", { -- Display as many full blocks as possible:
 | 
			
		||||
		node_name.. " " .. math.floor(amount / 8)
 | 
			
		||||
@@ -181,7 +196,7 @@ function circular_saw:update_inventory(pos, amount)
 | 
			
		||||
 | 
			
		||||
	-- 0-7 microblocks may remain left-over:
 | 
			
		||||
	inv:set_list("micro", {
 | 
			
		||||
		modname .. ":micro_" .. material .. "_bottom " .. (amount % 8)
 | 
			
		||||
		modname .. ":micro_" .. material .. " " .. (amount % 8)
 | 
			
		||||
	})
 | 
			
		||||
	-- Display:
 | 
			
		||||
	inv:set_list("output",
 | 
			
		||||
@@ -191,8 +206,10 @@ function circular_saw:update_inventory(pos, amount)
 | 
			
		||||
	meta:set_int("anz", amount)
 | 
			
		||||
 | 
			
		||||
	meta:set_string("infotext",
 | 
			
		||||
			S("Circular Saw is working on %s (owned by %s)")
 | 
			
		||||
			:format(material, meta:get_string("owner") or ""))
 | 
			
		||||
		S("Circular Saw is working on @1",
 | 
			
		||||
			node_def and node_def.description or material
 | 
			
		||||
		) .. owned_by
 | 
			
		||||
	)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -230,7 +247,7 @@ function circular_saw.allow_metadata_inventory_put(
 | 
			
		||||
	local stackname = stack:get_name()
 | 
			
		||||
	local count = stack:get_count()
 | 
			
		||||
 | 
			
		||||
	-- Only alow those items that are offered in the output inventory to be recycled:
 | 
			
		||||
	-- Only allow those items that are offered in the output inventory to be recycled:
 | 
			
		||||
	if listname == "recycle" then
 | 
			
		||||
		if not inv:contains_item("output", stackname) then
 | 
			
		||||
			return 0
 | 
			
		||||
@@ -299,6 +316,17 @@ function circular_saw.on_metadata_inventory_put(
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function circular_saw.allow_metadata_inventory_take(pos, listname, index, stack, player)
 | 
			
		||||
	local meta          = minetest.get_meta(pos)
 | 
			
		||||
	local inv           = meta:get_inventory()
 | 
			
		||||
	local input_stack = inv:get_stack(listname,  index)
 | 
			
		||||
	local player_inv = player:get_inventory()
 | 
			
		||||
	if not player_inv:room_for_item("main", input_stack) then
 | 
			
		||||
		return 0
 | 
			
		||||
	else return stack:get_count()
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function circular_saw.on_metadata_inventory_take(
 | 
			
		||||
		pos, listname, index, stack, player)
 | 
			
		||||
 | 
			
		||||
@@ -318,7 +346,7 @@ function circular_saw.on_metadata_inventory_take(
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- If it is one of the offered stairs: find out how many
 | 
			
		||||
	-- microblocks have to be substracted:
 | 
			
		||||
	-- microblocks have to be subtracted:
 | 
			
		||||
	if listname == "output" then
 | 
			
		||||
		-- We do know how much each block at each position costs:
 | 
			
		||||
		local cost = circular_saw.cost_in_microblocks[index]
 | 
			
		||||
@@ -338,17 +366,27 @@ end
 | 
			
		||||
function circular_saw.on_construct(pos)
 | 
			
		||||
	local meta = minetest.get_meta(pos)
 | 
			
		||||
	local fancy_inv = default.gui_bg..default.gui_bg_img..default.gui_slots
 | 
			
		||||
	meta:set_string("formspec", "size[11,10]"..fancy_inv..
 | 
			
		||||
			"label[0,0;" ..S("Input\nmaterial").. "]" ..
 | 
			
		||||
			"list[current_name;input;1.5,0;1,1;]" ..
 | 
			
		||||
			"label[0,1;" ..S("Left-over").. "]" ..
 | 
			
		||||
			"list[current_name;micro;1.5,1;1,1;]" ..
 | 
			
		||||
			"label[0,2;" ..S("Recycle\noutput").. "]" ..
 | 
			
		||||
			"list[current_name;recycle;1.5,2;1,1;]" ..
 | 
			
		||||
			"field[0.3,3.5;1,1;max_offered;" ..S("Max").. ":;${max_offered}]" ..
 | 
			
		||||
			"button[1,3.2;1,1;Set;" ..S("Set").. "]" ..
 | 
			
		||||
			"list[current_name;output;2.8,0;8,6;]" ..
 | 
			
		||||
			"list[current_player;main;1.5,6.25;8,4;]")
 | 
			
		||||
	meta:set_string(
 | 
			
		||||
		"formspec", "size[11,10]"..fancy_inv..
 | 
			
		||||
		"label[0,0;" ..F(S("Input\nmaterial")).. "]" ..
 | 
			
		||||
		"list[current_name;input;1.5,0;1,1;]" ..
 | 
			
		||||
		"label[0,1;" ..F(S("Left-over")).. "]" ..
 | 
			
		||||
		"list[current_name;micro;1.5,1;1,1;]" ..
 | 
			
		||||
		"label[0,2;" ..F(S("Recycle\noutput")).. "]" ..
 | 
			
		||||
		"list[current_name;recycle;1.5,2;1,1;]" ..
 | 
			
		||||
		"field[0.3,3.5;1,1;max_offered;" ..F(S("Max")).. ":;${max_offered}]" ..
 | 
			
		||||
		"button[1,3.2;1,1;Set;" ..F(S("Set")).. "]" ..
 | 
			
		||||
		"list[current_name;output;2.8,0;8,6;]" ..
 | 
			
		||||
		"list[current_player;main;1.5,6.25;8,4;]" ..
 | 
			
		||||
		"listring[current_name;output]" ..
 | 
			
		||||
		"listring[current_player;main]" ..
 | 
			
		||||
		"listring[current_name;input]" ..
 | 
			
		||||
		"listring[current_player;main]" ..
 | 
			
		||||
		"listring[current_name;micro]" ..
 | 
			
		||||
		"listring[current_player;main]" ..
 | 
			
		||||
		"listring[current_name;recycle]" ..
 | 
			
		||||
		"listring[current_player;main]"
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	meta:set_int("anz", 0) -- No microblocks inside yet.
 | 
			
		||||
	meta:set_string("max_offered", 99) -- How many items of this kind are offered by default?
 | 
			
		||||
@@ -406,10 +444,14 @@ minetest.register_node("moreblocks:circular_saw",  {
 | 
			
		||||
	after_place_node = function(pos, placer)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		local owner = placer and placer:get_player_name() or ""
 | 
			
		||||
		local owned_by = owner
 | 
			
		||||
 | 
			
		||||
		if owner ~= "" then
 | 
			
		||||
			owned_by = (" (%s)"):format(S("owned by @1", owner))
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		meta:set_string("owner",  owner)
 | 
			
		||||
		meta:set_string("infotext",
 | 
			
		||||
				S("Circular Saw is empty (owned by %s)")
 | 
			
		||||
				:format(owner))
 | 
			
		||||
		meta:set_string("infotext", S("Circular Saw is empty") .. owned_by)
 | 
			
		||||
	end,
 | 
			
		||||
 | 
			
		||||
	-- The amount of items offered per shape can be configured:
 | 
			
		||||
@@ -417,6 +459,7 @@ minetest.register_node("moreblocks:circular_saw",  {
 | 
			
		||||
	allow_metadata_inventory_move = circular_saw.allow_metadata_inventory_move,
 | 
			
		||||
	-- Only input- and recycle-slot are intended as input slots:
 | 
			
		||||
	allow_metadata_inventory_put = circular_saw.allow_metadata_inventory_put,
 | 
			
		||||
	allow_metadata_inventory_take = circular_saw.allow_metadata_inventory_take,
 | 
			
		||||
	-- Taking is allowed from all slots (even the internal microblock slot). Moving is forbidden.
 | 
			
		||||
	-- Putting something in is slightly more complicated than taking anything because we have to make sure it is of a suitable material:
 | 
			
		||||
	on_metadata_inventory_put = circular_saw.on_metadata_inventory_put,
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: configuration handling
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
@@ -26,4 +26,4 @@ local function setting(settingtype, name, default)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Show stairs/slabs/panels/microblocks in creative inventory (true or false):
 | 
			
		||||
setting("bool", "stairsplus_in_creative_inventory", false)
 | 
			
		||||
setting("bool", "stairsplus_in_creative_inventory", true)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										304
									
								
								crafting.lua
									
									
									
									
									
								
							
							
						
						@@ -1,7 +1,7 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: crafting recipes
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
@@ -12,12 +12,7 @@ minetest.register_craft({
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:stick",
 | 
			
		||||
	recipe = {{"default:sapling"},}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:stick",
 | 
			
		||||
	recipe = {{"default:junglesapling"},}
 | 
			
		||||
	recipe = {{"group:sapling"},}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
@@ -34,47 +29,38 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {"default:junglegrass", "default:dirt"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:dirt_with_grass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese", "default:dirt"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:mossycobble",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:junglegrass", "default:cobble"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:mossycobble",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:cobble"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_flipped",
 | 
			
		||||
	recipe = {{"moreblocks:wood_tile"},}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- This must be registered after `moreblocks:wood_tile` to avoid recipe conflicts,
 | 
			
		||||
-- since `moreblocks:wood_tile` is part of `group:wood`
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_center 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"default:wood", "moreblocks:wood_tile", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
		{"group:wood", "moreblocks:wood_tile", "group:wood"},
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "moreblocks:wood_tile",
 | 
			
		||||
	recipe = {"moreblocks:wood_tile_flipped"}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_full 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
@@ -84,7 +70,7 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_up",
 | 
			
		||||
	output = "moreblocks:wood_tile_offset",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:stick"},
 | 
			
		||||
		{"moreblocks:wood_tile_center"},
 | 
			
		||||
@@ -92,33 +78,29 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_down",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"moreblocks:wood_tile_center"},
 | 
			
		||||
		{"default:stick"},
 | 
			
		||||
	}
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "moreblocks:wood_tile_offset",
 | 
			
		||||
	recipe = {"moreblocks:wood_tile_down"}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_left",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:stick", "moreblocks:wood_tile_center"},
 | 
			
		||||
	}
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "moreblocks:wood_tile_offset",
 | 
			
		||||
	recipe = {"moreblocks:wood_tile_left"}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:wood_tile_right",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"moreblocks:wood_tile_center", "default:stick"},
 | 
			
		||||
	}
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "moreblocks:wood_tile_offset",
 | 
			
		||||
	recipe = {"moreblocks:wood_tile_right"}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:circle_stone_bricks 8",
 | 
			
		||||
	output = "moreblocks:circle_stone_bricks 5",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:stone", "default:stone", "default:stone"},
 | 
			
		||||
		{"default:stone", "", "default:stone"},
 | 
			
		||||
		{"default:stone", "default:stone", "default:stone"},
 | 
			
		||||
		{"", "default:stone", ""},
 | 
			
		||||
		{"default:stone", "default:coal_lump", "default:stone"},
 | 
			
		||||
		{"", "default:stone", ""},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -140,6 +122,33 @@ minetest.register_craft({
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:all_faces_pine_tree 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:pine_tree", "default:pine_tree", "default:pine_tree"},
 | 
			
		||||
		{"default:pine_tree", "", "default:pine_tree"},
 | 
			
		||||
		{"default:pine_tree", "default:pine_tree", "default:pine_tree"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:all_faces_acacia_tree 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:acacia_tree", "default:acacia_tree", "default:acacia_tree"},
 | 
			
		||||
		{"default:acacia_tree", "", "default:acacia_tree"},
 | 
			
		||||
		{"default:acacia_tree", "default:acacia_tree", "default:acacia_tree"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:all_faces_aspen_tree 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:aspen_tree", "default:aspen_tree", "default:aspen_tree"},
 | 
			
		||||
		{"default:aspen_tree", "", "default:aspen_tree"},
 | 
			
		||||
		{"default:aspen_tree", "default:aspen_tree", "default:aspen_tree"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:sweeper 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
@@ -149,10 +158,11 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:stone_tile 4",
 | 
			
		||||
	output = "moreblocks:stone_tile 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:cobble", "default:cobble"},
 | 
			
		||||
		{"default:cobble", "default:cobble"},
 | 
			
		||||
		{"default:cobble", "default:cobble", "default:cobble"},
 | 
			
		||||
		{"default:cobble", "default:stone", "default:cobble"},
 | 
			
		||||
		{"default:cobble", "default:cobble", "default:cobble"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -164,12 +174,20 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:split_stone_tile_alt",
 | 
			
		||||
	output = "moreblocks:checker_stone_tile",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"moreblocks:split_stone_tile"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- When approaching the below craft, loop back to cobblestone, which can then be used to craft stone tiles again
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:cobble",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"moreblocks:checker_stone_tile"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:grey_bricks 2",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
@@ -183,11 +201,33 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:empty_bookshelf",
 | 
			
		||||
	output = "moreblocks:empty_shelf",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "default:bookshelf"},
 | 
			
		||||
	replacements = {{"default:bookshelf", "default:book 3"}},
 | 
			
		||||
	-- When obtaining an empty bookshelf, return the books used in it as well
 | 
			
		||||
	-- When obtaining an empty shelf, return the books used in it as well
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:empty_shelf",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "vessels:shelf"},
 | 
			
		||||
	replacements = {{"vessels:shelf", "vessels:glass_bottle 3"}},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "default:bookshelf",
 | 
			
		||||
	recipe = {"moreblocks:empty_shelf", "default:book", "default:book", "default:book"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:empty_shelf",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
		{"", "", ""},
 | 
			
		||||
		{"group:wood", "group:wood", "group:wood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
@@ -209,16 +249,16 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:plankstone 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:stone", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:stone"},
 | 
			
		||||
		{"group:stone", "group:wood"},
 | 
			
		||||
		{"group:wood", "group:stone"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:plankstone 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood", "default:stone"},
 | 
			
		||||
		{"default:stone", "default:wood"},
 | 
			
		||||
		{"group:wood", "group:stone"},
 | 
			
		||||
		{"group:stone", "group:wood"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -308,12 +348,36 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "default:glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:clean_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "moreblocks:trap_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:torch", "default:glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:clean_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:torch", "moreblocks:clean_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:clean_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "moreblocks:glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
@@ -326,6 +390,26 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- several recipes are possible for the trap+clean+glow, we only present 3 of them
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:clean_glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:clean_glass", "default:torch"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "moreblocks:trap_glow_glass" },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
@@ -338,6 +422,24 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {"default:torch", "moreblocks:glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:torch", "default:torch", "moreblocks:clean_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:torch", "moreblocks:clean_glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "moreblocks:super_glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_super_glow_glass",
 | 
			
		||||
@@ -351,6 +453,32 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:super_glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- several recipes are possible for the trap+clean+glow, we only present 4 of them
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:clean_super_glow_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:clean_glow_glass", "default:torch"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "moreblocks:clean_glass", "default:torch", "default:torch"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_clean_super_glow_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"moreblocks:sweeper", "moreblocks:trap_super_glow_glass" },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:coal_stone",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
@@ -381,12 +509,36 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:stone"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_desert_stone",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:desert_stone"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_obsidian_glass",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:obsidian_glass"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_obsidian",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:obsidian"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:trap_sandstone",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	recipe = {"default:mese_crystal_fragment", "default:sandstone"},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:cactus_brick",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
@@ -418,6 +570,20 @@ minetest.register_craft({
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:dirt_compressed",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'default:dirt', 'default:dirt', 'default:dirt'},
 | 
			
		||||
		{'default:dirt', 'default:dirt', 'default:dirt'},
 | 
			
		||||
		{'default:dirt', 'default:dirt', 'default:dirt'},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:dirt 9",
 | 
			
		||||
	recipe = {{"moreblocks:dirt_compressed"}},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "moreblocks:cobble_compressed",
 | 
			
		||||
	recipe = {
 | 
			
		||||
@@ -435,15 +601,31 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
 | 
			
		||||
	output = "moreblocks:desert_cobble_compressed",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:desert_cobble", "default:desert_cobble", "default:desert_cobble"},
 | 
			
		||||
		{"default:desert_cobble", "default:desert_cobble", "default:desert_cobble"},
 | 
			
		||||
		{"default:desert_cobble", "default:desert_cobble", "default:desert_cobble"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:desert_cobble 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"moreblocks:desert_cobble_compressed"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking", output = "moreblocks:tar", recipe = "default:pine_tree",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "moreblocks:copperpatina",
 | 
			
		||||
	recipe = {"bucket:bucket_water", "default:copperblock"},
 | 
			
		||||
	recipe = {"group:water_bucket", "default:copperblock"},
 | 
			
		||||
	replacements = {
 | 
			
		||||
		{"bucket:bucket_water", "bucket:bucket_empty"}
 | 
			
		||||
		{"group:water_bucket", "bucket:bucket_empty"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
default
 | 
			
		||||
intllib?
 | 
			
		||||
farming?
 | 
			
		||||
wool?
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
Adds various miscellaneous blocks to the game.
 | 
			
		||||
							
								
								
									
										23
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						@@ -3,35 +3,24 @@
 | 
			
		||||
** More Blocks **
 | 
			
		||||
By Calinou, with the help of ShadowNinja and VanessaE.
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
=====================================================================
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
moreblocks = {}
 | 
			
		||||
 | 
			
		||||
local S
 | 
			
		||||
if minetest.global_exists("intllib") then
 | 
			
		||||
	if intllib.make_gettext_pair then
 | 
			
		||||
		S = intllib.make_gettext_pair()
 | 
			
		||||
	else
 | 
			
		||||
		S = intllib.Getter()
 | 
			
		||||
	end
 | 
			
		||||
else
 | 
			
		||||
	S = function(s) return s end
 | 
			
		||||
end
 | 
			
		||||
moreblocks.intllib = S
 | 
			
		||||
 | 
			
		||||
local modpath = minetest.get_modpath("moreblocks")
 | 
			
		||||
 | 
			
		||||
local S, NS = dofile(modpath .. "/intllib.lua")
 | 
			
		||||
moreblocks.S = S
 | 
			
		||||
moreblocks.NS = NS
 | 
			
		||||
 | 
			
		||||
dofile(modpath .. "/config.lua")
 | 
			
		||||
dofile(modpath .. "/circular_saw.lua")
 | 
			
		||||
dofile(modpath .. "/stairsplus/init.lua")
 | 
			
		||||
dofile(modpath .. "/nodes.lua")
 | 
			
		||||
dofile(modpath .. "/redefinitions.lua")
 | 
			
		||||
dofile(modpath .. "/crafting.lua")
 | 
			
		||||
dofile(modpath .. "/aliases.lua")
 | 
			
		||||
 | 
			
		||||
if minetest.settings:get_bool("log_mods") then
 | 
			
		||||
	minetest.log("action", S("[moreblocks] loaded."))
 | 
			
		||||
end
 | 
			
		||||
minetest.log("action", "[moreblocks] loaded.")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										44
									
								
								intllib.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,44 @@
 | 
			
		||||
-- Fallback functions for when `intllib` is not installed.
 | 
			
		||||
-- Code released under Unlicense <http://unlicense.org>.
 | 
			
		||||
 | 
			
		||||
-- Get the latest version of this file at:
 | 
			
		||||
--   https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
 | 
			
		||||
 | 
			
		||||
local function format(str, ...)
 | 
			
		||||
	local args = { ... }
 | 
			
		||||
	local function repl(escape, open, num, close)
 | 
			
		||||
		if escape == "" then
 | 
			
		||||
			local replacement = tostring(args[tonumber(num)])
 | 
			
		||||
			if open == "" then
 | 
			
		||||
				replacement = replacement..close
 | 
			
		||||
			end
 | 
			
		||||
			return replacement
 | 
			
		||||
		else
 | 
			
		||||
			return "@"..open..num..close
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local gettext, ngettext
 | 
			
		||||
if minetest.get_modpath("intllib") then
 | 
			
		||||
	if intllib.make_gettext_pair then
 | 
			
		||||
		-- New method using gettext.
 | 
			
		||||
		gettext, ngettext = intllib.make_gettext_pair()
 | 
			
		||||
	else
 | 
			
		||||
		-- Old method using text files.
 | 
			
		||||
		gettext = intllib.Getter()
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Fill in missing functions.
 | 
			
		||||
 | 
			
		||||
gettext = gettext or function(msgid, ...)
 | 
			
		||||
	return format(msgid, ...)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
 | 
			
		||||
	return format(n==1 and msgid or msgid_plural, ...)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
return gettext, ngettext
 | 
			
		||||
							
								
								
									
										290
									
								
								locale/de.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,290 @@
 | 
			
		||||
# German translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# Xanthin, 2014.
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: de\n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "Kreissäge"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Ausgangs-\n"
 | 
			
		||||
"material"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "Rest"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "Anzahl"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Wiederver-\n"
 | 
			
		||||
"werten"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "Ok"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr "gehört @1"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "Kreissäge ist leer"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "Kreissäge arbeitet mit @1"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] geladen."
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr "veraltet"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr "allseitiger Akazienbaumstamm"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr "allseitiger Espenbaumstamm"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr "allseitiger Tropenbaumstamm"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr "allseitiger Kieferbaumstamm"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "allseitiger Baumstamm"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "Kaktusziegel"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "Kaktus-Mosaik"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "Holzfliese mittig"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr "Stein-Mosaik"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "Kreissteinziegel"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "Klares Glas"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "Kohlen-Mosaik"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "Kohleglas"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "Kohlestein"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "Kohlesteinziegel"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr "Gepresster Kopfsteinpflaster"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr "Gepresste Erde"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr "Kupfer Edelrostblock"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "Leeres Regal"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "Vollholzfliese"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "Leuchtglas"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "Metall-Mosaik"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "metallisiertes Glas"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "Eisenstein"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "Eisensteinziegel"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "Brettstein"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "Seil"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "Geteilte Steinfliese"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr "Steinziegel"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "Steinfliese"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "Superleuchtglas"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "Besen"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr "Teer"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr "Wüstensteinfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "Glasfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "Leuchtglasfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr "Obsidianfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr "Obsidianglasfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr "Sandsteinfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "Steinfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "Superleuchtglasfalle"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "Holzfliese"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr "Holzfliese versetzt"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr "Holzfliese unten"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr "Holzfliese links"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr "Holzfliese rechts"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "Tut mir leid, dieser Bereich gehört @1."
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "jemand"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "%smikroblock"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "%splatte"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr "%sneigung"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "%spaneel"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "%streppe"
 | 
			
		||||
@@ -1,67 +0,0 @@
 | 
			
		||||
# Translation by Xanthin
 | 
			
		||||
 | 
			
		||||
###init.lua###
 | 
			
		||||
[moreblocks] loaded. = [moreblocks] geladen.
 | 
			
		||||
 | 
			
		||||
###nodes.lua###
 | 
			
		||||
Jungle Wood Fence = Tropenholzzaun
 | 
			
		||||
Empty Bookshelf = Leeres Buecherregal
 | 
			
		||||
Clean Glass = Klares Glas
 | 
			
		||||
Plankstone = Brettstein
 | 
			
		||||
Wooden Tile = Holzfliese
 | 
			
		||||
Full Wooden Tile = Vollholzfliese
 | 
			
		||||
Centered Wooden Tile = Holzfliese mittig
 | 
			
		||||
Up Wooden Tile = Holzfliese oben
 | 
			
		||||
Down Wooden Tile = Holzfliese unten
 | 
			
		||||
Left Wooden Tile = Holzfliese links
 | 
			
		||||
Right Wooden Tile = Holzfliese rechts
 | 
			
		||||
Circle Stone Bricks = Kreissteinziegel 
 | 
			
		||||
Stone Tile = Steinfliese
 | 
			
		||||
Split Stone Tile = Geteilte Steinfliese
 | 
			
		||||
Glow Glass = Leuchtglas
 | 
			
		||||
Super Glow Glass = Superleuchtglas
 | 
			
		||||
Coal Glass = Kohleglas
 | 
			
		||||
Iron Glass = Eisenglas
 | 
			
		||||
Coal Checker = Karierte Kohle 
 | 
			
		||||
Iron Checker = Kariertes Eisen 
 | 
			
		||||
Trap Stone = Steinfalle
 | 
			
		||||
Trap Glass = Glasfalle
 | 
			
		||||
Trap Glow Glass = Leuchtglasfalle
 | 
			
		||||
Trap Super Glow Glass = Superleuchtglasfalle
 | 
			
		||||
Coal Stone = Kohlestein
 | 
			
		||||
Iron Stone = Eisenstein
 | 
			
		||||
Coal Stone Bricks = Kohlesteinziegel
 | 
			
		||||
Iron Stone Bricks = Eisensteinziegel
 | 
			
		||||
Cactus Checker = Karierter Kaktus
 | 
			
		||||
Cactus Brick = Kaktusziegel
 | 
			
		||||
Sweeper = Besen
 | 
			
		||||
Jungle Stick = Tropenholzstock
 | 
			
		||||
Rope = Seil
 | 
			
		||||
All-faces Tree = Baumscheibenstamm
 | 
			
		||||
 | 
			
		||||
###circular_saw.lua###
 | 
			
		||||
Circular Saw = Kreissaege
 | 
			
		||||
Circular saw, empty (owned by %s) = Kreissaege, leer (gehoert %s)
 | 
			
		||||
Circular saw, working with %s (owned by %s) = Kreissaege, arbeitet mit %s (gehoert %s)
 | 
			
		||||
Circular saw, empty = Kreissaege, leer
 | 
			
		||||
Circular saw is empty (owned by %s) = Kreissaege ist leer (gehoert %s)
 | 
			
		||||
 | 
			
		||||
Input\nmaterial = Ausgangs-\nmaterial
 | 
			
		||||
Left-over = Rest
 | 
			
		||||
Max = Anzahl
 | 
			
		||||
Set = Ok
 | 
			
		||||
Recycle\noutput = Wiederver-\nwerten
 | 
			
		||||
 | 
			
		||||
###./stairsplus/*###
 | 
			
		||||
%s Stairs = %streppe
 | 
			
		||||
%s Slab = %sstufe
 | 
			
		||||
%s Panel = %spaneel
 | 
			
		||||
%s Microblock = %smikroblock
 | 
			
		||||
 | 
			
		||||
%s Pane = %sscheibe
 | 
			
		||||
%s Fence = %szaun
 | 
			
		||||
 | 
			
		||||
###ownership.lua###
 | 
			
		||||
someone = jemand
 | 
			
		||||
Sorry, %s owns that spot. = Tut mir leid, %s gehoert diese Stelle.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										286
									
								
								locale/es.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,286 @@
 | 
			
		||||
# Spanish translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# kaeza, 2013.
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: es\n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] cargado."
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "Tronco de Árbol"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "Ladrillos de Cactus"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "Cuadros de Cactus"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "Parquet Centrado"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "Bloques de Piedra Circulares"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "Cristal Limpio"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "Cuadros de Carbón"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "Cristal con Carbón"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "Carbón y Piedra"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "Parquet Completo"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "Cristal Brillante"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "Cuadros de Hierro"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "Cristal con Hierro"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "Hierro y Piedra"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "Tablones de piedra"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "Soga"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "Baldosas de Piedra Partida"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "Baldosa de Piedra"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "Cristal Súper Brillante"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "Limpiador"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "Cristal Trampa"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "Piedra Trampa"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "Parquet"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "Microbloque de %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "Losa de %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "Panel de %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "Escalera de %s"
 | 
			
		||||
@@ -1,52 +0,0 @@
 | 
			
		||||
# Translation by kaeza
 | 
			
		||||
 | 
			
		||||
[moreblocks] loaded. = [moreblocks] cargado.
 | 
			
		||||
 | 
			
		||||
Jungle Wooden Planks = Tablones de madera de jungla
 | 
			
		||||
Empty Bookshelf = Estante para libros vacío
 | 
			
		||||
Clean Glass = Cristal Limpio
 | 
			
		||||
Plankstone = Tablones de piedra
 | 
			
		||||
Wooden Tile = Parquet
 | 
			
		||||
Full Wooden Tile = Parquet Completo
 | 
			
		||||
Centered Wooden Tile = Parquet Centrado
 | 
			
		||||
Up Wooden Tile = Parquet Superior
 | 
			
		||||
Down Wooden Tile = Parquet Inferior
 | 
			
		||||
Left Wooden Tile = Parquet Izquierdo
 | 
			
		||||
Right Wooden Tile = Parquet Derecho
 | 
			
		||||
Circle Stone Bricks = Bloques de Piedra Circulares
 | 
			
		||||
Stone Tile = Baldosa de Piedra
 | 
			
		||||
Split Stone Tile = Baldosas de Piedra Partida
 | 
			
		||||
Glow Glass = Cristal Brillante
 | 
			
		||||
Super Glow Glass = Cristal Súper Brillante
 | 
			
		||||
Coal Glass = Cristal con Carbón
 | 
			
		||||
Iron Glass = Cristal con Hierro
 | 
			
		||||
Coal Checker = Cuadros de Carbón
 | 
			
		||||
Iron Checker = Cuadros de Hierro
 | 
			
		||||
Trap Stone = Piedra Trampa
 | 
			
		||||
Trap Glass = Cristal Trampa
 | 
			
		||||
Coal Stone = Carbón y Piedra
 | 
			
		||||
Iron Stone = Hierro y Piedra
 | 
			
		||||
Cactus Checker = Cuadros de Cactus
 | 
			
		||||
Cactus Brick = Ladrillos de Cactus
 | 
			
		||||
Sweeper = Limpiador
 | 
			
		||||
Jungle Stick = Varita de Madera de Jungla
 | 
			
		||||
Horizontal Tree = Tronco de árbol horizontal
 | 
			
		||||
Horizontal Jungle Tree = Tronco de árbol de la jungla horizontal
 | 
			
		||||
Rope = Soga
 | 
			
		||||
All-faces Tree = Tronco de Árbol
 | 
			
		||||
 | 
			
		||||
%s Stairs = Escalera de %s
 | 
			
		||||
%s Slab = Losa de %s
 | 
			
		||||
%s Panel = Panel de %s
 | 
			
		||||
%s Microblock = Microbloque de %s
 | 
			
		||||
 | 
			
		||||
Wooden = Madera
 | 
			
		||||
Papyrus = Papiro
 | 
			
		||||
Dry Shrub = Arbusto Desértico
 | 
			
		||||
Sapling = Brote de Árbol
 | 
			
		||||
Wooden Planks = Tablones de Madera
 | 
			
		||||
Ladder = Escalera de Mano
 | 
			
		||||
Glass = Cristal
 | 
			
		||||
 | 
			
		||||
%s Pane = Panel de %s
 | 
			
		||||
%s Fence = Valla de %s
 | 
			
		||||
							
								
								
									
										291
									
								
								locale/fr.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,291 @@
 | 
			
		||||
# French translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# Hugo Locurcio <hugo.locurcio@hugo.pro>, 2013-2019.
 | 
			
		||||
# Jat15, 2013.
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: 2019-03-20 21:10+0100\n"
 | 
			
		||||
"Last-Translator: Hugo Locurcio <hugo.locurcio@hugo.pro>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: fr\n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "Scie circulaire"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Matériau\n"
 | 
			
		||||
"d'entrée"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "Reste"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "Max"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Sortie à\n"
 | 
			
		||||
"recycler"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "Définir"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr "propriété de @1"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "Scie circulaire vide"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "Scie circulaire manipulant @1"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] a été chargé."
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr "déprécié"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr "Tronc d'arbre d'acacia (toutes faces)"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr "Tronc d'arbre de peuplier (toutes faces)"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr "Tronc d'arbre de jungle (toutes faces)"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr "Tronc d'arbre de pin (toutes faces)"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "Tronc d'arbre (toutes faces)"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "Briques de cactus"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "Damier en cactus"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois centrée"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr "Damier de dalle en pierre"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "Briques en pierre circulaires"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "Verre propre"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "Damier en charbon"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "Verre de charbon"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "Pierre de charbon"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "Briques en pierre de charbon"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr "Pierre taillée compressée"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr "Terre compressée"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr "Bloc de patine de cuivre"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "Étagère vide"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois complète"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "Verre brillant"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "Damier de fer"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "Verre de fer"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "Pierre de fer"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "Briques en pierre de fer"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "Pierre-bois"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "Corde"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "Dalle en pierre découpée"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr "Briques en pierre"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "Dalle en pierre"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "Verre très brillant"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "Balai"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr "Bitume"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr "Pierre du désert traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "Verre traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "Verre brillant traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr "Obsidienne traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr "Verre d'obsidienne traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr "Grès traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "Pierre traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "Verre très brillant traversable"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois décalée"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois vers le bas"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois vers la gauche"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr "Dalle en bois vers la droite"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "Désolé, @1 possède cet endroit."
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "quelqu'un"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "Microbloc en %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "Demi-dalle en %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr "Pente en %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "Barre en %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "Escaliers en %s"
 | 
			
		||||
@@ -1,72 +0,0 @@
 | 
			
		||||
# Translation by Calinou
 | 
			
		||||
 | 
			
		||||
###init.lua###
 | 
			
		||||
[moreblocks] loaded. = [moreblocks] a <20>t<EFBFBD> charg<72>.
 | 
			
		||||
 | 
			
		||||
Jungle Wooden Planks = Planches de bois de jungle
 | 
			
		||||
Empty Bookshelf = <20>tag<61>re vide
 | 
			
		||||
Clean Glass = Verre propre
 | 
			
		||||
Plankstone = Pierre-bois
 | 
			
		||||
Wooden Tile = Dalle en bois
 | 
			
		||||
Full Wooden Tile = Dalle en bois compl<70>te
 | 
			
		||||
Centered Wooden Tile = Dalle en bois centr<74>e
 | 
			
		||||
Up Wooden Tile = Dalle en bois vers le haut
 | 
			
		||||
Down Wooden Tile = Dalle en bois vers le bas
 | 
			
		||||
Left Wooden Tile = Dalle en bois vers la gauche
 | 
			
		||||
Right Wooden Tile = Dalle en bois vers la droite
 | 
			
		||||
Circle Stone Bricks = Briques en pierre circulaires
 | 
			
		||||
Stone Tile = Dalle en pierre
 | 
			
		||||
Split Stone Tile = Dalle en pierre d<>coup<75>e
 | 
			
		||||
Glow Glass = Verre brillant
 | 
			
		||||
Super Glow Glass = Verre tr<74>s brillant
 | 
			
		||||
Coal Glass = Verre de charbon
 | 
			
		||||
Iron Glass = Verre de fer
 | 
			
		||||
Coal Checker = Damier en charbon
 | 
			
		||||
Iron Checker = Damier en fer
 | 
			
		||||
Trap Stone = Pierre traversable
 | 
			
		||||
Trap Glass = Verre traversable
 | 
			
		||||
Trap Glow Glass = Verre brillant traversable
 | 
			
		||||
Trap Super Glow Glass = Verre tr<74>s brillant traversable
 | 
			
		||||
Coal Stone = Pierre de charbon
 | 
			
		||||
Iron Stone = Pierre de fer
 | 
			
		||||
Coal Stone Bricks = Briques en pierre de charbon
 | 
			
		||||
Iron Stone Bricks = Briques en pierre de fer
 | 
			
		||||
Cactus Checker = Damier en cactus
 | 
			
		||||
Cactus Brick = Briques de cactus
 | 
			
		||||
Sweeper = Balai
 | 
			
		||||
Jungle Stick = B<>ton en bois de jungle
 | 
			
		||||
Horizontal Tree = Tronc d'arbre horizontal
 | 
			
		||||
Horizontal Jungle Tree = Tronc d'arbre de jungle horizontal
 | 
			
		||||
Rope = Corde
 | 
			
		||||
All-faces Tree = Tronc d'arbre
 | 
			
		||||
 | 
			
		||||
###redefinition.lua###
 | 
			
		||||
Wooden = bois
 | 
			
		||||
Papyrus = Papyrus
 | 
			
		||||
Dry Shrub = Buisson mort
 | 
			
		||||
Sapling = Pousse d'arbre
 | 
			
		||||
Wooden Planks = Planches de bois
 | 
			
		||||
Ladder = <20>chelle
 | 
			
		||||
Glass = Verre
 | 
			
		||||
 | 
			
		||||
###circular_saw.lua###
 | 
			
		||||
Circular Saw = Scie circulaire
 | 
			
		||||
Circular saw, empty (owned by %s) = Scie circulaire, vide (propri<72>t<EFBFBD> de %s)
 | 
			
		||||
Circular saw, working with %s (owned by %s) = Scie circulaire, manipule %s (propri<72>t<EFBFBD> de %s)
 | 
			
		||||
Circular saw, empty = Scie circulaire, vide
 | 
			
		||||
Circular saw is empty (owned by %s) = Scie circulaire est vide (propri<72>t<EFBFBD> de %s)
 | 
			
		||||
 | 
			
		||||
Input material = Entr<74>e du mat<61>riel 
 | 
			
		||||
Rest/microblocks = Reste/microbloc
 | 
			
		||||
Max: = Max:
 | 
			
		||||
Set = Fixer
 | 
			
		||||
Recycle output = Recyclage
 | 
			
		||||
 | 
			
		||||
###./stairsplus/*###
 | 
			
		||||
%s Stairs = Escaliers en %s
 | 
			
		||||
%s Slab = Demi-dalle en %s
 | 
			
		||||
%s Panel = Barre en %s
 | 
			
		||||
%s Microblock = Microbloc en %s
 | 
			
		||||
 | 
			
		||||
%s Pane = Panneau en %s
 | 
			
		||||
%s Fence = Barri<72>re en %s
 | 
			
		||||
							
								
								
									
										290
									
								
								locale/it.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,290 @@
 | 
			
		||||
# Italian translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# Emon, 2016.
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: it\n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "Sega circolare"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Materiale\n"
 | 
			
		||||
"iniziale"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "Scarto"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "Max."
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Ricicla\n"
 | 
			
		||||
"finale"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "Imp."
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "Sega circolare, vuota"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "Sega circolare, in funzione su @1"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] caricato."
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "Albero su ogni lato"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "Mattoni di cactus"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "Scacchiera in cactus"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "Mattonella in legno centrata"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "Mattoni concentrici in pietra"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "Vetro pulito"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "Scacchiera in carbone"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "Vetro e carbone"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "Pietra in carbone"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "Mattoni di pietra in carbone"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "Scaffale Vuoto"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "Mattonella in legno pieno"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "Vetro luminoso"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "Scacchiera in ferro"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "Vetro e ferro"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "Pietra in ferro"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "Mattoni di pietra in ferro"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "Pietra e legno"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "Corda"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "Mattonella in pietra divisa"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "Mattonella in pietra"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "Super vetro luminoso"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "Spazzola"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "Vetro trappola"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "Vetro luminoso trappola"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "Pietra trappola"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "Super vetro luminoso trappola"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "Mattonella in legno"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "Spiacente, quel punto è di proprietà di @1"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "qualcuno"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "Microblocco %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "Lastra - %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "Pannello - %s"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "Scale - %s"
 | 
			
		||||
@@ -1,70 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# Italian translation
 | 
			
		||||
# Translator: Emon
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###init.lua###
 | 
			
		||||
[moreblocks] loaded. = [moreblocks] caricato.
 | 
			
		||||
 | 
			
		||||
###nodes.lua###
 | 
			
		||||
Jungle Wood Fence = Recinzione in legno della giungla
 | 
			
		||||
Empty Bookshelf = Libreria vuota
 | 
			
		||||
Clean Glass = Vetro pulito
 | 
			
		||||
Plankstone = Pietra e legno
 | 
			
		||||
Wooden Tile = Mattonella in legno
 | 
			
		||||
Full Wooden Tile = Mattonella in legno pieno
 | 
			
		||||
Centered Wooden Tile = Mattonella in legno centrata
 | 
			
		||||
Up Wooden Tile = Mattonella in legno verso l'alto
 | 
			
		||||
Down Wooden Tile = Mattonella in legno verso il basso
 | 
			
		||||
Left Wooden Tile = Mattonella in legno verso sinistra
 | 
			
		||||
Right Wooden Tile = Mattonella in legno verso destra
 | 
			
		||||
Circle Stone Bricks = Mattoni concentrici in pietra
 | 
			
		||||
Stone Tile = Mattonella in pietra
 | 
			
		||||
Split Stone Tile = Mattonella in pietra divisa
 | 
			
		||||
Glow Glass = Vetro luminoso
 | 
			
		||||
Super Glow Glass = Super vetro luminoso
 | 
			
		||||
Coal Glass = Vetro e carbone
 | 
			
		||||
Iron Glass = Vetro e ferro
 | 
			
		||||
Coal Checker = Scacchiera in carbone
 | 
			
		||||
Iron Checker = Scacchiera in ferro
 | 
			
		||||
Trap Stone = Pietra trappola
 | 
			
		||||
Trap Glass = Vetro trappola
 | 
			
		||||
Trap Glow Glass = Vetro luminoso trappola
 | 
			
		||||
Trap Super Glow Glass = Super vetro luminoso trappola
 | 
			
		||||
Coal Stone = Pietra in carbone
 | 
			
		||||
Iron Stone = Pietra in ferro 
 | 
			
		||||
Coal Stone Bricks = Mattoni di pietra in carbone
 | 
			
		||||
Iron Stone Bricks = Mattoni di pietra in ferro
 | 
			
		||||
Cactus Checker = Scacchiera in cactus
 | 
			
		||||
Cactus Brick = Mattoni di cactus
 | 
			
		||||
Sweeper = Spazzola
 | 
			
		||||
Jungle Stick = Bastone in legno della giungla
 | 
			
		||||
Rope = Corda
 | 
			
		||||
All-faces Tree = Albero su ogni lato
 | 
			
		||||
 | 
			
		||||
###circular_saw.lua###
 | 
			
		||||
Circular Saw = Sega circolare
 | 
			
		||||
Circular saw, empty (owned by %s) = Sega circolare, vuota (di proprietà di %s)
 | 
			
		||||
Circular saw, working with %s (owned by %s) = Sega circolare, in funzione su %s (di proprietà di %s)
 | 
			
		||||
Circular saw, empty = Sega circolare, vuota
 | 
			
		||||
Circular saw is empty (owned by %s) = La sega circolare è vuota (di proprietà di %s)
 | 
			
		||||
 | 
			
		||||
Input\nmaterial = Materiale\niniziale
 | 
			
		||||
Left-over = Scarto
 | 
			
		||||
Max = Max.
 | 
			
		||||
Set = Imp.
 | 
			
		||||
Recycle\noutput = Ricicla\nfinale
 | 
			
		||||
 | 
			
		||||
###ownership.lua###
 | 
			
		||||
someone = qualcuno
 | 
			
		||||
Sorry, %s owns that spot. = Spiacente, quel punto è di proprietà di %s
 | 
			
		||||
 | 
			
		||||
###./stairsplus/*###
 | 
			
		||||
%s Stairs = Scale - %s
 | 
			
		||||
%s Slab =  Lastra - %s
 | 
			
		||||
%s Panel = Pannello - %s
 | 
			
		||||
%s Microblock = Microblocco %s
 | 
			
		||||
 | 
			
		||||
%s Pane = Pannello - %s
 | 
			
		||||
%s Fence = Recinzione - %s
 | 
			
		||||
							
								
								
									
										293
									
								
								locale/pl.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,293 @@
 | 
			
		||||
# Polish translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# mat9117, 2019
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: pl\n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "Piła tarczowa"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"wejście\n"
 | 
			
		||||
"materiał"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "Resztki"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "Maks"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Przetwarzanie\n"
 | 
			
		||||
"Wyjście"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "Ustaw"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr "Należy do @1"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "Piła tarczowa jest pusta"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "Piła tarczowa pracuje na @1"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] załadowane."
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr "Przestarzałe"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr "Wielostronna tekstura akacji"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr "Wielostronna tekstura osiki"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr "Wielostronna tekstura drzewa dżunglowego"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr "Wielostronna tekstura sosny"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "Wielostronna tekstura drzewa"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "Kaktusowa cegła"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "Kaktusowa szachownica"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "Wyśrodkowany drewniany kafelek"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr "Kamienna szachownica"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "Okrągłe kamienne cegły"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "Czyste szkło"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "Węglowa szachownica"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "Szkło węglowe"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "Kamień węglowy"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "Węglowe kamienne cegły"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr "Skompresowany bruk"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr "Skompresowana ziemia"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr "Blok patynowanej miedzi"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "Pusta półka"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "Pełny drewniany kafelek"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "Świecące szkło"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "Żelazna szachownica"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "Żelazne szkło"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "Żelazny kamień"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "Żelazne kamienne cegły"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "Deskokamień"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "Lina"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "Kamienny blok kafelkowy"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr "Kamienne cegły"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "Kamienny kafelek"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "Super świecące szkło"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "Miotła"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr "Smoła"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr "Pułapka z pustynnego kamienia"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "Szklana pułapka"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "Pułapka ze świecącego szkłą"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr "Obsydianowa pułapka"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr "Pułapka z obsydianowego szkła"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr "Pułapka z piaskowca"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "Kamienna pułapka"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "Pułapka z super świecącego szkła"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "Drewniany kafelek"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr "Dolny drewniany kafelek"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr "Lewy drewniany kafelek"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr "Prawy drewniany kafelek"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "Przykro mi, to miejsce należy do @1"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "ktoś"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "%s Mikroblok"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "%s Płyta"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr "%s Spad"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "%s Panel"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "%s Schody"
 | 
			
		||||
							
								
								
									
										294
									
								
								locale/ru.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,294 @@
 | 
			
		||||
# Russian translation for MOREBLOCKS minetest mod.
 | 
			
		||||
# Copyright (C) 2018 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the MOREBLOCKS package.
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
#
 | 
			
		||||
#, fuzzy
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: MOREBLOCKS MOD\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 23:30+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: \n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "циркулярная пила"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Входной\n"
 | 
			
		||||
"материал"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "Остатки"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "Кол."
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Пере-\n"
 | 
			
		||||
"обработка"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "ОК"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr "принадлежит @1"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "циркулярная пила пустая"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "циркулярная пила, @1 в обработке"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[MOD] moreblocks loaded."
 | 
			
		||||
msgstr "[MOD] moreblocks загружен."
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr "устаревший"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr "всестороннее бревно акации"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr "всестороннее бревно осины"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr "всестороннее бревно дерева джунглей"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr "всестороннее бревно сосновое"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "всестороннее бревно дерева"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "кирпич из кактуса"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "мозаика из кактуса"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика (центр)"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr "каменная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "кольцевой камень"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "чистое стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "угольная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "угольное стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "угольный камень"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "угольно-каменный кирпич"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr "прессованный булыжник"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr "прессованная земля"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr "медный патинированный блок"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "пустые полки"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "светящееся стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "стальная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "металлизированное стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "железный камень"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "железно-каменный кирпич"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "дерево-каменная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "верёвка"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "каменная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr "каменный кирпич"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "каменная плитка"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "супер светящееся стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "метёлка"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr "смола"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr "мнимый пустынный камень"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "мнимое стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "мнимое светящееся стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr "мнимый обсидиан"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr "мнимое обсидиановое стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr "мнимый песчаник"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "мнимый камень"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "мнимое супер светящееся стекло"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика (сверху)"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика (снизу)"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика (слева)"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr "деревянная мозаика (справа)"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "Извините, это принадлежит @1."
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "кому-то"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "%s (микроблок)"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "%s (плита)"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr "%s (наклон)"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "%s (панель)"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "%s (лестница)"
 | 
			
		||||
							
								
								
									
										288
									
								
								locale/template.pot
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,288 @@
 | 
			
		||||
# Template translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# CodeXP <codexp@gmx.net>, 2018.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: \n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Desert Cobblestone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr ""
 | 
			
		||||
@@ -1,64 +0,0 @@
 | 
			
		||||
###init.lua###
 | 
			
		||||
[moreblocks] loaded. = 
 | 
			
		||||
 | 
			
		||||
###nodes.lua###
 | 
			
		||||
Jungle Wood Fence = 
 | 
			
		||||
Empty Bookshelf = 
 | 
			
		||||
Clean Glass = 
 | 
			
		||||
Plankstone = 
 | 
			
		||||
Wooden Tile = 
 | 
			
		||||
Full Wooden Tile = 
 | 
			
		||||
Centered Wooden Tile = 
 | 
			
		||||
Up Wooden Tile = 
 | 
			
		||||
Down Wooden Tile = 
 | 
			
		||||
Left Wooden Tile = 
 | 
			
		||||
Right Wooden Tile = 
 | 
			
		||||
Circle Stone Bricks = 
 | 
			
		||||
Stone Tile = 
 | 
			
		||||
Split Stone Tile = 
 | 
			
		||||
Glow Glass = 
 | 
			
		||||
Super Glow Glass = 
 | 
			
		||||
Coal Glass = 
 | 
			
		||||
Iron Glass = 
 | 
			
		||||
Coal Checker = 
 | 
			
		||||
Iron Checker = 
 | 
			
		||||
Trap Stone = 
 | 
			
		||||
Trap Glass = 
 | 
			
		||||
Trap Glow Glass = 
 | 
			
		||||
Trap Super Glow Glass = 
 | 
			
		||||
Coal Stone = 
 | 
			
		||||
Iron Stone = 
 | 
			
		||||
Coal Stone Bricks = 
 | 
			
		||||
Iron Stone Bricks = 
 | 
			
		||||
Cactus Checker = 
 | 
			
		||||
Cactus Brick = 
 | 
			
		||||
Sweeper = 
 | 
			
		||||
Jungle Stick = 
 | 
			
		||||
Rope = 
 | 
			
		||||
All-faces Tree = 
 | 
			
		||||
 | 
			
		||||
###circular_saw.lua###
 | 
			
		||||
Circular Saw = 
 | 
			
		||||
Circular saw, empty (owned by %s) = 
 | 
			
		||||
Circular saw, working with %s (owned by %s) = 
 | 
			
		||||
Circular saw, empty = 
 | 
			
		||||
Circular saw is empty (owned by %s) = 
 | 
			
		||||
 | 
			
		||||
Input\nmaterial = 
 | 
			
		||||
Left-over = 
 | 
			
		||||
Max = 
 | 
			
		||||
Set = 
 | 
			
		||||
Recycle\noutput = 
 | 
			
		||||
 | 
			
		||||
###ownership.lua###
 | 
			
		||||
someone = 
 | 
			
		||||
Sorry, %s owns that spot. = 
 | 
			
		||||
 | 
			
		||||
###./stairsplus/*###
 | 
			
		||||
%s Stairs = 
 | 
			
		||||
%s Slab = 
 | 
			
		||||
%s Panel = 
 | 
			
		||||
%s Microblock = 
 | 
			
		||||
 | 
			
		||||
%s Pane = 
 | 
			
		||||
%s Fence = 
 | 
			
		||||
							
								
								
									
										288
									
								
								locale/zh_CN.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,288 @@
 | 
			
		||||
# Template translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# IFRFSX <IFRFSX@protonmail.com>, 2020.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: \n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "圆锯"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"输入\n"
 | 
			
		||||
"材料"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "剩余材料"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "最大值"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"回收\n"
 | 
			
		||||
"输出物"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "设置"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr "属于@1所有"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "圆锯是空的"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "圆锯正在加工@1"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] 已加载"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr "弃用"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr "全切面相思树木方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr "全切面白杨树木方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr "全切面丛林树木方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr "全切面松树木方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "全切面树木方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "仙人掌砖"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "仙人掌棋盘方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "居中的木瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr "棋盘石瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "圆石砖"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "干净的玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "棋盘煤块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "煤玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "煤炭石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "煤炭石砖"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr "压缩圆石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr "压缩土"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr "铜绿方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "空书架"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "全木瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "发光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "棋盘铁方块"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "铁玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "铁石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "铁石砖"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "板石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "绳子"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "裂石砖"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr "石砖"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "石瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "超级发光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "清扫器"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr "焦油"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr "陷阱沙漠石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "陷阱玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "陷阱发光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr "陷阱黑耀石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr "陷阱黑耀石玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr "陷阱沙石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "陷阱石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "陷阱超级发光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "木瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr "胶合木瓦"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr "向下的木瓦"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr "向左的木瓦"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr "向右的木瓦"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "抱歉,那个位置是@1的。"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "某人"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "%s 小方块"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "%s 台阶"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr "%s 斜坡"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "%s 嵌板"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "%s 楼梯"
 | 
			
		||||
							
								
								
									
										288
									
								
								locale/zh_TW.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,288 @@
 | 
			
		||||
# Template translation for More Blocks.
 | 
			
		||||
# Copyright © 2011-2020 Hugo Locurcio and contributors
 | 
			
		||||
# This file is distributed under the same license as the More Blocks package.
 | 
			
		||||
# IFRFSX <IFRFSX@protonmail.com>, 2020.
 | 
			
		||||
msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: More Blocks\n"
 | 
			
		||||
"Report-Msgid-Bugs-To: \n"
 | 
			
		||||
"POT-Creation-Date: 2018-07-13 12:37+0200\n"
 | 
			
		||||
"PO-Revision-Date: \n"
 | 
			
		||||
"Last-Translator: CodeXP <codexp@gmx.net>\n"
 | 
			
		||||
"Language-Team: \n"
 | 
			
		||||
"Language: \n"
 | 
			
		||||
"MIME-Version: 1.0\n"
 | 
			
		||||
"Content-Type: text/plain; charset=UTF-8\n"
 | 
			
		||||
"Content-Transfer-Encoding: 8bit\n"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw"
 | 
			
		||||
msgstr "圓鋸"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Input\n"
 | 
			
		||||
"material"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"輸入\n"
 | 
			
		||||
"材料"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Left-over"
 | 
			
		||||
msgstr "剩餘材料"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Max"
 | 
			
		||||
msgstr "最大值"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid ""
 | 
			
		||||
"Recycle\n"
 | 
			
		||||
"output"
 | 
			
		||||
msgstr ""
 | 
			
		||||
"回收\n"
 | 
			
		||||
"輸出物"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Set"
 | 
			
		||||
msgstr "設置"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "owned by @1"
 | 
			
		||||
msgstr "屬於@1所有"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is empty"
 | 
			
		||||
msgstr "圓鋸是空的"
 | 
			
		||||
 | 
			
		||||
#: circular_saw.lua
 | 
			
		||||
msgid "Circular Saw is working on @1"
 | 
			
		||||
msgstr "圓鋸正在加工@1"
 | 
			
		||||
 | 
			
		||||
#: init.lua
 | 
			
		||||
msgid "[moreblocks] loaded."
 | 
			
		||||
msgstr "[moreblocks] 已加載"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Deprecated"
 | 
			
		||||
msgstr "棄用"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Acacia Tree"
 | 
			
		||||
msgstr "全切面相思樹木方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Aspen Tree"
 | 
			
		||||
msgstr "全切面白楊樹木方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Jungle Tree"
 | 
			
		||||
msgstr "全切面叢林樹木方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Pine Tree"
 | 
			
		||||
msgstr "全切面松樹木方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "All-faces Tree"
 | 
			
		||||
msgstr "全切面樹木方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Brick"
 | 
			
		||||
msgstr "仙人掌磚"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Cactus Checker"
 | 
			
		||||
msgstr "仙人掌棋盤方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Centered Wooden Tile"
 | 
			
		||||
msgstr "居中的木瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Checker Stone Tile"
 | 
			
		||||
msgstr "棋盤石瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Circle Stone Bricks"
 | 
			
		||||
msgstr "圓石磚"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Clean Glass"
 | 
			
		||||
msgstr "乾淨的玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Checker"
 | 
			
		||||
msgstr "棋盤煤塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Glass"
 | 
			
		||||
msgstr "煤玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone"
 | 
			
		||||
msgstr "煤炭石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Coal Stone Bricks"
 | 
			
		||||
msgstr "煤炭石磚"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Cobblestone"
 | 
			
		||||
msgstr "壓縮圓石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Compressed Dirt"
 | 
			
		||||
msgstr "壓縮土"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Copper Patina Block"
 | 
			
		||||
msgstr "銅綠方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Empty Shelf"
 | 
			
		||||
msgstr "空書架"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Full Wooden Tile"
 | 
			
		||||
msgstr "全木瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Glow Glass"
 | 
			
		||||
msgstr "發光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Checker"
 | 
			
		||||
msgstr "棋盤鐵方塊"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Glass"
 | 
			
		||||
msgstr "鐵玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone"
 | 
			
		||||
msgstr "鐵石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Iron Stone Bricks"
 | 
			
		||||
msgstr "鐵石磚"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Plankstone"
 | 
			
		||||
msgstr "板石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rope"
 | 
			
		||||
msgstr "繩子"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Split Stone Tile"
 | 
			
		||||
msgstr "裂石磚"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Bricks"
 | 
			
		||||
msgstr "石磚"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Stone Tile"
 | 
			
		||||
msgstr "石瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Super Glow Glass"
 | 
			
		||||
msgstr "超級發光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Sweeper"
 | 
			
		||||
msgstr "清掃器"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Tar"
 | 
			
		||||
msgstr "焦油"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Desert Stone"
 | 
			
		||||
msgstr "陷阱沙漠石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glass"
 | 
			
		||||
msgstr "陷阱玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Glow Glass"
 | 
			
		||||
msgstr "陷阱發光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian"
 | 
			
		||||
msgstr "陷阱黑耀石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Obsidian Glass"
 | 
			
		||||
msgstr "陷阱黑耀石玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Sandstone"
 | 
			
		||||
msgstr "陷阱沙石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Stone"
 | 
			
		||||
msgstr "陷阱石"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Trap Super Glow Glass"
 | 
			
		||||
msgstr "陷阱超級發光玻璃"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Wooden Tile"
 | 
			
		||||
msgstr "木瓦"
 | 
			
		||||
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Offset Wooden Tile"
 | 
			
		||||
msgstr "膠合木瓦"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Downwards Wooden Tile"
 | 
			
		||||
msgstr "向下的木瓦"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Leftwards Wooden Tile"
 | 
			
		||||
msgstr "向左的木瓦"
 | 
			
		||||
 | 
			
		||||
# @deprecated
 | 
			
		||||
#: nodes.lua
 | 
			
		||||
msgid "Rightwards Wooden Tile"
 | 
			
		||||
msgstr "向右的木瓦"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "Sorry, @1 owns that spot."
 | 
			
		||||
msgstr "抱歉,那個位置是@1的。"
 | 
			
		||||
 | 
			
		||||
#: ownership.lua
 | 
			
		||||
msgid "someone"
 | 
			
		||||
msgstr "某人"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Microblock"
 | 
			
		||||
msgstr "%s 小方塊"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua stairsplus/slabs.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slab"
 | 
			
		||||
msgstr "%s 臺階"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Slope"
 | 
			
		||||
msgstr "%s 斜坡"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Panel"
 | 
			
		||||
msgstr "%s 嵌板"
 | 
			
		||||
 | 
			
		||||
#: stairsplus/common.lua
 | 
			
		||||
#, lua-format
 | 
			
		||||
msgid "%s Stairs"
 | 
			
		||||
msgstr "%s 樓梯"
 | 
			
		||||
							
								
								
									
										4
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						@@ -1 +1,5 @@
 | 
			
		||||
name = moreblocks
 | 
			
		||||
description = Adds various miscellaneous blocks to the game.
 | 
			
		||||
depends = default
 | 
			
		||||
optional_depends = intllib,stairs,farming,wool,basic_materials
 | 
			
		||||
min_minetest_version = 5.0.0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										373
									
								
								nodes.lua
									
									
									
									
									
								
							
							
						
						@@ -1,12 +1,13 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: node definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
local S = moreblocks.S
 | 
			
		||||
 | 
			
		||||
local sound_dirt = default.node_sound_dirt_defaults()
 | 
			
		||||
local sound_wood = default.node_sound_wood_defaults()
 | 
			
		||||
local sound_stone = default.node_sound_stone_defaults()
 | 
			
		||||
local sound_glass = default.node_sound_glass_defaults()
 | 
			
		||||
@@ -21,10 +22,28 @@ local function tile_tiles(name)
 | 
			
		||||
	return {tex, tex, tex, tex, tex.. "^[transformR90", tex.. "^[transformR90"}
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function wood_tile_replace(itemstack, placer, pointed_thing)
 | 
			
		||||
	local substack
 | 
			
		||||
	if itemstack:get_name() == "moreblocks:wood_tile_flipped" then
 | 
			
		||||
		substack = ItemStack("moreblocks:wood_tile")
 | 
			
		||||
	else -- right, left, and down variants
 | 
			
		||||
		substack = ItemStack("moreblocks:wood_tile_offset")
 | 
			
		||||
	end
 | 
			
		||||
	local _, success = minetest.item_place(substack, placer, pointed_thing)
 | 
			
		||||
	if success then
 | 
			
		||||
		itemstack:take_item()
 | 
			
		||||
	end
 | 
			
		||||
	return itemstack
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local deprecated = (" (%s)"):format(S('Deprecated'))
 | 
			
		||||
local nodes = {
 | 
			
		||||
	["wood_tile"] = {
 | 
			
		||||
		description = S("Wooden Tile"),
 | 
			
		||||
		groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		tiles = {"default_wood.png^moreblocks_wood_tile.png",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png",
 | 
			
		||||
@@ -34,148 +53,188 @@ local nodes = {
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_flipped"] = {
 | 
			
		||||
		description = S("Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		description = S("Wooden Tile") .. deprecated,
 | 
			
		||||
		tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png^[transformR180",
 | 
			
		||||
		"default_wood.png^moreblocks_wood_tile.png^[transformR180"},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
		on_place = wood_tile_replace
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_center"] = {
 | 
			
		||||
		description = S("Centered Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		tiles = {"default_wood.png^moreblocks_wood_tile_center.png"},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_full"] = {
 | 
			
		||||
		description = S("Full Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		tiles = tile_tiles("wood_tile_full"),
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_up"] = {
 | 
			
		||||
		description = S("Upwards Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		tiles = {"default_wood.png^moreblocks_wood_tile_up.png"},
 | 
			
		||||
	["wood_tile_offset"] = {
 | 
			
		||||
		description = S("Offset Wooden Tile"),
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		tiles = {"default_wood.png^moreblocks_wood_tile_offset.png"},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_down"] = {
 | 
			
		||||
		description = S("Downwards Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_up.png^[transformR180"},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		description = S("Downwards Wooden Tile") .. deprecated,
 | 
			
		||||
		tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_offset.png^[transformR180"},
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
		on_place = wood_tile_replace
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_left"] = {
 | 
			
		||||
		description = S("Leftwards Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_up.png^[transformR270"},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		description = S("Leftwards Wooden Tile") .. deprecated,
 | 
			
		||||
		tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_offset.png^[transformR270"},
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
		on_place = wood_tile_replace
 | 
			
		||||
	},
 | 
			
		||||
	["wood_tile_right"] = {
 | 
			
		||||
		description = S("Rightwards Wooden Tile"),
 | 
			
		||||
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_up.png^[transformR90"},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		description = S("Rightwards Wooden Tile") .. deprecated,
 | 
			
		||||
		tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_offset.png^[transformR90"},
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
		on_place = wood_tile_replace
 | 
			
		||||
	},
 | 
			
		||||
	["circle_stone_bricks"] = {
 | 
			
		||||
		description = S("Circle Stone Bricks"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["grey_bricks"] = {
 | 
			
		||||
		description = S("Stone Bricks"),
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["coal_stone_bricks"] = {
 | 
			
		||||
		description = S("Coal Stone Bricks"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["iron_stone_bricks"] = {
 | 
			
		||||
		description = S("Iron Stone Bricks"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["stone_tile"] = {
 | 
			
		||||
		description = S("Stone Tile"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["split_stone_tile"] = {
 | 
			
		||||
		description = S("Split Stone Tile"),
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		tiles = {"moreblocks_split_stone_tile_top.png",
 | 
			
		||||
			"moreblocks_split_stone_tile.png"},
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["split_stone_tile_alt"] = {
 | 
			
		||||
		description = S("Checkered Stone Tile"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
	["checker_stone_tile"] = {
 | 
			
		||||
		description = S("Checker Stone Tile"),
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["tar"] = {
 | 
			
		||||
		description = S("Tar"),
 | 
			
		||||
		groups = {cracky = 2, tar_block = 1},
 | 
			
		||||
		groups = {cracky=2, tar_block=1},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["dirt_compressed"] = {
 | 
			
		||||
		description = S("Compressed Dirt"),
 | 
			
		||||
		groups = {crumbly=2},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_dirt,
 | 
			
		||||
	},
 | 
			
		||||
	["cobble_compressed"] = {
 | 
			
		||||
		description = S("Compressed Cobblestone"),
 | 
			
		||||
		groups = {cracky = 1},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["desert_cobble_compressed"] = {
 | 
			
		||||
		description = S("Compressed Desert Cobblestone"),
 | 
			
		||||
		groups = {cracky = 1},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["plankstone"] = {
 | 
			
		||||
		description = S("Plankstone"),
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		tiles = tile_tiles("plankstone"),
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["iron_glass"] = {
 | 
			
		||||
		description = S("Iron Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_iron_glass.png", "moreblocks_iron_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_iron_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^[colorize:#DEDEDE", "default_glass_detail.png^[colorize:#DEDEDE"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["coal_glass"] = {
 | 
			
		||||
		description = S("Coal Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_coal_glass.png", "moreblocks_coal_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_coal_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^[colorize:#828282", "default_glass_detail.png^[colorize:#828282"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["clean_glass"] = {
 | 
			
		||||
		description = S("Clean Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png"},
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["cactus_brick"] = {
 | 
			
		||||
		description = S("Cactus Brick"),
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		place_param2 = 0,
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["cactus_checker"] = {
 | 
			
		||||
		description = S("Cactus Checker"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		tiles = {"default_stone.png^moreblocks_cactus_checker.png",
 | 
			
		||||
		"default_stone.png^moreblocks_cactus_checker.png",
 | 
			
		||||
		"default_stone.png^moreblocks_cactus_checker.png",
 | 
			
		||||
@@ -184,23 +243,27 @@ local nodes = {
 | 
			
		||||
		"default_stone.png^moreblocks_cactus_checker.png^[transformR90"},
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["empty_bookshelf"] = {
 | 
			
		||||
		description = S("Empty Bookshelf"),
 | 
			
		||||
		tiles = {"default_wood.png", "default_wood.png",
 | 
			
		||||
			"moreblocks_empty_bookshelf.png"},
 | 
			
		||||
		groups = {snappy = 2, choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
	["empty_shelf"] = {
 | 
			
		||||
		description = S("Empty Shelf"),
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		tiles = {"default_wood.png", "default_wood.png", "default_wood.png",
 | 
			
		||||
		"default_wood.png", "moreblocks_empty_shelf.png", "moreblocks_empty_shelf.png"},
 | 
			
		||||
		groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		furnace_burntime = 15,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["coal_stone"] = {
 | 
			
		||||
		description = S("Coal Stone"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["iron_stone"] = {
 | 
			
		||||
		description = S("Iron Stone"),
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["coal_checker"] = {
 | 
			
		||||
@@ -211,7 +274,8 @@ local nodes = {
 | 
			
		||||
		"default_stone.png^moreblocks_coal_checker.png",
 | 
			
		||||
		"default_stone.png^moreblocks_coal_checker.png^[transformR90",
 | 
			
		||||
		"default_stone.png^moreblocks_coal_checker.png^[transformR90"},
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["iron_checker"] = {
 | 
			
		||||
@@ -222,87 +286,229 @@ local nodes = {
 | 
			
		||||
		"default_stone.png^moreblocks_iron_checker.png",
 | 
			
		||||
		"default_stone.png^moreblocks_iron_checker.png^[transformR90",
 | 
			
		||||
		"default_stone.png^moreblocks_iron_checker.png^[transformR90"},
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		groups = {stone = 1, cracky = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_stone"] = {
 | 
			
		||||
		description = S("Trap Stone"),
 | 
			
		||||
		drawtype = "glasslike_framed",
 | 
			
		||||
		tiles = {"default_stone.png^moreblocks_trap_box.png"},
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_desert_stone"] = {
 | 
			
		||||
		description = S("Trap Desert Stone"),
 | 
			
		||||
		drawtype = "glasslike_framed",
 | 
			
		||||
		tiles = {"default_desert_stone.png^moreblocks_trap_box.png"},
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 3},
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_glass"] = {
 | 
			
		||||
		description = S("Trap Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_trap_glass.png", "default_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_trap_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^moreblocks_trap_box_glass.png", "default_glass_detail.png"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_obsidian_glass"] = {
 | 
			
		||||
		description = S("Trap Obsidian Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		tiles = {"default_obsidian_glass.png^moreblocks_trap_box_glass.png", "default_obsidian_glass_detail.png"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_obsidian"] = {
 | 
			
		||||
		description = S("Trap Obsidian"),
 | 
			
		||||
		drawtype = "glasslike_framed",
 | 
			
		||||
		tiles = {"default_obsidian.png^moreblocks_trap_box.png"},
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 1, level = 2},
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_clean_glass"] = {
 | 
			
		||||
		description = S("Trap Clean Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png^moreblocks_trap_box_glass.png", "moreblocks_clean_glass_detail.png"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_sandstone"] = {
 | 
			
		||||
		description = S("Trap Sandstone"),
 | 
			
		||||
		drawtype = "glasslike_framed",
 | 
			
		||||
		tiles = {"default_sandstone.png^moreblocks_trap_box.png"},
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {crumbly = 1, cracky = 3},
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["all_faces_tree"] = {
 | 
			
		||||
		description = S("All-faces Tree"),
 | 
			
		||||
		tiles = {"default_tree_top.png"},
 | 
			
		||||
		groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
 | 
			
		||||
		groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		furnace_burntime = 30,
 | 
			
		||||
	},
 | 
			
		||||
	["all_faces_jungle_tree"] = {
 | 
			
		||||
		description = S("All-faces Jungle Tree"),
 | 
			
		||||
		tiles = {"default_jungletree_top.png"},
 | 
			
		||||
		groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
 | 
			
		||||
		groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		furnace_burntime = 30,
 | 
			
		||||
		furnace_burntime = 38,
 | 
			
		||||
	},
 | 
			
		||||
	["all_faces_pine_tree"] = {
 | 
			
		||||
		description = S("All-faces Pine Tree"),
 | 
			
		||||
		tiles = {"default_pine_tree_top.png"},
 | 
			
		||||
		groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		furnace_burntime = 26,
 | 
			
		||||
	},
 | 
			
		||||
	["all_faces_acacia_tree"] = {
 | 
			
		||||
		description = S("All-faces Acacia Tree"),
 | 
			
		||||
		tiles = {"default_acacia_tree_top.png"},
 | 
			
		||||
		groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		furnace_burntime = 34,
 | 
			
		||||
	},
 | 
			
		||||
	["all_faces_aspen_tree"] = {
 | 
			
		||||
		description = S("All-faces Aspen Tree"),
 | 
			
		||||
		tiles = {"default_aspen_tree_top.png"},
 | 
			
		||||
		groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
 | 
			
		||||
		sounds = sound_wood,
 | 
			
		||||
		furnace_burntime = 22,
 | 
			
		||||
	},
 | 
			
		||||
	["glow_glass"] = {
 | 
			
		||||
		description = S("Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_glow_glass.png", "moreblocks_glow_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_glow_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^[colorize:#E9CD61", "default_glass_detail.png^[colorize:#E9CD61"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = 11,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["clean_glow_glass"] = {
 | 
			
		||||
		description = S("Clean Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png^[colorize:#E9CD61", "moreblocks_clean_glass_detail.png^[colorize:#E9CD61"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = 11,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_glow_glass"] = {
 | 
			
		||||
		description = S("Trap Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_trap_glass.png", "moreblocks_glow_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_trap_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^[colorize:#E9CD61^moreblocks_trap_box_glass.png", "default_glass_detail.png^[colorize:#E9CD61"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = 11,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_clean_glow_glass"] = {
 | 
			
		||||
		description = S("Trap Clean Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png^[colorize:#E9CD61^moreblocks_trap_box_glass.png", "moreblocks_clean_glass_detail.png^[colorize:#E9CD61"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = 11,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["super_glow_glass"] = {
 | 
			
		||||
		description = S("Super Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_super_glow_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^[colorize:#FFFF78", "default_glass_detail.png^[colorize:#FFFF78"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		light_source = 14,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = default.LIGHT_MAX,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["clean_super_glow_glass"] = {
 | 
			
		||||
		description = S("Clean Super Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png^[colorize:#FFFF78", "moreblocks_clean_glass_detail.png^[colorize:#FFFF78"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = default.LIGHT_MAX,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_super_glow_glass"] = {
 | 
			
		||||
		description = S("Trap Super Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		--tiles = {"moreblocks_trap_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"},
 | 
			
		||||
		tiles = {"moreblocks_trap_super_glow_glass.png"},
 | 
			
		||||
		tiles = {"default_glass.png^[colorize:#FFFF78^moreblocks_trap_box_glass.png", "default_glass_detail.png^[colorize:#FFFF78"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		light_source = 14,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = default.LIGHT_MAX,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["trap_clean_super_glow_glass"] = {
 | 
			
		||||
		description = S("Trap Clean Super Glow Glass"),
 | 
			
		||||
		drawtype = "glasslike_framed_optional",
 | 
			
		||||
		tiles = {"moreblocks_clean_glass.png^[colorize:#FFFF78^moreblocks_trap_box_glass.png", "moreblocks_clean_glass_detail.png^[colorize:#FFFF78"},
 | 
			
		||||
		use_texture_alpha = "clip",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		light_source = default.LIGHT_MAX,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		groups = {cracky = 3, oddly_breakable_by_hand = 3},
 | 
			
		||||
		sounds = sound_glass,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
@@ -313,6 +519,7 @@ local nodes = {
 | 
			
		||||
		wield_image = "moreblocks_rope.png",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		paramtype2 = "wallmounted",
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		climbable = true,
 | 
			
		||||
@@ -324,6 +531,7 @@ local nodes = {
 | 
			
		||||
	["copperpatina"] = {
 | 
			
		||||
		description = S("Copper Patina Block"),
 | 
			
		||||
		groups = {cracky = 1, level = 2},
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		sounds = sound_metal,
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
@@ -332,6 +540,21 @@ for name, def in pairs(nodes) do
 | 
			
		||||
	def.tiles = def.tiles or {"moreblocks_" ..name.. ".png"}
 | 
			
		||||
	minetest.register_node("moreblocks:" ..name, def)
 | 
			
		||||
	minetest.register_alias(name, "moreblocks:" ..name)
 | 
			
		||||
 | 
			
		||||
	def_copy = table.copy(def)
 | 
			
		||||
 | 
			
		||||
	-- Use the primary tile for all sides of cut glasslike nodes.
 | 
			
		||||
	-- This makes them easier to see
 | 
			
		||||
	if
 | 
			
		||||
		#def_copy.tiles > 1 and
 | 
			
		||||
		def_copy.drawtype and
 | 
			
		||||
		def_copy.drawtype == "glasslike_framed" or
 | 
			
		||||
		def_copy.drawtype == "glasslike_framed_optional"
 | 
			
		||||
	then
 | 
			
		||||
		def.tiles = {def_copy.tiles[1]}
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	if not def.no_stairs then
 | 
			
		||||
		local groups = {}
 | 
			
		||||
		for k, v in pairs(def.groups) do groups[k] = v end
 | 
			
		||||
@@ -346,15 +569,9 @@ for name, def in pairs(nodes) do
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Items
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("moreblocks:sweeper", {
 | 
			
		||||
	description = S("Sweeper"),
 | 
			
		||||
	inventory_image = "moreblocks_sweeper.png",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craftitem("moreblocks:nothing", {
 | 
			
		||||
	inventory_image = "invisible.png",
 | 
			
		||||
	on_use = function() end,
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: ownership handling
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.gettext
 | 
			
		||||
local S = moreblocks.S
 | 
			
		||||
 | 
			
		||||
function moreblocks.node_is_owned(pos, placer)
 | 
			
		||||
	local ownername = false
 | 
			
		||||
@@ -33,7 +33,7 @@ function moreblocks.node_is_owned(pos, placer)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if ownername ~= false then
 | 
			
		||||
		minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) )
 | 
			
		||||
		minetest.chat_send_player( placer:get_player_name(), S("Sorry, @1 owns that spot.", ownername) )
 | 
			
		||||
		return true
 | 
			
		||||
	else
 | 
			
		||||
		return false
 | 
			
		||||
 
 | 
			
		||||
@@ -1,47 +0,0 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: redefinitions of default stuff
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
-- Redefinitions of some default crafting recipes:
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:sign_wall 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"default:wood", "default:wood", "default:wood"},
 | 
			
		||||
		{"", "default:stick", ""},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:ladder 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:stick", "", "default:stick"},
 | 
			
		||||
		{"default:stick", "default:stick", "default:stick"},
 | 
			
		||||
		{"default:stick", "", "default:stick"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:paper 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:papyrus", "default:papyrus", "default:papyrus"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:rail 24",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:steel_ingot", "", "default:steel_ingot"},
 | 
			
		||||
		{"default:steel_ingot", "default:stick", "default:steel_ingot"},
 | 
			
		||||
		{"default:steel_ingot", "", "default:steel_ingot"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "toolrepair",
 | 
			
		||||
	additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										3
									
								
								settingtypes.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,3 @@
 | 
			
		||||
# If enabled, Stairs+ nodes will be displayed in the inventory when playing in creative mode.
 | 
			
		||||
# Disabling this can speed up loading times for clients as fewer nodes need to be registered in the creative inventory.
 | 
			
		||||
moreblocks.stairsplus_in_creative_inventory (Display Stairs+ nodes in creative inventory) bool true
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
	This also registers the node with the circular saw.
 | 
			
		||||
	Example:
 | 
			
		||||
	```lua
 | 
			
		||||
	stairsplus:register_all("moreblocks", "wood", "defaut:wood", {
 | 
			
		||||
	stairsplus:register_all("moreblocks", "wood", "default:wood", {
 | 
			
		||||
		description = "Wooden",
 | 
			
		||||
		tiles = {"default_wood.png"},
 | 
			
		||||
		groups = {oddly_breakabe_by_hand=1},
 | 
			
		||||
@@ -20,4 +20,63 @@ You will probably never want to use them directly:
 | 
			
		||||
* `stairsplus:register_slab(modname, subname, recipeitem, fields)`
 | 
			
		||||
* `stairsplus:register_panel(modname, subname, recipeitem, fields)`
 | 
			
		||||
* `stairsplus:register_micro(modname, subname, recipeitem, fields)`
 | 
			
		||||
* `stairsplus:register_slope(modname, subname, recipeitem, fields)`
 | 
			
		||||
 | 
			
		||||
If you only want to register a subset of stairsplus nodes,
 | 
			
		||||
you can use the `stairsplus:register_custom_subset(subset, modname, subname, recipeitem, fields)` function.
 | 
			
		||||
The subset table should have the following format:
 | 
			
		||||
 | 
			
		||||
```lua
 | 
			
		||||
    local subset = {
 | 
			
		||||
    	{ "micro", "" },
 | 
			
		||||
    	{ "micro", "_1" },
 | 
			
		||||
    	{ "micro", "_2" },
 | 
			
		||||
    	{ "micro", "_4" },
 | 
			
		||||
    	{ "micro", "_12" },
 | 
			
		||||
    	{ "micro", "_14" },
 | 
			
		||||
    	{ "micro", "_15" },
 | 
			
		||||
    	{ "panel", "" },
 | 
			
		||||
    	{ "panel", "_1" },
 | 
			
		||||
    	{ "panel", "_2" },
 | 
			
		||||
    	{ "panel", "_4" },
 | 
			
		||||
    	{ "panel", "_12" },
 | 
			
		||||
    	{ "panel", "_14" },
 | 
			
		||||
    	{ "panel", "_15" },
 | 
			
		||||
    	{ "slab",  "" },
 | 
			
		||||
    	{ "slab",  "_quarter" },
 | 
			
		||||
    	{ "slab",  "_three_quarter" },
 | 
			
		||||
    	{ "slab",  "_1" },
 | 
			
		||||
    	{ "slab",  "_2" },
 | 
			
		||||
    	{ "slab",  "_14" },
 | 
			
		||||
    	{ "slab",  "_15" },
 | 
			
		||||
    	{ "slab",  "_two_sides" },
 | 
			
		||||
    	{ "slab",  "_three_sides" },
 | 
			
		||||
    	{ "slab",  "_three_sides_u" },
 | 
			
		||||
    	{ "slope", "" },
 | 
			
		||||
    	{ "slope", "_half" },
 | 
			
		||||
    	{ "slope", "_half_raised" },
 | 
			
		||||
    	{ "slope", "_inner" },
 | 
			
		||||
    	{ "slope", "_inner_half" },
 | 
			
		||||
    	{ "slope", "_inner_half_raised" },
 | 
			
		||||
    	{ "slope", "_inner_cut" },
 | 
			
		||||
    	{ "slope", "_inner_cut_half" },
 | 
			
		||||
    	{ "slope", "_inner_cut_half_raised" },
 | 
			
		||||
    	{ "slope", "_outer" },
 | 
			
		||||
    	{ "slope", "_outer_half" },
 | 
			
		||||
    	{ "slope", "_outer_half_raised" },
 | 
			
		||||
    	{ "slope", "_outer_cut" },
 | 
			
		||||
    	{ "slope", "_outer_cut_half" },
 | 
			
		||||
    	{ "slope", "_outer_cut_half_raised" },
 | 
			
		||||
    	{ "slope", "_cut" },
 | 
			
		||||
    	{ "stair", "" },
 | 
			
		||||
    	{ "stair", "_half" },
 | 
			
		||||
    	{ "stair", "_right_half" },
 | 
			
		||||
    	{ "stair", "_inner" },
 | 
			
		||||
    	{ "stair", "_outer" },
 | 
			
		||||
    	{ "stair", "_alt" },
 | 
			
		||||
    	{ "stair", "_alt_1" },
 | 
			
		||||
    	{ "stair", "_alt_2" },
 | 
			
		||||
    	{ "stair", "_alt_4" },
 | 
			
		||||
    }
 | 
			
		||||
```
 | 
			
		||||
You can remove entries as needed.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,70 +0,0 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: alias definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local function register_stairsplus_alias(modname, origname, newname)
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname, "moreblocks:slab_" ..newname)
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_inverted", "moreblocks:slab_" ..newname.. "_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_wall", "moreblocks:slab_" ..newname.. "_wall")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter", "moreblocks:slab_" ..newname.. "_quarter")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter_inverted", "moreblocks:slab_" ..newname.. "_quarter_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter_wall", "moreblocks:slab_" ..newname.. "_quarter_wall")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter", "moreblocks:slab_" ..newname.. "_three_quarter")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter_inverted", "moreblocks:slab_" ..newname.. "_three_quarter_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter_wall", "moreblocks:slab_" ..newname.. "_three_quarter_wall")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname, "moreblocks:stair_" ..newname)
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_inverted", "moreblocks:stair_" ..newname.. "_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_wall", "moreblocks:stair_" ..newname.. "_wall")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half", "moreblocks:stair_" ..newname.. "_wall_half")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half_inverted", "moreblocks:stair_" ..newname.. "_wall_half_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_half", "moreblocks:stair_" ..newname.. "_half")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_half_inverted", "moreblocks:stair_" ..newname.. "_half_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_right_half", "moreblocks:stair_" ..newname.. "_right_half")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_right_half_inverted", "moreblocks:stair_" ..newname.. "_right_half_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half", "moreblocks:stair_" ..newname.. "_wall_half")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half_inverted", "moreblocks:stair_" ..newname.. "_wall_half_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_inner", "moreblocks:stair_" ..newname.. "_inner")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_inner_inverted", "moreblocks:stair_" ..newname.. "_inner_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_outer", "moreblocks:stair_" ..newname.. "_outer")
 | 
			
		||||
	minetest.register_alias(modname.. ":stair_" ..origname.. "_outer_inverted", "moreblocks:stair_" ..newname.. "_outer_inverted")
 | 
			
		||||
	minetest.register_alias(modname.. ":panel_" ..origname.. "_bottom", "moreblocks:panel_" ..newname.. "_bottom")
 | 
			
		||||
	minetest.register_alias(modname.. ":panel_" ..origname.. "_top", "moreblocks:panel_" ..newname.. "_top")
 | 
			
		||||
	minetest.register_alias(modname.. ":panel_" ..origname.. "_vertical", "moreblocks:panel_" ..newname.. "_vertical")
 | 
			
		||||
	minetest.register_alias(modname.. ":micro_" ..origname.. "_bottom", "moreblocks:micro_" ..newname.. "_bottom")
 | 
			
		||||
	minetest.register_alias(modname.. ":micro_" ..origname.. "_top", "moreblocks:micro_" ..newname.. "_top")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
register_stairsplus_alias("stairsplus", "stone", "stone")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "wood", "wood")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "pinewood", "pinewood")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "cobble", "cobble")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "brick", "brick")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "sandstone", "sandstone")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "glass", "glass")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "tree", "tree")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "jungletree", "jungletree")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "pinetree", "pinetree")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "desert_stone", "desert_stone")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "steelblock", "steelblock")
 | 
			
		||||
register_stairsplus_alias("stairsplus", "mossycobble", "mossycobble")
 | 
			
		||||
 | 
			
		||||
register_stairsplus_alias("moreblocks", "coalstone", "coal_stone")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "junglewood", "jungle_wood")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "circlestonebrick", "circle_stone_bricks")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "ironstone", "iron_stone")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "coalglass", "coal_glass")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "ironglass", "iron_glass")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "glowglass", "glow_glass")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "superglowglass", "super_glow_glass")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "coalchecker", "coal_checker")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "ironchecker", "iron_checker")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "cactuschecker", "cactus_checker")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "ironstonebrick", "iron_stone_bricks")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "stonesquare", "stone_tile")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "splitstonesquare", "split_stone_tile")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "woodtile", "wood_tile")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "woodtile_centered", "wood_tile_centered")
 | 
			
		||||
register_stairsplus_alias("moreblocks", "woodtile_full", "wood_tile_full")
 | 
			
		||||
							
								
								
									
										183
									
								
								stairsplus/common.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,183 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: registrations
 | 
			
		||||
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.S
 | 
			
		||||
 | 
			
		||||
local descriptions = {
 | 
			
		||||
	["micro"] = S("%s Microblock"),
 | 
			
		||||
	["slab"] = S("%s Slab"),
 | 
			
		||||
	["slope"] = S("%s Slope"),
 | 
			
		||||
	["panel"] = S("%s Panel"),
 | 
			
		||||
	["stair"] = S("%s Stairs"),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
-- Extends the standad rotate_node placement so that it takes into account
 | 
			
		||||
-- the side (top/bottom or left/right) of the face being pointed at.
 | 
			
		||||
-- As with the standard rotate_node, sneak can be used to force the perpendicular
 | 
			
		||||
-- placement (wall placement on floor/ceiling, floor/ceiling placement on walls).
 | 
			
		||||
-- Additionally, the aux / sprint / special key can be used to place the node
 | 
			
		||||
-- as if from the opposite side.
 | 
			
		||||
--
 | 
			
		||||
-- When placing a node next to one of the same category (e.g. slab to slab or
 | 
			
		||||
-- stair to stair), the default placement (regardless of sneak) is to copy the
 | 
			
		||||
-- under node's param2, flipping if placed above or below it. The aux key disable
 | 
			
		||||
-- this behavior.
 | 
			
		||||
local wall_right_dirmap = {9, 18, 7, 12}
 | 
			
		||||
local wall_left_dirmap = {11, 16, 5, 14}
 | 
			
		||||
local ceil_dirmap = {20, 23, 22, 21}
 | 
			
		||||
 | 
			
		||||
-- extract the stairsplus category from a node name
 | 
			
		||||
-- assumes the name is in the form mod_name:category_original_ndoe_name
 | 
			
		||||
local function name_to_category(name)
 | 
			
		||||
	local colon = name:find(":") or 0
 | 
			
		||||
	colon = colon + 1
 | 
			
		||||
	local under = name:find("_", colon)
 | 
			
		||||
	return name:sub(colon, under)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
stairsplus.rotate_node_aux = function(itemstack, placer, pointed_thing)
 | 
			
		||||
	local sneak = placer and placer:get_player_control().sneak
 | 
			
		||||
	local aux = placer and placer:get_player_control().aux1
 | 
			
		||||
 | 
			
		||||
	-- category for what we are placing
 | 
			
		||||
	local item_prefix = name_to_category(itemstack:get_name())
 | 
			
		||||
	-- category for what we are placing against
 | 
			
		||||
	local under = pointed_thing.under
 | 
			
		||||
	local under_node = minetest.get_node(under)
 | 
			
		||||
	local under_prefix = under_node and name_to_category(under_node.name)
 | 
			
		||||
	-- NALC Addition to avoid coloredwood/unifiedbricks crash by Sys4
 | 
			
		||||
	local under_pmod = string.sub(under_node.name, 1, string.find(under_node.name, ":")-1)
 | 
			
		||||
 | 
			
		||||
	local same_cat = item_prefix == under_prefix
 | 
			
		||||
 | 
			
		||||
	-- standard (floor) facedir, also used for sneak placement against the lower half of the wall
 | 
			
		||||
	local p2 = placer and minetest.dir_to_facedir(placer:get_look_dir()) or 0
 | 
			
		||||
 | 
			
		||||
	-- check which face and which quadrant we are interested in
 | 
			
		||||
	-- this is used both to check if we're handling parallel placement in the same-category case,
 | 
			
		||||
	-- and in general for sneak placement
 | 
			
		||||
	local face_pos = minetest.pointed_thing_to_face_pos(placer, pointed_thing)
 | 
			
		||||
	local face_off = vector.subtract(face_pos, under)
 | 
			
		||||
 | 
			
		||||
	-- we cannot trust face_off to tell us the correct directionif the
 | 
			
		||||
	-- under node has a non-standard shape, so use the distance between under and above
 | 
			
		||||
	local wallmounted = minetest.dir_to_wallmounted(vector.subtract(pointed_thing.above, under))
 | 
			
		||||
 | 
			
		||||
	if same_cat and (under_pmod ~= "coloredwood" and under_pmod ~= "unifiedbricks")
 | 
			
		||||
	and not aux then
 | 
			
		||||
		p2 = under_node.param2
 | 
			
		||||
		-- flip if placing above or below an upright or upside-down node
 | 
			
		||||
		-- TODO should we also flip when placing next to a side-mounted node?
 | 
			
		||||
		if wallmounted < 2 then
 | 
			
		||||
			if p2 < 4 then
 | 
			
		||||
				p2 = (p2 + 2) % 4
 | 
			
		||||
				p2 = ceil_dirmap[p2 + 1]
 | 
			
		||||
			elseif p2 > 19 then
 | 
			
		||||
				p2 = ceil_dirmap[p2 - 19] - 20
 | 
			
		||||
				p2 = (p2 + 2) % 4
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
	else
 | 
			
		||||
		-- for same-cat placement, aux is used to disable param2 copying
 | 
			
		||||
		if same_cat then
 | 
			
		||||
			aux = not aux
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local remap = nil
 | 
			
		||||
 | 
			
		||||
		-- standard placement against the wall
 | 
			
		||||
		local use_wallmap = (wallmounted > 1 and not sneak) or (wallmounted < 2 and sneak)
 | 
			
		||||
 | 
			
		||||
		-- standard placement against the ceiling, or sneak placement against the upper half of the wall
 | 
			
		||||
		local use_ceilmap = wallmounted == 1 and not sneak
 | 
			
		||||
		use_ceilmap = use_ceilmap or (wallmounted > 1 and sneak and face_off.y > 0)
 | 
			
		||||
 | 
			
		||||
		if use_wallmap then
 | 
			
		||||
			local left = (p2 == 0 and face_off.x < 0) or
 | 
			
		||||
				(p2 == 1 and face_off.z > 0) or
 | 
			
		||||
				(p2 == 2 and face_off.x > 0) or
 | 
			
		||||
				(p2 == 3 and face_off.z < 0)
 | 
			
		||||
			if aux then
 | 
			
		||||
				left = not left
 | 
			
		||||
			end
 | 
			
		||||
			remap = left and wall_left_dirmap or wall_right_dirmap
 | 
			
		||||
		elseif use_ceilmap then
 | 
			
		||||
			remap = ceil_dirmap
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if aux then
 | 
			
		||||
			p2 = (p2 + 2) % 4
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if remap then
 | 
			
		||||
			p2 = remap[p2 + 1]
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	return minetest.item_place(itemstack, placer, pointed_thing, p2)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
stairsplus.register_single = function(category, alternate, info, modname, subname, recipeitem, fields)
 | 
			
		||||
	local src_def = minetest.registered_nodes[recipeitem] or {}
 | 
			
		||||
	local desc_base = descriptions[category]:format(fields.description)
 | 
			
		||||
	local def = {}
 | 
			
		||||
 | 
			
		||||
	if category ~= "slab" then
 | 
			
		||||
		def = table.copy(info)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- copy fields to def
 | 
			
		||||
	for k, v in pairs(fields) do
 | 
			
		||||
		def[k] = v
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	def.drawtype = "nodebox"
 | 
			
		||||
	def.paramtype = "light"
 | 
			
		||||
	def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
	if def.use_texture_alpha == nil then
 | 
			
		||||
		def.use_texture_alpha = src_def.use_texture_alpha
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- This makes node rotation work on placement
 | 
			
		||||
	def.place_param2 = nil
 | 
			
		||||
 | 
			
		||||
	-- Darken light sources slightly to make up for their smaller visual size
 | 
			
		||||
	def.light_source = math.max(0, (def.light_source or 0) - 1)
 | 
			
		||||
 | 
			
		||||
	def.on_place = stairsplus.rotate_node_aux
 | 
			
		||||
	def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
 | 
			
		||||
	if category == "slab" then
 | 
			
		||||
		if type(info) ~= "table" then
 | 
			
		||||
			def.node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, -0.5, 0.5, (info/16)-0.5, 0.5},
 | 
			
		||||
			}
 | 
			
		||||
			def.description = ("%s (%d/16)"):format(desc_base, info)
 | 
			
		||||
		else
 | 
			
		||||
			def.node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = info,
 | 
			
		||||
			}
 | 
			
		||||
			def.description = desc_base .. alternate:gsub("_", " "):gsub("(%a)(%S*)", function(a, b) return a:upper() .. b end)
 | 
			
		||||
		end
 | 
			
		||||
	else
 | 
			
		||||
		def.description = desc_base
 | 
			
		||||
		if category == "slope" then
 | 
			
		||||
			def.drawtype = "mesh"
 | 
			
		||||
		elseif category == "stair" and alternate == "" then
 | 
			
		||||
			def.groups.stair = 1
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if fields.drop and not (type(fields.drop) == "table") then
 | 
			
		||||
		def.drop = modname.. ":" .. category .. "_" .. fields.drop .. alternate
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	minetest.register_node(":" ..modname.. ":" .. category .. "_" .. subname .. alternate, def)
 | 
			
		||||
	stairsplus.register_recipes(category, alternate, modname, subname, recipeitem)
 | 
			
		||||
end
 | 
			
		||||
@@ -1,139 +0,0 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: conversion
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
-- Function to convert all stairs/slabs/etc nodes from
 | 
			
		||||
-- inverted, wall, etc to regular + 6d facedir
 | 
			
		||||
 | 
			
		||||
local dirs1 = {21, 20, 23, 22, 21}
 | 
			
		||||
local dirs2 = {15, 8, 17, 6, 15}
 | 
			
		||||
local dirs3 = {14, 11, 16, 5, 14}
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_6dfacedir_conversion(modname, material)
 | 
			
		||||
	--print("Register stairsplus 6d facedir conversion")
 | 
			
		||||
	--print('ABM for '..modname..' "'..material..'"')
 | 
			
		||||
 | 
			
		||||
	local objects_list1 = {
 | 
			
		||||
		modname.. ":slab_" ..material.. "_inverted",
 | 
			
		||||
		modname.. ":slab_" ..material.. "_quarter_inverted",
 | 
			
		||||
		modname.. ":slab_" ..material.. "_three_quarter_inverted",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_inverted",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_wall",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_wall_half",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_wall_half_inverted",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_half_inverted",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_right_half_inverted",
 | 
			
		||||
		modname.. ":panel_" ..material.. "_vertical",
 | 
			
		||||
		modname.. ":panel_" ..material.. "_top",
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	local objects_list2 = {
 | 
			
		||||
		modname.. ":slab_" ..material.. "_wall",
 | 
			
		||||
		modname.. ":slab_" ..material.. "_quarter_wall",
 | 
			
		||||
		modname.. ":slab_" ..material.. "_three_quarter_wall",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_inner_inverted",
 | 
			
		||||
		modname.. ":stair_" ..material.. "_outer_inverted",
 | 
			
		||||
		modname.. ":micro_" ..material.. "_top"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, object in pairs(objects_list1) do
 | 
			
		||||
		local flip_upside_down = false
 | 
			
		||||
		local flip_to_wall = false
 | 
			
		||||
 | 
			
		||||
		local dest_object = object
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_inverted") then
 | 
			
		||||
			flip_upside_down = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_inverted", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if string.find(object, "_top") then
 | 
			
		||||
			flip_upside_down = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_top", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_wall") then
 | 
			
		||||
			flip_to_wall = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_wall", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_vertical") then
 | 
			
		||||
			flip_to_wall = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_vertical", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_half") and not string.find(dest_object, "_right_half") then
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_half", "_right_half")
 | 
			
		||||
		elseif string.find(dest_object, "_right_half") then
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_right_half", "_half")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		--print("    +---> convert " ..object)
 | 
			
		||||
		--print("    |     to " ..dest_object)
 | 
			
		||||
 | 
			
		||||
		minetest.register_abm({
 | 
			
		||||
			nodenames = {object},
 | 
			
		||||
			interval = 1,
 | 
			
		||||
			chance = 1,
 | 
			
		||||
			action = function(pos, node, active_object_count, active_object_count_wider)
 | 
			
		||||
				local fdir = node.param2 or 0
 | 
			
		||||
				local nfdir
 | 
			
		||||
 | 
			
		||||
				if flip_upside_down and not flip_to_wall then
 | 
			
		||||
					nfdir = dirs1[fdir + 2]
 | 
			
		||||
				elseif flip_to_wall and not flip_upside_down then
 | 
			
		||||
					nfdir = dirs2[fdir + 1]
 | 
			
		||||
				elseif flip_to_wall and flip_upside_down then
 | 
			
		||||
					nfdir = dirs3[fdir + 2]
 | 
			
		||||
				end
 | 
			
		||||
				minetest.set_node(pos, {name = dest_object, param2 = nfdir})
 | 
			
		||||
			end
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	for _, object in pairs(objects_list2) do
 | 
			
		||||
		local flip_upside_down = false
 | 
			
		||||
		local flip_to_wall = false
 | 
			
		||||
 | 
			
		||||
		local dest_object = object
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_inverted") then
 | 
			
		||||
			flip_upside_down = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_inverted", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_top") then
 | 
			
		||||
			flip_upside_down = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_top", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if string.find(dest_object, "_wall") then
 | 
			
		||||
			flip_to_wall = true
 | 
			
		||||
			dest_object = string.gsub(dest_object, "_wall", "")
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		--print("    +---> convert " ..object)
 | 
			
		||||
		--print("    |     to " ..dest_object)
 | 
			
		||||
 | 
			
		||||
		minetest.register_abm({
 | 
			
		||||
			nodenames = {object},
 | 
			
		||||
			interval = 1,
 | 
			
		||||
			chance = 1,
 | 
			
		||||
			action = function(pos, node, active_object_count, active_object_count_wider)
 | 
			
		||||
				local fdir = node.param2
 | 
			
		||||
				local nfdir = 20
 | 
			
		||||
 | 
			
		||||
				if flip_upside_down and not flip_to_wall then
 | 
			
		||||
					nfdir = dirs1[fdir + 1]
 | 
			
		||||
				elseif flip_to_wall and not flip_upside_down then
 | 
			
		||||
					nfdir = dirs2[fdir + 2]
 | 
			
		||||
 | 
			
		||||
				end
 | 
			
		||||
				minetest.set_node(pos, {name = dest_object, param2 = nfdir})
 | 
			
		||||
			end
 | 
			
		||||
		})
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
							
								
								
									
										97
									
								
								stairsplus/custom.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,97 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: microblock definitions
 | 
			
		||||
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
--[[
 | 
			
		||||
Subset table should have the following format: (You can remove entries as needed.)
 | 
			
		||||
 | 
			
		||||
local subset = {
 | 
			
		||||
	{ "micro", "" },
 | 
			
		||||
	{ "micro", "_1" },
 | 
			
		||||
	{ "micro", "_2" },
 | 
			
		||||
	{ "micro", "_4" },
 | 
			
		||||
	{ "micro", "_12" },
 | 
			
		||||
	{ "micro", "_14" },
 | 
			
		||||
	{ "micro", "_15" },
 | 
			
		||||
	{ "panel", "" },
 | 
			
		||||
	{ "panel", "_1" },
 | 
			
		||||
	{ "panel", "_2" },
 | 
			
		||||
	{ "panel", "_4" },
 | 
			
		||||
	{ "panel", "_12" },
 | 
			
		||||
	{ "panel", "_14" },
 | 
			
		||||
	{ "panel", "_15" },
 | 
			
		||||
	{ "slab",  "" },
 | 
			
		||||
	{ "slab",  "_quarter" },
 | 
			
		||||
	{ "slab",  "_three_quarter" },
 | 
			
		||||
	{ "slab",  "_1" },
 | 
			
		||||
	{ "slab",  "_2" },
 | 
			
		||||
	{ "slab",  "_14" },
 | 
			
		||||
	{ "slab",  "_15" },
 | 
			
		||||
	{ "slab",  "_two_sides" },
 | 
			
		||||
	{ "slab",  "_three_sides" },
 | 
			
		||||
	{ "slab",  "_three_sides_u" },
 | 
			
		||||
	{ "slope", "" },
 | 
			
		||||
	{ "slope", "_half" },
 | 
			
		||||
	{ "slope", "_half_raised" },
 | 
			
		||||
	{ "slope", "_inner" },
 | 
			
		||||
	{ "slope", "_inner_half" },
 | 
			
		||||
	{ "slope", "_inner_half_raised" },
 | 
			
		||||
	{ "slope", "_inner_cut" },
 | 
			
		||||
	{ "slope", "_inner_cut_half" },
 | 
			
		||||
	{ "slope", "_inner_cut_half_raised" },
 | 
			
		||||
	{ "slope", "_outer" },
 | 
			
		||||
	{ "slope", "_outer_half" },
 | 
			
		||||
	{ "slope", "_outer_half_raised" },
 | 
			
		||||
	{ "slope", "_outer_cut" },
 | 
			
		||||
	{ "slope", "_outer_cut_half" },
 | 
			
		||||
	{ "slope", "_outer_cut_half_raised" },
 | 
			
		||||
	{ "slope", "_cut" },
 | 
			
		||||
	{ "stair", "" },
 | 
			
		||||
	{ "stair", "_half" },
 | 
			
		||||
	{ "stair", "_right_half" },
 | 
			
		||||
	{ "stair", "_inner" },
 | 
			
		||||
	{ "stair", "_outer" },
 | 
			
		||||
	{ "stair", "_alt" },
 | 
			
		||||
	{ "stair", "_alt_1" },
 | 
			
		||||
	{ "stair", "_alt_2" },
 | 
			
		||||
	{ "stair", "_alt_4" },
 | 
			
		||||
}
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_custom_subset(subset, modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_custom_subset(subset, modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
		description = description,
 | 
			
		||||
		drop = drop,
 | 
			
		||||
		light_source = light,
 | 
			
		||||
		sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_custom_subset_alias(subset, modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local subset_copy = table.copy(subset)
 | 
			
		||||
	for k, v in pairs(subset_copy) do
 | 
			
		||||
		minetest.register_alias(modname_old .. ":" .. v[1] .. "_" .. subname_old .. v[2], modname_new .. ":" .. v[1] .. "_" .. subname_new .. v[2])
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_custom_subset_alias_force(subset, modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local subset_copy = table.copy(subset)
 | 
			
		||||
	for k, v in pairs(subset_copy) do
 | 
			
		||||
		minetest.register_alias_force(modname_old .. ":" .. v[1] .. "_" .. subname_old .. v[2], modname_new .. ":" .. v[1] .. "_" .. subname_new .. v[2])
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_custom_subset(subset, modname, subname, recipeitem, fields)
 | 
			
		||||
	local subset_copy = table.copy(subset)
 | 
			
		||||
	for k, v in pairs(subset_copy) do
 | 
			
		||||
		stairsplus.register_single(v[1], v[2], stairsplus.defs[v[1]][v[2]], modname, subname, recipeitem, fields)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	circular_saw.known_nodes[recipeitem] = {modname, subname}
 | 
			
		||||
end
 | 
			
		||||
							
								
								
									
										409
									
								
								stairsplus/defs.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,409 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: registrations
 | 
			
		||||
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
local box_slope = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5, 0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.25, -0.25, 0.5,     0, 0.5},
 | 
			
		||||
		{-0.5,     0,     0, 0.5,  0.25, 0.5},
 | 
			
		||||
		{-0.5,  0.25,  0.25, 0.5,   0.5, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_half = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5,   -0.5,  0.5, -0.375, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.25, 0.5, -0.25,  0.5},
 | 
			
		||||
		{-0.5, -0.25,  0,    0.5, -0.125, 0.5},
 | 
			
		||||
		{-0.5, -0.125, 0.25, 0.5,  0,     0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_half_raised = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5,   -0.5,  0.5, 0.125, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.25, 0.5, 0.25,  0.5},
 | 
			
		||||
		{-0.5, 0.25,  0,    0.5, 0.375, 0.5},
 | 
			
		||||
		{-0.5, 0.375, 0.25, 0.5,  0.5,     0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
--==============================================================
 | 
			
		||||
 | 
			
		||||
local box_slope_inner = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.5, -0.25, 0.5, 0, 0.5},
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.25, 0, 0.5},
 | 
			
		||||
		{-0.5, 0, -0.5, 0, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0, 0, 0.5, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5},
 | 
			
		||||
		{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_inner_half = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.5, 0.25, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.25, -0.5, 0, -0.125, 0.5},
 | 
			
		||||
		{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
 | 
			
		||||
		{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
 | 
			
		||||
		{-0.5, -0.125, -0.5, -0.25, 0, 0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_inner_half_raised = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.5, 0.25, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0.25, -0.5, 0, 0.375, 0.5},
 | 
			
		||||
		{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
 | 
			
		||||
		{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5},
 | 
			
		||||
		{-0.5, 0.375, -0.5, -0.25, 0.5, 0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
--==============================================================
 | 
			
		||||
 | 
			
		||||
local box_slope_outer = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5,   0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.25, -0.25,  0.25,     0, 0.5},
 | 
			
		||||
		{-0.5,     0,     0,     0,  0.25, 0.5},
 | 
			
		||||
		{-0.5,  0.25,  0.25, -0.25,   0.5, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_outer_half = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5,   0.5, -0.375, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.25,  0.25, -0.25, 0.5},
 | 
			
		||||
		{-0.5,  -0.25,     0,     0, -0.125, 0.5},
 | 
			
		||||
		{-0.5,  -0.125,  0.25, -0.25, 0, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_outer_half_raised = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5,   0.5, 0.125, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.25,  0.25, 0.25, 0.5},
 | 
			
		||||
		{-0.5,  0.25,     0,     0, 0.375, 0.5},
 | 
			
		||||
		{-0.5,  0.375,  0.25, -0.25, 0.5, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
stairsplus.defs = {
 | 
			
		||||
	["micro"] = {
 | 
			
		||||
		[""] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, 0, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_1"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, -0.4375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_2"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, -0.375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_4"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, -0.25, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_12"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, 0.25, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_14"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, 0.375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_15"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0, 0.4375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	["panel"] = {
 | 
			
		||||
		[""] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, 0, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_1"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, -0.4375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_2"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, -0.375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_4"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, -0.25, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_12"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, 0.25, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_14"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, 0.375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_15"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {-0.5, -0.5, 0, 0.5, 0.4375, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	["slab"] = {
 | 
			
		||||
		[""] = 8,
 | 
			
		||||
		["_quarter"] = 4,
 | 
			
		||||
		["_three_quarter"] = 12,
 | 
			
		||||
		["_1"] = 1,
 | 
			
		||||
		["_2"] = 2,
 | 
			
		||||
		["_14"] = 14,
 | 
			
		||||
		["_15"] = 15,
 | 
			
		||||
		["_two_sides"] = {
 | 
			
		||||
			{ -0.5, -0.5, -0.5, 0.5, -7/16, 7/16 },
 | 
			
		||||
			{ -0.5, -0.5, 7/16, 0.5, 0.5, 0.5 }
 | 
			
		||||
		},
 | 
			
		||||
		["_three_sides"] = {
 | 
			
		||||
			{ -7/16, -0.5, -0.5, 0.5, -7/16, 7/16 },
 | 
			
		||||
			{ -7/16, -0.5, 7/16, 0.5, 0.5, 0.5 },
 | 
			
		||||
			{ -0.5, -0.5, -0.5, -7/16, 0.5, 0.5 }
 | 
			
		||||
		},
 | 
			
		||||
		["_three_sides_u"] = {
 | 
			
		||||
			{ -0.5, -0.5, -0.5, 0.5, 0.5, -7/16 },
 | 
			
		||||
			{ -0.5, -0.5, -7/16, 0.5, -7/16, 7/16 },
 | 
			
		||||
			{ -0.5, -0.5, 7/16, 0.5, 0.5, 0.5 }
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	["slope"] = {
 | 
			
		||||
		[""] = {
 | 
			
		||||
			mesh = "moreblocks_slope.obj",
 | 
			
		||||
			collision_box = box_slope,
 | 
			
		||||
			selection_box = box_slope,
 | 
			
		||||
 | 
			
		||||
		},
 | 
			
		||||
		["_half"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_half.obj",
 | 
			
		||||
			collision_box = box_slope_half,
 | 
			
		||||
			selection_box = box_slope_half,
 | 
			
		||||
		},
 | 
			
		||||
		["_half_raised"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_half_raised.obj",
 | 
			
		||||
			collision_box = box_slope_half_raised,
 | 
			
		||||
			selection_box = box_slope_half_raised,
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		--==============================================================
 | 
			
		||||
 | 
			
		||||
		["_inner"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_inner.obj",
 | 
			
		||||
			collision_box = box_slope_inner,
 | 
			
		||||
			selection_box = box_slope_inner,
 | 
			
		||||
		},
 | 
			
		||||
		["_inner_half"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_inner_half.obj",
 | 
			
		||||
			collision_box = box_slope_inner_half,
 | 
			
		||||
			selection_box = box_slope_inner_half,
 | 
			
		||||
		},
 | 
			
		||||
		["_inner_half_raised"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_inner_half_raised.obj",
 | 
			
		||||
			collision_box = box_slope_inner_half_raised,
 | 
			
		||||
			selection_box = box_slope_inner_half_raised,
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		--==============================================================
 | 
			
		||||
 | 
			
		||||
		["_inner_cut"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_inner_cut.obj",
 | 
			
		||||
			collision_box = box_slope_inner,
 | 
			
		||||
			selection_box = box_slope_inner,
 | 
			
		||||
		},
 | 
			
		||||
		["_inner_cut_half"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_inner_cut_half.obj",
 | 
			
		||||
			collision_box = box_slope_inner_half,
 | 
			
		||||
			selection_box = box_slope_inner_half,
 | 
			
		||||
		},
 | 
			
		||||
		["_inner_cut_half_raised"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_inner_cut_half_raised.obj",
 | 
			
		||||
			collision_box = box_slope_inner_half_raised,
 | 
			
		||||
			selection_box = box_slope_inner_half_raised,
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		--==============================================================
 | 
			
		||||
 | 
			
		||||
		["_outer"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_outer.obj",
 | 
			
		||||
			collision_box = box_slope_outer,
 | 
			
		||||
			selection_box = box_slope_outer,
 | 
			
		||||
		},
 | 
			
		||||
		["_outer_half"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_outer_half.obj",
 | 
			
		||||
			collision_box = box_slope_outer_half,
 | 
			
		||||
			selection_box = box_slope_outer_half,
 | 
			
		||||
		},
 | 
			
		||||
		["_outer_half_raised"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_outer_half_raised.obj",
 | 
			
		||||
			collision_box = box_slope_outer_half_raised,
 | 
			
		||||
			selection_box = box_slope_outer_half_raised,
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		--==============================================================
 | 
			
		||||
 | 
			
		||||
		["_outer_cut"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_outer_cut.obj",
 | 
			
		||||
			collision_box = box_slope_outer,
 | 
			
		||||
			selection_box = box_slope_outer,
 | 
			
		||||
		},
 | 
			
		||||
		["_outer_cut_half"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_outer_cut_half.obj",
 | 
			
		||||
			collision_box = box_slope_outer_half,
 | 
			
		||||
			selection_box = box_slope_outer_half,
 | 
			
		||||
		},
 | 
			
		||||
		["_outer_cut_half_raised"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_outer_cut_half_raised.obj",
 | 
			
		||||
			collision_box = box_slope_outer_half_raised,
 | 
			
		||||
			selection_box = box_slope_outer_half_raised,
 | 
			
		||||
		},
 | 
			
		||||
		["_cut"] = {
 | 
			
		||||
			mesh = "moreblocks_slope_cut.obj",
 | 
			
		||||
			collision_box = box_slope_outer,
 | 
			
		||||
			selection_box = box_slope_outer,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["stair"] = {
 | 
			
		||||
		[""] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
					{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_half"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.5, -0.5, 0, 0, 0.5},
 | 
			
		||||
					{-0.5, 0, 0, 0, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_right_half"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{0, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
					{0, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_inner"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
					{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
					{-0.5, 0, -0.5, 0, 0.5, 0},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_outer"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
					{-0.5, 0, 0, 0, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_alt"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.5, -0.5, 0.5, 0, 0},
 | 
			
		||||
					{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_alt_1"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.0625, -0.5, 0.5, 0, 0},
 | 
			
		||||
					{-0.5, 0.4375, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_alt_2"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.125, -0.5, 0.5, 0, 0},
 | 
			
		||||
					{-0.5, 0.375, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		["_alt_4"] = {
 | 
			
		||||
			node_box = {
 | 
			
		||||
				type = "fixed",
 | 
			
		||||
				fixed = {
 | 
			
		||||
					{-0.5, -0.25, -0.5, 0.5, 0, 0},
 | 
			
		||||
					{-0.5, 0.25, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for type,a in pairs(stairsplus.defs) do
 | 
			
		||||
	for name,b in pairs(stairsplus.defs[type]) do
 | 
			
		||||
		table.insert(stairsplus.shapes_list, { type .. "_", name })
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: Stairs+
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
-- Nodes will be called <modname>:{stair,slab,panel,micro}_<subname>
 | 
			
		||||
-- Nodes will be called <modname>:{stair,slab,panel,micro,slope}_<subname>
 | 
			
		||||
 | 
			
		||||
local modpath = minetest.get_modpath("moreblocks").. "/stairsplus"
 | 
			
		||||
 | 
			
		||||
@@ -14,31 +14,18 @@ stairsplus.expect_infinite_stacks = false
 | 
			
		||||
 | 
			
		||||
stairsplus.shapes_list = {}
 | 
			
		||||
 | 
			
		||||
if not minetest.get_modpath("unified_inventory")
 | 
			
		||||
and minetest.settings:get_bool("creative_mode") then
 | 
			
		||||
if
 | 
			
		||||
	not minetest.get_modpath("unified_inventory")
 | 
			
		||||
	and minetest.settings:get_bool("creative_mode")
 | 
			
		||||
then
 | 
			
		||||
	stairsplus.expect_infinite_stacks = true
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus.copytable(orig)
 | 
			
		||||
	local orig_type = type(orig)
 | 
			
		||||
	local copy
 | 
			
		||||
	if orig_type == 'table' then
 | 
			
		||||
		copy = {}
 | 
			
		||||
		for orig_key, orig_value in next, orig, nil do
 | 
			
		||||
			copy[stairsplus.copytable(orig_key)] = stairsplus.copytable(orig_value)
 | 
			
		||||
		end
 | 
			
		||||
		setmetatable(copy, stairsplus.copytable(getmetatable(orig)))
 | 
			
		||||
	else
 | 
			
		||||
		copy = orig
 | 
			
		||||
	end
 | 
			
		||||
	return copy
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:prepare_groups(groups)
 | 
			
		||||
	local result = {}
 | 
			
		||||
	if groups then
 | 
			
		||||
		for k, v in pairs(groups) do
 | 
			
		||||
			if k ~= "wood" and k ~= "stone" then
 | 
			
		||||
			if k ~= "wood" and k ~= "stone" and k ~= "wool" and k ~= "tree" then
 | 
			
		||||
				result[k] = v
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
@@ -51,11 +38,10 @@ end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_all(modname, subname, recipeitem, fields)
 | 
			
		||||
	self:register_stair(modname, subname, recipeitem, fields)
 | 
			
		||||
	self:register_slab (modname, subname, recipeitem, fields)
 | 
			
		||||
	self:register_slab(modname, subname, recipeitem, fields)
 | 
			
		||||
	self:register_slope(modname, subname, recipeitem, fields)
 | 
			
		||||
	self:register_panel(modname, subname, recipeitem, fields)
 | 
			
		||||
	self:register_micro(modname, subname, recipeitem, fields)
 | 
			
		||||
	-- self:register_6dfacedir_conversion(modname, subname) -- Not needed as of Q3 2013, uncomment to fix old maps.
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_alias_all(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
@@ -73,7 +59,8 @@ function stairsplus:register_alias_force_all(modname_old, subname_old, modname_n
 | 
			
		||||
	self:register_micro_alias_force(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function register_stair_slab_panel_micro(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_stair_slab_panel_micro(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_all(modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
@@ -83,11 +70,13 @@ function register_stair_slab_panel_micro(modname, subname, recipeitem, groups, i
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- dofile(modpath.. "/aliases.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
 | 
			
		||||
-- dofile(modpath.. "/conversion.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
 | 
			
		||||
dofile(modpath .. "/defs.lua")
 | 
			
		||||
dofile(modpath .. "/recipes.lua")
 | 
			
		||||
dofile(modpath .. "/common.lua")
 | 
			
		||||
dofile(modpath .. "/stairs.lua")
 | 
			
		||||
dofile(modpath .. "/slabs.lua")
 | 
			
		||||
dofile(modpath .. "/slopes.lua")
 | 
			
		||||
dofile(modpath .. "/panels.lua")
 | 
			
		||||
dofile(modpath .. "/microblocks.lua")
 | 
			
		||||
dofile(modpath .. "/custom.lua")
 | 
			
		||||
dofile(modpath .. "/registrations.lua")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,14 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: microblock definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
 | 
			
		||||
-- Node will be called <modname>:micro_<subname>
 | 
			
		||||
 | 
			
		||||
function register_micro(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_micro(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_micro(modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
@@ -20,138 +19,25 @@ function register_micro(modname, subname, recipeitem, groups, images, descriptio
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local microblocks_defs = {
 | 
			
		||||
	[""] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, 0, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_1"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, -0.4375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_2"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, -0.375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_4"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, -0.25, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_12"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, 0.25, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_14"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, 0.375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_15"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0, 0.4375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for k,v in pairs(microblocks_defs) do
 | 
			
		||||
	table.insert(stairsplus.shapes_list, { "micro_", k })
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_micro_alias(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(microblocks_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["micro"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias(modname_old .. ":micro_" .. subname_old .. alternate, modname_new .. ":micro_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_micro_alias_force(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(microblocks_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["micro"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias_force(modname_old .. ":micro_" .. subname_old .. alternate, modname_new .. ":micro_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_micro(modname, subname, recipeitem, fields)
 | 
			
		||||
	local defs = stairsplus.copytable(microblocks_defs)
 | 
			
		||||
	local desc = S("%s Microblock"):format(fields.description)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["micro"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		for k, v in pairs(fields) do
 | 
			
		||||
			def[k] = v
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		if fields.drop and not (type(fields.drop) == "table") then
 | 
			
		||||
			def.drop = modname.. ":micro_" ..fields.drop..alternate
 | 
			
		||||
		end
 | 
			
		||||
		minetest.register_node(":" ..modname.. ":micro_" ..subname..alternate, def)
 | 
			
		||||
		stairsplus.register_single("micro", alternate, def, modname, subname, recipeitem, fields)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname)
 | 
			
		||||
 | 
			
		||||
	circular_saw.known_nodes[recipeitem] = {modname, subname}
 | 
			
		||||
 | 
			
		||||
	-- Some saw-less recipes:
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":micro_" .. subname .. " 7",
 | 
			
		||||
		recipe = {modname .. ":stair_" .. subname .. "_inner"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
	output = modname .. ":micro_" .. subname .. " 6",
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
	recipe = {modname .. ":stair_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":micro_" .. subname .. " 5",
 | 
			
		||||
		recipe = {modname .. ":stair_" .. subname .. "_outer"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":micro_" .. subname .. " 4",
 | 
			
		||||
		recipe = {modname .. ":slab_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":micro_" .. subname .. " 4",
 | 
			
		||||
		recipe = {modname .. ":stair_" .. subname .. "_alt"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":micro_" .. subname .. " 3",
 | 
			
		||||
		recipe = {modname .. ":stair_" .. subname .. "_right_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":micro_" .. subname .. " 2",
 | 
			
		||||
		recipe = {modname .. ":panel_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,14 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: panel definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
 | 
			
		||||
-- Node will be called <modname>:panel_<subname>
 | 
			
		||||
 | 
			
		||||
function register_panel(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_panel(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_panel(modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
@@ -20,118 +19,25 @@ function register_panel(modname, subname, recipeitem, groups, images, descriptio
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local panels_defs = {
 | 
			
		||||
	[""] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, 0, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_1"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, -0.4375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_2"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, -0.375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_4"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, -0.25, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_12"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, 0.25, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_14"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, 0.375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_15"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {-0.5, -0.5, 0, 0.5, 0.4375, 0.5},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for k,v in pairs(panels_defs) do
 | 
			
		||||
	table.insert(stairsplus.shapes_list, { "panel_", k })
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_panel_alias(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(panels_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["panel"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias(modname_old .. ":panel_" .. subname_old .. alternate, modname_new .. ":panel_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_panel_alias_force(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(panels_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["panel"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias_force(modname_old .. ":panel_" .. subname_old .. alternate, modname_new .. ":panel_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_panel(modname, subname, recipeitem, fields)
 | 
			
		||||
	local defs = stairsplus.copytable(panels_defs)
 | 
			
		||||
	local desc = S("%s Panel"):format(fields.description)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["panel"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		for k, v in pairs(fields) do
 | 
			
		||||
			def[k] = v
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
		if fields.drop and not (type(fields.drop) == "table") then
 | 
			
		||||
			def.drop = modname.. ":panel_" ..fields.drop..alternate
 | 
			
		||||
		end
 | 
			
		||||
		minetest.register_node(":" ..modname.. ":panel_" ..subname..alternate, def)
 | 
			
		||||
		stairsplus.register_single("panel", alternate, def, modname, subname, recipeitem, fields)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.register_alias(modname.. ":panel_" ..subname.. "_bottom", modname.. ":panel_" ..subname)
 | 
			
		||||
 | 
			
		||||
	circular_saw.known_nodes[recipeitem] = {modname, subname}
 | 
			
		||||
 | 
			
		||||
	-- Some saw-less recipes:
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = modname .. ":panel_" .. subname .. " 12",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{recipeitem, ""},
 | 
			
		||||
			{recipeitem, recipeitem},
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = modname .. ":panel_" .. subname .. " 12",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{"", recipeitem},
 | 
			
		||||
			{recipeitem, recipeitem},
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":panel_" .. subname,
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										443
									
								
								stairsplus/recipes.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,443 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: Stairs+
 | 
			
		||||
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
stairsplus.register_recipes = function(category, alternate, modname, subname, recipeitem)
 | 
			
		||||
	if category == "micro" and alternate == "" then
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 7",
 | 
			
		||||
			recipe = {modname .. ":stair_" .. subname .. "_inner"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 6",
 | 
			
		||||
			recipe = {modname .. ":stair_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 5",
 | 
			
		||||
			recipe = {modname .. ":stair_" .. subname .. "_outer"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 4",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 4",
 | 
			
		||||
			recipe = {modname .. ":stair_" .. subname .. "_alt"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 3",
 | 
			
		||||
			recipe = {modname .. ":stair_" .. subname .. "_right_half"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":micro_" .. subname .. " 2",
 | 
			
		||||
			recipe = {modname .. ":panel_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_alias(modname .. ":micro_" .. subname .. "_bottom", modname .. ":micro_" .. subname)
 | 
			
		||||
	elseif category == "panel" and alternate == "" then
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = modname .. ":panel_" .. subname .. " 12",
 | 
			
		||||
			recipe = {
 | 
			
		||||
				{recipeitem, ""},
 | 
			
		||||
				{recipeitem, recipeitem},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = modname .. ":panel_" .. subname .. " 12",
 | 
			
		||||
			recipe = {
 | 
			
		||||
				{"", recipeitem},
 | 
			
		||||
				{recipeitem, recipeitem},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":panel_" .. subname,
 | 
			
		||||
			recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_alias(modname.. ":panel_" ..subname.. "_bottom", modname.. ":panel_" ..subname)
 | 
			
		||||
	elseif category == "slab" then
 | 
			
		||||
		if alternate == "" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. " 6",
 | 
			
		||||
				recipe = {{recipeitem, recipeitem, recipeitem}},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			-- uncomment this rule when conflict is no longer likely to happen
 | 
			
		||||
			--	https://github.com/minetest/minetest/issues/2881
 | 
			
		||||
			-- minetest.register_craft({
 | 
			
		||||
			--	type = "shapeless",
 | 
			
		||||
			--	output = modname .. ":slab_" .. subname,
 | 
			
		||||
			--	recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
			-- })
 | 
			
		||||
 | 
			
		||||
			-- then remove these two
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe = {
 | 
			
		||||
					{modname .. ":panel_" .. subname},
 | 
			
		||||
					{modname .. ":panel_" .. subname},
 | 
			
		||||
				},
 | 
			
		||||
			})
 | 
			
		||||
			------------------------------
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. " 3",
 | 
			
		||||
				recipe = {modname .. ":stair_" .. subname, modname .. ":stair_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_quarter" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_quarter",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_quarter",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_three_quarter" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_three_quarter",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_three_quarter",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_three_quarter",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_2" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_2",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_14" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_14",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_14",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_15" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_15", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slab_" .. subname .. "_15",
 | 
			
		||||
				recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
			})
 | 
			
		||||
		end
 | 
			
		||||
	elseif category == "slope" then
 | 
			
		||||
		if alternate == "" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_half" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
 | 
			
		||||
					modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_outer" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer", modname .. ":slope_" .. subname .. "_inner"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_outer_half" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half_raised"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_inner_half" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer_half_raised", modname .. ":slope_" .. subname .. "_inner_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_outer_cut" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_inner_cut"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_outer_cut_half" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half_raised"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_cut" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = recipeitem,
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_cut", modname .. ":slope_" .. subname .. "_cut"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_half_raised" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slope_" .. subname .. "_half_raised",
 | 
			
		||||
				recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
 | 
			
		||||
					modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slope_" .. subname .. "_half_raised",
 | 
			
		||||
				recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_inner_half_raised" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slope_" .. subname .. "_inner_half_raised",
 | 
			
		||||
				recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_outer_half_raised" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slope_" .. subname .. "_outer_half_raised",
 | 
			
		||||
				recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_inner_cut_half_raised" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":slope_" .. subname .. "_inner_cut_half_raised",
 | 
			
		||||
				recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_cut_half"},
 | 
			
		||||
			})
 | 
			
		||||
		end
 | 
			
		||||
	elseif category == "stair" then
 | 
			
		||||
		if alternate == "" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. " 8",
 | 
			
		||||
				recipe = {
 | 
			
		||||
					{recipeitem, "", ""},
 | 
			
		||||
					{recipeitem, recipeitem, ""},
 | 
			
		||||
					{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
				},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. " 8",
 | 
			
		||||
				recipe = {
 | 
			
		||||
					{"", "", recipeitem},
 | 
			
		||||
					{"", recipeitem, recipeitem},
 | 
			
		||||
					{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
				},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":panel_" .. subname, modname .. ":slab_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname,
 | 
			
		||||
				recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_inner" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_inner",
 | 
			
		||||
				recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_outer" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_outer",
 | 
			
		||||
				recipe = {modname .. ":micro_" .. subname, modname .. ":slab_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_outer",
 | 
			
		||||
				recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_half" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_half",
 | 
			
		||||
				recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_half",
 | 
			
		||||
				recipe = {modname .. ":panel_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_right_half" then
 | 
			
		||||
			minetest.register_craft({
 | 
			
		||||
				type = "shapeless",
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_right_half",
 | 
			
		||||
				recipe = {modname .. ":stair_" .. subname .. "_half"},
 | 
			
		||||
			})
 | 
			
		||||
		elseif alternate == "_alt" then
 | 
			
		||||
			minetest.register_craft({ -- See mirrored variation of the recipe below.
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_alt",
 | 
			
		||||
				recipe = {
 | 
			
		||||
					{modname .. ":panel_" .. subname, ""},
 | 
			
		||||
					{""                            , modname .. ":panel_" .. subname},
 | 
			
		||||
				},
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
			minetest.register_craft({ -- Mirrored variation of the recipe above.
 | 
			
		||||
				output = modname .. ":stair_" .. subname .. "_alt",
 | 
			
		||||
				recipe = {
 | 
			
		||||
					{""                            , modname .. ":panel_" .. subname},
 | 
			
		||||
					{modname .. ":panel_" .. subname, ""},
 | 
			
		||||
				},
 | 
			
		||||
			})
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,10 +1,11 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: registrations
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
-- default registrations
 | 
			
		||||
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
 | 
			
		||||
	"stone",
 | 
			
		||||
	"stone_block",
 | 
			
		||||
@@ -48,73 +49,115 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
 | 
			
		||||
	"desert_sandstone_block",
 | 
			
		||||
	"sandstone_block",
 | 
			
		||||
	"coral_skeleton",
 | 
			
		||||
	"farming:straw"
 | 
			
		||||
	"ice",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for _, name in pairs(default_nodes) do
 | 
			
		||||
	local nodename = "default:"..name
 | 
			
		||||
	local a,b = string.find(name, ":")
 | 
			
		||||
	if b then
 | 
			
		||||
		nodename = name
 | 
			
		||||
		name = string.sub(name, b+1)
 | 
			
		||||
	local mod = "default"
 | 
			
		||||
	local nodename = mod .. ":" .. name
 | 
			
		||||
	local ndef = table.copy(minetest.registered_nodes[nodename])
 | 
			
		||||
	ndef.sunlight_propagates = true
 | 
			
		||||
 | 
			
		||||
	-- Stone and desert_stone drop cobble and desert_cobble respectively.
 | 
			
		||||
	if type(ndef.drop) == "string" then
 | 
			
		||||
		ndef.drop = ndef.drop:gsub(".+:", "")
 | 
			
		||||
	elseif name == "desert_stone" then
 | 
			
		||||
		ndef.drop = ndef.drop.items[1].items[1]:gsub(".+:", "")
 | 
			
		||||
	end
 | 
			
		||||
	local ndef = minetest.registered_nodes[nodename]
 | 
			
		||||
	if ndef then
 | 
			
		||||
		local drop
 | 
			
		||||
		if type(ndef.drop) == "string" then
 | 
			
		||||
			drop = ndef.drop:sub((b or 8)+1)
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local tiles = ndef.tiles
 | 
			
		||||
		if #ndef.tiles > 1 and ndef.drawtype:find("glass") then
 | 
			
		||||
			tiles = { ndef.tiles[1] }
 | 
			
		||||
		end
 | 
			
		||||
	-- Use the primary tile for all sides of cut glasslike nodes and disregard paramtype2.
 | 
			
		||||
	if #ndef.tiles > 1 and ndef.drawtype and ndef.drawtype:find("glass") then
 | 
			
		||||
		ndef.tiles = {ndef.tiles[1]}
 | 
			
		||||
		ndef.paramtype2 = nil
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
		stairsplus:register_all("moreblocks", name, nodename, {
 | 
			
		||||
			description = ndef.description,
 | 
			
		||||
			drop = drop,
 | 
			
		||||
			groups = ndef.groups,
 | 
			
		||||
			sounds = ndef.sounds,
 | 
			
		||||
			tiles = tiles,
 | 
			
		||||
			sunlight_propagates = true,
 | 
			
		||||
			light_source = ndef.light_source
 | 
			
		||||
		})
 | 
			
		||||
	mod = "moreblocks"
 | 
			
		||||
	stairsplus:register_all(mod, name, nodename, ndef)
 | 
			
		||||
	minetest.register_alias_force("stairs:stair_" .. name, mod .. ":stair_" .. name)
 | 
			
		||||
	minetest.register_alias_force("stairs:stair_outer_" .. name, mod .. ":stair_" .. name .. "_outer")
 | 
			
		||||
	minetest.register_alias_force("stairs:stair_inner_" .. name, mod .. ":stair_" .. name .. "_inner")
 | 
			
		||||
	minetest.register_alias_force("stairs:slab_"  .. name, mod .. ":slab_"  .. name)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- farming registrations
 | 
			
		||||
if minetest.get_modpath("farming") then
 | 
			
		||||
	local farming_nodes = {"straw"}
 | 
			
		||||
	for _, name in pairs(farming_nodes) do
 | 
			
		||||
		local mod = "farming"
 | 
			
		||||
		local nodename = mod .. ":" .. name
 | 
			
		||||
		local ndef = table.copy(minetest.registered_nodes[nodename])
 | 
			
		||||
		ndef.sunlight_propagates = true
 | 
			
		||||
 | 
			
		||||
		mod = "moreblocks"
 | 
			
		||||
		stairsplus:register_all(mod, name, nodename, ndef)
 | 
			
		||||
		minetest.register_alias_force("stairs:stair_" .. name, mod .. ":stair_" .. name)
 | 
			
		||||
		minetest.register_alias_force("stairs:stair_outer_" .. name, mod .. ":stair_" .. name .. "_outer")
 | 
			
		||||
		minetest.register_alias_force("stairs:stair_inner_" .. name, mod .. ":stair_" .. name .. "_inner")
 | 
			
		||||
		minetest.register_alias_force("stairs:slab_"  .. name, mod .. ":slab_"  .. name)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- wool registrations
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("wool") then
 | 
			
		||||
	local dyes = {"white", "grey", "black", "red", "yellow", "green", "cyan",
 | 
			
		||||
	              "blue", "magenta", "orange", "violet", "brown", "pink",
 | 
			
		||||
	              "dark_grey", "dark_green"}
 | 
			
		||||
	for _, name in pairs(dyes) do
 | 
			
		||||
		local mod = "wool"
 | 
			
		||||
		local nodename = mod .. ":" .. name
 | 
			
		||||
		local ndef = table.copy(minetest.registered_nodes[nodename])
 | 
			
		||||
		ndef.sunlight_propagates = true
 | 
			
		||||
 | 
			
		||||
	local colorlist = {
 | 
			
		||||
		{"white",      "White Wool"},
 | 
			
		||||
		{"grey",       "Grey Wool"},
 | 
			
		||||
		{"black",      "Black Wool"},
 | 
			
		||||
		{"red",        "Red Wool"},
 | 
			
		||||
		{"yellow",     "Yellow Wool"},
 | 
			
		||||
		{"green",      "Green Wool"},
 | 
			
		||||
		{"cyan",       "Cyan Wool"},
 | 
			
		||||
		{"blue",       "Blue Wool"},
 | 
			
		||||
		{"magenta",    "Magenta Wool"},
 | 
			
		||||
		{"orange",     "Orange Wool"},
 | 
			
		||||
		{"violet",     "Violet Wool"},
 | 
			
		||||
		{"brown",      "Brown Wool"},
 | 
			
		||||
		{"pink",       "Pink Wool"},
 | 
			
		||||
		{"dark_grey",  "Dark Grey Wool"},
 | 
			
		||||
		{"dark_green", "Dark Green Wool"},
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for i in ipairs(colorlist) do
 | 
			
		||||
		local color = colorlist[i][1]
 | 
			
		||||
		local colordesc = colorlist[i][2]
 | 
			
		||||
		
 | 
			
		||||
		stairsplus:register_all("wool", color, "wool:"..color, {
 | 
			
		||||
			description = colordesc,
 | 
			
		||||
			tiles = {"wool_"..color..".png"},
 | 
			
		||||
			groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,
 | 
			
		||||
					flammable=3,wool=1,not_in_creative_inventory=1},
 | 
			
		||||
			sounds = default.node_sound_defaults(),
 | 
			
		||||
			sunlight_propagates = true,
 | 
			
		||||
		})
 | 
			
		||||
		stairsplus:register_all(mod, name, nodename, ndef)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- basic_materials, keeping the original other-mod-oriented names
 | 
			
		||||
-- for backwards compatibility
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("basic_materials") then
 | 
			
		||||
	stairsplus:register_all("technic","concrete","basic_materials:concrete_block",{
 | 
			
		||||
		description = "Concrete",
 | 
			
		||||
		tiles = {"basic_materials_concrete_block.png",},
 | 
			
		||||
		groups = {cracky=1, level=2, concrete=1},
 | 
			
		||||
		sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_alias("prefab:concrete_stair","technic:stair_concrete")
 | 
			
		||||
	minetest.register_alias("prefab:concrete_slab","technic:slab_concrete")
 | 
			
		||||
 | 
			
		||||
	stairsplus:register_all("gloopblocks", "cement", "basic_materials:cement_block", {
 | 
			
		||||
		description = "Cement",
 | 
			
		||||
		tiles = {"basic_materials_cement_block.png"},
 | 
			
		||||
		groups = {cracky=2, not_in_creative_inventory=1},
 | 
			
		||||
		sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	stairsplus:register_all("technic", "brass_block", "basic_materials:brass_block", {
 | 
			
		||||
		description="Brass Block",
 | 
			
		||||
		groups={cracky=1, not_in_creative_inventory=1},
 | 
			
		||||
		tiles={"basic_materials_brass_block.png"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Alias cuts of split_stone_tile_alt which was renamed checker_stone_tile.
 | 
			
		||||
stairsplus:register_alias_all("moreblocks", "split_stone_tile_alt", "moreblocks", "checker_stone_tile")
 | 
			
		||||
 | 
			
		||||
-- The following LBM is necessary because the name stair_split_stone_tile_alt
 | 
			
		||||
-- conflicts with another node and so the alias for that specific node gets
 | 
			
		||||
-- ignored.
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = "moreblocks:fix_split_stone_tile_alt_name_collision",
 | 
			
		||||
	nodenames = {"moreblocks:stair_split_stone_tile_alt"},
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		minetest.set_node(pos, {
 | 
			
		||||
			name = "moreblocks:stair_checker_stone_tile",
 | 
			
		||||
			param2 = minetest.get_node(pos).param2
 | 
			
		||||
 | 
			
		||||
		})
 | 
			
		||||
		minetest.log('action', "LBM replaced " .. node.name ..
 | 
			
		||||
			" at " .. minetest.pos_to_string(pos))
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,14 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: slab definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
 | 
			
		||||
-- Node will be called <modname>:slab_<subname>
 | 
			
		||||
 | 
			
		||||
function register_slab(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_slab(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_slab(modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
@@ -20,238 +19,25 @@ function register_slab(modname, subname, recipeitem, groups, images, description
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local slabs_defs = {
 | 
			
		||||
	[""] = 8,
 | 
			
		||||
	["_quarter"] = 4,
 | 
			
		||||
	["_three_quarter"] = 12,
 | 
			
		||||
	["_1"] = 1,
 | 
			
		||||
	["_2"] = 2,
 | 
			
		||||
	["_14"] = 14,
 | 
			
		||||
	["_15"] = 15,
 | 
			
		||||
	["_two_sides"] = {
 | 
			
		||||
						{ -0.5, -0.5, -0.5, 0.5, -7/16, 7/16 },
 | 
			
		||||
						{ -0.5, -0.5, 7/16, 0.5, 0.5, 0.5 }
 | 
			
		||||
					},
 | 
			
		||||
	["_three_sides"] = {
 | 
			
		||||
						{ -7/16, -0.5, -0.5, 0.5, -7/16, 7/16 },
 | 
			
		||||
						{ -7/16, -0.5, 7/16, 0.5, 0.5, 0.5 },
 | 
			
		||||
						{ -0.5, -0.5, -0.5, -7/16, 0.5, 0.5 }
 | 
			
		||||
					},
 | 
			
		||||
	["_three_sides_u"] = {
 | 
			
		||||
						{ -0.5, -0.5, -0.5, 0.5, 0.5, -7/16 },
 | 
			
		||||
						{ -0.5, -0.5, -7/16, 0.5, -7/16, 7/16 },
 | 
			
		||||
						{ -0.5, -0.5, 7/16, 0.5, 0.5, 0.5 }
 | 
			
		||||
					}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for k,v in pairs(slabs_defs) do
 | 
			
		||||
	table.insert(stairsplus.shapes_list, { "slab_", k })
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_slab_alias(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(slabs_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["slab"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias(modname_old .. ":slab_" .. subname_old .. alternate, modname_new .. ":slab_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_slab_alias_force(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(slabs_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["slab"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias_force(modname_old .. ":slab_" .. subname_old .. alternate, modname_new .. ":slab_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_slab(modname, subname, recipeitem, fields)
 | 
			
		||||
	local defs = stairsplus.copytable(slabs_defs)
 | 
			
		||||
	local desc_base = S("%s Slab"):format(fields.description)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["slab"])
 | 
			
		||||
	for alternate, shape in pairs(defs) do
 | 
			
		||||
 | 
			
		||||
		local def = {}
 | 
			
		||||
 | 
			
		||||
		if type(shape) ~= "table" then
 | 
			
		||||
			def = {
 | 
			
		||||
					node_box = {
 | 
			
		||||
						type = "fixed",
 | 
			
		||||
						fixed = {-0.5, -0.5, -0.5, 0.5, (shape/16)-0.5, 0.5},
 | 
			
		||||
					},
 | 
			
		||||
					description = ("%s (%d/16)"):format(desc_base, shape)
 | 
			
		||||
				}
 | 
			
		||||
		else
 | 
			
		||||
			def = {
 | 
			
		||||
				node_box = {
 | 
			
		||||
					type = "fixed",
 | 
			
		||||
					fixed = shape,
 | 
			
		||||
				},
 | 
			
		||||
				description = desc_base
 | 
			
		||||
			}
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		for k, v in pairs(fields) do
 | 
			
		||||
			def[k] = v
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
		if fields.drop and not (type(fields.drop) == "table") then
 | 
			
		||||
			def.drop = modname.. ":slab_" .. fields.drop .. alternate
 | 
			
		||||
		end
 | 
			
		||||
		minetest.register_node(":" .. modname .. ":slab_" .. subname .. alternate, def)
 | 
			
		||||
		stairsplus.register_single("slab", alternate, shape, modname, subname, recipeitem, fields)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.register_alias("stairs:slab_" .. subname, modname .. ":slab_" .. subname)
 | 
			
		||||
 | 
			
		||||
	circular_saw.known_nodes[recipeitem] = {modname, subname}
 | 
			
		||||
 | 
			
		||||
	-- Some saw-less recipes:
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. " 6",
 | 
			
		||||
			recipe = {{recipeitem, recipeitem, recipeitem}},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname,
 | 
			
		||||
			recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		-- uncomment this rule when conflict is no longer likely to happen
 | 
			
		||||
		--	https://github.com/minetest/minetest/issues/2881
 | 
			
		||||
		-- minetest.register_craft({
 | 
			
		||||
		--	type = "shapeless",
 | 
			
		||||
		--	output = modname .. ":slab_" .. subname,
 | 
			
		||||
		--	recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
		-- })
 | 
			
		||||
 | 
			
		||||
		-- then remove these two
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = modname .. ":slab_" .. subname,
 | 
			
		||||
			recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			output = modname .. ":slab_" .. subname,
 | 
			
		||||
			recipe = {
 | 
			
		||||
				{modname .. ":panel_" .. subname},
 | 
			
		||||
				{modname .. ":panel_" .. subname},
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
		------------------------------
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = recipeitem,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_15", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname,
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_quarter",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_quarter",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_2",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_three_quarter",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_three_quarter",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_three_quarter",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_14",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_14",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. "_15",
 | 
			
		||||
			recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_1"},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		minetest.register_craft({
 | 
			
		||||
			type = "shapeless",
 | 
			
		||||
			output = modname .. ":slab_" .. subname .. " 3",
 | 
			
		||||
			recipe = {modname .. ":stair_" .. subname, modname .. ":stair_" .. subname},
 | 
			
		||||
		})
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -1,118 +1,14 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: slope definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
 | 
			
		||||
local box_slope = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5, 0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.25, -0.25, 0.5,     0, 0.5},
 | 
			
		||||
		{-0.5,     0,     0, 0.5,  0.25, 0.5},
 | 
			
		||||
		{-0.5,  0.25,  0.25, 0.5,   0.5, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_half = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5,   -0.5,  0.5, -0.375, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.25, 0.5, -0.25,  0.5},
 | 
			
		||||
		{-0.5, -0.25,  0,    0.5, -0.125, 0.5},
 | 
			
		||||
		{-0.5, -0.125, 0.25, 0.5,  0,     0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_half_raised = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5,   -0.5,  0.5, 0.125, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.25, 0.5, 0.25,  0.5},
 | 
			
		||||
		{-0.5, 0.25,  0,    0.5, 0.375, 0.5},
 | 
			
		||||
		{-0.5, 0.375, 0.25, 0.5,  0.5,     0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
--==============================================================
 | 
			
		||||
 | 
			
		||||
local box_slope_inner = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.5, -0.25, 0.5, 0, 0.5},
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.25, 0, 0.5},
 | 
			
		||||
		{-0.5, 0, -0.5, 0, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0, 0, 0.5, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5},
 | 
			
		||||
		{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_inner_half = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.5, 0.25, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.25, -0.5, 0, -0.125, 0.5},
 | 
			
		||||
		{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
 | 
			
		||||
		{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
 | 
			
		||||
		{-0.5, -0.125, -0.5, -0.25, 0, 0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_inner_half_raised = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.5, 0.25, 0.25, 0.5},
 | 
			
		||||
		{-0.5, 0.25, -0.5, 0, 0.375, 0.5},
 | 
			
		||||
		{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
 | 
			
		||||
		{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5},
 | 
			
		||||
		{-0.5, 0.375, -0.5, -0.25, 0.5, 0.5},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
--==============================================================
 | 
			
		||||
 | 
			
		||||
local box_slope_outer = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5,   0.5, -0.25, 0.5},
 | 
			
		||||
		{-0.5, -0.25, -0.25,  0.25,     0, 0.5},
 | 
			
		||||
		{-0.5,     0,     0,     0,  0.25, 0.5},
 | 
			
		||||
		{-0.5,  0.25,  0.25, -0.25,   0.5, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_outer_half = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5,   0.5, -0.375, 0.5},
 | 
			
		||||
		{-0.5, -0.375, -0.25,  0.25, -0.25, 0.5},
 | 
			
		||||
		{-0.5,  -0.25,     0,     0, -0.125, 0.5},
 | 
			
		||||
		{-0.5,  -0.125,  0.25, -0.25, 0, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local box_slope_outer_half_raised = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
		{-0.5,  -0.5,  -0.5,   0.5, 0.125, 0.5},
 | 
			
		||||
		{-0.5, 0.125, -0.25,  0.25, 0.25, 0.5},
 | 
			
		||||
		{-0.5,  0.25,     0,     0, 0.375, 0.5},
 | 
			
		||||
		{-0.5,  0.375,  0.25, -0.25, 0.5, 0.5}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
-- Node will be called <modname>:slope_<subname>
 | 
			
		||||
 | 
			
		||||
function register_slope(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_slope(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_slope(modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
@@ -123,244 +19,25 @@ function register_slope(modname, subname, recipeitem, groups, images, descriptio
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local slopes_defs = {
 | 
			
		||||
	[""] = {
 | 
			
		||||
		mesh = "moreblocks_slope.obj",
 | 
			
		||||
		collision_box = box_slope,
 | 
			
		||||
		selection_box = box_slope,
 | 
			
		||||
 | 
			
		||||
	},
 | 
			
		||||
	["_half"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_half.obj",
 | 
			
		||||
		collision_box = box_slope_half,
 | 
			
		||||
		selection_box = box_slope_half,
 | 
			
		||||
	},
 | 
			
		||||
	["_half_raised"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_half_raised.obj",
 | 
			
		||||
		collision_box = box_slope_half_raised,
 | 
			
		||||
		selection_box = box_slope_half_raised,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	--==============================================================
 | 
			
		||||
 | 
			
		||||
	["_inner"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_inner.obj",
 | 
			
		||||
		collision_box = box_slope_inner,
 | 
			
		||||
		selection_box = box_slope_inner,
 | 
			
		||||
	},
 | 
			
		||||
	["_inner_half"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_inner_half.obj",
 | 
			
		||||
		collision_box = box_slope_inner_half,
 | 
			
		||||
		selection_box = box_slope_inner_half,
 | 
			
		||||
	},
 | 
			
		||||
	["_inner_half_raised"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_inner_half_raised.obj",
 | 
			
		||||
		collision_box = box_slope_inner_half_raised,
 | 
			
		||||
		selection_box = box_slope_inner_half_raised,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	--==============================================================
 | 
			
		||||
 | 
			
		||||
	["_inner_cut"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_inner_cut.obj",
 | 
			
		||||
		collision_box = box_slope_inner,
 | 
			
		||||
		selection_box = box_slope_inner,
 | 
			
		||||
	},
 | 
			
		||||
	["_inner_cut_half"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_inner_cut_half.obj",
 | 
			
		||||
		collision_box = box_slope_inner_half,
 | 
			
		||||
		selection_box = box_slope_inner_half,
 | 
			
		||||
	},
 | 
			
		||||
	["_inner_cut_half_raised"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_inner_cut_half_raised.obj",
 | 
			
		||||
		collision_box = box_slope_inner_half_raised,
 | 
			
		||||
		selection_box = box_slope_inner_half_raised,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	--==============================================================
 | 
			
		||||
 | 
			
		||||
	["_outer"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_outer.obj",
 | 
			
		||||
		collision_box = box_slope_outer,
 | 
			
		||||
		selection_box = box_slope_outer,
 | 
			
		||||
	},
 | 
			
		||||
	["_outer_half"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_outer_half.obj",
 | 
			
		||||
		collision_box = box_slope_outer_half,
 | 
			
		||||
		selection_box = box_slope_outer_half,
 | 
			
		||||
	},
 | 
			
		||||
	["_outer_half_raised"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_outer_half_raised.obj",
 | 
			
		||||
		collision_box = box_slope_outer_half_raised,
 | 
			
		||||
		selection_box = box_slope_outer_half_raised,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	--==============================================================
 | 
			
		||||
 | 
			
		||||
	["_outer_cut"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_outer_cut.obj",
 | 
			
		||||
		collision_box = box_slope_outer,
 | 
			
		||||
		selection_box = box_slope_outer,
 | 
			
		||||
	},
 | 
			
		||||
	["_outer_cut_half"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_outer_cut_half.obj",
 | 
			
		||||
		collision_box = box_slope_outer_half,
 | 
			
		||||
		selection_box = box_slope_outer_half,
 | 
			
		||||
	},
 | 
			
		||||
	["_outer_cut_half_raised"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_outer_cut_half_raised.obj",
 | 
			
		||||
		collision_box = box_slope_outer_half_raised,
 | 
			
		||||
		selection_box = box_slope_outer_half_raised,
 | 
			
		||||
	},
 | 
			
		||||
	["_cut"] = {
 | 
			
		||||
		mesh = "moreblocks_slope_cut.obj",
 | 
			
		||||
		collision_box = box_slope_outer,
 | 
			
		||||
		selection_box = box_slope_outer,
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for k,v in pairs(slopes_defs) do
 | 
			
		||||
	table.insert(stairsplus.shapes_list, { "slope_", k })
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_slope_alias(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(slopes_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["slope"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias(modname_old .. ":slope_" .. subname_old .. alternate, modname_new .. ":slope_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_slope_alias_force(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(slopes_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["slope"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias_force(modname_old .. ":slope_" .. subname_old .. alternate, modname_new .. ":slope_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_slope(modname, subname, recipeitem, fields)
 | 
			
		||||
	local defs = stairsplus.copytable(slopes_defs)
 | 
			
		||||
	local desc = S("%s Slope"):format(fields.description)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["slope"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		for k, v in pairs(fields) do
 | 
			
		||||
			def[k] = v
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "mesh"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
		if fields.drop and not (type(fields.drop) == "table") then
 | 
			
		||||
			def.drop = modname.. ":slope_" ..fields.drop..alternate
 | 
			
		||||
		end
 | 
			
		||||
		minetest.register_node(":" ..modname.. ":slope_" ..subname..alternate, def)
 | 
			
		||||
		stairsplus.register_single("slope", alternate, def, modname, subname, recipeitem, fields)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	circular_saw.known_nodes[recipeitem] = {modname, subname}
 | 
			
		||||
 | 
			
		||||
	-- Some saw-less recipes:
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
 | 
			
		||||
				   modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer", modname .. ":slope_" .. subname .. "_inner"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half_raised"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer_half_raised", modname .. ":slope_" .. subname .. "_inner_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_inner_cut"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half_raised"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = recipeitem,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_cut", modname .. ":slope_" .. subname .. "_cut"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slab_" .. subname,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slab_" .. subname,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slab_" .. subname,
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slope_" .. subname .. "_half_raised",
 | 
			
		||||
		recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
 | 
			
		||||
				   modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slope_" .. subname .. "_half_raised",
 | 
			
		||||
		recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slope_" .. subname .. "_inner_half_raised",
 | 
			
		||||
		recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slope_" .. subname .. "_outer_half_raised",
 | 
			
		||||
		recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":slope_" .. subname .. "_inner_cut_half_raised",
 | 
			
		||||
		recipe =  {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_cut_half"},
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,14 @@
 | 
			
		||||
--[[
 | 
			
		||||
More Blocks: stair definitions
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
 | 
			
		||||
Copyright © 2011-2020 Hugo Locurcio and contributors.
 | 
			
		||||
Licensed under the zlib license. See LICENSE.md for more information.
 | 
			
		||||
--]]
 | 
			
		||||
 | 
			
		||||
local S = moreblocks.intllib
 | 
			
		||||
 | 
			
		||||
-- Node will be called <modname>:stair_<subname>
 | 
			
		||||
 | 
			
		||||
function register_stair(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
-- luacheck: no unused
 | 
			
		||||
local function register_stair(modname, subname, recipeitem, groups, images, description, drop, light)
 | 
			
		||||
	stairsplus:register_stair(modname, subname, recipeitem, {
 | 
			
		||||
		groups = groups,
 | 
			
		||||
		tiles = images,
 | 
			
		||||
@@ -20,224 +19,25 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local stairs_defs = {
 | 
			
		||||
	[""] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
				{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_half"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.5, -0.5, 0, 0, 0.5},
 | 
			
		||||
				{-0.5, 0, 0, 0, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_right_half" ]= {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{0, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
				{0, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_inner"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
				{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
				{-0.5, 0, -0.5, 0, 0.5, 0},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_outer"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
 | 
			
		||||
				{-0.5, 0, 0, 0, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_alt"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.5, -0.5, 0.5, 0, 0},
 | 
			
		||||
				{-0.5, 0, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_alt_1"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.0625, -0.5, 0.5, 0, 0},
 | 
			
		||||
				{-0.5, 0.4375, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_alt_2"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.125, -0.5, 0.5, 0, 0},
 | 
			
		||||
				{-0.5, 0.375, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	["_alt_4"] = {
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = {
 | 
			
		||||
				{-0.5, -0.25, -0.5, 0.5, 0, 0},
 | 
			
		||||
				{-0.5, 0.25, 0, 0.5, 0.5, 0.5},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for k,v in pairs(stairs_defs) do
 | 
			
		||||
	table.insert(stairsplus.shapes_list, { "stair_", k })
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_stair_alias(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(stairs_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["stair"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias(modname_old .. ":stair_" .. subname_old .. alternate, modname_new .. ":stair_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_stair_alias_force(modname_old, subname_old, modname_new, subname_new)
 | 
			
		||||
	local defs = stairsplus.copytable(stairs_defs)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["stair"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		minetest.register_alias_force(modname_old .. ":stair_" .. subname_old .. alternate, modname_new .. ":stair_" .. subname_new .. alternate)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function stairsplus:register_stair(modname, subname, recipeitem, fields)
 | 
			
		||||
	local defs = stairsplus.copytable(stairs_defs)
 | 
			
		||||
	local desc = S("%s Stairs"):format(fields.description)
 | 
			
		||||
	local defs = table.copy(stairsplus.defs["stair"])
 | 
			
		||||
	for alternate, def in pairs(defs) do
 | 
			
		||||
		for k, v in pairs(fields) do
 | 
			
		||||
			def[k] = v
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
		if fields.drop and not (type(fields.drop) == "table") then
 | 
			
		||||
			def.drop = modname .. ":stair_" .. fields.drop .. alternate
 | 
			
		||||
		end
 | 
			
		||||
		minetest.register_node(":" .. modname .. ":stair_" .. subname .. alternate, def)
 | 
			
		||||
		stairsplus.register_single("stair", alternate, def, modname, subname, recipeitem, fields)
 | 
			
		||||
	end
 | 
			
		||||
	minetest.register_alias("stairs:stair_" .. subname, modname .. ":stair_" .. subname)
 | 
			
		||||
 | 
			
		||||
	circular_saw.known_nodes[recipeitem] = {modname, subname}
 | 
			
		||||
 | 
			
		||||
	-- Some saw-less recipes:
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. " 8",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{recipeitem, "", ""},
 | 
			
		||||
			{recipeitem, recipeitem, ""},
 | 
			
		||||
			{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. " 8",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{"", "", recipeitem},
 | 
			
		||||
			{"", recipeitem, recipeitem},
 | 
			
		||||
			{recipeitem, recipeitem, recipeitem},
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname,
 | 
			
		||||
		recipe = {modname .. ":panel_" .. subname, modname .. ":slab_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname,
 | 
			
		||||
		recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_outer",
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":slab_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_half",
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_half",
 | 
			
		||||
		recipe = {modname .. ":panel_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_right_half",
 | 
			
		||||
		recipe = {modname .. ":stair_" .. subname .. "_half"},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname,
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_inner",
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_outer",
 | 
			
		||||
		recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = modname .. ":stair_" .. subname,
 | 
			
		||||
		recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({ -- See mirrored variation of the recipe below.
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_alt",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{modname .. ":panel_" .. subname, ""},
 | 
			
		||||
			{""                            , modname .. ":panel_" .. subname},
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({ -- Mirrored variation of the recipe above.
 | 
			
		||||
		output = modname .. ":stair_" .. subname .. "_alt",
 | 
			
		||||
		recipe = {
 | 
			
		||||
			{""                            , modname .. ":panel_" .. subname},
 | 
			
		||||
			{modname .. ":panel_" .. subname, ""},
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 716 B  | 
| 
		 Before Width: | Height: | Size: 285 B  | 
| 
		 Before Width: | Height: | Size: 68 B  | 
| 
		 Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 697 B  | 
| 
		 Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 685 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_checker_stone_tile.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 299 B  | 
| 
		 Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 446 B  | 
| 
		 Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 574 B  | 
| 
		 Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 474 B  | 
| 
		 Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 439 B  | 
| 
		 Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 170 B  | 
| 
		 Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 738 B  | 
| 
		 Before Width: | Height: | Size: 155 B  | 
| 
		 Before Width: | Height: | Size: 159 B  | 
| 
		 Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 163 B  | 
| 
		 Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 481 B  | 
| 
		 Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 258 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_desert_cobble_compressed.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 2.5 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_dirt_compressed.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 269 B  | 
| 
		 Before Width: | Height: | Size: 219 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_empty_shelf.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 207 B  | 
| 
		 Before Width: | Height: | Size: 204 B  | 
| 
		 Before Width: | Height: | Size: 480 B  | 
| 
		 Before Width: | Height: | Size: 210 B  | 
| 
		 Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 167 B  | 
| 
		 Before Width: | Height: | Size: 157 B  | 
| 
		 Before Width: | Height: | Size: 161 B  | 
| 
		 Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 167 B  | 
| 
		 Before Width: | Height: | Size: 850 B After Width: | Height: | Size: 739 B  | 
| 
		 Before Width: | Height: | Size: 158 B  | 
| 
		 Before Width: | Height: | Size: 163 B  | 
| 
		 Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 167 B  | 
| 
		 Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 229 B  | 
| 
		 Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 483 B  | 
| 
		 Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 115 B  | 
| 
		 Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 352 B  | 
| 
		 Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 272 B  | 
| 
		 Before Width: | Height: | Size: 306 B  | 
| 
		 Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 278 B  | 
| 
		 Before Width: | Height: | Size: 154 B  | 
| 
		 Before Width: | Height: | Size: 156 B  | 
| 
		 Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 169 B  | 
| 
		 Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 309 B  | 
| 
		 Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 266 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_trap_box.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 88 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_trap_box_glass.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 117 B  | 
| 
		 Before Width: | Height: | Size: 170 B  | 
| 
		 Before Width: | Height: | Size: 170 B  | 
| 
		 Before Width: | Height: | Size: 333 B  | 
| 
		 Before Width: | Height: | Size: 170 B  | 
| 
		 Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 286 B  | 
| 
		 Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 387 B  |