Small improvements
This commit is contained in:
parent
089ea288dd
commit
0c6cfc1563
1
Gemfile
1
Gemfile
@ -1,6 +1,7 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "jekyll"
|
gem "jekyll"
|
||||||
|
gem "webrick"
|
||||||
|
|
||||||
group :jekyll_plugins do
|
group :jekyll_plugins do
|
||||||
gem "jekyll-sitemap"
|
gem "jekyll-sitemap"
|
||||||
|
34
Gemfile.lock
34
Gemfile.lock
@ -4,31 +4,31 @@ GEM
|
|||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
concurrent-ruby (1.1.7)
|
concurrent-ruby (1.1.8)
|
||||||
em-websocket (0.5.1)
|
em-websocket (0.5.2)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0.6.0)
|
http_parser.rb (~> 0.6.0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
ffi (1.13.1)
|
ffi (1.15.0)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
http_parser.rb (0.6.0)
|
http_parser.rb (0.6.0)
|
||||||
i18n (1.8.5)
|
i18n (1.8.10)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jekyll (4.1.1)
|
jekyll (4.2.0)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
colorator (~> 1.0)
|
colorator (~> 1.0)
|
||||||
em-websocket (~> 0.5)
|
em-websocket (~> 0.5)
|
||||||
i18n (~> 1.0)
|
i18n (~> 1.0)
|
||||||
jekyll-sass-converter (~> 2.0)
|
jekyll-sass-converter (~> 2.0)
|
||||||
jekyll-watch (~> 2.0)
|
jekyll-watch (~> 2.0)
|
||||||
kramdown (~> 2.1)
|
kramdown (~> 2.3)
|
||||||
kramdown-parser-gfm (~> 1.0)
|
kramdown-parser-gfm (~> 1.0)
|
||||||
liquid (~> 4.0)
|
liquid (~> 4.0)
|
||||||
mercenary (~> 0.4.0)
|
mercenary (~> 0.4.0)
|
||||||
pathutil (~> 0.9)
|
pathutil (~> 0.9)
|
||||||
rouge (~> 3.0)
|
rouge (~> 3.0)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
terminal-table (~> 1.8)
|
terminal-table (~> 2.0)
|
||||||
jekyll-redirect-from (0.16.0)
|
jekyll-redirect-from (0.16.0)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.3, < 5.0)
|
||||||
jekyll-sass-converter (2.1.0)
|
jekyll-sass-converter (2.1.0)
|
||||||
@ -37,37 +37,39 @@ GEM
|
|||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-watch (2.2.1)
|
jekyll-watch (2.2.1)
|
||||||
listen (~> 3.0)
|
listen (~> 3.0)
|
||||||
kramdown (2.3.0)
|
kramdown (2.3.1)
|
||||||
rexml
|
rexml
|
||||||
kramdown-parser-gfm (1.1.0)
|
kramdown-parser-gfm (1.1.0)
|
||||||
kramdown (~> 2.0)
|
kramdown (~> 2.0)
|
||||||
liquid (4.0.3)
|
liquid (4.0.3)
|
||||||
listen (3.2.1)
|
listen (3.5.1)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
mercenary (0.4.0)
|
mercenary (0.4.0)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
public_suffix (4.0.5)
|
public_suffix (4.0.6)
|
||||||
rb-fsevent (0.10.4)
|
rb-fsevent (0.11.0)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rexml (3.2.4)
|
rexml (3.2.5)
|
||||||
rouge (3.22.0)
|
rouge (3.26.0)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sassc (2.4.0)
|
sassc (2.4.0)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
terminal-table (1.8.0)
|
terminal-table (2.0.0)
|
||||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
unicode-display_width (1.7.0)
|
unicode-display_width (1.7.0)
|
||||||
|
webrick (1.7.0)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
jekyll
|
jekyll
|
||||||
jekyll-redirect-from
|
jekyll-redirect-from
|
||||||
jekyll-sitemap
|
jekyll-sitemap
|
||||||
|
webrick
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.0.2
|
2.2.16
|
||||||
|
@ -68,30 +68,15 @@ They are, in order:
|
|||||||
particular world.
|
particular world.
|
||||||
Eg: `minetest/worlds/world/worldmods/`
|
Eg: `minetest/worlds/world/worldmods/`
|
||||||
|
|
||||||
Minetest will check the locations in the order given above. If it encounters a mod
|
`minetest` is the user-data directory. You can find the location of the
|
||||||
with a name the same as one found previously, the later mod will be loaded in place
|
user-data directory by opening up Minetest and clicking
|
||||||
of the earlier mod.
|
"Open User Data Directory" in the Credits tab.
|
||||||
This means that you can override game mods by placing a mod with the same name
|
|
||||||
in the global mod location.
|
|
||||||
|
|
||||||
The actual location of each mod load path depends on what operating system you're
|
When loading mods, Minetest will check each of the above locations in order.
|
||||||
using, and how you installed Minetest.
|
If it encounters a mod with a name the same as one found previously, the later
|
||||||
|
mod will be loaded in place of the earlier mod. This means that you can override
|
||||||
|
game mods by placing a mod with the same name in the global mod location.
|
||||||
|
|
||||||
* **Windows:**
|
|
||||||
* For portable builds, ie: from a .zip file, just go to the directory where
|
|
||||||
you extracted the zip and look for the `games`, `mods`, and `worlds`
|
|
||||||
directories.
|
|
||||||
* For installed builds, ie: from a setup.exe,
|
|
||||||
look in C:\\\\Minetest or C:\\\\Games\\Minetest.
|
|
||||||
* **GNU/Linux:**
|
|
||||||
* For system-wide installs, look in `~/.minetest`.
|
|
||||||
Note that `~` means the user home directory, and that files and directories
|
|
||||||
starting with a dot (`.`) are hidden.
|
|
||||||
* For portable installs, look in the build directory.
|
|
||||||
* For Flatpak installs, look in `~/.var/app/net.minetest.Minetest/.minetest/mods/`.
|
|
||||||
* **MacOS**
|
|
||||||
* Look in `~/Library/Application Support/minetest/`.
|
|
||||||
Note that `~` means the user home, ie: `/Users/USERNAME/`.
|
|
||||||
|
|
||||||
## Mod Directory
|
## Mod Directory
|
||||||
|
|
||||||
@ -184,6 +169,12 @@ minetest.register_node("mymod:node", {
|
|||||||
tiles = {"mymod_node.png"},
|
tiles = {"mymod_node.png"},
|
||||||
groups = {cracky = 1}
|
groups = {cracky = 1}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "mymod:node 3",
|
||||||
|
recipe = { "default:dirt", "default:stone" },
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
### mod.conf
|
### mod.conf
|
||||||
@ -191,10 +182,9 @@ minetest.register_node("mymod:node", {
|
|||||||
descriptions = Adds a node
|
descriptions = Adds a node
|
||||||
depends = default
|
depends = default
|
||||||
|
|
||||||
This mod has the name "mymod". It has two text files: init.lua and mod.conf.\\
|
This mod has the name "mymod". It has two text files: init.lua and mod.conf. The
|
||||||
The script prints a message and then registers a node –
|
script prints a message and then registers a node and craft recipe – these will
|
||||||
which will be explained in the next chapter.\\
|
be explained later on. There's a single dependency, the
|
||||||
There's a single dependency, the
|
[default mod](https://content.minetest.net/metapackages/default/),
|
||||||
[default mod](https://content.minetest.net/metapackages/default/), which is
|
which is usually found in Minetest Game. There is also a texture in textures/
|
||||||
usually found in Minetest Game.\\
|
for the node.
|
||||||
There is also a texture in textures/ for the node.
|
|
||||||
|
@ -148,7 +148,7 @@ minetest.register_node("mymod:diamond", {
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
The is_ground_content attribute allows caves to be generated over the stone.
|
The `is_ground_content` attribute allows caves to be generated over the stone.
|
||||||
This is essential for any node which may be placed during map generation underground.
|
This is essential for any node which may be placed during map generation underground.
|
||||||
Caves are cut out of the world after all the other nodes in an area have generated.
|
Caves are cut out of the world after all the other nodes in an area have generated.
|
||||||
|
|
||||||
|
@ -23,11 +23,11 @@ In this chapter, you will learn how to perform basic actions on the map.
|
|||||||
|
|
||||||
## Map Structure
|
## Map Structure
|
||||||
|
|
||||||
The Minetest map is split into MapBlocks, each MapBlocks being a cube of size
|
The Minetest map is split into MapBlocks, each MapBlocks being a cube of
|
||||||
16. As players travel around the map, MapBlocks are created, loaded, activated,
|
size 16. As players travel around the map, MapBlocks are created, loaded,
|
||||||
and unloaded. Areas of the map which are not yet loaded are full of *ignore*
|
activated, and unloaded. Areas of the map which are not yet loaded are full of
|
||||||
nodes, an impassable unselectable placeholder node. Empty space is full of *air*
|
*ignore* nodes, an impassable unselectable placeholder node. Empty space is
|
||||||
nodes, an invisible node you can walk through.
|
full of *air* nodes, an invisible node you can walk through.
|
||||||
|
|
||||||
An active MapBlock is one which is loaded and has updates running on it.
|
An active MapBlock is one which is loaded and has updates running on it.
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
border-bottom: 1px solid black;
|
border-bottom: 1px solid #bbb;
|
||||||
margin: 30px 0 10px 0;
|
margin: 30px 0 10px 0;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 0 5px 0;
|
padding: 0 0 5px 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user