Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
927adf9b
Commit
927adf9b
authored
8 years ago
by
rubenwardy
Committed by
paramat
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Documentation: Create texture_packs.txt
Combine texture_overrides.txt and sections of lua_api.txt
parent
573b50ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/lua_api.txt
+1
-35
1 addition, 35 deletions
doc/lua_api.txt
doc/texture_packs.txt
+77
-0
77 additions, 0 deletions
doc/texture_packs.txt
with
78 additions
and
35 deletions
doc/lua_api.txt
+
1
−
35
View file @
927adf9b
...
@@ -235,40 +235,6 @@ stripping out the file extension:
...
@@ -235,40 +235,6 @@ stripping out the file extension:
* e.g. `foomod_foothing.png`
* e.g. `foomod_foothing.png`
* e.g. `foomod_foothing`
* e.g. `foomod_foothing`
Texture pack directory structure
--------------------------------
textures
|-- Texture Pack
| |-- screenshot.png
| |-- description.txt
| |-- your_texture_1.png
| |-- your_texture_2.png
`-- Another Texture Pack
### Texture Pack
This is a directory containing the entire contents of a single texture pack.
It can be chosen more or less freely and will also become the name of the
texture pack. The name must not be “base”.
### `description.txt`
A file containing a short description of the texture pack to be shown in the
texture packs tab.
### `screenshot.png`
A preview image showing an in-game screenshot of this texture pack; it will be
shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
minimum size of 300×200 pixels.
### `your_texture_1.png`, `your_texture_2.png`, etc.
Any other PNG files will be interpreted as textures. They must have the same
names as the textures they are supposed to override. For example, to override
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.
The custom textures do not necceessarily require the same size as their
originals, but this might be required for a few particular textures. When
unsure, just test your texture pack in-game.
Texture modifiers
Texture modifiers
-----------------
-----------------
There are various texture modifiers that can be used
There are various texture modifiers that can be used
...
@@ -1997,7 +1963,7 @@ Call these functions only at load time!
...
@@ -1997,7 +1963,7 @@ Call these functions only at load time!
* `minetest.register_privilege(name, definition)`
* `minetest.register_privilege(name, definition)`
* `definition`: `"description text"`
* `definition`: `"description text"`
* `definition`: `{ description = "description text", give_to_singleplayer = boolean}`
* `definition`: `{ description = "description text", give_to_singleplayer = boolean}`
the default of `give_to_singleplayer` is true
the default of `give_to_singleplayer` is true
* To allow players with basic_privs to grant, see basic_privs minetest.conf setting.
* To allow players with basic_privs to grant, see basic_privs minetest.conf setting.
* `minetest.register_authentication_handler(handler)`
* `minetest.register_authentication_handler(handler)`
* See `minetest.builtin_auth_handler` in `builtin.lua` for reference
* See `minetest.builtin_auth_handler` in `builtin.lua` for reference
...
...
This diff is collapsed.
Click to expand it.
doc/texture_
override
s.txt
→
doc/texture_
pack
s.txt
+
77
−
0
View file @
927adf9b
Minetest Texture Pack Reference
===============================
Texture packs allow you to replace textures provided by a mod with your own
textures.
Texture pack directory structure
--------------------------------
textures
|-- Texture Pack
| |-- screenshot.png
| |-- description.txt
| |-- override.txt
| |-- your_texture_1.png
| |-- your_texture_2.png
`-- Another Texture Pack
### Texture Pack
This is a directory containing the entire contents of a single texture pack.
It can be chosen more or less freely and will also become the name of the
texture pack. The name must not be “base”.
### `description.txt`
A file containing a short description of the texture pack to be shown in the
texture packs tab.
### `screenshot.png`
A preview image showing an in-game screenshot of this texture pack; it will be
shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
minimum size of 300×200 pixels.
### `your_texture_1.png`, `your_texture_2.png`, etc.
Any other PNG files will be interpreted as textures. They must have the same
names as the textures they are supposed to override. For example, to override
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.
The custom textures do not necceessarily require the same size as their
originals, but this might be required for a few particular textures. When
unsure, just test your texture pack in-game.
Texture modifiers
-----------------
See lua_api.txt for texture modifiers
Texture Overrides
Texture Overrides
=================
-----------------
You can override the textures of a node from a texture pack using
You can override the textures of a node from a texture pack using
texture overrides. To do this, create a file in a texture pack
texture overrides. To do this, create a file in a texture pack
called override.txt
called override.txt
Basic Format
------------
Each line in an override.txt file is a rule. It consists of
Each line in an override.txt file is a rule. It consists of
nodename face-selector texture
nodename face-selector texture
...
@@ -20,8 +63,7 @@ You can use ^ operators as usual:
...
@@ -20,8 +63,7 @@ You can use ^ operators as usual:
default:dirt_with_grass sides default_stone.png^[brighten
default:dirt_with_grass sides default_stone.png^[brighten
Face Selectors
Here are face selectors you can choose from:
--------------
| face-selector | behavior |
| face-selector | behavior |
|---------------|---------------------------------------------------|
|---------------|---------------------------------------------------|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment