tunnelmaker/README.md

127 lines
7.3 KiB
Markdown
Raw Permalink Normal View History

Tunnelmaker 2.0
===============
2017-04-21 09:40:51 -07:00
2019-01-25 20:30:27 -08:00
A Minetest Mod to easily create arbitrarily curved tunnels, pathways, and bridges.
2017-04-21 09:40:51 -07:00
2019-01-25 20:30:27 -08:00
![Tunnelmaker Screenshot](screenshot.png "Tunnelmaker")
2017-04-21 09:40:51 -07:00
2019-01-25 20:30:27 -08:00
By David G (kestral246@gmail.com), with significant contributions by Mikola.
2017-04-21 09:40:51 -07:00
2019-03-06 15:47:23 -08:00
Warning: Version 2.0 only supports Minetest 5.0+.
-----------------------------------------------
For Minetest 0.4.x, use the git branch legacy, or the following zip file: [tunnelmaker-legacy.zip](https://github.com/kestral246/tunnelmaker/archive/legacy.zip).
2019-03-06 15:47:23 -08:00
Quick Use Guide
---------------
2019-03-22 21:07:19 -07:00
- Requires "tunneling" privileges to use: *(/grant <player> tunneling)*.
- No crafting recipe: *(/give <player> tunnelmaker:tool1)*.
2019-03-06 15:47:23 -08:00
- Left-click mouse to dig just about any node with one click.
- To dig train tunnel:
- Point cursor at ground level.
- Point character in direction to dig (inventory icon will change to show direction).
2019-03-09 08:08:24 -08:00
- Right-click mouse to dig tunnel.
2019-03-06 15:47:23 -08:00
- Note that reference nodes are placed in the ground. Just follow these to make nicely curved tunnels. Don't worry, they can be easily removes when done digging.
2019-03-09 08:08:24 -08:00
- Shift-left-click brings up User Options menu.
2019-03-06 15:47:23 -08:00
Features *(Does way more than just dig tunnels!)*
2017-04-21 09:40:51 -07:00
--------
2019-01-25 20:30:27 -08:00
- Create paths, bridges, and tunnels in all sixteen possible advtrains track directions with one click.
- Also digs up or down in the eight possible advtrains slope track directions.
2019-03-22 21:07:19 -07:00
- New User Options menu to set digging mode and other options.
- Mode 1: General purpose excavation with unlined and lined tunnels.
- Mode 2: Advanced trains mod with gravel embankment, arched and optionally lined tunnels, and two widths of bridges.
- Mode 3: Bike mod with two widths of cobblestone pathways and bridges, along with unlined tunnels.
- Supports
2019-01-25 20:30:27 -08:00
- Adds reference nodes to help digging and laying advtrains track—now easy to remove when done.
- Adds glass enclosure when in water to create water tunnels.
- Requires "tunneling" privilege, and checks protections before digging.
- No crafting recipe, so needs to be given to player.
- Works in both creative and survival modes, but tunneling does not place any nodes into user's inventory.
- Supports client-side translation files. Currently only have Russian and my attempt at a French translation. **Other languages will be gratefully accepted.** Reference template file is available in locale directory.
2019-01-25 20:30:27 -08:00
![Bike path up mountain](images/bike_path.png "Bike path up mountain")
2019-03-22 21:07:19 -07:00
Controls
--------
- **Left-click:** Super dig one node. One click digs nearly any node (non-repeating) and places it in player's inventory.
- **Shift-left-click:** Bring up User Options menu. (Can also use Aux-right-click for Android.)
2019-03-09 08:08:24 -08:00
- **Right-click:** - Dig tunnel in direction player pointed. Note that this won't place any of the dug nodes in player's inventory.
- **Shift-right-click:** Cycle through vertical digging modes, up, down, and horizontal.
How to enable
-------------
- Install tunnelmaker mod, requires default and stairs. For nicer bike path ramps, I recommend installing the angledstairs mod, which was used for the picture above, but it's not required.
2019-03-22 21:07:19 -07:00
- Grant player "tunneling" privilege *(/grant <player> tunneling)*.
- To give player a tunnelmaker tool use *(/give <player> tunnelmaker:tool1)*.
2018-06-17 17:57:19 -07:00
How to dig
2017-04-21 09:40:51 -07:00
----------
*See diagram below that shows track configurations supported by advtrains.*
2018-05-21 09:09:27 -07:00
- Move to digging location and highlight node at ground level. (Gray node in diagrams marked with an '×'.)
- Point player in desired digging direction. (Inventory icon will change to show current direction.)
2019-03-09 08:08:24 -08:00
- Right-click mouse to dig tunnel.
2017-04-21 09:40:51 -07:00
Digging for slopes
------------------
*Note that advtrains only supports sloped track for orthogonal and diagonal track directions.*
2017-04-21 09:40:51 -07:00
- Move to digging location and highlight node at ground level.
- Point player in desired digging direction.
2019-03-09 08:08:24 -08:00
- Shift-right-click mouse to select vertical digging mode. Inventory icon will cycle through possible modes with each click: 'U' for digging up, 'D' for digging down, and no letter for default horizontal.
- Right-click mouse to dig tunnel.
- There is a user option to control whether to reset direction after each dig or not (see below).
2017-04-21 09:40:51 -07:00
![Tunnelmaker Icons](images/icons.png "Tunnelmaker Icons")
2017-04-21 09:40:51 -07:00
2019-01-26 10:13:42 -08:00
User Options menu
2019-01-25 20:30:27 -08:00
----------------
2019-03-09 08:08:24 -08:00
Shift-left-click to bring up this menu.
2019-01-25 20:30:27 -08:00
2019-02-05 09:10:10 -08:00
![Tunnelmaker User Options](images/user_options.gif "Tunnelmaker User Options")
2019-01-25 20:30:27 -08:00
Descriptions of all the options:
- **Digging mode** Select one of the three digging modes: General purpose, Advanced trains, or Bike paths.
2019-01-25 20:30:27 -08:00
- **Wide paths / lined tunnels** Select between narrow and wide paths, and whether tunnels are lined with stone or not.
- **Continuous up/down digging** Don't reset up/down after each dig.
2019-02-05 09:17:04 -08:00
- **Clear tree cover** Remove all plant material above dig up to 30 nodes above ground. CPU intensive, so shuts off after two minutes.
2019-01-25 20:30:27 -08:00
- **Remove reference nodes** Easily remove reference nodes by walking over them. Also shuts off after two minutes.
2019-02-05 09:17:04 -08:00
- **Lock desert mode to: either "Desert" or "Non-desert"** Option only available when "add_desert_material = true" has been added to minetest.conf. Overrides use of desert materials in desert biomes. Useful for transition regions.
2018-07-18 14:02:11 -07:00
2019-03-06 15:47:23 -08:00
minetest.conf options
---------------------
- Several options to change defaults for the User Options menu. See settingtypes.txt for details.
- **add_desert_material** (default = false): When enabled, this mod will use desert materials when digging in desert biomes. This will also add an additional entry to the User Options menu.
- **tunnel_lights** (default = desert:torch): Use this to change type of light placed in tunnels. Some examples are: default:mese_post_light; morelights_vintage:lantern_c; ilights:light; and mydefaultlights:ceiling_light_white,20. This last one requires the ",20" on the end, which defines the param2 rotation needed to put the lamp on the ceiling.
2019-03-06 15:47:23 -08:00
- **train_tunnel_height** (default = 5): Can increase train tunnels up to a height of 8.
- **train_tunnel_arches** (default = true): Disable to get rid of arches to give more modern rectangular tunnels.
Advtrains digging reference
---------------------------
The following diagrams show how to make curved tunnels that support the different track configurations used by advtrains. There are three basic directions that are supported: 0° (orthogonal, rook moves), 45° (diagonal, bishop moves), and 26.6° (knight moves, two blocks forward and one block to the side).
2017-04-21 09:40:51 -07:00
- *Note that it's always possible to dig in any direction, but turns with angles other than those shown won't be supported by advtrains track.*
- *Also note that there are other limitations to advtrains slope track. Documentation TBD.*
2017-04-21 09:40:51 -07:00
![Turns from 0°](images/dir0.png "Turns from 0")
![Turns from 26.6°](images/dir26.png "Turns from 26.6")
![Turns from 45°](images/dir45.png "Turns from 45")
License
-------
- **textures:** License CC0-1.0
- **code:** My changes to original code are CC0-1.0
- **original compassgps license:** Original code by Echo, PilzAdam, and TeTpaAka is WTFPL. Kilarin (Donald Hines) changes are CC0 (No rights reserved)
Thanks
------
- [advtrains](https://github.com/orwell96/advtrains/) / orwell96, et.
al. - For providing the amazing advtrains mod that this mod tries to make
just a little easier to use.
- [compassgps](https://github.com/Kilarin/compassgps) / Kilarin (Donald Hines),
et. al. - Top level code to change icon based on direction player is pointing.