diff --git a/.docs/.eleventy.js b/.docs/.eleventy.js
index 87d5aa5..93776bc 100644
--- a/.docs/.eleventy.js
+++ b/.docs/.eleventy.js
@@ -1,3 +1,4 @@
+const fs = require("fs");
const path = require("path");
const htmlentities = require("html-entities");
@@ -5,18 +6,28 @@ const Image = require("@11ty/eleventy-img");
var nextid = 0;
+const image_filename_format = (_id, src, width, format, _options) => {
+ const extension = path.extname(src);
+ const name = path.basename(src, extension);
+ return `${name}-${width}w.${format}`;
+};
+
+function image_metadata_log(metadata, source) {
+ for(let format in metadata) {
+ for(let img of metadata[format]) {
+ console.log(`${source.padEnd(10)} ${format.padEnd(5)} ${`${img.width}x${img.height}`.padEnd(10)} ${img.outputPath}`);
+ }
+ }
+}
+
async function shortcode_image(src, alt, classes = "") {
let metadata = await Image(src, {
widths: [300, null],
formats: ["avif", "jpeg"],
outputDir: `./_site/img/`,
- filenameFormat: (_id, src, width, format, _options) => {
- const extension = path.extname(src);
- const name = path.basename(src, extension);
- return `${name}-${width}w.${format}`;
- }
+ filenameFormat: image_filename_format
});
- console.log(metadata);
+ image_metadata_log(metadata, `IMAGE`);
let imageAttributes = {
class: classes,
@@ -35,31 +46,35 @@ async function shortcode_image_url(src) {
widths: [ null ],
formats: [ "jpeg" ],
outputDir: `./_site/img/`,
- filenameFormat: (_id, src, width, format, _options) => {
- const extension = path.extname(src);
- const name = path.basename(src, extension);
- return `${name}-${width}w.${format}`;
- }
+ filenameFormat: image_filename_format
});
- console.log(metadata);
+ image_metadata_log(metadata, `IMAGE_URL`);
let data = metadata.jpeg[metadata.jpeg.length - 1];
return data.url;
}
-async function shortcode_cssbox(content, src) {
- let idprev = `image-${nextid}`;
- nextid += 1;
- let idthis = `image-${nextid}`;
- let idnext = `image-${nextid + 1}`;
- return `
`;
+async function shortcode_image_urlpass(src) {
+ let target_dir = `./_site/img`;
+ if(!fs.existsSync(target_dir))
+ await fs.promises.mkdir(target_dir, { recursive: true });
+ let filename = path.basename(src);
+ // Generally speaking we optimise PNGs *very* well with oxipng/Zopfli,
+ // and the Image plugin doesn't respect this
+ await fs.promises.copyFile(src, path.join(target_dir, filename));
+ return `/img/${filename}`;
+}
+
+async function shortcode_gallerybox(content, src, idthis, idprev, idnext) {
+ return `
+
+ ${await shortcode_image(src, "", "", "1920w")}
+
+ ${content}
+
+❰
+❱
+ `;
}
module.exports = function(eleventyConfig) {
@@ -67,6 +82,9 @@ module.exports = function(eleventyConfig) {
// eleventyConfig.addPassthroughCopy("css");
eleventyConfig.addShortcode("image", shortcode_image);
eleventyConfig.addJavaScriptFunction("image", shortcode_image);
- eleventyConfig.addShortcode("image-url", shortcode_image_url);
- eleventyConfig.addPairedShortcode("cssbox", shortcode_cssbox);
+ // eleventyConfig.addNunjucksAsyncShortcode("image_url", shortcode_image_url);
+ eleventyConfig.addAsyncShortcode("image_url", shortcode_image_url);
+ eleventyConfig.addAsyncShortcode("image_urlpass", shortcode_image_urlpass);
+ eleventyConfig.addNunjucksAsyncShortcode("image_urlpass", shortcode_image_urlpass);
+ eleventyConfig.addPairedShortcode("gallerybox", shortcode_gallerybox);
}
diff --git a/.docs/Changelog.11tydata.json b/.docs/Changelog.11tydata.json
index 0ee657c..67d8eca 100644
--- a/.docs/Changelog.11tydata.json
+++ b/.docs/Changelog.11tydata.json
@@ -1,5 +1,5 @@
{
- "layout": "theme.njk",
+ "layout": "content-generic.njk",
"title": "Changelog",
"tags": "navigable",
"date": "2002-01-01"
diff --git a/.docs/Cookbook.11tydata.json b/.docs/Cookbook.11tydata.json
new file mode 100644
index 0000000..14cbdf0
--- /dev/null
+++ b/.docs/Cookbook.11tydata.json
@@ -0,0 +1,6 @@
+{
+ "layout": "content-generic.njk",
+ "title": "Cookbook",
+ "tags": "navigable",
+ "date": "2006-01-01"
+}
diff --git a/.docs/Cookbook.md b/.docs/Cookbook.md
new file mode 120000
index 0000000..7190abd
--- /dev/null
+++ b/.docs/Cookbook.md
@@ -0,0 +1 @@
+../Cookbook.md
\ No newline at end of file
diff --git a/.docs/Reference.11tydata.js b/.docs/Reference.11tydata.js
new file mode 100644
index 0000000..a93e951
--- /dev/null
+++ b/.docs/Reference.11tydata.js
@@ -0,0 +1,24 @@
+const fs = require("fs");
+const path = require("path");
+const parse_sections = require("./lib/parse_sections.js");
+
+const sections = parse_sections(fs.readFileSync(
+ path.resolve(
+ __dirname,
+ `../Chat-Command-Reference.md`
+ ),
+ "utf-8"
+));
+
+console.log(`REFERENCE SECTION TITLES`, sections.slice(1)
+ .sort((a, b) => a.title.localeCompare(b.title)).map(s => s.title));
+
+module.exports = {
+ layout: "theme.njk",
+ title: "Reference",
+ tags: "navigable",
+ date: "2001-01-01",
+ section_intro: sections[0],
+ sections_help: sections.slice(1)
+ .sort((a, b) => a.title.localeCompare(b.title))
+}
diff --git a/.docs/Reference.11tydata.json b/.docs/Reference.11tydata.json
deleted file mode 100644
index 5506455..0000000
--- a/.docs/Reference.11tydata.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "layout": "theme.njk",
- "title": "Reference",
- "tags": "navigable",
- "date": "2001-01-01"
-}
diff --git a/.docs/Reference.html b/.docs/Reference.html
new file mode 100644
index 0000000..e9004a1
--- /dev/null
+++ b/.docs/Reference.html
@@ -0,0 +1,99 @@
+
+
+ {{ section_intro.title }}
+ This is the full chat command reference for WorldEditAdditions. It has 2 parts:
+
+
+ A contents list of commands and their syntax
+ A full reference, with detailed explanations for each command
+
+
+ After the contents, there is a filter box for filtering the detailed explanations to quickly find the one you're after.
+
+
+
+
+ 🔗
+ Contents
+
+ TODO: Group commands here by category (*especially* the meta commands)
+
+
+
+
+
+
+
+ {% for section in sections_help %}
+
+
+ 🔗
+ {{ section.title }}
+
+
+ {{ section.content }}
+
+ {% endfor %}
+
diff --git a/.docs/Reference.md b/.docs/Reference.md
deleted file mode 120000
index 8e2095a..0000000
--- a/.docs/Reference.md
+++ /dev/null
@@ -1 +0,0 @@
-../Chat-Command-Reference.md
\ No newline at end of file
diff --git a/.docs/Tutorial.md b/.docs/Tutorial.md
new file mode 100644
index 0000000..4982348
--- /dev/null
+++ b/.docs/Tutorial.md
@@ -0,0 +1,120 @@
+---
+layout: content-generic.njk
+title: Tutorial
+tags: navigable
+date: 2004-01-01
+---
+
+# WorldEditAdditions Beginner's Tutorial
+Welcome to the WorldEditAdditions beginners tutorial! There are a number of conventions used in the [chat command reference](/Reference) that may not be immediately obvious - this guide serves to explain in detail.
+
+It is assumed that:
+
+ - You are already familiar the basics of [Minetest](https://www.minetest.net/) (try the [tutorial game](https://content.minetest.net/packages/Wuzzy/tutorial/) if you're unsure)
+ - You have both WorldEdit and WorldEditAdditions installed (see the [Download](/#download) section)
+
+Minetest supports the execution of _Chat Commands_ to manipulate the Minetest world. While in a Minetest world, simply type `/help` (the first forward slash `/` will automatically cause the chat window to appear) and hit enter to display a list of chat commands that are currently registered grouped by mod for example.
+
+WorldEdit commands are, by convention, prefixed with an additional forward slash `/`. Here are some examples of WorldEdit chat commands:
+
+```
+//1
+//2
+//set dirt
+```
+
+Explaining core WorldEdit commands is out of scope of this tutorial, but you can find a complete list of them here: .
+
+The purpose of _WorldEditAdditions_ is to extend _WorldEdit_ by adding additional commands. Example commands that have been implemented that are not present in core _WorldEdit_ include (but certainly aren't limited to):
+
+ - [`//maze`](/Reference/#maze-replace_node-path_length-path_width-seed): Create instant mazes
+ - [`//forest`](/Reference/#forest-density-sapling_a-chance_a-sapling_b-chance_b-sapling_n-chance_n-): Plant forests
+ - [`//torus`](http://localhost:8080/Reference/#torus-major_radius-minor_radius-node_name-axesxy-hollow): Generate [torus](https://en.wikipedia.org/wiki/Torus) shapes
+ - [`//scale`](/Reference/#scale-axis-scale_factor-factor_x-factor_y-factor_z-anchor_x-anchor_y-anchor_z): Scale things up and down - even both at the same time!
+
+See a full list with complete explanations in the [chat command reference](/Reference).
+
+
+## Regions
+WorldEdit allows you to define a _region_ by specifying 2 points in the world - we number these points 1 and 2. By using the WorldEdit wand (or WorldEditAdditions Far Wand), one can left click to set the position of point 1, and right click to set point 2:
+
+{% image "images/tutorial_pos1_2.jpeg" "A screenshot showing WorldEdit points 1 and 2 in a desert with a cactus" %}
+
+Point 1 is on the cactus, and point 2 is on the ground in the bottom left.
+
+Most WorldEdit and WorldEditAdditions commands require either 1 or 2 points to be set in order to work.
+
+ - If 1 point is required, it's the origin point used by the command
+ - If 2 points are required, the defined region specifies the area in which the command is operate
+
+
+## Command syntax
+When explaining the syntax (ref [a](https://en.wikipedia.org/wiki/Syntax_(programming_languages)), [b](https://www.bbc.co.uk/bitesize/guides/z22wwmn/revision/6)) of a command, a number of different conventions are used to concisely explain said syntax. Understanding enables you to quickly understand the output of `/help /maze` for example, or the list of commands in the [reference](/Reference).
+
+ - ``: A placeholder for a value that you can change. Do *not* include the `<` angle brackets `>` when replacing it with your actual value.
+ - `a | b`: 1 thing or another, but not both.
+ - `[optional_thing]`: Something that's optional. Specifying it enables greater control over the behaviour of the command, but it can be left out for convenience.
+ - ``: Pick 1 item from the list and replace the entire group, removing the `<` angle brackets `>` as with ``. For example `` could become either `snowballs` or `river`, but not both at the same time.
+ - ``: Most commonly seen in `[` square brackets `]` indicating an optional thing. Indicates the default value of something that you can replace (or omit).
+ - `...`: Indicates that the previous items can be repeated.
+
+Let's illustrate this with a practical example. Consider the following:
+
+```
+//example | []
+```
+
+The following different invocations of the above would be valid:
+
+```
+//example 10 apple
+//example 45 30 maple
+//example 30 12 pear something_else
+```
+
+Now let's apply this to a more practical example:
+
+```
+//erode [ [ []] [ []] ...]
+```
+
+The `` explains that either a value of `snowballs` or `river` is acceptable. Then, a key - value list of options can be specified - allowing an arbitrary number of options.
+
+From this, we can infer the following usage:
+
+```
+//erode snowballs speed 1 count 50000
+```
+
+
+## Anything else?
+
+ - Make sure we have covered everything
+
+
+## Advanced Concepts
+A number of additional concepts that are not required to use WorldEditAdditions are explained here, as they can be helpful for understanding some of the more advanced concepts and commands provided by WorldEditAdditions.
+
+### Meta commands
+WorldEditAdditions provides a number of *meta commands*. Such commands don't do anything on their own, but call other commands in various different ways. Examples of meta commands include:
+
+ - [`//subdivide`](/Reference#subdivide-size_x-size_y-size_z-cmd_name-args): split a region into chunks, and execute the command once for each chunk
+ - [`//many`](/Reference#many-times-command): Execute a command multiple times
+ - [`//multi`](/Reference#multi-command_a-command_b-command_c-): Execute multiple commands in sequence
+
+Of course, this isn't an exhaustive list - check the [reference](/Reference) for a full list.
+
+### Memory usage
+Memory (or RAM - Random Access Memory) is used by all the processes running on a system to hold data that they are currently working with. This is especially important for WorldEdit and WorldEditAdditions, since the larger the region you define the more memory that will be required to run commands on it.
+
+Depending on your system, Minetest and your system can slow to a crawl or even crash if you execute a command on a region that's too big.
+
+To work around this, the [`//subdivide`](/Reference#subdivide-size_x-size_y-size_z-cmd_name-args) command was implemented. It splits the defined region into chunks, and calls the specified command over and over again for each chunk.
+
+It's not suitable for all commands (since it requires that said command takes 2 points) though, but because it splits the defined region into multiple chunks, it can be executed on *enormous* regions that can't fit into memory all at the same time.
+
+
+## Conclusion
+This short tutorial has explained a few key concepts that are useful for understanding WorldEditAdditions, from executing chat commands to the syntax used in the [reference](/Reference) to concisely describe commands.
+
+If there's a concept that you don't understand after reading this and the [reference](/Reference), please [open an issue](https://github.com/sbrl/Minetest-WorldEditAdditions/issues/new) with a detailed explanation of what it is that you're finding difficult to understand.
diff --git a/.docs/_data/contributors.js b/.docs/_data/contributors.js
new file mode 100644
index 0000000..b03dacc
--- /dev/null
+++ b/.docs/_data/contributors.js
@@ -0,0 +1,23 @@
+const fs = require("fs");
+const path = require("path");
+const htmlentities = require("htmlentities");
+
+function read_contributors() {
+ return fs.readFileSync(path.resolve(__dirname, "../../CONTRIBUTORS.tsv"), "utf-8")
+ .split("\n")
+ .slice(1)
+ .filter(line => line.length > 0)
+ .map(line => line.split(/\s+/))
+ .map(items => { return {
+ handle: htmlentities.encode(items[0]),
+ name: htmlentities.encode(items[1]),
+ profile_url: `https://github.com/${encodeURIComponent(items[0])}`,
+ avatar_url: `https://avatars.githubusercontent.com/${encodeURIComponent(items[0])}`
+ } });
+}
+
+const contributors = read_contributors();
+
+console.log(`CONTRIBUTORS`, contributors);
+
+module.exports = contributors;
diff --git a/.docs/_includes/content-generic.njk b/.docs/_includes/content-generic.njk
new file mode 100644
index 0000000..7441c6a
--- /dev/null
+++ b/.docs/_includes/content-generic.njk
@@ -0,0 +1,7 @@
+---
+layout: theme.njk
+---
+
+
+ {{ content | safe }}
+
diff --git a/.docs/_includes/theme.njk b/.docs/_includes/theme.njk
index 4faa0ba..f00aae7 100644
--- a/.docs/_includes/theme.njk
+++ b/.docs/_includes/theme.njk
@@ -1,6 +1,3 @@
----
-
----
@@ -10,9 +7,9 @@
-
+
-
+
WorldEditAdditions
+
{{ content | safe }}
-
- Built with ❤ by Starbeamrainbowlabs
- Tech: Eleventy
- Licensed under Mozilla Public Licence 2.0 (tldr )
+
diff --git a/.docs/css.njk b/.docs/css.njk
index 5c14c61..632c147 100644
--- a/.docs/css.njk
+++ b/.docs/css.njk
@@ -1,5 +1,6 @@
---
permalink: theme.css
---
+{% include "css/patterns.css" %}
{% include "css/theme.css" %}
-{% include "css/CSSBox/cssbox.css" %}
+{% include "css/gallerybox.css" %}
diff --git a/.docs/css/CSSBox b/.docs/css/CSSBox
deleted file mode 160000
index 2234546..0000000
--- a/.docs/css/CSSBox
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 2234546c25d51770086f972b0f330d4087e7c829
diff --git a/.docs/css/gallerybox.css b/.docs/css/gallerybox.css
new file mode 100644
index 0000000..f0a2f8a
--- /dev/null
+++ b/.docs/css/gallerybox.css
@@ -0,0 +1,123 @@
+/*
+ ██████ █████ ██ ██ ███████ ██████ ██ ██ ██████ ██████ ██ ██
+██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
+██ ███ ███████ ██ ██ █████ ██████ ████ ██████ ██ ██ ███
+██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
+ ██████ ██ ██ ███████ ███████ ███████ ██ ██ ██ ██████ ██████ ██ ██
+
+A pure css gallery, made with a bunch of wonderful hacks! Will be upgraded to
+be (slightly) less hacky once :target-within lands in browsers.
+
+Exported to codepen: https://codepen.io/sbrl/details/YzZJYxg
+ */
+
+
+.gallerybox {
+ display: flex;
+ justify-content: center;
+ /*
+ The element causes a small amount of extra padding at the
+ bottom of the element, so we use this to balance out the look at the top
+ ideally we'd shift the out of the way, but we can't without also
+ shifting the inside
+ */
+ padding-top: 0.2em;
+}
+
+.gallerybox-gallery {
+ --gallerybox-nextprev-padding: 5vw;
+ --gallerybox-nextprev-move: 0.2em;
+ --gallerybox-nextprev-hover: 0.1em;
+
+ max-width: 80vmax;
+
+ display: grid;
+ grid-template-columns: auto;
+ grid-template-rows: auto;
+ grid-template-areas: "main";
+}
+
+/* .gallerybox picture {
+ position: relative;
+ top: -1em;
+}
+.gallerybox picture > img {
+ position: relative;
+ top: 1em;
+} */
+
+.gallerybox-item {
+ grid-area: main;
+ z-index: 2;
+}
+
+.gallerybox-item > figcaption {
+ background: hsla(0, 0%, 95%, 0.75);
+ position: absolute;
+ bottom: 0.25em; left: 0; right: 0;
+ padding: 0.75em 1em;
+ text-align: center;
+}
+
+.gallerybox-gallery > .gallerybox-item:target {
+ display: block;
+ z-index: 100;
+}
+/* .gallerybox-gallery > .gallerybox-item:not(:target) {
+ display: none;
+ z-index: 2;
+}
+.gallerybox-item:not(:target) ~ .gallerybox-item:last-child {
+ display: block;
+ z-index: 2;
+} */
+
+/*
+.gallerybox-gallery:target-within > .gallerybox-item:target {
+ display: block;
+}
+.gallerybox-gallery:target-within > .gallerybox-item:not(:target) {
+ display: none;
+} */
+
+
+.gallerybox-item {
+ position: relative;
+}
+.gallerybox-item img {
+ max-width: 100%;
+}
+:where(.gallerybox-prev, .gallerybox-next) {
+ display: flex;
+ align-items: center;
+ height: 100%;
+ position: absolute; top: 0;
+ vertical-align: middle;
+ font-weight: bold;
+ font-size: 4em;
+ color: hsla(0, 0%, 100%, 0.8) !important;
+ text-decoration: none;
+ transform: none;
+ transition: transform 0.25s;
+}
+.gallerybox-item > .gallerybox-prev {
+ padding-left: var(--gallerybox-nextprev-padding);
+ left: 0;
+}
+.gallerybox-item > .gallerybox-next {
+ padding-right: var(--gallerybox-nextprev-padding);
+ right: 0;
+}
+
+
+:where(.gallerybox-prev, .gallerybox-next):hover {
+ color: hsla(0, 0%, 100%, 1) !important;
+}
+:is(.gallerybox-prev, .gallerybox-next):active {
+ color: hsla(0, 0%, 100%, 1) !important;
+}
+.gallerybox-next:hover { transform: translateX(calc(var(--gallerybox-nextprev-hover) * -1)); }
+.gallerybox-prev:hover { transform: translateX(var(--gallerybox-nextprev-hover)); }
+
+.gallerybox-prev:active { transform: translateX(calc(var(--gallerybox-nextprev-move) * -1)); }
+.gallerybox-next:active { transform: translateX(var(--gallerybox-nextprev-move)); }
diff --git a/.docs/css/patterns.css b/.docs/css/patterns.css
new file mode 100644
index 0000000..7e97493
--- /dev/null
+++ b/.docs/css/patterns.css
@@ -0,0 +1,6 @@
+:root {
+ /* Ref https://www.heropatterns.com/ */
+ --pattern-bricks: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%236ca8c7' fill-opacity='0.14'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
+ --pattern-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%236ca8c7' fill-opacity='0.1' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
+ --pattern-jigsaw-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cpath fill='%23b7e3ad' fill-opacity='0.4' d='M192 15v2a11 11 0 0 0-11 11c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H145v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11 13 13 0 1 1 .02 26 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43a6.1 6.1 0 0 0-3.03 4.87V143h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 181 164a11 11 0 0 0 11 11v2a13 13 0 0 1-13-13 12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84a6.1 6.1 0 0 0-4.87-3.03H145v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 124 181a11 11 0 0 0-11 11h-2a13 13 0 0 1 13-13c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43a6.1 6.1 0 0 0 3.03-4.87V145h-35.02a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 107 124a11 11 0 0 0-22 0c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H49v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11A13 13 0 0 1 81 192h-2a11 11 0 0 0-11-11c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V145H11.98a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 0 1 0 177v-2a11 11 0 0 0 11-11c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H47v-35.02a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 28 109a13 13 0 1 1 0-26c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43A6.1 6.1 0 0 0 47 84.02V49H11.98a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 11 28 11 11 0 0 0 0 17v-2a13 13 0 0 1 13 13c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84A6.1 6.1 0 0 0 11.98 47H47V11.98a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 68 11 11 11 0 0 0 79 0h2a13 13 0 0 1-13 13 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43A6.1 6.1 0 0 0 49 11.98V47h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 85 68a11 11 0 0 0 22 0c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H143V11.98a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 124 13a13 13 0 0 1-13-13h2a11 11 0 0 0 11 11c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V47h35.02a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 179 28a13 13 0 0 1 13-13zM84.02 143a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 83 124a13 13 0 1 1 26 0c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84a6.1 6.1 0 0 0 4.87 3.03H143v-35.02a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 164 107a11 11 0 0 0 0-22c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V49h-35.02a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 1 1 83 68a12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84A6.1 6.1 0 0 0 84.02 49H49v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 28 85a11 11 0 0 0 0 22c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V143h35.02z'%3E%3C/path%3E%3C/svg%3E");
+}
diff --git a/.docs/css/theme.css b/.docs/css/theme.css
index 9dd65f3..8acaa30 100644
--- a/.docs/css/theme.css
+++ b/.docs/css/theme.css
@@ -13,38 +13,36 @@
*/
:root {
- --bg-main: #8ABEF6;
- --bg-bright: #38871e;
+ --bg-main: hsl(206, 87%, 67%);
+ /* --bg-bright: #57b43f; */
+ --bg-bright: #7ac767;
--bg-alt: #3F57B4;
--bg-transcluscent-slight: rgba(255, 255, 255, 0.1);
- --bg-transcluscent: rgba(255, 255, 255, 0.8);
+ --bg-transcluscent: rgba(255, 255, 255, 0.85);
+ --bg-transcluscent-alt: hsla(226, 59%, 38%, 0.8);
+ --bg-transcluscent-alt-slight: hsla(196, 91%, 62%, 0.23);
- --text-main: #3F57B4;
+ /* --text-main: #3F57B4; */
+ --text-main: hsl(227, 70%, 35%);
--text-bright: #efefef;
--text-alt: #38871e;
+ --shadow: hsla(0, 0%, 25%, 0.25);
+ --shadow-dark: hsla(0, 0%, 25%, 0.5);
+
--highlight: hsl(353, 100%, 36%);
}
-/* @media (prefers-color-scheme: dark) {
- :root {
- --bg-main: #232323;
- --bg-bright: black;
- --bg-transcluscent: rgba(50, 50, 50, 0.5);
-
- --text-main: #f3f3f3;
- }
-} */
-
/* rem is relative to the html element, and em is relative to the current element. */
-html { font-size: 100%; }
+html { font-size: 100%; scroll-behavior: smooth; }
body
{
margin: 0;
font-family: sans-serif; /* Serif is awful :( */
- background: var(--bg-main); /* Don't forget to update the @page one too for paged media */
+ background: url('{% image_urlpass "images/clouds.png" %}') center / cover fixed,
+ var(--bg-main); /* Don't forget to update the @page one too for paged media */
color: var(--text-main);
}
@@ -64,6 +62,25 @@ title { string-set: page-title content(text); }
opacity: 0.6;
}
}
+h1, h2, h3, h4, h5, h6 {
+ text-align: center;
+ word-wrap: break-word;
+}
+.linked-section-heading {
+ display: flex;
+}
+.linked-section-heading > a.section-link {
+ opacity: 0.75;
+ text-decoration: none;
+ transition: 0.25s opacity;
+}
+.linked-section-heading > a.section-link:hover {
+ opacity: 1;
+}
+.linked-section-heading > span {
+ flex: 1;
+ word-wrap: anywhere;
+}
nav {
background: var(--bg-bright);
@@ -73,11 +90,11 @@ nav {
margin: 0;
}
nav h1 {
- background: var(--bg-alt);
+ background: var(--text-bright);
margin: 0;
- padding: 0.5em;
+ padding: 0.2em 0.5em 0.2em 0.2em;
font-size: 1.2em;
- color: var(--text-bright);
+ color: var(--bg-alt);
}
nav ul {
flex: 1;
@@ -86,16 +103,23 @@ nav ul {
display: flex;
justify-content: space-evenly;
}
-nav ul li {
- background: var(--bg-transcluscent-slight);
-}
nav a {
+ background: var(--bg-transcluscent-slight);
display: inline-block;
- padding: 1.2em 3em;
+ padding: 1.2em 2em;
text-decoration: none;
font-weight: bold;
- color: var(--text-bright);
+ color: var(--text-main);
}
+nav li[aria-current=page] a {
+ margin: -0.25em;
+ border: 0.25em solid var(--bg-alt);
+}
+
+nav a.image {
+ padding: 0.75em 1em 0.5em 1em;
+}
+nav img { max-height: 2em; }
/* A small tweak to things more responsive */
@@ -121,14 +145,39 @@ a { font-weight: bold; }
/* a:not(.nav) { color: hsl(208, 67%, 40%); }
a:not(.nav):hover { color: hsl(214, 67%, 50%); }
a:not(.nav):active, a:focus { color: hsl(214, 87%, 60%); } */
-a:not(.nav):visited { color: hsl(240, 77%, 60%); }
+a:not(.nav):not(.bigbutton):visited { color: hsl(240, 77%, 60%); }
-pre { page-break-inside: avoid; break-inside: avoid; }
+pre {
+ page-break-inside: avoid;
+ break-inside: avoid;
+ padding: 0.6em;
+ border: 0.2em solid var(--bg-transcluscent-alt);
+ border-radius: 0.25em;
+ background: var(--bg-transcluscent-alt);
+ box-shadow: inset 0 0 0.5em 0.1em var(--shadow-dark);
+ line-height: 1.75em;
+ color: var(--text-bright);
+}
pre, code {
+ text-align: left;
+ font-size: 1rem;
+ font-family: "Source Code Pro", "Ubuntu Mono", monospace;
white-space: pre-wrap;
-moz-tab-size: 4;
tab-size: 4;
}
+pre > code { background: transparent; padding: 0; }
+code {
+ background: var(--bg-transcluscent-alt-slight);
+ border-radius: 0.25em;
+ padding: 0.15em;
+}
+
+label {
+ font-weight: bold;
+ cursor: pointer;
+ padding: 0.25em 0.45em;
+}
/* todo add the rest of the textbox like inputs here */
@@ -142,37 +191,34 @@ input[type=text], input[type=number], textarea
border-radius: 5px;
}
+.form-item {
+ display: flex;
+ margin: 0.5em 0;
+}
+.form-item.checkbox:not(.centre) > label { flex: 1; }
+.form-item:not(.checkbox):not(.centre) > input { flex: 1; }
+.form-item.centre { justify-content: center; }
+.bigsearch {
+ flex-direction: row;
+}
+.bigsearch > input[type=search] {
+ width: 100%;
+ box-sizing: border-box;
+}
-/* Utility / layout aids */
-.float.left { float: left; }
-.float.right { float: right; }
-
-.flex { display: flex; }
-.flex-1 { flex: 1; }
-.flex-2 { flex: 2; }
-.flex-3 { flex: 3; }
-.flex-4 { flex: 4; }
-.flex-5 { flex: 5; }
-.flex-6 { flex: 6; }
-
-.small-spacing { margin: 0.25em 0.35em; padding: 0.25em 0.35em; }
-.med-spacing { margin: 0.45em 0.65em; padding: 0.45em 0.65em; }
-.high-spacing { margin: 1em 1.25em; padding: 1em 1.25em; }
+footer {
+ margin: 3em 0 0 0;
+ padding: 1em;
+ text-align: center;
+ background: var(--pattern-jigsaw-green),
+ var(--bg-bright);
+ /* color: var(--text-bright); */
+}
.text-left { text-align: left; }
.text-centre { text-align: center; }
.text-right { text-align: right; }
-.small-text { font-size: 0.8rem; }
-.medium-text { font-size: 1rem; }
-.large-text { font-size: 1.3rem; }
-
-.bold-text { font-weight: bolder; }
-
-.block { display: block; }
-.inline { display: inline; }
-.inline.block { display: inline-block; }
-
.invisilink { text-decoration: none; color: inherit; }
.invisilist { list-style-type: none; margin: 5px; padding: 5px; }
@@ -181,9 +227,21 @@ input[type=text], input[type=number], textarea
.icon.small { max-width: 1.25em; max-height: 1.25em; }
.icon.medium { max-width: 2em; max-height: 2em; }
.icon.large { max-width: 5em; max-height: 5em; }
+.icon.logo {
+ max-width: 3em;
+ max-height: 3em;
+}
+.icon.logo-large {
+ max-width: 8em;
+ max-height: 8em;
+}
-.img-text-middle{ vertical-align: middle; }
+.shadow-top { box-shadow: 0 -0.25em 0.5em var(--shadow); }
+.shadow-bottom { box-shadow: 0 0.25em 0.5em var(--shadow); }
+.shadow-vertical{ box-shadow: 0 0 0.5em 0.25em var(--shadow); }
+.shadow-text { text-shadow: 0.15em 0.15em 0.15em var(--shadow); }
+.hidden { display: none; }
.bigbox {
display: flex;
@@ -191,16 +249,17 @@ input[type=text], input[type=number], textarea
align-items: center; justify-content: center;
background: content-box linear-gradient(var(--bg-transcluscent), var(--bg-transcluscent)),
var(--bg) center / cover;
+
height: 80vh;
padding: 0 5em 0 5em;
box-sizing: border-box;
}
.bigbox h1 {
- margin-top: 0;
+ margin: 0;
font-size: 3em;
- color: var(--text-alt);
+ /* color: var(--text-alt); */
+ color: var(--bg-alt);
}
-.bigbox :last-child { margin-bottom: 7em; }
.features-large {
margin: 3em 0;
@@ -209,16 +268,115 @@ input[type=text], input[type=number], textarea
flex-wrap: wrap;
justify-content: space-evenly;
}
-.features-large figure {
+.features-large > :where(figure, .features-item) {
background: var(--bg-transcluscent);
+ background-image: var(--pattern-bricks);
margin: 0.1em;
padding: 1em;
max-width: 15em;
+ box-shadow: 0.25em 0.25em 0.5em var(--shadow);
}
-/* .features-large figure img {
- max-width: 12em;
+.features-item.wide {
+ flex: 1;
+ max-width: initial;
+ margin: 0.1em 2em;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+}
+/* .features-item.wide > :last-child {
+ flex: 1;
+ display: flex;
+ justify-content: flex-end;
+ flex-direction: column;
+ align-items: center;
} */
-.cssbox-gallery {
- display: flex;
+.panel-generic {
+ background: var(--bg-transcluscent);
+ background-image: var(--pattern-bricks);
+ margin: 2em;
+ padding: 1em;
+ box-shadow: 0.25em 0.25em 0.5em var(--shadow);
+}
+
+.bigbutton-list {
+ list-style-type: none;
+ margin: 0;
+ padding: 1em 0;
+ display: flex;
+ justify-content: space-around;
+}
+
+.bigbutton {
+ display: inline-block;
+
+ margin: 0;
+ padding: 0.35em 0.45em;
+ border: 0;
+ border-radius: 0.25em;
+
+ background: var(--bg-alt);
+
+ color: var(--text-bright);
+ font-size: 1.25em;
+ text-decoration: none;
+ text-align: center;
+
+ box-shadow: 0 0 0.5em var(--shadow);
+
+ cursor: pointer;
+ transition: box-shadow 0.25s, transform 0.25s;
+}
+.bigbutton:hover {
+ box-shadow: 0 0.25em 0.65em var(--shadow);
+ transform: translateY(-0.25em);
+}
+.bigbutton:active {
+ box-shadow: 0 0 0.25em var(--shadow);
+ transform: translateY(0.1em);
+}
+.bigbutton.disabled {
+ filter: saturate(25%);
+ opacity: 0.75;
+ cursor: default;
+}
+
+.gallerybox {
+ background: var(--pattern-hex), var(--bg-transcluscent);
+}
+
+
+.command-list {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+ word-wrap: anywhere;
+}
+.command-list > li > a {
+ text-decoration: none;
+}
+.command-list code {
+ display: block;
+ padding: 0.5em;
+ box-sizing: border-box;
+ margin: 0.5em;
+}
+
+
+.contributor-list {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ justify-content: center;
+ flex-wrap: wrap;
+}
+.contributor-list li {
+ padding: 0.5em;
+}
+.contributor-list a {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
}
diff --git a/.docs/images/banner-main.jpeg b/.docs/images/banner-main.jpeg
index b84104d..b9e591c 100644
Binary files a/.docs/images/banner-main.jpeg and b/.docs/images/banner-main.jpeg differ
diff --git a/.docs/images/clouds.png b/.docs/images/clouds.png
new file mode 100644
index 0000000..4be2b76
Binary files /dev/null and b/.docs/images/clouds.png differ
diff --git a/.docs/images/contentdb.png b/.docs/images/contentdb.png
new file mode 100644
index 0000000..7dada2f
Binary files /dev/null and b/.docs/images/contentdb.png differ
diff --git a/.docs/images/gallery-a.jpeg b/.docs/images/gallery-a.jpeg
index 1ed45c4..f35119d 100644
Binary files a/.docs/images/gallery-a.jpeg and b/.docs/images/gallery-a.jpeg differ
diff --git a/.docs/images/gallery-c.jpeg b/.docs/images/gallery-c.jpeg
new file mode 100644
index 0000000..745506c
Binary files /dev/null and b/.docs/images/gallery-c.jpeg differ
diff --git a/.docs/images/github.svg b/.docs/images/github.svg
new file mode 100644
index 0000000..58721c7
--- /dev/null
+++ b/.docs/images/github.svg
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.docs/images/tutorial_pos1_2.jpeg b/.docs/images/tutorial_pos1_2.jpeg
new file mode 100644
index 0000000..4da846c
Binary files /dev/null and b/.docs/images/tutorial_pos1_2.jpeg differ
diff --git a/.docs/index.html b/.docs/index.html
index 139a817..4c5d3e4 100644
--- a/.docs/index.html
+++ b/.docs/index.html
@@ -5,10 +5,18 @@ tags: navigable
date: 2000-01-01
---
-
+
+
WorldEditAdditions
+
+
+
+
+
+
Extra tools and commands to extend WorldEdit for Minetest
If you can dream of it, it probably belongs here!
+ Get Started
@@ -41,7 +49,7 @@ date: 2000-01-01
{% image "images/torus-bonemeal.png", "A dirt torus with a grassy top, and a meadow of grass/flowers. Demonstrates //layers and //bonemeal. Doesn't have much to do with the sentences below - I just thought it looked nice as meta commands are difficult to find a good picture for." %}
-
+
Powerful meta commands such as //multi
for executing multiple commands at once and //subdivide
for running commands on areas of virtually unlimited size enable convenience and enhance flexibility.
@@ -49,11 +57,55 @@ date: 2000-01-01
-
- {% cssbox "images/gallery-a.jpeg" %}
- A scene demonstrating //replacemix
, //ellipsoid
, //layers
, smoothadv
(aka convolve
and conv
), and //floodfill
- all of which are provided by WorldEditAdditions.
- {% endcssbox %}
- {% cssbox "images/gallery-b.jpeg" %}
- The inside of a 3d maze made with //maze3d
. Lighting was placed manually to improve screenshot quality.
- {% endcssbox %}
+
+
+ {% gallerybox "images/gallery-a.jpeg" "image-first" "image-last" "image-b" %}
+ A scene demonstrating //replacemix
, //ellipsoid
, //layers
, smoothadv
(aka convolve
and conv
), and //floodfill
- all of which are provided by WorldEditAdditions.
+ {% endgallerybox %}
+ {% gallerybox "images/gallery-b.jpeg" "image-b" "image-first" "image-last" %}
+ The inside of a 3d maze made with //maze3d
. Lighting was placed manually to improve screenshot quality.
+ {% endgallerybox %}
+ {% gallerybox "images/gallery-c.jpeg" "image-last" "image-b" "image-first" %}
+ A cliff made with //layers
and //erode
. A //forest
has been applied on top with multiple sapling / tree types.
+ {% endgallerybox %}
+
+
+
+
+ Download
+
+
+
ContentDB
+
+
+
+
Download from ContentDB, or from the Content tab in Minetest.
+
+
WorldEditAdditions on ContentDB
+
+
+
Git
+
WorldEditAdditions is dependent on WorldEdit . Clone using Git:
+
+
cd path/to/worldmods;
+git clone https://github.com/Uberi/Minetest-WorldEdit.git worldedit;
+git clone https://github.com/sbrl/Minetest-WorldEditAdditions.git worldeditadditions;
+
+
Source code on GitHub
+
+
+
+
+
+ Getting Started
+
+
+
If you're familiar with WorldEdit already, then WorldEditAdditions will follow the existing expectations you're used to. For players new to WorldEdit / WorldEditAdditions, we have a tutorial that will get you up to speed in no time!
+
+
+
diff --git a/.docs/lib/parse_sections.js b/.docs/lib/parse_sections.js
new file mode 100644
index 0000000..d9e4678
--- /dev/null
+++ b/.docs/lib/parse_sections.js
@@ -0,0 +1,28 @@
+const htmlentities = require("htmlentities");
+const markdown = require("markdown-it")({
+ xhtmlOut: true
+});
+
+module.exports = function parse_sections(source) {
+ const lines = source.split(/\r?\n/gi);
+ const result = [];
+ let acc = [];
+ for(let line of lines) {
+ if(line.startsWith(`#`) && !line.startsWith(`###`)) {
+
+ if(acc.length > 0) {
+ let title = acc[0].match(/#+\s+(.+)\s*/)[1].replace(/^`*|`*$/g, "");
+ result.push({
+ title: htmlentities.encode(title),
+ slug: title.toLowerCase().replace(/[^a-z0-9-_\s]+/gi, "")
+ .replace(/\s+/g, "-"),
+ content: markdown.render(acc.slice(1).join("\n"))
+ });
+ }
+ acc = [ line ];
+ }
+ else
+ acc.push(line);
+ }
+ return result;
+}
diff --git a/.docs/package-lock.json b/.docs/package-lock.json
index c2c1970..845642d 100644
--- a/.docs/package-lock.json
+++ b/.docs/package-lock.json
@@ -11,7 +11,8 @@
"devDependencies": {
"@11ty/eleventy": "^0.12.1",
"@11ty/eleventy-img": "^0.9.0",
- "html-entities": "^2.3.2"
+ "html-entities": "^2.3.2",
+ "htmlentities": "^1.0.0"
}
},
"node_modules/@11ty/dependency-tree": {
@@ -1864,6 +1865,12 @@
"integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==",
"dev": true
},
+ "node_modules/htmlentities": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/htmlentities/-/htmlentities-1.0.0.tgz",
+ "integrity": "sha1-CTqMH7Cd/l4Wn8M9CVdIJdYeQKQ=",
+ "dev": true
+ },
"node_modules/http-errors": {
"version": "1.7.3",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz",
@@ -6121,6 +6128,12 @@
"integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==",
"dev": true
},
+ "htmlentities": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/htmlentities/-/htmlentities-1.0.0.tgz",
+ "integrity": "sha1-CTqMH7Cd/l4Wn8M9CVdIJdYeQKQ=",
+ "dev": true
+ },
"http-errors": {
"version": "1.7.3",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz",
diff --git a/.docs/package.json b/.docs/package.json
index 9dcdea9..61199d1 100644
--- a/.docs/package.json
+++ b/.docs/package.json
@@ -5,7 +5,8 @@
"main": "index.js",
"private": true,
"scripts": {
- "test": "echo \"No tests have been implemented yet\""
+ "test": "echo \"No tests have been implemented yet\"",
+ "start": "npx @11ty/eleventy --serve"
},
"repository": {
"type": "git",
@@ -20,6 +21,7 @@
"devDependencies": {
"@11ty/eleventy": "^0.12.1",
"@11ty/eleventy-img": "^0.9.0",
- "html-entities": "^2.3.2"
+ "html-entities": "^2.3.2",
+ "htmlentities": "^1.0.0"
}
}
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index 9d97054..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule ".docs/css/CSSBox"]
- path = .docs/css/CSSBox
- url = https://github.com/TheLastProject/CSSBox.git
diff --git a/CONTRIBUTORS.tsv b/CONTRIBUTORS.tsv
new file mode 100644
index 0000000..6fa9b25
--- /dev/null
+++ b/CONTRIBUTORS.tsv
@@ -0,0 +1,3 @@
+github_handle name
+sbrl Starbeamrainbowlabs
+VorTechnix VorTechnix
diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md
index 08121fe..6f2eba3 100644
--- a/Chat-Command-Reference.md
+++ b/Chat-Command-Reference.md
@@ -481,6 +481,8 @@ Usage examples:
## `//count`
Counts all the nodes in the defined region and returns the result along with calculated percentages (note that if the chat window used a monospace font, the returned result would be a perfect table. If someone has a ~~hack~~ solution to make the columns line up neatly, please [open an issue](https://github.com/sbrl/Minetest-WorldEditAdditions/issues/new) :D)
+**Note:** The output of `//count` can be rather long sometimes, and Minetest by default only shows the last few lines of chat. Press F10 to show the full chat window that you can then scroll through to inspect the full output.
+
```
//count
```
diff --git a/README.md b/README.md
index 73de78c..f55fb03 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Minetest-WorldEditAdditions
+# ![](https://raw.githubusercontent.com/sbrl/Minetest-WorldEditAdditions/main/worldeditadditions-64.png) Minetest-WorldEditAdditions
![GitHub release (latest by date)](https://img.shields.io/github/v/release/sbrl/Minetest-WorldEditAdditions?color=green&label=latest%20release) [![View the changelog](https://img.shields.io/badge/%F0%9F%93%B0-Changelog-informational)](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/main/CHANGELOG.md) [![ContentDB](https://content.minetest.net/packages/Starbeamrainbowlabs/worldeditadditions/shields/downloads/)](https://content.minetest.net/packages/Starbeamrainbowlabs/worldeditadditions/)
> Extra tools and commands to extend WorldEdit for Minetest
diff --git a/worldeditadditions-64.png b/worldeditadditions-64.png
new file mode 100644
index 0000000..0282f41
Binary files /dev/null and b/worldeditadditions-64.png differ
diff --git a/worldeditadditions.png b/worldeditadditions.png
new file mode 100644
index 0000000..420ff67
Binary files /dev/null and b/worldeditadditions.png differ