Compare commits
117 Commits
master
...
production
Author | SHA1 | Date |
---|---|---|
Lizzy Fleckenstein | d5434bf008 | |
cora | 15fb401497 | |
cora | 48946339c5 | |
cora | edf9e38d4f | |
kay27 | 1a9990fc92 | |
kay27 | b64188f37e | |
kay27 | bd455a3eee | |
Lizzy Fleckenstein | 7096677d2e | |
kay27 | b488064058 | |
kay27 | 38c4869b7f | |
Doloment | 819dbc6224 | |
NO11 | 4b2a82e5b8 | |
NO11 | 661c80bd1d | |
NO11 | e73cb56085 | |
kay27 | 0a6c3a4414 | |
AFCMS | b21c43e38c | |
AFCMS | 8dda13f143 | |
Elias Åström | 731dc4947b | |
kay27 | 91762f24b6 | |
kay27 | 975be19f50 | |
kay27 | 23150d60ac | |
kay27 | 36bd151398 | |
kay27 | d66671ae76 | |
kay27 | 75f20eb3a5 | |
NO11 | 5fd5ebe4d4 | |
AFCMS | 05ba837de4 | |
AFCMS | 3722d2e8fe | |
kay27 | 7e6abe8398 | |
Lizzy Fleckenstein | 64a15d1eea | |
Lizzy Fleckenstein | 28c12df6cd | |
kay27 | 61a6929c40 | |
Lizzy Fleckenstein | f94ab6c8a5 | |
AFCMS | 9a6331adde | |
AFCMS | 2fa7e870ee | |
kay27 | 7683fa6a17 | |
AFCMS | dc5bac8d86 | |
jordan4ibanez | f08ada08eb | |
epCode | 234a9cc746 | |
epCode | 397f22b907 | |
AFCMS | 597b66ddcb | |
kay27 | 46379b924d | |
kay27 | 753795dfcd | |
epCode | 5aac1e71cb | |
AFCMS | 81844f8f74 | |
AFCMS | ed72a7075f | |
kay27 | 22d815dff5 | |
kay27 | f6ef8738e6 | |
NO11 | 6fcf9b7343 | |
AFCMS | 2edc96f1f4 | |
Nils Dagsson Moskopp | bee4dc4854 | |
epCode | e3d5b8a94c | |
kay27 | b04f83ae18 | |
Benjamin Schötz | 45b6ad5e2f | |
epCode | 71efdb6744 | |
Lizzy Fleckenstein | b7c68e776c | |
j1233 | 989acf889e | |
j1233 | f8b61b9688 | |
Lizzy Fleckenstein | 873e6f6aa4 | |
kay27 | b064688b14 | |
kay27 | 51ebe823b0 | |
kay27 | 41703589be | |
kay27 | 7ba50bb548 | |
NO11 | d9792ea688 | |
jordan4ibanez | f95efc61de | |
kay27 | 91611e58fb | |
kay27 | 7bc50b5946 | |
kay27 | 436c0cda2f | |
NO11 | 1aca9b4529 | |
NO11 | 58edb17baf | |
NO11 | 0002b91673 | |
NO11 | ebab220fb2 | |
kay27 | 9bda091970 | |
epCode | b31f13d296 | |
kay27 | 9859714d92 | |
kay27 | fd8540ed5c | |
kay27 | 79889ee375 | |
kay27 | 486b7a87bb | |
NO11 | 1abcd90020 | |
kay27 | a25edff3ff | |
NO11 | 75ee0dabfb | |
Lizzy Fleckenstein | 0b8e152c0a | |
Lizzy Fleckenstein | 7504e547da | |
NO11 | 862fa5fb2b | |
NO11 | 31e2b0f010 | |
NO11 | 8ae06042df | |
NO11 | e34a32a62e | |
NO11 | a26801b2cd | |
NO11 | e9260218d3 | |
Code-Sploit | eb80cceb8d | |
kay27 | 99bb492147 | |
Code-Sploit | 412813e5a5 | |
Lizzy Fleckenstein | db2fd7497f | |
Lizzy Fleckenstein | 769e348133 | |
epCode | 9a00b15f46 | |
kay27 | 794fa15405 | |
kay27 | f89513a285 | |
kay27 | e2af72f0f0 | |
kay27 | a671a00319 | |
kay27 | 126a21acd2 | |
kay27 | 533e499a4d | |
kay27 | e2860cb885 | |
kay27 | e21976320a | |
kay27 | 9300b35bda | |
kay27 | 416d0aa12d | |
kay27 | 50bd7e58ef | |
kay27 | a2e0ddff92 | |
kay27 | e1705ff39f | |
kay27 | 609ea7a1f8 | |
kay27 | 590f82ee88 | |
kay27 | 1bcb971f0c | |
jordan4ibanez | 96dbfa30a2 | |
jordan4ibanez | 123802c77a | |
kay27 | 622028171c | |
Lizzy Fleckenstein | 90a54104e8 | |
Lizzy Fleckenstein | 409e48f068 | |
Lizzy Fleckenstein | 7e37f74339 | |
Lizzy Fleckenstein | ab0b647b26 |
|
@ -1,12 +0,0 @@
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
end_of_line = lf
|
|
||||||
|
|
||||||
[*.lua]
|
|
||||||
charset = utf8
|
|
||||||
indent_style = tab
|
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
keep_one_space_between_table_and_bracket = false
|
|
||||||
spaces_around_operators = true
|
|
|
@ -1,36 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
name: "Bug report"
|
|
||||||
about: "File a bug report"
|
|
||||||
labels:
|
|
||||||
|
|
||||||
- unconfirmed
|
|
||||||
- bug
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Thanks for taking the time to fill out this bug report!
|
|
||||||
|
|
||||||
Please follow our contributing guidelines first:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#rules-about-both-bugs-and-feature-requests
|
|
||||||
|
|
||||||
By submitting this issue, you agree to follow our Code of Conduct:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
What version of MineClone2 are you using? We do not provide support for outdated versions of MineClone2.
|
|
||||||
Current latest version is listed here, at the top:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/tags
|
|
||||||
-->
|
|
||||||
MineClone2 version:
|
|
||||||
|
|
||||||
### What happened?
|
|
||||||
Report about the bug! Please send large log snippets as an attachement file.
|
|
||||||
|
|
||||||
### What should happen:
|
|
||||||
Tell us what should happen!
|
|
||||||
|
|
||||||
### Steps to reproduce
|
|
||||||
Tell us how we can reproduce the bug!
|
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
name: "Feature request"
|
|
||||||
about: "File a feature request not in Minecraft"
|
|
||||||
labels:
|
|
||||||
|
|
||||||
- "non-Minecraft feature"
|
|
||||||
- "needs discussion"
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Got a new non-Minecraft feature request? Explain to us why we should consider your idea.
|
|
||||||
|
|
||||||
Please follow our contributing guidelines first:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#rules-about-both-bugs-and-feature-requests
|
|
||||||
|
|
||||||
By submitting this issue, you agree to follow our Code of Conduct:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
|
|
||||||
-->
|
|
||||||
|
|
||||||
### Feature
|
|
||||||
Tell us about your requested feature not in Minecraft!
|
|
||||||
|
|
||||||
### Why
|
|
||||||
Tell us why should we implement it!
|
|
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
name: "Missing Feature request"
|
|
||||||
about: "File a missing feature request in Minecraft but not in MineClone2"
|
|
||||||
labels:
|
|
||||||
|
|
||||||
- "missing feature"
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Thanks for taking the time to fill out this missing feature request!
|
|
||||||
|
|
||||||
Please follow our contributing guidelines first:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#rules-about-both-bugs-and-feature-requests
|
|
||||||
|
|
||||||
By submitting this issue, you agree to follow our Code of Conduct:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
|
|
||||||
-->
|
|
||||||
|
|
||||||
### Current feature in Minecraft
|
|
||||||
Tell us about the feature currently in Minecraft! What is it like on Minecraft?
|
|
||||||
|
|
||||||
### Current feature in MineClone2
|
|
||||||
Tell us about the feature currently in MineClone2! What is different?
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
name: "Pull request"
|
|
||||||
about: "Submit a pull request"
|
|
||||||
labels:
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Please follow our contributing guidelines first:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#how-you-can-help-as-a-programmer
|
|
||||||
|
|
||||||
By submitting this pull request, you agree to follow our Code of Conduct:
|
|
||||||
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
|
|
||||||
-->
|
|
||||||
|
|
||||||
Tell us about your pull request! Reference related issues, if necessary
|
|
||||||
|
|
||||||
### Testing
|
|
||||||
Tell us how to test your changes!
|
|
|
@ -1,7 +0,0 @@
|
||||||
# Text Editor TMP Files
|
|
||||||
*.swp
|
|
||||||
*.blend1
|
|
||||||
*.blend2
|
|
||||||
*.blend3
|
|
||||||
/.idea/
|
|
||||||
*.xcf
|
|
12
.luacheckrc
|
@ -40,16 +40,4 @@ read_globals = {
|
||||||
"factorial"
|
"factorial"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
------
|
|
||||||
--MODS
|
|
||||||
------
|
|
||||||
|
|
||||||
--GENERAL
|
|
||||||
"default",
|
|
||||||
|
|
||||||
--ENTITIES
|
|
||||||
"cmi",
|
|
||||||
|
|
||||||
--HUD
|
|
||||||
"sfinv", "sfinv_buttons", "unified_inventory", "cmsg", "inventory_plus",
|
|
||||||
}
|
}
|
2
API.md
|
@ -42,7 +42,7 @@ A lot of things are possible by using one of the APIs in the mods. Note that not
|
||||||
* Buckets: `ITEMS/mcl_buckets`
|
* Buckets: `ITEMS/mcl_buckets`
|
||||||
* Dispenser support: `ITEMS/REDSTONE/mcl_dispensers`
|
* Dispenser support: `ITEMS/REDSTONE/mcl_dispensers`
|
||||||
|
|
||||||
### Mobs
|
## Mobs
|
||||||
* Mobs: `ENTITIES/mcl_mobs`
|
* Mobs: `ENTITIES/mcl_mobs`
|
||||||
|
|
||||||
MineClone 2 uses its own mobs framework, called “Mobs Redo: MineClone 2 Edition” or “MRM” for short.
|
MineClone 2 uses its own mobs framework, called “Mobs Redo: MineClone 2 Edition” or “MRM” for short.
|
||||||
|
|
|
@ -1,128 +0,0 @@
|
||||||
# Contributor Covenant Code of Conduct
|
|
||||||
|
|
||||||
## Our Pledge
|
|
||||||
|
|
||||||
We as members, contributors, and leaders pledge to make participation in our
|
|
||||||
community a harassment-free experience for everyone, regardless of age, body
|
|
||||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
||||||
identity and expression, level of experience, education, socio-economic status,
|
|
||||||
nationality, personal appearance, race, religion, or sexual identity
|
|
||||||
and orientation.
|
|
||||||
|
|
||||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
||||||
diverse, inclusive, and healthy community.
|
|
||||||
|
|
||||||
## Our Standards
|
|
||||||
|
|
||||||
Examples of behavior that contributes to a positive environment for our
|
|
||||||
community include:
|
|
||||||
|
|
||||||
* Demonstrating empathy and kindness toward other people
|
|
||||||
* Being respectful of differing opinions, viewpoints, and experiences
|
|
||||||
* Giving and gracefully accepting constructive feedback
|
|
||||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
||||||
and learning from the experience
|
|
||||||
* Focusing on what is best not just for us as individuals, but for the
|
|
||||||
overall community
|
|
||||||
|
|
||||||
Examples of unacceptable behavior include:
|
|
||||||
|
|
||||||
* The use of sexualized language or imagery, and sexual attention or
|
|
||||||
advances of any kind
|
|
||||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
||||||
* Public or private harassment
|
|
||||||
* Publishing others' private information, such as a physical or email
|
|
||||||
address, without their explicit permission
|
|
||||||
* Other conduct which could reasonably be considered inappropriate in a
|
|
||||||
professional setting
|
|
||||||
|
|
||||||
## Enforcement Responsibilities
|
|
||||||
|
|
||||||
Community leaders are responsible for clarifying and enforcing our standards of
|
|
||||||
acceptable behavior and will take appropriate and fair corrective action in
|
|
||||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
||||||
or harmful.
|
|
||||||
|
|
||||||
Community leaders have the right and responsibility to remove, edit, or reject
|
|
||||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
||||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
||||||
decisions when appropriate.
|
|
||||||
|
|
||||||
## Scope
|
|
||||||
|
|
||||||
This Code of Conduct applies within all community spaces, and also applies when
|
|
||||||
an individual is officially representing the community in public spaces.
|
|
||||||
Examples of representing our community include using an official e-mail address,
|
|
||||||
posting via an official social media account, or acting as an appointed
|
|
||||||
representative at an online or offline event.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
||||||
reported to the community leaders responsible for enforcement at
|
|
||||||
ancientmariner_dev@proton.me.
|
|
||||||
All complaints will be reviewed and investigated promptly and fairly.
|
|
||||||
|
|
||||||
All community leaders are obligated to respect the privacy and security of the
|
|
||||||
reporter of any incident.
|
|
||||||
|
|
||||||
## Enforcement Guidelines
|
|
||||||
|
|
||||||
Community leaders will follow these Community Impact Guidelines in determining
|
|
||||||
the consequences for any action they deem in violation of this Code of Conduct:
|
|
||||||
|
|
||||||
### 1. Correction
|
|
||||||
|
|
||||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
||||||
unprofessional or unwelcome in the community.
|
|
||||||
|
|
||||||
**Consequence**: A private, written warning from community leaders, providing
|
|
||||||
clarity around the nature of the violation and an explanation of why the
|
|
||||||
behavior was inappropriate. A public apology may be requested.
|
|
||||||
|
|
||||||
### 2. Warning
|
|
||||||
|
|
||||||
**Community Impact**: A violation through a single incident or series
|
|
||||||
of actions.
|
|
||||||
|
|
||||||
**Consequence**: A warning with consequences for continued behavior. No
|
|
||||||
interaction with the people involved, including unsolicited interaction with
|
|
||||||
those enforcing the Code of Conduct, for a specified period of time. This
|
|
||||||
includes avoiding interactions in community spaces as well as external channels
|
|
||||||
like social media. Violating these terms may lead to a temporary or
|
|
||||||
permanent ban.
|
|
||||||
|
|
||||||
### 3. Temporary Ban
|
|
||||||
|
|
||||||
**Community Impact**: A serious violation of community standards, including
|
|
||||||
sustained inappropriate behavior.
|
|
||||||
|
|
||||||
**Consequence**: A temporary ban from any sort of interaction or public
|
|
||||||
communication with the community for a specified period of time. No public or
|
|
||||||
private interaction with the people involved, including unsolicited interaction
|
|
||||||
with those enforcing the Code of Conduct, is allowed during this period.
|
|
||||||
Violating these terms may lead to a permanent ban.
|
|
||||||
|
|
||||||
### 4. Permanent Ban
|
|
||||||
|
|
||||||
**Community Impact**: Demonstrating a pattern of violation of community
|
|
||||||
standards, including sustained inappropriate behavior, harassment of an
|
|
||||||
individual, or aggression toward or disparagement of classes of individuals.
|
|
||||||
|
|
||||||
**Consequence**: A permanent ban from any sort of public interaction within
|
|
||||||
the community.
|
|
||||||
|
|
||||||
## Attribution
|
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
||||||
version 2.0, available at
|
|
||||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
||||||
|
|
||||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
||||||
enforcement ladder](https://github.com/mozilla/diversity).
|
|
||||||
|
|
||||||
[homepage]: https://www.contributor-covenant.org
|
|
||||||
|
|
||||||
For answers to common questions about this code of conduct, see the FAQ at
|
|
||||||
https://www.contributor-covenant.org/faq. Translations are available at
|
|
||||||
https://www.contributor-covenant.org/translations.
|
|
424
CONTRIBUTING.md
|
@ -1,405 +1,83 @@
|
||||||
# Contributing to MineClone 2
|
# Contributing to MineClone 2
|
||||||
So you want to contribute to MineClone2?
|
So you want to MineClone 2?
|
||||||
Wow, thank you! :-)
|
Wow, thank you! :-)
|
||||||
|
|
||||||
MineClone2 is maintained by Nicu and Cora. If you have any
|
But first, some things to note:
|
||||||
problems or questions, contact us (See Links section below).
|
|
||||||
|
|
||||||
You can help with MineClone2's development in many different ways,
|
MineClone 2's development target is to make a free software clone of Minecraft,
|
||||||
whether you're a programmer or not.
|
***version 1.12***, ***PC edition***, *** + Optifine features supported by the Minetest Engine ***.
|
||||||
|
|
||||||
## MineClone2's development target is to...
|
MineClone 2 is maintained by three persons. Namely, kay27, EliasFleckenstein and jordan4ibanez. You can find us
|
||||||
- Crucially, create a stable, moddable, free/libre clone of Minecraft
|
in the Minetest forums (forums.minetest.net), in IRC in the #mineclone2
|
||||||
based on the Minetest engine with polished features, usable in both
|
channel on irc.freenode.net. And finally, you can send e-mails to
|
||||||
singleplayer and multiplayer. Currently, a lot of Minecraft features
|
<eliasfleckenstein@web.de> or <kay27@bk.ru>.
|
||||||
are already implemented.
|
|
||||||
Polishing existing features is always welcome.
|
|
||||||
|
|
||||||
## Links
|
By sending us patches or asking us to include your changes in this game,
|
||||||
* [Mesehub](https://git.minetest.land/MineClone2/MineClone2)
|
you agree that they fall under the terms of the LGPLv2.1, which basically
|
||||||
* [Discord](https://discord.gg/xE4z8EEpDC)
|
means they will become part of a free software.
|
||||||
* [YouTube](https://www.youtube.com/channel/UClI_YcsXMF3KNeJtoBfnk9A)
|
|
||||||
* [IRC](https://web.libera.chat/#mineclone2)
|
|
||||||
* [Matrix](https://app.element.io/#/room/#mc2:matrix.org)
|
|
||||||
* [Reddit](https://www.reddit.com/r/MineClone2/)
|
|
||||||
* [Minetest forums](https://forum.minetest.net/viewtopic.php?f=50&t=16407)
|
|
||||||
* [ContentDB](https://content.minetest.net/packages/wuzzy/mineclone2/)
|
|
||||||
* [OpenCollective](https://opencollective.com/mineclone2)
|
|
||||||
|
|
||||||
## Using git
|
## The suggested workflow
|
||||||
MineClone2 is developed using the version control system
|
We don't **dictate** your workflow, but in order to work with us in an efficient
|
||||||
[git](https://git-scm.com/). If you want to contribute code to the
|
way, you can follow these suggestions:
|
||||||
project, it is **highly recommended** that you learn the git basics.
|
|
||||||
For non-programmers and people who do not plan to contribute code to
|
|
||||||
MineClone2, git is not required. However, git is a tool that will be
|
|
||||||
referenced frequently because of its usefulness. As such, it is valuable
|
|
||||||
in learning how git works and its terminology. It can also help you
|
|
||||||
keeping your game updated, and easily test pull requests.
|
|
||||||
|
|
||||||
Look at our wiki for some concrete guides:
|
For small and medium changes:
|
||||||
https://git.minetest.land/MineClone2/MineClone2/wiki/
|
|
||||||
|
|
||||||
## How you can help as a non-programmer
|
* Fork the repository
|
||||||
As someone who does not know how to write programs in Lua or does not
|
|
||||||
know how to use the Minetest API, you can still help us out a lot. For
|
|
||||||
example, by opening an issue in the
|
|
||||||
[Issue tracker](https://git.minetest.land/MineClone2/MineClone2/issues),
|
|
||||||
you can report a bug or request a feature.
|
|
||||||
|
|
||||||
### Rules about both bugs and feature requests
|
|
||||||
* Stay polite towards the developers and anyone else involved in the
|
|
||||||
discussion.
|
|
||||||
* Choose a descriptive title (e.g. not just "crash", "bug" or "question"
|
|
||||||
).
|
|
||||||
* Always check the currently opened issues before creating a new one.
|
|
||||||
Try not to report bugs that have already been reported or request features
|
|
||||||
that already have been requested. This can often be ambiguous though.
|
|
||||||
If in doubt open an issue!
|
|
||||||
* If you know about Minetest's inner workings, please think about
|
|
||||||
whether the bug / the feature that you are reporting / requesting is
|
|
||||||
actually an issue with Minetest itself, and if it is, head to the
|
|
||||||
[Minetest issue tracker](https://github.com/minetest/minetest/issues)
|
|
||||||
instead.
|
|
||||||
* If you need any help regarding creating a Mesehub account or opening
|
|
||||||
an issue, feel free to ask on the Discord / Matrix server or the IRC
|
|
||||||
channel.
|
|
||||||
|
|
||||||
The link to the mesehub registration page is: https://git.minetest.land/user/sign_up
|
|
||||||
(It appears to sometimes get lost on the page itsself)
|
|
||||||
|
|
||||||
### Reporting bugs
|
|
||||||
* A bug is an unintended behavior or, in the worst case, a crash.
|
|
||||||
However, it is not a bug if you believe something is missing in the
|
|
||||||
game. In this case, please read "Requesting features"
|
|
||||||
* If you report a crash, always include the error message. If you play
|
|
||||||
in singleplayer, post a screenshot of the message that Minetest showed
|
|
||||||
when the crash happened (or copy the message into your issue). If you
|
|
||||||
are a server admin, you can find error messages in the log file of the
|
|
||||||
server.
|
|
||||||
* Tell us which MineClone2 and Minetest versions you are using.
|
|
||||||
* Tell us how to reproduce the problem: What you were doing to trigger
|
|
||||||
the bug, e.g. before the crash happened or what causes the faulty
|
|
||||||
behavior.
|
|
||||||
|
|
||||||
### Requesting features
|
|
||||||
* Ensure the requested feature fulfills our development targets and
|
|
||||||
goals.
|
|
||||||
* Begging or excessive attention seeking does not help us in the
|
|
||||||
slightest, and may very well disrupt MineClone2 development. It's better
|
|
||||||
to put that energy into helping or researching the feature in question.
|
|
||||||
After all, we're just volunteers working on our spare time.
|
|
||||||
* Ensure the requested feature has not been implemented in MineClone2
|
|
||||||
latest or development versions.
|
|
||||||
|
|
||||||
### Testing code
|
|
||||||
If you want to help us with speeding up MineClone2 development and
|
|
||||||
making the game more stable, a great way to do that is by testing out
|
|
||||||
new features from contributors. For most new things that get into the
|
|
||||||
game, a pull request is created. A pull request is essentially a
|
|
||||||
programmer saying "Look, I modified the game, please apply my changes
|
|
||||||
to the upstream version of the game". However, every programmer makes
|
|
||||||
mistakes sometimes, some of which are hard to spot. You can help by
|
|
||||||
downloading this modified version of the game and trying it out - then
|
|
||||||
tell us if the code works as expected without any issues. Ideally, you
|
|
||||||
would report issues will pull requests similar to when you were
|
|
||||||
reporting bugs that are the mainline (See Reporting bugs section). You
|
|
||||||
can find currently open pull requests here:
|
|
||||||
<https://git.minetest.land/MineClone2/MineClone2/pulls>. Note that pull
|
|
||||||
requests that start with a `WIP:` are not done yet and therefore could
|
|
||||||
still undergo substantial change. Testing these is still helpful however
|
|
||||||
because that is the reason developers put them up as WIP so other people
|
|
||||||
can have a look at the PR.
|
|
||||||
|
|
||||||
### Contributing assets
|
|
||||||
Due to license problems, MineClone2 cannot use Minecraft's assets,
|
|
||||||
therefore we are always looking for asset contributions.
|
|
||||||
|
|
||||||
To contribute assets, it can be useful to learn git basics and read
|
|
||||||
the section for Programmers of this document, however this is not required.
|
|
||||||
It's also a good idea to join the Discord server
|
|
||||||
(or alternatively IRC or Matrix).
|
|
||||||
|
|
||||||
#### Textures
|
|
||||||
For textures we use the Pixel Perfection texture pack. For older Minecraft
|
|
||||||
features that is mostly enough but a lot of the newer textures in it are
|
|
||||||
copies or slight modifications of the original MC textures so great caution
|
|
||||||
needs to be taken when using any textures coming from Minecraft texture
|
|
||||||
packs.
|
|
||||||
If you want to make such contributions, join our Discord server. Demands
|
|
||||||
for textures will be communicated there.
|
|
||||||
|
|
||||||
#### Sounds
|
|
||||||
MineClone2 currently does not have a consistent way to handle sounds.
|
|
||||||
The sounds in the game come from different sources, like the SnowZone
|
|
||||||
resource pack or minetest_game. Unfortunately, MineClone2 does not play
|
|
||||||
a sound in every situation you would get one in Minecraft. Any help with
|
|
||||||
sounds is greatly appreciated, however if you add new sounds you should
|
|
||||||
probably work together with a programmer, to write the code to actually
|
|
||||||
play these sounds in game.
|
|
||||||
|
|
||||||
#### 3D Models
|
|
||||||
Most of the 3D Models in MineClone2 come from
|
|
||||||
[22i's repository](https://github.com/22i/minecraft-voxel-blender-models).
|
|
||||||
Similar to the textures, we need people that can make 3D Models with
|
|
||||||
Blender on demand. Many of the models have to be patched, some new
|
|
||||||
animations have to be added etc.
|
|
||||||
|
|
||||||
#### Crediting
|
|
||||||
Asset contributions will be credited in their own respective sections in
|
|
||||||
CREDITS.md. If you have commited the results yourself, you will also be
|
|
||||||
credited in the Contributors section.
|
|
||||||
|
|
||||||
### Contributing Translations
|
|
||||||
|
|
||||||
#### Workflow
|
|
||||||
To add/update support for your language to MineClone2, you should take
|
|
||||||
the steps documented in the section for Programmers, add/update the
|
|
||||||
translation files of the mods that you want to update. You can add
|
|
||||||
support for all mods, just some of them or only one mod; you can update
|
|
||||||
the translation file entirely or only partly; basically any effort is
|
|
||||||
valued. If your changes are small, you can also send them to developers
|
|
||||||
via E-Mail, Discord, IRC or Matrix - they will credit you appropriately.
|
|
||||||
|
|
||||||
#### Things to note
|
|
||||||
You can use the script at `tools/check_translate_files.py` to compare
|
|
||||||
the translation files for the language you are working on with the
|
|
||||||
template files, to see what is missing and what is out of date with
|
|
||||||
the template file. However, template files are often incomplete and/or
|
|
||||||
out of date, sometimes they don't match the code. You can update the
|
|
||||||
translation files if that is required, you can also modify the code in
|
|
||||||
your translation PR if it's related to translation. You can also work on
|
|
||||||
multiple languages at the same time in one PR.
|
|
||||||
|
|
||||||
#### Crediting
|
|
||||||
Translation contributions will be credited in their own in CREDITS.md.
|
|
||||||
If you have commited the results yourself, you will also be credited in
|
|
||||||
the Contributors section.
|
|
||||||
|
|
||||||
### Profiling
|
|
||||||
If you own a server, a great way to help us improve MineClone2's code
|
|
||||||
is by giving us profiler results. Profiler results give us detailed
|
|
||||||
information about the game's performance and let us know places to
|
|
||||||
investigate optimization issues. This way we can make the game faster.
|
|
||||||
|
|
||||||
#### Using Minetest's profiler
|
|
||||||
Minetest has a built in profiler. Simply set `profiler.load = true` in
|
|
||||||
your configuration file and restart the server. After running the server
|
|
||||||
for some time, just run `/profiler save` in chat - then you will find a
|
|
||||||
file in the world directory containing the results. Open a new issue and
|
|
||||||
upload the file. You can name the issue "<Server name> profiler
|
|
||||||
results".
|
|
||||||
|
|
||||||
### Let us know your opinion
|
|
||||||
It is always encouraged to actively contribute to issue discussions on
|
|
||||||
MeseHub, let us know what you think about a topic and help us make
|
|
||||||
decisions. Also, note that a lot of discussion takes place on the
|
|
||||||
Discord server, so it's definitely worth checking it out.
|
|
||||||
|
|
||||||
### Funding
|
|
||||||
You can help pay for our infrastructure (Mesehub) by donating to our
|
|
||||||
OpenCollective link (See Links section).
|
|
||||||
|
|
||||||
### Crediting
|
|
||||||
If you opened or have contributed to an issue, you receive the
|
|
||||||
`Community` role on our Discord (after asking for it).
|
|
||||||
OpenCollective Funders are credited in their own section in
|
|
||||||
`CREDITS.md` and receive a special role "Funder" on our discord (unless
|
|
||||||
they have made their donation Incognito).
|
|
||||||
|
|
||||||
## How you can help as a programmer
|
|
||||||
(Almost) all the MineClone2 development is done using pull requests.
|
|
||||||
|
|
||||||
### Recommended workflow
|
|
||||||
* Fork the repository (in case you have not already)
|
|
||||||
* Do your change in a new branch
|
* Do your change in a new branch
|
||||||
* Create a pull request to get your changes merged into master
|
* Create a pull request to get your changes merged into master
|
||||||
* Keep your pull request up to date by regularly merging upstream. It is
|
|
||||||
imperative that conflicts are resolved prior to merging the pull
|
|
||||||
request.
|
|
||||||
* After the pull request got merged, you can delete the branch
|
|
||||||
|
|
||||||
### Discuss first
|
For small changes, sending us a patch is also good.
|
||||||
If you feel like a problem needs to fixed or you want to make a new
|
|
||||||
feature, you could start writing the code right away and notifying us
|
|
||||||
when you're done, but it never hurts to discuss things first. If there
|
|
||||||
is no issue on the topic, open one. If there is an issue, tell us that
|
|
||||||
you'd like to take care of it, to avoid duplicate work.
|
|
||||||
|
|
||||||
### Don't hesitate to ask for help
|
For big changes: Same as above, but consider notifying us first to avoid
|
||||||
We appreciate any contributing effort to MineClone2. If you are a
|
duplicate work and possible tears of rejection. ;-)
|
||||||
relatively new programmer, you can reach us on Discord, Matrix or IRC
|
|
||||||
for questions about git, Lua, Minetest API, MineClone2 codebase or
|
|
||||||
anything related to MineClone2. We can help you avoid writing code that
|
|
||||||
would be deemed inadequate, or help you become familiar with MineClone2
|
|
||||||
better, or assist you use development tools.
|
|
||||||
|
|
||||||
### Maintain your own code, even if already got merged
|
For trusted people, we might give them direct commit access to this
|
||||||
Sometimes, your code may cause crashes or bugs - we try to avoid such
|
repository. In this case, you obviously don't need to fork, but you still
|
||||||
scenarios by testing every time before merging it, but if your merged
|
need to show your contributions align with the project goals. We still
|
||||||
work causes problems, we ask you fix the issues as soon as possible.
|
reserve the right to revert everything that we don't like.
|
||||||
|
For bigger changes, we strongly recommend to use feature branches and
|
||||||
|
discuss with me first.
|
||||||
|
|
||||||
### Changing Gameplay
|
If your code causes bugs and crashes, it is your responsibility to fix them as soon as possible.
|
||||||
Pull Requests that change gameplay have to be properly researched and
|
|
||||||
need to state their sources. These PRs also need Fleckenstein's approval
|
|
||||||
before they are merged.
|
|
||||||
You can use these sources:
|
|
||||||
|
|
||||||
* Testing things inside of Minecraft (Attach screenshots / video footage
|
We mostly use plain merging rather than rebasing or squash merging.
|
||||||
of the results)
|
|
||||||
* Looking at [Minestom](https://github.com/Minestom/Minestom) code. An open source Minecraft Server implementation
|
|
||||||
* [Official Minecraft Wiki](https://minecraft.fandom.com/wiki/Minecraft_Wiki)
|
|
||||||
(Include a link to the specific page you used)
|
|
||||||
|
|
||||||
### Guidelines
|
Your commit names should be relatively descriptive, e.g. when saying "Fix #issueid", the commit message should also contain the title of the issue.
|
||||||
|
|
||||||
#### Git Guidelines
|
Contributors will be credited in `CREDITS.md`.
|
||||||
* Pushing to master is disabled - don't even try it.
|
|
||||||
* Every change is tracked as a PR.
|
|
||||||
* All but the tiniest changes require at least one approval from a Developer
|
|
||||||
* To update branches we use rebase not merge (so we don't end up with
|
|
||||||
excessive git bureaucracy commits in master)
|
|
||||||
* We use merge to add the commits from a PR/branch to master
|
|
||||||
* Submodules should only be used if a) upstream is highly reliable and
|
|
||||||
b) it is 100% certain that no mcl2 specific changes to the code will be
|
|
||||||
needed (this has never been the case before, hence mcl2 is submodule free so far)
|
|
||||||
* Commit messages should be descriptive and never contain mcl2 specific
|
|
||||||
issueids - there are other projects who might use commits from mcl2 and
|
|
||||||
it will confuse their issue trackers.
|
|
||||||
* Try to group your submissions best as you can:
|
|
||||||
* Try to keep your PRs small: In some cases things reasonably be can't
|
|
||||||
split up but in general multiple small PRs are better than a big one.
|
|
||||||
* Similarly multiple small commits are better than a giant one. (use git commit -p)
|
|
||||||
|
|
||||||
#### Code Guidelines
|
## Features > 1.12
|
||||||
* Each mod must provide `mod.conf`.
|
|
||||||
* Mod names are snake case, and newly added mods start with `mcl_`, e.g.
|
|
||||||
`mcl_core`, `mcl_farming`, `mcl_monster_eggs`. Keep in mind Minetest
|
|
||||||
does not support capital letters in mod names.
|
|
||||||
* To export functions, store them inside a global table named like the
|
|
||||||
mod, e.g.
|
|
||||||
|
|
||||||
```lua
|
If you want to make a feature that was added in a Minecraft version later than 1.12, you should fork MineClone5 (mineclone5 branch in the repository) and add your changes to this.
|
||||||
mcl_example = {}
|
|
||||||
|
|
||||||
function mcl_example.do_something()
|
## What we accept
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
```
|
* Every MC features up to version 1.12 JE.
|
||||||
|
* Every already finished and working good features from versions above (only when making a MineClone5 PR / Contribution).
|
||||||
|
* Except features which couldn't be done easily and bugfree because of Minetest engine limitations. Eg. we CAN extend world boundaries by playing with map chunks, just teleporting player onto next layer after 31000 , but it would cost too much (time, code, bugs, performance, stability, etc).
|
||||||
|
* Some features, approved by the rest of the community, I mean maybe some voting and really missing any negative feedback.
|
||||||
|
|
||||||
* Public functions should not use self references but rather just access
|
## What we reject
|
||||||
the table directly, e.g.
|
|
||||||
|
|
||||||
```lua
|
* Any features which cause critical bugs, sending them to rework/fix or trying to fix immediately.
|
||||||
-- bad
|
* Some small portions of big entirely missing features which just definitely break gamplay balance give nothing useful
|
||||||
function mcl_example:do_something()
|
* Controversial features, which some people support while others do not should be discussed well, with publishing forum announcements, at least during the week. In case if there are still doubts - send them into the mod.
|
||||||
end
|
|
||||||
|
|
||||||
-- good
|
## Reporting bugs
|
||||||
function mcl_example.do_something()
|
Report all bugs and missing Minecraft features here:
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
* Use modern Minetest API, e.g. no usage of `minetest.env`
|
<https://git.minetest.land/MineClone2/MineClone2/issues>
|
||||||
* Tabs should be used for indent, spaces for alignment, e.g.
|
|
||||||
|
|
||||||
```lua
|
## Direct discussion
|
||||||
|
We have an IRC channel! Join us on #mineclone2 in freenode.net.
|
||||||
|
|
||||||
-- use tabs for indent
|
<ircs://irc.freenode.net:6697/#mineclone2>
|
||||||
|
|
||||||
for i = 1, 10 do
|
## Creating releases
|
||||||
if i % 3 == 0 then
|
|
||||||
print(i)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- use tabs for indent and spaces to align things
|
|
||||||
|
|
||||||
some_table = {
|
|
||||||
{"a string", 5},
|
|
||||||
{"a very much longer string", 10},
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
* Use double quotes for strings, e.g. `"asdf"` rather than `'asdf'`
|
|
||||||
* Use snake_case rather than CamelCase, e.g. `my_function` rather than
|
|
||||||
`MyFunction`
|
|
||||||
* Don't declare functions as an assignment, e.g.
|
|
||||||
|
|
||||||
```lua
|
|
||||||
-- bad
|
|
||||||
local some_local_func = function()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
my_mod.some_func = function()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
-- good
|
|
||||||
local function some_local_func()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
|
|
||||||
function my_mod.some_func()
|
|
||||||
-- ...
|
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
### Developer status
|
|
||||||
Active and trusted contributors are often granted write access to the
|
|
||||||
MineClone2 repository.
|
|
||||||
|
|
||||||
#### Developer responsibilities
|
|
||||||
- If you have developer privileges you can just open a new branch in the
|
|
||||||
mcl2 repository (which is preferred). From that you create a pull request.
|
|
||||||
This way other people can review your changes and make sure they work
|
|
||||||
before they get merged.
|
|
||||||
- If you do not (yet) have developer privs you do your work on a branch
|
|
||||||
on your private repository e.g. using the "fork" function on mesehub.
|
|
||||||
- Any developer is welcome to review, test and merge PRs. A PR needs
|
|
||||||
at least one approval (by someone else than the author) but the maintainers
|
|
||||||
are usually relatively quick to react to new submissions.
|
|
||||||
|
|
||||||
### Maintainer status
|
|
||||||
Maintainers carry the main responsibility for the project.
|
|
||||||
|
|
||||||
#### Maintainer responsibilities
|
|
||||||
- Making sure issues are addressed and pull requests are reviewed and
|
|
||||||
merged.
|
|
||||||
- Making releases
|
|
||||||
- Making project decisions based on community feedback
|
|
||||||
- Granting/revoking developer access
|
|
||||||
- Enforcing the code of conduct (See CODE_OF_CONDUCT.md)
|
|
||||||
- Moderating official community spaces (See Links section)
|
|
||||||
- Resolving conflicts and problems within the community
|
|
||||||
|
|
||||||
#### Current maintainers
|
|
||||||
* Cora - responsible for gameplay review, publishing releases,
|
|
||||||
technical guidelines
|
|
||||||
* Nicu - responsible for community related issues
|
|
||||||
|
|
||||||
#### Release process
|
|
||||||
* Run `tools/generate_ingame_credits.lua` to update the ingame credits
|
|
||||||
from `CREDITS.md` and commit the result (if anything changed)
|
|
||||||
* Launch MineClone2 to make sure it still runs
|
* Launch MineClone2 to make sure it still runs
|
||||||
* Update the version number in README.md
|
* Update the version number in README.md
|
||||||
* Use `git tag <version number>` to tag the latest commit with the
|
* Use `git tag <version number>` to tag the latest commit with the version number
|
||||||
version number
|
* Push to repo (don't forget `--tags`!)
|
||||||
* Push to repository (don't forget `--tags`!)
|
* Update ContentDB (https://content.minetest.net/packages/Wuzzy/mineclone2/)
|
||||||
* Update ContentDB
|
* Update first post in forum thread (https://forum.minetest.net/viewtopic.php?f=50&t=16407)
|
||||||
(https://content.minetest.net/packages/Wuzzy/mineclone2/)
|
|
||||||
* Update first post in forum thread
|
|
||||||
(https://forum.minetest.net/viewtopic.php?f=50&t=16407)
|
|
||||||
* Post release announcement and changelog in forums
|
* Post release announcement and changelog in forums
|
||||||
|
|
||||||
### Licensing
|
|
||||||
By asking us to include your changes in this game, you agree that they
|
|
||||||
fall under the terms of the GPLv3, which basically means they will
|
|
||||||
become part of a free/libre software.
|
|
||||||
|
|
||||||
### Crediting
|
|
||||||
Contributors, Developers and Maintainers will be credited in
|
|
||||||
`CREDITS.md`. If you make your first time contribution, please add
|
|
||||||
yourself to this file. There are also Discord roles for Contributors,
|
|
||||||
Developers and Maintainers.
|
|
||||||
|
|
94
CREDITS.md
|
@ -6,15 +6,10 @@
|
||||||
## Creator of MineClone2
|
## Creator of MineClone2
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
|
||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
* AncientMariner
|
|
||||||
* Nicu
|
|
||||||
|
|
||||||
## Previous Maintainers
|
|
||||||
* Fleckenstein
|
* Fleckenstein
|
||||||
|
* kay27
|
||||||
* jordan4ibanez
|
* jordan4ibanez
|
||||||
* cora
|
|
||||||
|
|
||||||
## Developers
|
## Developers
|
||||||
* bzoss
|
* bzoss
|
||||||
|
@ -24,19 +19,9 @@
|
||||||
* iliekprogrammar
|
* iliekprogrammar
|
||||||
* MysticTempest
|
* MysticTempest
|
||||||
* Rootyjr
|
* Rootyjr
|
||||||
|
* Nicu
|
||||||
* aligator
|
* aligator
|
||||||
* Code-Sploit
|
* Code-Sploit
|
||||||
* NO11
|
|
||||||
* kabou
|
|
||||||
* rudzik8
|
|
||||||
* chmodsayshello
|
|
||||||
* PrairieWind
|
|
||||||
* RandomLegoBrick
|
|
||||||
* SumianVoice
|
|
||||||
* MrRar
|
|
||||||
* talamh
|
|
||||||
* Faerraven / Michieal
|
|
||||||
* FossFanatic
|
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
* Laurent Rocher
|
* Laurent Rocher
|
||||||
|
@ -55,6 +40,7 @@
|
||||||
* Jared Moody
|
* Jared Moody
|
||||||
* Li0n
|
* Li0n
|
||||||
* Midgard
|
* Midgard
|
||||||
|
* NO11
|
||||||
* Saku Laesvuori
|
* Saku Laesvuori
|
||||||
* Yukitty
|
* Yukitty
|
||||||
* ZedekThePD
|
* ZedekThePD
|
||||||
|
@ -62,43 +48,8 @@
|
||||||
* dBeans
|
* dBeans
|
||||||
* nickolas360
|
* nickolas360
|
||||||
* yutyo
|
* yutyo
|
||||||
* Tianyang Zhang
|
* ztianyang
|
||||||
* j45
|
* j45
|
||||||
* Marcin Serwin
|
|
||||||
* erlehmann
|
|
||||||
* E
|
|
||||||
* Benjamin Schötz
|
|
||||||
* Doloment
|
|
||||||
* Sydney Gems
|
|
||||||
* Emily2255
|
|
||||||
* Emojigit
|
|
||||||
* FinishedFragment
|
|
||||||
* sfan5
|
|
||||||
* Blue Blancmange
|
|
||||||
* Jared Moody
|
|
||||||
* SmallJoker
|
|
||||||
* Sven792
|
|
||||||
* aldum
|
|
||||||
* Dieter44
|
|
||||||
* Pepebotella
|
|
||||||
* MrRar
|
|
||||||
* Lazerbeak12345
|
|
||||||
* mrminer
|
|
||||||
* Thunder1035
|
|
||||||
* opfromthestart
|
|
||||||
* snowyu
|
|
||||||
* FaceDeer
|
|
||||||
* Faerraven / Michieal
|
|
||||||
* FossFanatic
|
|
||||||
* Herbert West
|
|
||||||
* GuyLiner
|
|
||||||
* 3raven
|
|
||||||
* anarquimico
|
|
||||||
* TheOnlyJoeEnderman
|
|
||||||
* Ranko Saotome
|
|
||||||
* Gregor Parzefall
|
|
||||||
* Wbjitscool
|
|
||||||
* b3nderman
|
|
||||||
|
|
||||||
## MineClone5
|
## MineClone5
|
||||||
* kay27
|
* kay27
|
||||||
|
@ -106,18 +57,6 @@
|
||||||
* epCode
|
* epCode
|
||||||
* NO11
|
* NO11
|
||||||
* j45
|
* j45
|
||||||
* chmodsayshello
|
|
||||||
* 3raven
|
|
||||||
* PrairieWind
|
|
||||||
* Gustavo6046 / wallabra
|
|
||||||
* CableGuy67
|
|
||||||
* MrRar
|
|
||||||
|
|
||||||
## Mineclonia
|
|
||||||
* erlehmann
|
|
||||||
* Li0n
|
|
||||||
* E
|
|
||||||
* n_to
|
|
||||||
|
|
||||||
## Original Mod Authors
|
## Original Mod Authors
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
@ -135,6 +74,7 @@
|
||||||
* Rochambeau
|
* Rochambeau
|
||||||
* rubenwardy
|
* rubenwardy
|
||||||
* stu
|
* stu
|
||||||
|
* jordan4ibanez
|
||||||
* 4aiman
|
* 4aiman
|
||||||
* Kahrl
|
* Kahrl
|
||||||
* Krock
|
* Krock
|
||||||
|
@ -149,14 +89,11 @@
|
||||||
* 4Evergreen4
|
* 4Evergreen4
|
||||||
* jordan4ibanez
|
* jordan4ibanez
|
||||||
* paramat
|
* paramat
|
||||||
* cora
|
|
||||||
* Faerraven / Michieal
|
|
||||||
|
|
||||||
## 3D Models
|
## 3D Models
|
||||||
* 22i
|
* 22i
|
||||||
* tobyplowy
|
* tobyplowy
|
||||||
* epCode
|
* epCode
|
||||||
* Faerraven / Michieal
|
|
||||||
|
|
||||||
## Textures
|
## Textures
|
||||||
* XSSheep
|
* XSSheep
|
||||||
|
@ -165,13 +102,6 @@
|
||||||
* leorockway
|
* leorockway
|
||||||
* xMrVizzy
|
* xMrVizzy
|
||||||
* yutyo
|
* yutyo
|
||||||
* NO11
|
|
||||||
* kay27
|
|
||||||
* MysticTempest
|
|
||||||
* RandomLegoBrick
|
|
||||||
* cora
|
|
||||||
* Faerraven / Michieal
|
|
||||||
* Nicu
|
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
@ -179,23 +109,9 @@
|
||||||
* wuniversales
|
* wuniversales
|
||||||
* kay27
|
* kay27
|
||||||
* pitchum
|
* pitchum
|
||||||
* todoporlalibertad
|
|
||||||
* Marcin Serwin
|
|
||||||
* Pepebotella
|
|
||||||
* Emojigit
|
|
||||||
* snowyu
|
|
||||||
* 3raven
|
|
||||||
* SakuraRiu
|
|
||||||
|
|
||||||
## Funders
|
|
||||||
* 40W
|
|
||||||
* bauknecht
|
|
||||||
* Cora
|
|
||||||
|
|
||||||
## Special thanks
|
## Special thanks
|
||||||
* celeron55 for creating Minetest
|
* celeron55 for creating Minetest
|
||||||
* Jordach for the jukebox music compilation from Big Freaking Dig
|
* Jordach for the jukebox music compilation from Big Freaking Dig
|
||||||
* wsor for working tirelessly in the shadows for the good of all of us, particularly helping with solving contentDB and copyright issues.
|
|
||||||
* The workaholics who spent way too much time writing for the Minecraft Wiki. It's an invaluable resource for creating this game
|
* The workaholics who spent way too much time writing for the Minecraft Wiki. It's an invaluable resource for creating this game
|
||||||
* Notch and Jeb for being the major forces behind Minecraft
|
* Notch and Jeb for being the major forces behind Minecraft
|
||||||
* Dark Reaven Music (https://soundcloud.com/dark-reaven-music) for the main menu theme (Calmed Cube), which is licensed under https://creativecommons.org/licenses/by-sa/3.0/
|
|
||||||
|
|
12
GROUPS.md
|
@ -41,7 +41,6 @@ Please read <http://minecraft.gamepedia.com/Breaking> to learn how digging times
|
||||||
* `flammable=-1` Does not get destroyed by fire
|
* `flammable=-1` Does not get destroyed by fire
|
||||||
* `fire_encouragement`: How quickly this block catches fire
|
* `fire_encouragement`: How quickly this block catches fire
|
||||||
* `fire_flammability`: How fast the block will burn away
|
* `fire_flammability`: How fast the block will burn away
|
||||||
* `path_creation_possible=1`: Node can be turned into grass path by using a shovel on it
|
|
||||||
* `spreading_dirt_type=1`: A dirt-type block with a cover (e.g. grass) which may spread to neighbor dirt blocks
|
* `spreading_dirt_type=1`: A dirt-type block with a cover (e.g. grass) which may spread to neighbor dirt blocks
|
||||||
* `dirtifies_below_solid=1`: This node turns into dirt immediately when a solid or dirtifier node is placed on top
|
* `dirtifies_below_solid=1`: This node turns into dirt immediately when a solid or dirtifier node is placed on top
|
||||||
* `dirtifier=1`: This node turns nodes the above group into dirt when placed above
|
* `dirtifier=1`: This node turns nodes the above group into dirt when placed above
|
||||||
|
@ -57,7 +56,6 @@ Please read <http://minecraft.gamepedia.com/Breaking> to learn how digging times
|
||||||
* `no_eat_delay=1`: Only for foodstuffs. When eating this, all eating delays are ignored.
|
* `no_eat_delay=1`: Only for foodstuffs. When eating this, all eating delays are ignored.
|
||||||
* `can_eat_when_full=1`: Only for foodstuffs. This item can be eaten when the user has a full hunger bar
|
* `can_eat_when_full=1`: Only for foodstuffs. This item can be eaten when the user has a full hunger bar
|
||||||
* `attached_node_facedir=1`: Like `attached_node`, but for facedir nodes
|
* `attached_node_facedir=1`: Like `attached_node`, but for facedir nodes
|
||||||
* `supported_node=1`: Like `attached_node`, but can be placed on any nodes that do not have the `drawtype="airlike"` attribute.
|
|
||||||
* `cauldron`: Cauldron. 1: Empty. 2-4: Water height
|
* `cauldron`: Cauldron. 1: Empty. 2-4: Water height
|
||||||
* `anvil`: Anvil. 1: No damage. 2-3: Higher damage levels
|
* `anvil`: Anvil. 1: No damage. 2-3: Higher damage levels
|
||||||
* `no_rename=1`: Item cannot be renamed by anvil
|
* `no_rename=1`: Item cannot be renamed by anvil
|
||||||
|
@ -73,9 +71,6 @@ Please read <http://minecraft.gamepedia.com/Breaking> to learn how digging times
|
||||||
* `coral_block=X`: Coral block (1 = alive, 2 = dead)
|
* `coral_block=X`: Coral block (1 = alive, 2 = dead)
|
||||||
* `coral_species=X`: Specifies the species of a coral; equal X means equal species
|
* `coral_species=X`: Specifies the species of a coral; equal X means equal species
|
||||||
* `set_on_fire=X`: Sets any (not fire-resistant) mob or player on fire for X seconds when touching
|
* `set_on_fire=X`: Sets any (not fire-resistant) mob or player on fire for X seconds when touching
|
||||||
* `compostability=X`: Item can be used on a composter block; X (1-100) is the % chance of adding a level of compost
|
|
||||||
* `leaves=X`: Node will spotaneously decay if no tree trunk nodes remain within 6 blocks distance.
|
|
||||||
* `leaves_orphan`: See above, these nodes are in the process of decayed.
|
|
||||||
|
|
||||||
#### Footnotes
|
#### Footnotes
|
||||||
|
|
||||||
|
@ -104,8 +99,6 @@ Please read <http://minecraft.gamepedia.com/Breaking> to learn how digging times
|
||||||
* `water_bucket=1`: Bucket containing a liquid of group “water”
|
* `water_bucket=1`: Bucket containing a liquid of group “water”
|
||||||
* `enchantability=X`: How good the enchantments are the item gets (1 equals book)
|
* `enchantability=X`: How good the enchantments are the item gets (1 equals book)
|
||||||
* `enchanted=1`: The item is already enchanted, meaning that it can't be enchanted using an enchanting table
|
* `enchanted=1`: The item is already enchanted, meaning that it can't be enchanted using an enchanting table
|
||||||
* `cobble=1`: Cobblestone of any kind
|
|
||||||
* `soul_block`: Fire burning on these blocks turns to soul fire, can be used to craft soul torch
|
|
||||||
|
|
||||||
### Material groups
|
### Material groups
|
||||||
|
|
||||||
|
@ -156,7 +149,7 @@ These groups are used mostly for informational purposes
|
||||||
* `trapdoor=2`: Open trapdoor
|
* `trapdoor=2`: Open trapdoor
|
||||||
* `glass=1`: Glass (full cubes only)
|
* `glass=1`: Glass (full cubes only)
|
||||||
* `rail=1`: Rail
|
* `rail=1`: Rail
|
||||||
* `music_record`: Item is Music Disc
|
* `music_record`: Music Disc (rating is track ID)
|
||||||
* `tnt=1`: Block is TNT
|
* `tnt=1`: Block is TNT
|
||||||
* `boat=1`: Boat
|
* `boat=1`: Boat
|
||||||
* `minecart=1`: Minecart
|
* `minecart=1`: Minecart
|
||||||
|
@ -207,9 +200,6 @@ These groups are used mostly for informational purposes
|
||||||
* `building_block=1`: Block is a building block
|
* `building_block=1`: Block is a building block
|
||||||
* `deco_block=1`: Block is a decorational block
|
* `deco_block=1`: Block is a decorational block
|
||||||
|
|
||||||
* `blast_furnace_smeltable=1` : Item or node is smeltable by a blast furnace
|
|
||||||
* `smoker_cookable=1` : Food is cookable by a smoker.
|
|
||||||
|
|
||||||
|
|
||||||
## Fake item groups
|
## Fake item groups
|
||||||
These groups put similar items together which should all be treated by the gameplay or the GUI as a single item.
|
These groups put similar items together which should all be treated by the gameplay or the GUI as a single item.
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
Survive, farm, build, explore, play with friends, and do much more. Inspired by a well known block game, pushing beyond.
|
|
||||||
|
|
||||||
How to play:
|
|
||||||
|
|
||||||
#### Download Minetest
|
|
||||||
- Navigate to https://www.minetest.net/ to download the client.
|
|
||||||
- Once installed, open and select the "Content" tab
|
|
||||||
|
|
||||||
#### Install MineClone2 from ContentDB
|
|
||||||
- Click "Browse Online Content" and filter by Games (select "Games" from the dropdown box)
|
|
||||||
- Find "MineClone2" (should be first on the list or on the first page)
|
|
||||||
- Click the [+] button next to MineClone2 and wait for download to finish
|
|
||||||
- Click "Back to Main Menu"
|
|
||||||
|
|
||||||
#### Create new world and play
|
|
||||||
- Click "Start Game" tab
|
|
||||||
- At the bottom click the MineClone2 icon (the 2 dirt with grass blocks)
|
|
||||||
- Click "New", give your world a name
|
|
||||||
- You can leave seed blank or put in a word of your choice
|
|
||||||
- Select your new world
|
|
||||||
- Click "Play Game" and enjoy!
|
|
66
README.md
|
@ -1,7 +1,11 @@
|
||||||
|
# (Currently in feature freeze)
|
||||||
|
|
||||||
# MineClone 2
|
# MineClone 2
|
||||||
An unofficial Minecraft-like game for Minetest. Forked from MineClone by davedevils.
|
An unofficial Minecraft-like game for Minetest. Forked from MineClone by davedevils.
|
||||||
Developed by many people. Not developed or endorsed by Mojang AB.
|
Developed by many people. Not developed or endorsed by Mojang AB.
|
||||||
|
|
||||||
|
Version: 0.72.0 (in development)
|
||||||
|
|
||||||
### Gameplay
|
### Gameplay
|
||||||
You start in a randomly-generated world made entirely of cubes. You can explore
|
You start in a randomly-generated world made entirely of cubes. You can explore
|
||||||
the world and dig and build almost every block in the world to create new
|
the world and dig and build almost every block in the world to create new
|
||||||
|
@ -64,7 +68,7 @@ Use the `/giveme` chat command to obtain them. See the in-game help for
|
||||||
an explanation.
|
an explanation.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
This game requires [Minetest](http://minetest.net) to run (version 5.4.1 or
|
This game requires [Minetest](http://minetest.net) to run (version 5.3.0 or
|
||||||
later). So you need to install Minetest first. Only stable versions of Minetest
|
later). So you need to install Minetest first. Only stable versions of Minetest
|
||||||
are officially supported.
|
are officially supported.
|
||||||
There is no support for running MineClone 2 in development versions of Minetest.
|
There is no support for running MineClone 2 in development versions of Minetest.
|
||||||
|
@ -73,40 +77,37 @@ To install MineClone2 (if you haven't already), move this directory into the
|
||||||
“games” directory of your Minetest data directory. Consult the help of
|
“games” directory of your Minetest data directory. Consult the help of
|
||||||
Minetest to learn more.
|
Minetest to learn more.
|
||||||
|
|
||||||
## Useful links
|
## Reporting bugs
|
||||||
The MineClone2 repository is hosted at Mesehub. To contribute or report issues, head there.
|
Please report all bugs and missing Minecraft features here:
|
||||||
|
|
||||||
* Mesehub: <https://git.minetest.land/MineClone2/MineClone2>
|
<https://git.minetest.land/MineClone2/MineClone2/issues>
|
||||||
* Discord: <https://discord.gg/xE4z8EEpDC>
|
|
||||||
* YouTube <https://www.youtube.com/channel/UClI_YcsXMF3KNeJtoBfnk9A>
|
|
||||||
* IRC: <https://web.libera.chat/#mineclone2>
|
|
||||||
* Matrix: <https://app.element.io/#/room/#mc2:matrix.org>
|
|
||||||
* Reddit: <https://www.reddit.com/r/MineClone2/>
|
|
||||||
* Minetest forums: <https://forum.minetest.net/viewtopic.php?f=50&t=16407>
|
|
||||||
* ContentDB: <https://content.minetest.net/packages/wuzzy/mineclone2/>
|
|
||||||
* OpenCollective: <https://opencollective.com/mineclone2>
|
|
||||||
|
|
||||||
## Target
|
## Chating with the community
|
||||||
- Crucially, create a stable, moddable, free/libre clone of Minecraft
|
Join our discord server at:
|
||||||
based on the Minetest engine with polished features, usable in both
|
|
||||||
singleplayer and multiplayer. Currently, a lot of **Minecraft Java
|
<https://discord.gg/84GKcxczG3>
|
||||||
Edition** features are already implemented and polishing existing
|
|
||||||
features are prioritized over new feature requests.
|
## Project description
|
||||||
- With lessened priority yet strictly, implement features targetting
|
The main goal of **MineClone 2** is to be a clone of Minecraft and to be released as free software.
|
||||||
**Current Minecraft versions + OptiFine** (OptiFine only as far as supported
|
|
||||||
by the Minetest Engine). This means features in parity with the listed
|
* **Target of development: Minecraft, PC Edition, version 1.12** (later known as “Java Edition”)
|
||||||
Minecraft experiences are prioritized over those that don't fulfill this
|
* MineClone2 also includes Optifine features supported by the Minetest
|
||||||
scope.
|
* In general, Minecraft is aimed to be cloned as good as possible
|
||||||
- Optionally, create a performant experience that will run relatively
|
* Cloning the gameplay has highest priority
|
||||||
well on really low spec computers. Unfortunately, due to Minecraft's
|
* MineClone 2 will use different assets, but with a similar style
|
||||||
mechanisms and Minetest engine's limitations along with a very small
|
* Limitations found in Minetest will be documented in the course of development
|
||||||
playerbase on low spec computers, optimizations are hard to investigate.
|
* Features of later Minecraft versions are collected in the mineclone5 branch
|
||||||
|
|
||||||
|
## Using features from newer versions of Minecraft
|
||||||
|
For > 1.12 features, checkout MineClone5. It includes features from newer Minecraft versions.
|
||||||
|
Download it here: https://git.minetest.land/MineClone2/MineClone2/src/branch/mineclone5
|
||||||
|
|
||||||
## Completion status
|
## Completion status
|
||||||
This game is currently in **beta** stage.
|
This game is currently in **beta** stage.
|
||||||
It is playable, but not yet feature-complete.
|
It is playable, but not yet feature-complete.
|
||||||
Backwards-compability is not entirely guaranteed, updating your world might cause small bugs.
|
Backwards-compability is not entirely guaranteed, updating your world might cause small bugs.
|
||||||
If you want to use the development version of MineClone2 in production, the master branch is usually relatively stable. The testing branch often features some experimental PRs and should be considered less stable.
|
If you want to use the git version of MineClone2 in production, consider using the production branch.
|
||||||
|
It is updated weekly and contains relatively stable code for servers.
|
||||||
|
|
||||||
The following main features are available:
|
The following main features are available:
|
||||||
|
|
||||||
|
@ -121,7 +122,7 @@ The following main features are available:
|
||||||
* Most blocks in the overworld
|
* Most blocks in the overworld
|
||||||
* Water and lava
|
* Water and lava
|
||||||
* Weather
|
* Weather
|
||||||
* 28 biomes + 5 Nether Biomes
|
* 28 biomes
|
||||||
* The Nether, a fiery underworld in another dimension
|
* The Nether, a fiery underworld in another dimension
|
||||||
* Redstone circuits (partially)
|
* Redstone circuits (partially)
|
||||||
* Minecarts (partial)
|
* Minecarts (partial)
|
||||||
|
@ -156,10 +157,10 @@ The following features are incomplete:
|
||||||
|
|
||||||
* Some monsters and animals
|
* Some monsters and animals
|
||||||
* Redstone-related things
|
* Redstone-related things
|
||||||
* Some special minecarts (hopper and chest minecarts work)
|
* Special minecarts
|
||||||
* A couple of non-trivial blocks and items
|
* A couple of non-trivial blocks and items
|
||||||
|
|
||||||
Bonus features (not found in Minecraft):
|
Bonus features (not found in Minecraft 1.12):
|
||||||
|
|
||||||
* Built-in crafting guide which shows you crafting and smelting recipes
|
* Built-in crafting guide which shows you crafting and smelting recipes
|
||||||
* In-game help system containing extensive help about gameplay basics, blocks, items and more
|
* In-game help system containing extensive help about gameplay basics, blocks, items and more
|
||||||
|
@ -172,9 +173,6 @@ Bonus features (not found in Minecraft):
|
||||||
* Nether Brick Fence Gate
|
* Nether Brick Fence Gate
|
||||||
* Red Nether Brick Fence
|
* Red Nether Brick Fence
|
||||||
* Red Nether Brick Fence Gate
|
* Red Nether Brick Fence Gate
|
||||||
* Structure replacements - these small variants of Minecraft structures serve as replacements until we can get large structures working:
|
|
||||||
* Woodland Cabin (Mansions)
|
|
||||||
* Nether Outpost (Fortress)
|
|
||||||
|
|
||||||
Technical differences from Minecraft:
|
Technical differences from Minecraft:
|
||||||
|
|
||||||
|
|
|
@ -1,170 +0,0 @@
|
||||||
# MineClone2
|
|
||||||
Un jeu non-officiel similaire à Minecraft pour Minetest. Forké depuis Mineclone par davedevils. Développé par de nombreuses personnes. Ni développé ou supporté par Mojang AB.
|
|
||||||
|
|
||||||
Version: 0.79 (en dévelopment)
|
|
||||||
|
|
||||||
### Gameplay
|
|
||||||
|
|
||||||
Vous atterissez dans un monde fait entièrement de cubes et généré aléatoirement. Vous pouvez explorer le monde, miner et construire presque n'importe quel bloc pour créer de nouvelles structures. Vous pouvez choisir de jouer en "mode survie" dans lequel vous devez combattre des monstres et la faim et progresser lentement dans différents aspects du jeu, comme l'extraction de minerai, l'agriculture, la construction de machines et ainsi de suite. Ou alors vous pouvez jouer en "mode créatif" où vous pouvez construire à peu près n'importe quoi instantanément.
|
|
||||||
|
|
||||||
### Résumé du Gameplay
|
|
||||||
|
|
||||||
* Jeu de type bac-à-sable, sans objetifs
|
|
||||||
* Survie : combattre des monstres hostiles et la faim
|
|
||||||
* Creuser pour du minerai et d'autres trésors
|
|
||||||
* Magie : gagner de l'expérience et enchanter les outils
|
|
||||||
* Utiliser les blocs ramassés pour construire de magnifiques bâtiments, votre imagination est la limite
|
|
||||||
* Ramasser des fleurs (et d'autres sources de teinture) et colorez votre monde
|
|
||||||
* Trouvez des graines et commencez à cultiver
|
|
||||||
* Trouvez ou fabriquez des centaines d'objets
|
|
||||||
* Construisez un réseau ferroviaire complexe et amusez vous avec les wagonnets
|
|
||||||
* En mode créatif vous pouvez construire presque n'importe quoi gratuitement et sans limite
|
|
||||||
|
|
||||||
## Comment jouer (démarrer rapidement)
|
|
||||||
### Commencer
|
|
||||||
* **Frappez un arbre** jusqu'à ce qu'il casse et donne du bois
|
|
||||||
* Placez le **bois dans la grille 2x2** (la "grille de fabrication" de votre menu d'inventaire) et fabriquez 4 planches de bois
|
|
||||||
* Placer les 4 planches de bois dans la grille 2x2 et **fabriquez une table d'artisanat**
|
|
||||||
* **Cliquez droit la table d'artisanat** (icone livre) pour apprendre toutes les recettes possibles
|
|
||||||
* **Fabriquez une pioche de bois** pour miner la pierre
|
|
||||||
* Différents outils minent différentes sortes de blocs. Essayez les !
|
|
||||||
* Continuez à jouer comme vous voulez. Amusez vous !
|
|
||||||
|
|
||||||
### Agriculture
|
|
||||||
* Trouvez des graines
|
|
||||||
* Fabriquez une houe
|
|
||||||
* Cliquez droit la terre ou des blocs similaires avec la houe pour créer des terres agricoles
|
|
||||||
* Placer des graines sur des terres agricoles et regardez les pousser
|
|
||||||
* Récoltez les plantes une fois matûres
|
|
||||||
* Les terres agricoles proche de l'eau deviennent humides et accélèrent la croissance
|
|
||||||
|
|
||||||
### Four
|
|
||||||
* Fabriquer un Four
|
|
||||||
* Le four permet d'obtenir plus d'objets
|
|
||||||
* L'emplacement du haut doit contienir un objet fondable (par ex : minerai de fer)
|
|
||||||
* L'emplacement du bas doit contienir un objet combustible (par ex : charbon)
|
|
||||||
* Voir le guide d'artisanat pour en apprendre plus sur les objets fondables et combustibles
|
|
||||||
|
|
||||||
### Aide supplémentaire
|
|
||||||
Plus d'aide à propos du jeu, des blocs, objets et plus encore peuvent être trouvés dans le jeu. Vous pouvez accéder à l'aide depuis le menu inventaire.
|
|
||||||
|
|
||||||
### Objets spéciaux
|
|
||||||
Les objets suivants sont intéressants pour le mode Créatif et pour les constructeurs de cartes d'aventure. Ils ne peuvent être obtenus dans le jeu ou dans l'inventaire créatif.
|
|
||||||
|
|
||||||
* Barrière : `mcl_core:barrier`
|
|
||||||
|
|
||||||
Utilisez la commande de chat `/giveme` pour les obtenir. Voir l'aide interne au jeu pour une explication.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
Ce jeu nécessite [Minetest](http://minetest.net) pour fonctionner (version 5.4.1 ou plus). Vous devez donc installer Minetest d'abord. Seules les versions stables de Minetest sont officielement supportées.
|
|
||||||
Il n'y a pas de support de MineClone2 dans les versions développement de Minetest.
|
|
||||||
|
|
||||||
Pour installer MineClone2 (si ce n'est pas déjà fait), déplacez ce dossier dans le dossier “games” de Minetest. Consultez l'aide de Minetest pour en apprendre plus.
|
|
||||||
|
|
||||||
## Liens utiles
|
|
||||||
Le dépôt de MineClone2 est hébergé sur Mesehub. Pour contribuer ou rapporter des problèmes, aller là-bas.
|
|
||||||
|
|
||||||
* Mesehub: <https://git.minetest.land/MineClone2/MineClone2>
|
|
||||||
* Discord: <https://discord.gg/xE4z8EEpDC>
|
|
||||||
* YouTube <https://www.youtube.com/channel/UClI_YcsXMF3KNeJtoBfnk9A>
|
|
||||||
* IRC: <https://web.libera.chat/#mineclone2>
|
|
||||||
* Matrix: <https://app.element.io/#/room/#mc2:matrix.org>
|
|
||||||
* Reddit: <https://www.reddit.com/r/MineClone2/>
|
|
||||||
* Minetest forums: <https://forum.minetest.net/viewtopic.php?f=50&t=16407>
|
|
||||||
* ContentDB: <https://content.minetest.net/packages/wuzzy/mineclone2/>
|
|
||||||
* OpenCollective: <https://opencollective.com/mineclone2>
|
|
||||||
|
|
||||||
## Objectif
|
|
||||||
* Créer un clone stable, moddable, libre et gratuit basé sur le moteur de jeu Minetest avec des fonctionalités abouties, utilisable à la fois en mode solo et multijoueur. Actuellement, beaucoup des fonctionalités de **Minecraft Java Edition** sont déjà implémentées et leur amélioration est prioritaire sur les nouvelles demandes.
|
|
||||||
* Avec une priorité moindre, implémenter les fonctionalités des versions **Minecraft + OptiFine** (OtiFine autant que supporté par le moteur Minetest). Cela signifie que les fonctionalités présentes dans les versions listées sont priorisées.
|
|
||||||
* Dans l'idéal, créer une expérience performante qui tourne bien sur des ordinateurs à basse performance. Malheureusement, en raison des mécanismes de Minecraft et des limitations du moteur Minetest ainsi que de la petite taille de la communauté de joueurs sur des ordinateurs à basse performances, les optimisations sont difficiles à explorer.
|
|
||||||
|
|
||||||
## Statut de complétion
|
|
||||||
Ce jeu est actuellement au stade **beta**.
|
|
||||||
Il est jouable mais incomplet en fonctionalités.
|
|
||||||
La rétro-compatibilité n'est pas entièrement garantie, mettre votre monde à jour peut causer de petits bugs.
|
|
||||||
Si vous voulez utiliser la version de développement de MineClone2 en production, la branche master est habituellement relativement stable. Les branches de test fusionnent souvent des pull requests expérimentales et doivent être considérées comme moins stable.
|
|
||||||
|
|
||||||
Les principales fonctionalités suivantes sont disponibles :
|
|
||||||
|
|
||||||
* Outils, armes
|
|
||||||
* Armure
|
|
||||||
* Système de fabrication : grille 2x2, table d'artisanat (grille 3x3), four, incluant un guide de fabrication
|
|
||||||
* Coffres, grands coffres, coffre ender, boite de shulker
|
|
||||||
* Fours, entonnoirs
|
|
||||||
* Faim
|
|
||||||
* La plupart des monstres et animaux
|
|
||||||
* Tout les minerais de Minecraft
|
|
||||||
* La plupart des blocs de l'overworld
|
|
||||||
* Eau et lave
|
|
||||||
* Météo
|
|
||||||
* 28 biomes + 5 biomes du nether
|
|
||||||
* Le Nether, monde souterrain brûlant dans une autre dimension
|
|
||||||
* Circuits Redstone (partiel)
|
|
||||||
* Effets de Statut (partiel)
|
|
||||||
* Expérience
|
|
||||||
* Enchantement
|
|
||||||
* Brassage, potions, flèches trempées (partiel)
|
|
||||||
* Bâteaux
|
|
||||||
* Feu
|
|
||||||
* Blocs de construction : escaliers, dalles, portes, trappes, barrière, portillon, muret
|
|
||||||
* Horloge
|
|
||||||
* Boussole
|
|
||||||
* Eponge
|
|
||||||
* Bloc de slime
|
|
||||||
* Petites plantes et pousses
|
|
||||||
* Teintures
|
|
||||||
* Bannières
|
|
||||||
* Blocs de décoration : verre, verre teinté, vitres, barres de fer, terre cuites (et couleurs), têtes et plus
|
|
||||||
* Cadres d'objets
|
|
||||||
* Juke-boxes
|
|
||||||
* Livres pour écrire
|
|
||||||
* Commandes
|
|
||||||
* Villages
|
|
||||||
* L'End
|
|
||||||
* et plus !
|
|
||||||
|
|
||||||
Les fonctionalités suivantes sont incomplètes :
|
|
||||||
|
|
||||||
* certains monstres et animaux
|
|
||||||
* certains composants de Redstone
|
|
||||||
* Wagonnets spéciaux
|
|
||||||
* quelques blocs et objets non-triviaux
|
|
||||||
|
|
||||||
Fonctionalités bonus (absentes de Minecraft) :
|
|
||||||
|
|
||||||
* Guide d'artisanat intégré au jeu qui montre les recettes d'artisanat et de cuisson
|
|
||||||
* Système d'aide intégré au jeu contenant des informations à propos des techniques de base, blocs, objets et plus
|
|
||||||
* Recettes d'artisanat temporaires. Elles existent uniquement pour rendre des objets accessibles qui ne le seraient pas autrement sauf en mode créatif. Elles seront retirées au cours de l'avancement du développement et de l'ajout de nouvelles fonctionalités.
|
|
||||||
* Pousses dans les coffres en mapgen v6
|
|
||||||
* Entièrement moddable (grâce la puissante API lua de Minetest)
|
|
||||||
* Nouveaux blocs et objets :
|
|
||||||
* Outil de recherche, montre l'aide de ce qu'il touche
|
|
||||||
* Plus de dalles et d'escaliers
|
|
||||||
* Portillon en briques du Nether
|
|
||||||
* Barrière en briques du Nether rouges
|
|
||||||
* Portillon en briques du Nether rouges
|
|
||||||
* Structures de remplacement - ces petites variantes de structures de Minecraft servent de remplacement en attendant qu'on arrive à en faire fonctionner de plus grandes :
|
|
||||||
* Cabine dans les bois (Manoir des bois)
|
|
||||||
* Avant-poste du Nether (Forteresse)
|
|
||||||
|
|
||||||
Différences techniques avec Minecraft :
|
|
||||||
* Limite en hauteur de 31000 blocs (bien plus grand que Minecraft)
|
|
||||||
* Taille horizontale du monde 62000×62000 blocs (bien plus petit que Minecraft mais toujours très grand)
|
|
||||||
* Toujours assez incomplet et buggé
|
|
||||||
* Des blocs, objets, ennemis et fonctionalités manquent
|
|
||||||
* Quelques objets ont des noms légèrement différents pour être plus faciles à distinguer
|
|
||||||
* Des musiques différentes pour le juke-boxe
|
|
||||||
* Des textures différentes (Pixel Perfection)
|
|
||||||
* Des sons différents (sources diverses)
|
|
||||||
* Un moteur de jeu différent (Minetest)
|
|
||||||
* Des bonus cachés différents
|
|
||||||
...et enfin MineClone2 est un logiciel libre !
|
|
||||||
|
|
||||||
## Autres fichiers readme
|
|
||||||
|
|
||||||
* `LICENSE.txt`: Le texte de la license GPLv3
|
|
||||||
* `CONTRIBUTING.md`: Information pour ceux qui veulent contribuer
|
|
||||||
* `API.md`: Pour les modders Minetest qui veulent modder ce jeu
|
|
||||||
* `LEGAL.md`: Information légale
|
|
||||||
* `CREDITS.md`: Liste des contributeurs
|
|
|
@ -1,324 +0,0 @@
|
||||||
# MineClone 2
|
|
||||||
一個非官方的Minetest遊戲,遊玩方式和Minecraft類似。由davedevils從MineClone分拆。
|
|
||||||
由許多人開發。並非由Mojang Studios開發。<!-- "Mojang AB"'s Name changed at 2020/05, main README should change too -->
|
|
||||||
|
|
||||||
版本:0.71.0
|
|
||||||
|
|
||||||
### 遊玩
|
|
||||||
你開始在一個完全由方塊隨機生成的世界裡。你可以探索這個世界,挖掘和建造世界上幾乎所有的方塊,以創造新的結構。你可以選擇在「生存模式」中進行遊戲,在這個模式中,你必須與怪物戰鬥,飢餓求生,並在遊戲的其他各個環節中慢慢進步,如採礦、養殖、建造機器等等。
|
|
||||||
|
|
||||||
或者你也可以在「創造模式」中玩,在這個模式中,你可以瞬間建造大部分東西。
|
|
||||||
#### Gameplay summary
|
|
||||||
|
|
||||||
* 沙盒式遊戲,沒有明確目標
|
|
||||||
* 生存:與怪物和飢餓搏鬥
|
|
||||||
* 挖礦來獲得礦物和寶物
|
|
||||||
* 附魔:獲得經驗值並以附魔強化你的工具
|
|
||||||
* 使用收集的方塊來創造偉大的建築
|
|
||||||
* 收集鮮花(和其他染料來源),令世界多姿多彩
|
|
||||||
* 找些種子並開始耕種
|
|
||||||
* 尋找或合成數百個物品之一
|
|
||||||
* 建立一個鐵路系統,並從礦車中得到樂趣
|
|
||||||
* 用紅石電路建造複雜的機器
|
|
||||||
* 在創造模式下,你幾乎可以免費建造任何東西,而且沒有限制。
|
|
||||||
|
|
||||||
## 如何開始
|
|
||||||
### 開始生存
|
|
||||||
* **挖樹幹**直到其破裂並收集木材
|
|
||||||
* 將木頭**放入2×2的格子中**(你的物品欄中的「合成格子」),然後製作4塊木材。
|
|
||||||
* 將4塊木材按2×2的形狀擺放在合成格子裡,製作成合成臺。
|
|
||||||
* **右鍵單擊製作臺**以獲得3×3製作網格,製作更複雜的東西
|
|
||||||
* 使用**合成指南**(書形圖標)了解所有可能的合成方式
|
|
||||||
* **製作一個木鎬**,這樣你就可以挖石頭了。
|
|
||||||
* 不同的工具可以打破不同種類的方塊。試試吧!
|
|
||||||
* 繼續玩你想玩的。盡情享受吧!
|
|
||||||
|
|
||||||
### 耕種
|
|
||||||
* 找到種子
|
|
||||||
* 合成鋤頭
|
|
||||||
* 用鋤頭右鍵點擊泥土或類似的方塊,創建農田
|
|
||||||
* 將種子放在農田上,看著它們長出來
|
|
||||||
* Collect plant when fully grown
|
|
||||||
* If near water, farmland becomes wet and speeds up growth
|
|
||||||
|
|
||||||
### Furnace
|
|
||||||
* Craft furnace
|
|
||||||
* Furnace allows you to obtain more items
|
|
||||||
* Upper slot must contain a smeltable item (example: iron ore)
|
|
||||||
* Lower slot must contain a fuel item (example: coal)
|
|
||||||
* See tooltips in crafting guide to learn about fuels and smeltable items
|
|
||||||
|
|
||||||
### Additional help
|
|
||||||
More help about the gameplay, blocks items and much more can be found from inside
|
|
||||||
the game. You can access the help from your inventory menu.
|
|
||||||
|
|
||||||
### Special items
|
|
||||||
The following items are interesting for Creative Mode and for adventure
|
|
||||||
map builders. They can not be obtained in-game or in the creative inventory.
|
|
||||||
|
|
||||||
* Barrier: `mcl_core:barrier`
|
|
||||||
|
|
||||||
Use the `/giveme` chat command to obtain them. See the in-game help for
|
|
||||||
an explanation.
|
|
||||||
|
|
||||||
#### Incomplete items
|
|
||||||
These items do not work yet, but you can get them with `/giveme` for testing:
|
|
||||||
|
|
||||||
* Minecart with Chest: `mcl_minecarts:chest_minecart`
|
|
||||||
* Minecart with Furnace: `mcl_minecarts:furnace_minecart`
|
|
||||||
* Minecart with Hopper: `mcl_minecarts:hopper_minecart`
|
|
||||||
* Minecart with Command Block: `mcl_minecarts:command_block_minecart`
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
This game requires [Minetest](http://minetest.net) to run (version 5.0.0 or
|
|
||||||
later). So you need to install Minetest first. Only stable versions of Minetest
|
|
||||||
are officially supported.
|
|
||||||
There is no support for running MineClone 2 in development versions of Minetest.
|
|
||||||
|
|
||||||
To install MineClone 2 (if you haven't already), move this directory into the
|
|
||||||
“games” directory of your Minetest data directory. Consult the help of
|
|
||||||
Minetest to learn more.
|
|
||||||
|
|
||||||
## Project description
|
|
||||||
The main goal of **MineClone 2** is to be a clone of Minecraft and to be released as free software.
|
|
||||||
|
|
||||||
* **開發目標:我的世界, Java版, 版本 1.12**
|
|
||||||
* MineClone2還包括Minetest支持的Optifine功能。
|
|
||||||
* 後期Minecraft版本的功能可能會偷偷加入,但它們的優先級較低。
|
|
||||||
* 總的來說,Minecraft的目標是在Minetest目前允許的情況下進行克隆。
|
|
||||||
* 克隆Minecraft是最優先的。
|
|
||||||
* MineClone2將使用不同的圖形和聲音,但風格相似。
|
|
||||||
* 克隆界面沒有優先權。只會被粗略地模仿。
|
|
||||||
* 在Minetest中發現的局限性將在開發過程中被記錄和報告。
|
|
||||||
|
|
||||||
## 完成程度
|
|
||||||
該遊戲目前處於**alpha**階段。
|
|
||||||
它是可玩的,但尚未完成,預計會出現許多錯誤。
|
|
||||||
向後兼容性是**不能保證的**,更新你的世界可能會造成大大小小的bug(比如「缺少節點」的錯誤甚至崩潰)。
|
|
||||||
|
|
||||||
已經實現以下功能:
|
|
||||||
|
|
||||||
* 工具,武器
|
|
||||||
* 盔甲
|
|
||||||
* 合成和熔煉系統:2×2 合成格, 合成臺 (3×3 合成格), 熔爐, 合成教學
|
|
||||||
* 儲物箱,大型儲物箱,終界箱和界伏盒
|
|
||||||
* 熔爐, 漏斗
|
|
||||||
* 飢餓和飽食
|
|
||||||
* 大多數怪物和動物
|
|
||||||
* Minecraft 1.12中的所有礦物<!-- Minecraft 1.17 added copper, so here must mark the version is 1.12, then main README should also add this -->
|
|
||||||
* 主世界的大部分方塊
|
|
||||||
* 水和岩漿
|
|
||||||
* 天氣
|
|
||||||
* 28個生態域
|
|
||||||
* 地獄,熾熱的維度
|
|
||||||
* 紅石電路(部分)
|
|
||||||
* 礦車(部分)
|
|
||||||
* 狀態效果(部分)
|
|
||||||
* 經驗系統
|
|
||||||
* 附魔
|
|
||||||
* 釀造,藥水,藥水箭(部分)
|
|
||||||
* 船
|
|
||||||
* 火
|
|
||||||
* 建築方塊:樓梯、半磚、門、地板門、柵欄、柵欄門、牆。
|
|
||||||
* 時鐘
|
|
||||||
* 指南針
|
|
||||||
* 海綿
|
|
||||||
* 史萊姆方塊(不與紅石互動)
|
|
||||||
* 小植物和樹苗
|
|
||||||
* 染料
|
|
||||||
* 旗幟
|
|
||||||
* 裝飾方塊:玻璃、染色玻璃、玻璃片、鐵柵欄、陶土(和染色版本)、頭顱等
|
|
||||||
* 物品展示框
|
|
||||||
* 唱片機
|
|
||||||
* 床
|
|
||||||
* 物品欄
|
|
||||||
* 創造模式物品欄
|
|
||||||
* 生產
|
|
||||||
* 書和羽毛筆
|
|
||||||
* 一些服務器命令
|
|
||||||
* 還有更多!
|
|
||||||
|
|
||||||
以下是不完整的特性:
|
|
||||||
|
|
||||||
* 生成結構(特別是村莊)
|
|
||||||
* 一些怪物和動物
|
|
||||||
* 紅石系統
|
|
||||||
* 終界
|
|
||||||
* 特殊的礦車
|
|
||||||
* 一些不簡單的方塊和物品。
|
|
||||||
|
|
||||||
額外功能(在Minecraft 1.11中沒有)。
|
|
||||||
|
|
||||||
* 內置合成指南,向你展示製作和熔煉的配方
|
|
||||||
* 遊戲中的幫助系統包含了大量關於遊戲基礎知識、方塊、物品等方面的幫助。
|
|
||||||
* 臨時製作配方。它們的存在只是為了在你不在創造模式下時,提供一些其他無法獲得的物品。這些配方將隨著開發的進行和更多功能的出現而被移除。
|
|
||||||
* v6地圖生成器中箱子裡的樹苗。
|
|
||||||
* 完全可修改(得益於Minetest強大的Lua API)。
|
|
||||||
* 新的方塊和物品:
|
|
||||||
* 查找工具,顯示觸及事物的幫助
|
|
||||||
* 更多的半磚和樓梯
|
|
||||||
* 地獄磚柵欄門
|
|
||||||
* 紅地獄磚柵欄
|
|
||||||
* 紅地獄磚柵欄門
|
|
||||||
|
|
||||||
與Minecraft的技性術差異:
|
|
||||||
|
|
||||||
* 高度限制為31000格(遠高於Minecraft)
|
|
||||||
* 水平世界大小約為62000×62000格(比Minecraft中的小得多,但仍然非常大)。
|
|
||||||
* 仍然非常不完整和有問題
|
|
||||||
* 塊、物品、敵人和其他功能缺失。
|
|
||||||
* 一些項目的名稱略有不同,以便於區分。
|
|
||||||
* 唱片機的音樂不同
|
|
||||||
* 不同的材質(像素完美)
|
|
||||||
* 不同的聲音(各種來源)
|
|
||||||
* 不同的引擎(Minetest)
|
|
||||||
|
|
||||||
...最後,MineClone2是自由軟件!
|
|
||||||
|
|
||||||
## 錯誤報告
|
|
||||||
請在此處報告所有錯誤和缺少的功能:
|
|
||||||
|
|
||||||
<https://git.minetest.land/MineClone2/MineClone2/issues>
|
|
||||||
|
|
||||||
## Chating with the community
|
|
||||||
我們有Discord交流羣:
|
|
||||||
|
|
||||||
<https://discord.gg/84GKcxczG3>
|
|
||||||
|
|
||||||
|
|
||||||
## Other readme files
|
|
||||||
|
|
||||||
* `LICENSE.txt`:GPLv3許可文本
|
|
||||||
* `CONTRIBUTING.md`: 為那些想參與貢獻的人提供資訊
|
|
||||||
* `MISSING_ENGINE_FEATURES.md`: MineClone2需要改进,Minetest中缺失的功能列表。
|
|
||||||
* `API.md`: 關於MineClone2的API
|
|
||||||
|
|
||||||
## 參與者
|
|
||||||
有這麼多人要列出(抱歉)。詳情請查看各mod目錄。本節只是粗略地介紹了本遊戲的核心作者。
|
|
||||||
|
|
||||||
### 程式碼
|
|
||||||
* [Wuzzy](https://forum.minetest.net/memberlist.php?mode=viewprofile&u=3082):大多數mod的主要程序員(已退休)
|
|
||||||
* davedevils:MineClone 2的原型——「MineClone」的創造者
|
|
||||||
* [ex-bart](https://github.com/ex-bart):紅石比較器
|
|
||||||
* [Rootyjr](https://github.com/Rootyjr):釣竿和錯誤修復
|
|
||||||
* [aligator](https://github.com/aligator):改進門
|
|
||||||
* [ryvnf](https://github.com/ryvnf):爆炸物理
|
|
||||||
* MysticTempest:錯誤修復
|
|
||||||
* [bzoss](https://github.com/bzoss):狀態效果,釀造,藥水
|
|
||||||
* kay27 <kay27@bk.ru>:經驗系統,錯誤修復和優化(當前維護者)
|
|
||||||
* [EliasFleckenstein03](https://github.com/EliasFleckenstein03):終界水晶,附魔,燃燒的怪物/玩家,箱子的動畫和錯誤修復(當前維護者)
|
|
||||||
* epCode:更好的玩家動畫,新徽標
|
|
||||||
* 2mac:修復動力鐵軌的錯誤
|
|
||||||
* 更多:待篇寫 (請查看各mod目錄)
|
|
||||||
|
|
||||||
#### Mod(概括)
|
|
||||||
|
|
||||||
* `controls`: Arcelmi
|
|
||||||
* `flowlib`: Qwertymine13
|
|
||||||
* `walkover`: lordfingle
|
|
||||||
* `drippingwater`: kddekadenz
|
|
||||||
* `mobs_mc`: maikerumine, 22i and others
|
|
||||||
* `awards`: rubenwardy
|
|
||||||
* `screwdriver`: RealBadAngel, Maciej Kastakin, Minetest contributors
|
|
||||||
* `xpanes`: Minetest contributors
|
|
||||||
* `mesecons` mods: Jeija and contributors
|
|
||||||
* `wieldview`: Stuart Jones
|
|
||||||
* `mcl_meshhand`: Based on `newhand` by jordan4ibanez
|
|
||||||
* `mcl_mobs`: Based on Mobs Redo [`mobs`] by TenPlus1 and contributors
|
|
||||||
* 大多其他的Mod: Wuzzy
|
|
||||||
|
|
||||||
每个mod的详细參與者可以在各个mod目录中找到。
|
|
||||||
|
|
||||||
### 圖形
|
|
||||||
* [XSSheep](http://www.minecraftforum.net/members/XSSheep):主要作者;Minecraft 1.11的Pixel Perfection资源包的制作者
|
|
||||||
* [Wuzzy](https://forum.minetest.net/memberlist.php?mode=viewprofile&u=3082):主菜單圖像和各種編輯和添加的材質包
|
|
||||||
* [kingoscargames](https://github.com/kingoscargames):現有材質的各種編輯和添加
|
|
||||||
* [leorockway](https://github.com/leorockway):怪物紋理的一些編輯
|
|
||||||
* [xMrVizzy](https://minecraft.curseforge.com/members/xMrVizzy):釉陶(材質以後會被替換)
|
|
||||||
* yutyo <tanakinci2002@gmail.com>:MineClone2標志
|
|
||||||
* 其他:GUI圖片
|
|
||||||
|
|
||||||
### 翻譯
|
|
||||||
* Wuzzy:德語
|
|
||||||
* Rocher Laurent <rocherl@club-internet.fr>:法語
|
|
||||||
* wuniversales:西班牙語
|
|
||||||
* kay27 <kay27@bk.ru>:俄語
|
|
||||||
* [Emoji](https://toyshost2.ddns.net):繁體中文<!-- Hi, after the translate finish, this name should add to the main README too! -->
|
|
||||||
|
|
||||||
### 模型
|
|
||||||
* [22i](https://github.com/22i):所有模型的作者
|
|
||||||
* [tobyplowy](https://github.com/tobyplowy):對上述模型進行UV映射修復
|
|
||||||
|
|
||||||
### 聲音和音樂
|
|
||||||
多種來源。 有關詳細信息,請參見相應的mod目錄。
|
|
||||||
|
|
||||||
### 特殊感謝
|
|
||||||
|
|
||||||
* Wuzzy,感謝他啟動和維護MineClone2多年。
|
|
||||||
* celeron55,創建Minetest。
|
|
||||||
* Minetest的社區提供了大量的mods選擇,其中一些最終被納入MineClone 2。
|
|
||||||
* Jordach,為《Big Freaking Dig》的唱片機音樂合輯而來
|
|
||||||
* 花了太多時間為Minecraft Wiki寫作的工作狂。它是創建這個遊戲的寶貴資源。
|
|
||||||
* Notch和Jeb是Minecraft背后的主要力量
|
|
||||||
* XSSheep用於創建Pixel Perfection資源包。
|
|
||||||
* [22i](https://github.com/22i) 提供出色的模型和支持
|
|
||||||
* [maikerumine](http://github.com/maikerumine) 揭開生物和生物群落的序幕
|
|
||||||
|
|
||||||
## 給程序員的信息
|
|
||||||
你可以在「API.md」中找到有趣和有用的信息。
|
|
||||||
|
|
||||||
## 法律信息
|
|
||||||
這是一款粉絲開發的遊戲,並非由Mojang AB開發或認可。
|
|
||||||
|
|
||||||
複製是一種愛的行為。請複制和分享! <3
|
|
||||||
下面是詳細的法律條文,有需要的朋友可以參考。
|
|
||||||
|
|
||||||
### License of source code
|
|
||||||
```
|
|
||||||
MineClone 2 (by kay27, EliasFleckenstein, Wuzzy, davedevils and countless others)
|
|
||||||
is an imitation of Minecraft.
|
|
||||||
|
|
||||||
MineClone 2 is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License (in the LICENSE.txt file) for more
|
|
||||||
details.
|
|
||||||
|
|
||||||
In the mods you might find in the read-me or license
|
|
||||||
text files a different license. This counts as dual-licensing.
|
|
||||||
You can choose which license applies to you: Either the
|
|
||||||
license of MineClone 2 (GNU GPLv3) or the mod's license.
|
|
||||||
|
|
||||||
MineClone 2 is a direct continuation of the discontinued MineClone
|
|
||||||
project by davedevils.
|
|
||||||
|
|
||||||
Mod credits:
|
|
||||||
See `README.txt` or `README.md` in each mod directory for information about other authors.
|
|
||||||
For mods that do not have such a file, the license is the source code license
|
|
||||||
of MineClone 2 and the author is Wuzzy.
|
|
||||||
```
|
|
||||||
|
|
||||||
### License of media (textures and sounds)
|
|
||||||
```
|
|
||||||
No non-free licenses are used anywhere.
|
|
||||||
|
|
||||||
The textures, unless otherwise noted, are based on the Pixel Perfection resource pack for Minecraft 1.11,
|
|
||||||
authored by XSSheep. Most textures are verbatim copies, while some textures have been changed or redone
|
|
||||||
from scratch.
|
|
||||||
The glazed terracotta textures have been created by (MysticTempest)[https://github.com/MysticTempest].
|
|
||||||
Source: <https://www.planetminecraft.com/texture_pack/131pixel-perfection/>
|
|
||||||
License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)
|
|
||||||
|
|
||||||
The main menu images are release under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
|
||||||
|
|
||||||
All other files, unless mentioned otherwise, fall under:
|
|
||||||
Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
|
||||||
http://creativecommons.org/licenses/by-sa/3.0/
|
|
||||||
|
|
||||||
See README.txt in each mod directory for detailed information about other authors.
|
|
||||||
```
|
|
22
RELEASE.md
|
@ -1,22 +0,0 @@
|
||||||
#File to document release steps with a view to evolving into a script
|
|
||||||
|
|
||||||
#Update CREDITS.md
|
|
||||||
#Update version in game.conf
|
|
||||||
|
|
||||||
lua tools/generate_ingame_credits.lua
|
|
||||||
|
|
||||||
git add CREDITS.md
|
|
||||||
git add mods/HUD/mcl_credits/people.lua
|
|
||||||
git add game.conf
|
|
||||||
|
|
||||||
#git add RELEASE.md
|
|
||||||
|
|
||||||
git commit -m "Pre-release update credits and set version 0.82.0"
|
|
||||||
|
|
||||||
git tag 0.82.0
|
|
||||||
|
|
||||||
git push origin 0.82.0
|
|
||||||
|
|
||||||
#Update version in game.conf to -SNAPSHOT
|
|
||||||
|
|
||||||
git commit -m "Post-release set version 0.82.0-SNAPSHOT"
|
|
|
@ -1,4 +1,2 @@
|
||||||
title = MineClone 2
|
name = MineClone 2
|
||||||
description = A survival sandbox game. Survive, gather, hunt, build, explore, and do much more.
|
description = A survival sandbox game. Survive, gather, hunt, build, explore, and do much more.
|
||||||
disallowed_mapgens = v6
|
|
||||||
version=0.82.0-SNAPSHOT
|
|
Before Width: | Height: | Size: 83 KiB |
BIN
menu/Logo.blend
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 990 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 865 KiB |
Before Width: | Height: | Size: 916 KiB |
Before Width: | Height: | Size: 606 KiB |
BIN
menu/footer.png
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 628 B |
Before Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 82 KiB |
BIN
menu/header.png
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 76 KiB |
BIN
menu/icon.png
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 830 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 119 KiB |
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 122 KiB |
After Width: | Height: | Size: 91 KiB |
BIN
menu/theme.ogg
|
@ -83,7 +83,7 @@ local function get_hardness_values_for_groups()
|
||||||
|
|
||||||
for _, ndef in pairs(minetest.registered_nodes) do
|
for _, ndef in pairs(minetest.registered_nodes) do
|
||||||
for g, _ in pairs(mcl_autogroup.registered_diggroups) do
|
for g, _ in pairs(mcl_autogroup.registered_diggroups) do
|
||||||
if ndef.groups[g] then
|
if ndef.groups[g] ~= nil then
|
||||||
maps[g][ndef._mcl_hardness or 0] = true
|
maps[g][ndef._mcl_hardness or 0] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -121,7 +121,7 @@ local hardness_values = get_hardness_values_for_groups()
|
||||||
-- hardness_value. Used for quick lookup.
|
-- hardness_value. Used for quick lookup.
|
||||||
local hardness_lookup = get_hardness_lookup_for_groups(hardness_values)
|
local hardness_lookup = get_hardness_lookup_for_groups(hardness_values)
|
||||||
|
|
||||||
--[[local function compute_creativetimes(group)
|
local function compute_creativetimes(group)
|
||||||
local creativetimes = {}
|
local creativetimes = {}
|
||||||
|
|
||||||
for index, hardness in pairs(hardness_values[group]) do
|
for index, hardness in pairs(hardness_values[group]) do
|
||||||
|
@ -129,7 +129,7 @@ local hardness_lookup = get_hardness_lookup_for_groups(hardness_values)
|
||||||
end
|
end
|
||||||
|
|
||||||
return creativetimes
|
return creativetimes
|
||||||
end]]
|
end
|
||||||
|
|
||||||
-- Get the list of digging times for using a specific tool on a specific
|
-- Get the list of digging times for using a specific tool on a specific
|
||||||
-- diggroup.
|
-- diggroup.
|
||||||
|
@ -207,10 +207,6 @@ end
|
||||||
function mcl_autogroup.can_harvest(nodename, toolname)
|
function mcl_autogroup.can_harvest(nodename, toolname)
|
||||||
local ndef = minetest.registered_nodes[nodename]
|
local ndef = minetest.registered_nodes[nodename]
|
||||||
|
|
||||||
if not ndef then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_item_group(nodename, "dig_immediate") >= 2 then
|
if minetest.get_item_group(nodename, "dig_immediate") >= 2 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
@ -243,13 +239,13 @@ function mcl_autogroup.can_harvest(nodename, toolname)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get one groupcap field for using a specific tool on a specific group.
|
-- Get one groupcap field for using a specific tool on a specific group.
|
||||||
--[[local function get_groupcap(group, can_harvest, multiplier, efficiency, uses)
|
local function get_groupcap(group, can_harvest, multiplier, efficiency, uses)
|
||||||
return {
|
return {
|
||||||
times = get_digtimes(group, can_harvest, multiplier, efficiency),
|
times = get_digtimes(group, can_harvest, multiplier, efficiency),
|
||||||
uses = uses,
|
uses = uses,
|
||||||
maxlevel = 0,
|
maxlevel = 0,
|
||||||
}
|
}
|
||||||
end]]
|
end
|
||||||
|
|
||||||
-- Returns the tool_capabilities from a tool definition or a default set of
|
-- Returns the tool_capabilities from a tool definition or a default set of
|
||||||
-- tool_capabilities
|
-- tool_capabilities
|
||||||
|
@ -302,7 +298,7 @@ function mcl_autogroup.get_wear(toolname, diggroup)
|
||||||
return math.ceil(65535 / uses)
|
return math.ceil(65535 / uses)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function overwrite()
|
local overwrite = function()
|
||||||
for nname, ndef in pairs(minetest.registered_nodes) do
|
for nname, ndef in pairs(minetest.registered_nodes) do
|
||||||
local newgroups = table.copy(ndef.groups)
|
local newgroups = table.copy(ndef.groups)
|
||||||
if (nname ~= "ignore" and ndef.diggable) then
|
if (nname ~= "ignore" and ndef.diggable) then
|
||||||
|
@ -319,12 +315,12 @@ local function overwrite()
|
||||||
newgroups.opaque = 1
|
newgroups.opaque = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
--local creative_breakable = false
|
local creative_breakable = false
|
||||||
|
|
||||||
-- Assign groups used for digging this node depending on
|
-- Assign groups used for digging this node depending on
|
||||||
-- the registered digging groups
|
-- the registered digging groups
|
||||||
for g, gdef in pairs(mcl_autogroup.registered_diggroups) do
|
for g, gdef in pairs(mcl_autogroup.registered_diggroups) do
|
||||||
--creative_breakable = true
|
creative_breakable = true
|
||||||
local index = hardness_lookup[g][ndef._mcl_hardness or 0]
|
local index = hardness_lookup[g][ndef._mcl_hardness or 0]
|
||||||
if ndef.groups[g] then
|
if ndef.groups[g] then
|
||||||
if gdef.levels then
|
if gdef.levels then
|
||||||
|
|
|
@ -81,11 +81,11 @@ if v6_use_snow_biomes then
|
||||||
end
|
end
|
||||||
local v6_freq_desert = tonumber(minetest.get_mapgen_setting("mgv6_freq_desert") or 0.45)
|
local v6_freq_desert = tonumber(minetest.get_mapgen_setting("mgv6_freq_desert") or 0.45)
|
||||||
|
|
||||||
--local NOISE_MAGIC_X = 1619
|
local NOISE_MAGIC_X = 1619
|
||||||
--local NOISE_MAGIC_Y = 31337
|
local NOISE_MAGIC_Y = 31337
|
||||||
--local NOISE_MAGIC_Z = 52591
|
local NOISE_MAGIC_Z = 52591
|
||||||
--local NOISE_MAGIC_SEED = 1013
|
local NOISE_MAGIC_SEED = 1013
|
||||||
local function noise2d(x, y, seed)
|
local noise2d = function(x, y, seed)
|
||||||
-- TODO: implement noise2d function for biome blend
|
-- TODO: implement noise2d function for biome blend
|
||||||
return 0
|
return 0
|
||||||
--[[
|
--[[
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
local get_connected_players = minetest.get_connected_players
|
local get_connected_players = minetest.get_connected_players
|
||||||
local clock = os.clock
|
local clock = os.clock
|
||||||
|
|
||||||
local pairs = pairs
|
|
||||||
|
|
||||||
controls = {}
|
controls = {}
|
||||||
controls.players = {}
|
controls.players = {}
|
||||||
|
|
||||||
|
|
|
@ -1,71 +1,62 @@
|
||||||
local math = math
|
|
||||||
|
|
||||||
local get_node = minetest.get_node
|
|
||||||
local get_item_group = minetest.get_item_group
|
|
||||||
|
|
||||||
local registered_nodes = minetest.registered_nodes
|
|
||||||
|
|
||||||
flowlib = {}
|
flowlib = {}
|
||||||
|
|
||||||
--sum of direction vectors must match an array index
|
--sum of direction vectors must match an array index
|
||||||
|
local function to_unit_vector(dir_vector)
|
||||||
--(sum,root)
|
--(sum,root)
|
||||||
-- (0,1), (1,1+0=1), (2,1+1=2), (3,1+2^2=5), (4,2^2+2^2=8)
|
-- (0,1), (1,1+0=1), (2,1+1=2), (3,1+2^2=5), (4,2^2+2^2=8)
|
||||||
|
local inv_roots = {[0] = 1, [1] = 1, [2] = 0.70710678118655, [4] = 0.5
|
||||||
local inv_roots = {
|
, [5] = 0.44721359549996, [8] = 0.35355339059327}
|
||||||
[0] = 1,
|
|
||||||
[1] = 1,
|
|
||||||
[2] = 0.70710678118655,
|
|
||||||
[4] = 0.5,
|
|
||||||
[5] = 0.44721359549996,
|
|
||||||
[8] = 0.35355339059327,
|
|
||||||
}
|
|
||||||
|
|
||||||
local function to_unit_vector(dir_vector)
|
|
||||||
local sum = dir_vector.x*dir_vector.x + dir_vector.z*dir_vector.z
|
local sum = dir_vector.x*dir_vector.x + dir_vector.z*dir_vector.z
|
||||||
return {x = dir_vector.x * inv_roots[sum], y = dir_vector.y, z = dir_vector.z * inv_roots[sum]}
|
return {x=dir_vector.x*inv_roots[sum],y=dir_vector.y
|
||||||
|
,z=dir_vector.z*inv_roots[sum]}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_touching(realpos,nodepos,radius)
|
local is_touching = function(realpos,nodepos,radius)
|
||||||
local boarder = 0.5 - radius
|
local boarder = 0.5 - radius
|
||||||
return math.abs(realpos - nodepos) > (boarder)
|
return (math.abs(realpos - nodepos) > (boarder))
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.is_touching = is_touching
|
flowlib.is_touching = is_touching
|
||||||
|
|
||||||
local function is_water(pos)
|
local is_water = function(pos)
|
||||||
return get_item_group(get_node(pos).name, "water") ~= 0
|
return (minetest.get_item_group(minetest.get_node(
|
||||||
|
{x=pos.x,y=pos.y,z=pos.z}).name
|
||||||
|
, "water") ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.is_water = is_water
|
flowlib.is_water = is_water
|
||||||
|
|
||||||
local function node_is_water(node)
|
local node_is_water = function(node)
|
||||||
return get_item_group(node.name, "water") ~= 0
|
return (minetest.get_item_group(node.name, "water") ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.node_is_water = node_is_water
|
flowlib.node_is_water = node_is_water
|
||||||
|
|
||||||
local function is_lava(pos)
|
local is_lava = function(pos)
|
||||||
return get_item_group(get_node(pos).name, "lava") ~= 0
|
return (minetest.get_item_group(minetest.get_node(
|
||||||
|
{x=pos.x,y=pos.y,z=pos.z}).name
|
||||||
|
, "lava") ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.is_lava = is_lava
|
flowlib.is_lava = is_lava
|
||||||
|
|
||||||
local function node_is_lava(node)
|
local node_is_lava = function(node)
|
||||||
return get_item_group(node.name, "lava") ~= 0
|
return (minetest.get_item_group(node.name, "lava") ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.node_is_lava = node_is_lava
|
flowlib.node_is_lava = node_is_lava
|
||||||
|
|
||||||
|
|
||||||
local function is_liquid(pos)
|
local is_liquid = function(pos)
|
||||||
return get_item_group(get_node(pos).name, "liquid") ~= 0
|
return (minetest.get_item_group(minetest.get_node(
|
||||||
|
{x=pos.x,y=pos.y,z=pos.z}).name
|
||||||
|
, "liquid") ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.is_liquid = is_liquid
|
flowlib.is_liquid = is_liquid
|
||||||
|
|
||||||
local function node_is_liquid(node)
|
local node_is_liquid = function(node)
|
||||||
return minetest.get_item_group(node.name, "liquid") ~= 0
|
return (minetest.get_item_group(node.name, "liquid") ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.node_is_liquid = node_is_liquid
|
flowlib.node_is_liquid = node_is_liquid
|
||||||
|
@ -73,28 +64,32 @@ flowlib.node_is_liquid = node_is_liquid
|
||||||
--This code is more efficient
|
--This code is more efficient
|
||||||
local function quick_flow_logic(node,pos_testing,direction)
|
local function quick_flow_logic(node,pos_testing,direction)
|
||||||
local name = node.name
|
local name = node.name
|
||||||
if not registered_nodes[name] then
|
if not minetest.registered_nodes[name] then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
if registered_nodes[name].liquidtype == "source" then
|
if minetest.registered_nodes[name].liquidtype == "source" then
|
||||||
local node_testing = get_node(pos_testing)
|
local node_testing = minetest.get_node(pos_testing)
|
||||||
if not registered_nodes[node_testing.name] then
|
local param2_testing = node_testing.param2
|
||||||
|
if not minetest.registered_nodes[node_testing.name] then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
if registered_nodes[node_testing.name].liquidtype ~= "flowing" then
|
if minetest.registered_nodes[node_testing.name].liquidtype
|
||||||
|
~= "flowing" then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return direction
|
return direction
|
||||||
end
|
end
|
||||||
elseif registered_nodes[name].liquidtype == "flowing" then
|
elseif minetest.registered_nodes[name].liquidtype == "flowing" then
|
||||||
local node_testing = get_node(pos_testing)
|
local node_testing = minetest.get_node(pos_testing)
|
||||||
local param2_testing = node_testing.param2
|
local param2_testing = node_testing.param2
|
||||||
if not registered_nodes[node_testing.name] then
|
if not minetest.registered_nodes[node_testing.name] then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
if registered_nodes[node_testing.name].liquidtype == "source" then
|
if minetest.registered_nodes[node_testing.name].liquidtype
|
||||||
|
== "source" then
|
||||||
return -direction
|
return -direction
|
||||||
elseif registered_nodes[node_testing.name].liquidtype == "flowing" then
|
elseif minetest.registered_nodes[node_testing.name].liquidtype
|
||||||
|
== "flowing" then
|
||||||
if param2_testing < node.param2 then
|
if param2_testing < node.param2 then
|
||||||
if (node.param2 - param2_testing) > 6 then
|
if (node.param2 - param2_testing) > 6 then
|
||||||
return -direction
|
return -direction
|
||||||
|
@ -113,37 +108,44 @@ local function quick_flow_logic(node, pos_testing, direction)
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
local function quick_flow(pos, node)
|
local quick_flow = function(pos,node)
|
||||||
|
local x = 0
|
||||||
|
local z = 0
|
||||||
|
|
||||||
if not node_is_liquid(node) then
|
if not node_is_liquid(node) then
|
||||||
return {x=0,y=0,z=0}
|
return {x=0,y=0,z=0}
|
||||||
end
|
end
|
||||||
local x = quick_flow_logic(node,{x = pos.x-1, y = pos.y, z = pos.z},-1) + quick_flow_logic(node,{x = pos.x+1, y = pos.y, z = pos.z}, 1)
|
|
||||||
local z = quick_flow_logic(node,{x = pos.x, y = pos.y, z = pos.z-1},-1) + quick_flow_logic(node,{x = pos.x, y = pos.y, z = pos.z+1}, 1)
|
x = x + quick_flow_logic(node,{x=pos.x-1,y=pos.y,z=pos.z},-1)
|
||||||
|
x = x + quick_flow_logic(node,{x=pos.x+1,y=pos.y,z=pos.z}, 1)
|
||||||
|
z = z + quick_flow_logic(node,{x=pos.x,y=pos.y,z=pos.z-1},-1)
|
||||||
|
z = z + quick_flow_logic(node,{x=pos.x,y=pos.y,z=pos.z+1}, 1)
|
||||||
|
|
||||||
return to_unit_vector({x=x,y=0,z=z})
|
return to_unit_vector({x=x,y=0,z=z})
|
||||||
end
|
end
|
||||||
|
|
||||||
flowlib.quick_flow = quick_flow
|
flowlib.quick_flow = quick_flow
|
||||||
|
|
||||||
|
|
||||||
--if not in water but touching, move centre to touching block
|
--if not in water but touching, move centre to touching block
|
||||||
--x has higher precedence than z
|
--x has higher precedence than z
|
||||||
--if pos changes with x, it affects z
|
--if pos changes with x, it affects z
|
||||||
|
local move_centre = function(pos,realpos,node,radius)
|
||||||
local function move_centre(pos, realpos, node, radius)
|
|
||||||
if is_touching(realpos.x,pos.x,radius) then
|
if is_touching(realpos.x,pos.x,radius) then
|
||||||
if is_liquid({x=pos.x-1,y=pos.y,z=pos.z}) then
|
if is_liquid({x=pos.x-1,y=pos.y,z=pos.z}) then
|
||||||
node = get_node({x=pos.x-1, y = pos.y, z = pos.z})
|
node = minetest.get_node({x=pos.x-1,y=pos.y,z=pos.z})
|
||||||
pos = {x=pos.x-1,y=pos.y,z=pos.z}
|
pos = {x=pos.x-1,y=pos.y,z=pos.z}
|
||||||
elseif is_liquid({x=pos.x+1,y=pos.y,z=pos.z}) then
|
elseif is_liquid({x=pos.x+1,y=pos.y,z=pos.z}) then
|
||||||
node = get_node({x = pos.x+1, y = pos.y, z = pos.z})
|
node = minetest.get_node({x=pos.x+1,y=pos.y,z=pos.z})
|
||||||
pos = {x=pos.x+1,y=pos.y,z=pos.z}
|
pos = {x=pos.x+1,y=pos.y,z=pos.z}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if is_touching(realpos.z,pos.z,radius) then
|
if is_touching(realpos.z,pos.z,radius) then
|
||||||
if is_liquid({x=pos.x,y=pos.y,z=pos.z-1}) then
|
if is_liquid({x=pos.x,y=pos.y,z=pos.z-1}) then
|
||||||
node = get_node({x = pos.x, y = pos.y, z = pos.z - 1})
|
node = minetest.get_node({x=pos.x,y=pos.y,z=pos.z-1})
|
||||||
pos = {x=pos.x,y=pos.y,z=pos.z-1}
|
pos = {x=pos.x,y=pos.y,z=pos.z-1}
|
||||||
elseif is_liquid({x=pos.x,y=pos.y,z=pos.z+1}) then
|
elseif is_liquid({x=pos.x,y=pos.y,z=pos.z+1}) then
|
||||||
node = get_node({x = pos.x, y = pos.y, z = pos.z + 1})
|
node = minetest.get_node({x=pos.x,y=pos.y,z=pos.z+1})
|
||||||
pos = {x=pos.x,y=pos.y,z=pos.z+1}
|
pos = {x=pos.x,y=pos.y,z=pos.z+1}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,98 +1,26 @@
|
||||||
-- Overrides the builtin minetest.check_single_for_falling.
|
|
||||||
-- We need to do this in order to handle nodes in mineclone specific groups
|
|
||||||
-- "supported_node" and "attached_node_facedir".
|
|
||||||
--
|
|
||||||
-- Nodes in group "supported_node" can be placed on any node that does not
|
|
||||||
-- have the "airlike" drawtype. Carpets are an example of this type.
|
|
||||||
|
|
||||||
local pairs = pairs
|
|
||||||
local math = math
|
|
||||||
local vector = vector
|
|
||||||
|
|
||||||
local facedir_to_dir = minetest.facedir_to_dir
|
|
||||||
local get_item_group = minetest.get_item_group
|
|
||||||
local remove_node = minetest.remove_node
|
|
||||||
local get_node = minetest.get_node
|
|
||||||
local get_meta = minetest.get_meta
|
|
||||||
local registered_nodes = minetest.registered_nodes
|
|
||||||
local get_node_drops = minetest.get_node_drops
|
|
||||||
local add_item = minetest.add_item
|
|
||||||
|
|
||||||
-- drop_attached_node(p)
|
|
||||||
--
|
|
||||||
-- This function is copied verbatim from minetest/builtin/game/falling.lua
|
|
||||||
-- We need this to do the exact same dropping node handling in our override
|
|
||||||
-- minetest.check_single_for_falling() function as in the builtin function.
|
|
||||||
--
|
|
||||||
---@param p Vector
|
|
||||||
local function drop_attached_node(p)
|
|
||||||
local n = get_node(p)
|
|
||||||
local drops = get_node_drops(n, "")
|
|
||||||
local def = registered_nodes[n.name]
|
|
||||||
|
|
||||||
if def and def.preserve_metadata then
|
|
||||||
local oldmeta = get_meta(p):to_table().fields
|
|
||||||
-- Copy pos and node because the callback can modify them.
|
|
||||||
local pos_copy = vector.copy(p)
|
|
||||||
local node_copy = { name = n.name, param1 = n.param1, param2 = n.param2 }
|
|
||||||
local drop_stacks = {}
|
|
||||||
for k, v in pairs(drops) do
|
|
||||||
drop_stacks[k] = ItemStack(v)
|
|
||||||
end
|
|
||||||
drops = drop_stacks
|
|
||||||
def.preserve_metadata(pos_copy, node_copy, oldmeta, drops)
|
|
||||||
end
|
|
||||||
|
|
||||||
if def and def.sounds and def.sounds.fall then
|
|
||||||
minetest.sound_play(def.sounds.fall, { pos = p }, true)
|
|
||||||
end
|
|
||||||
|
|
||||||
remove_node(p)
|
|
||||||
for _, item in pairs(drops) do
|
|
||||||
local pos = vector.offset(p,
|
|
||||||
math.random() / 2 - 0.25,
|
|
||||||
math.random() / 2 - 0.25,
|
|
||||||
math.random() / 2 - 0.25
|
|
||||||
)
|
|
||||||
add_item(pos, item)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- minetest.check_single_for_falling(pos)
|
|
||||||
--
|
|
||||||
-- * causes an unsupported `group:falling_node` node to fall and causes an
|
|
||||||
-- unattached `group:attached_node` or `group:attached_node_facedir` node
|
|
||||||
-- or unsupported `group:supported_node` node to drop.
|
|
||||||
-- * does not spread these updates to neighbours.
|
|
||||||
--
|
|
||||||
-- Returns true if the node at <pos> has spawned a falling node or has been
|
|
||||||
-- dropped as item(s).
|
|
||||||
--
|
|
||||||
local original_function = minetest.check_single_for_falling
|
local original_function = minetest.check_single_for_falling
|
||||||
|
|
||||||
function minetest.check_single_for_falling(pos)
|
minetest.check_single_for_falling = function(pos)
|
||||||
if original_function(pos) then
|
local ret_o = original_function(pos)
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
local node = get_node(pos)
|
local ret = false
|
||||||
if get_item_group(node.name, "attached_node_facedir") ~= 0 then
|
local node = minetest.get_node(pos)
|
||||||
local dir = facedir_to_dir(node.param2)
|
if minetest.get_item_group(node.name, "attached_node_facedir") ~= 0 then
|
||||||
|
local dir = minetest.facedir_to_dir(node.param2)
|
||||||
if dir then
|
if dir then
|
||||||
if get_item_group(get_node(vector.add(pos, dir)).name, "solid") == 0 then
|
local cpos = vector.add(pos, dir)
|
||||||
drop_attached_node(pos)
|
local cnode = minetest.get_node(cpos)
|
||||||
return true
|
if minetest.get_item_group(cnode.name, "solid") == 0 then
|
||||||
|
minetest.remove_node(pos)
|
||||||
|
local drops = minetest.get_node_drops(node.name, "")
|
||||||
|
for dr=1, #drops do
|
||||||
|
minetest.add_item(pos, drops[dr])
|
||||||
|
end
|
||||||
|
ret = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if get_item_group(node.name, "supported_node") ~= 0 then
|
return ret_o or ret
|
||||||
local def = registered_nodes[get_node(vector.offset(pos, 0, -1, 0)).name]
|
|
||||||
if def and def.drawtype == "airlike" then
|
|
||||||
drop_attached_node(pos)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
# mcl_damage
|
|
||||||
|
|
||||||
This mod is intended to overall minetest's native damage system, to provide a better integration between features that deals with entities' health.
|
|
||||||
|
|
||||||
WARNING: Not using it inside your mods may cause strange bugs (using the native damage system may cause conflicts with this system).
|
|
||||||
|
|
||||||
## Callbacks
|
|
||||||
|
|
||||||
To modify the amount of damage made by something:
|
|
||||||
|
|
||||||
```lua
|
|
||||||
--obj: an ObjectRef
|
|
||||||
mcl_damage.register_modifier(function(obj, damage, reason)
|
|
||||||
end, 0)
|
|
||||||
```
|
|
|
@ -12,10 +12,9 @@ mcl_damage = {
|
||||||
drown = {bypasses_armor = true},
|
drown = {bypasses_armor = true},
|
||||||
starve = {bypasses_armor = true, bypasses_magic = true},
|
starve = {bypasses_armor = true, bypasses_magic = true},
|
||||||
cactus = {},
|
cactus = {},
|
||||||
sweet_berry = {},
|
|
||||||
fall = {bypasses_armor = true},
|
fall = {bypasses_armor = true},
|
||||||
fly_into_wall = {bypasses_armor = true}, -- unused
|
fly_into_wall = {bypasses_armor = true}, -- unused
|
||||||
out_of_world = {bypasses_armor = true, bypasses_magic = true, bypasses_invulnerability = true, bypasses_totem = true},
|
out_of_world = {bypasses_armor = true, bypasses_magic = true, bypasses_invulnerability = true},
|
||||||
generic = {bypasses_armor = true},
|
generic = {bypasses_armor = true},
|
||||||
magic = {is_magic = true, bypasses_armor = true},
|
magic = {is_magic = true, bypasses_armor = true},
|
||||||
dragon_breath = {is_magic = true, bypasses_armor = true}, -- this is only used for dragon fireball; dragon fireball does not actually deal impact damage tho, so this is unreachable
|
dragon_breath = {is_magic = true, bypasses_armor = true}, -- this is only used for dragon fireball; dragon fireball does not actually deal impact damage tho, so this is unreachable
|
||||||
|
@ -34,8 +33,6 @@ mcl_damage = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local damage_enabled = minetest.settings:get_bool("enabled_damage",true)
|
|
||||||
|
|
||||||
function mcl_damage.register_modifier(func, priority)
|
function mcl_damage.register_modifier(func, priority)
|
||||||
table.insert(mcl_damage.modifiers, {func = func, priority = priority or 0})
|
table.insert(mcl_damage.modifiers, {func = func, priority = priority or 0})
|
||||||
end
|
end
|
||||||
|
@ -81,7 +78,7 @@ function mcl_damage.from_punch(mcl_reason, object)
|
||||||
mcl_reason.type = "arrow"
|
mcl_reason.type = "arrow"
|
||||||
elseif luaentity._is_fireball then
|
elseif luaentity._is_fireball then
|
||||||
mcl_reason.type = "fireball"
|
mcl_reason.type = "fireball"
|
||||||
elseif luaentity.is_mob then
|
elseif luaentity._cmi_is_mob then
|
||||||
mcl_reason.type = "mob"
|
mcl_reason.type = "mob"
|
||||||
end
|
end
|
||||||
mcl_reason.source = mcl_reason.source or luaentity._source_object
|
mcl_reason.source = mcl_reason.source or luaentity._source_object
|
||||||
|
@ -142,7 +139,6 @@ function mcl_damage.register_type(name, def)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_player_hpchange(function(player, hp_change, mt_reason)
|
minetest.register_on_player_hpchange(function(player, hp_change, mt_reason)
|
||||||
if not damage_enabled then return 0 end
|
|
||||||
if hp_change < 0 then
|
if hp_change < 0 then
|
||||||
if player:get_hp() <= 0 then
|
if player:get_hp() <= 0 then
|
||||||
return 0
|
return 0
|
||||||
|
@ -153,19 +149,16 @@ minetest.register_on_player_hpchange(function(player, hp_change, mt_reason)
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
minetest.register_on_player_hpchange(function(player, hp_change, mt_reason)
|
minetest.register_on_player_hpchange(function(player, hp_change, mt_reason)
|
||||||
if not damage_enabled then return 0 end
|
|
||||||
if player:get_hp() > 0 then
|
|
||||||
if hp_change < 0 then
|
if hp_change < 0 then
|
||||||
mcl_damage.run_damage_callbacks(player, -hp_change, mcl_damage.from_mt(mt_reason))
|
mcl_damage.run_damage_callbacks(player, -hp_change, mcl_damage.from_mt(mt_reason))
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end, false)
|
end, false)
|
||||||
|
|
||||||
minetest.register_on_dieplayer(function(player, mt_reason)
|
minetest.register_on_dieplayer(function(player, mt_reason)
|
||||||
mcl_damage.run_death_callbacks(player, mcl_damage.from_mt(mt_reason))
|
mcl_damage.run_death_callbacks(player, mcl_damage.from_mt(mt_reason))
|
||||||
minetest.log("action","Player "..player:get_player_name().." died at "..minetest.pos_to_string(vector.round(player:get_pos())))
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_mods_loaded(function()
|
minetest.register_on_mods_loaded(function()
|
||||||
table.sort(mcl_damage.modifiers, function(a, b) return a.priority < b.priority end)
|
table.sort(mcl_damage.modifiers, function(a, b) return a.priority < b.priority end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
## mcl_events
|
|
||||||
### Registering Events
|
|
||||||
`mlc_events.register_event("name",def)`
|
|
||||||
|
|
||||||
#### Event Definition
|
|
||||||
{
|
|
||||||
stage = 0,
|
|
||||||
max_stage = 1,
|
|
||||||
percent = 100,
|
|
||||||
bars = {},
|
|
||||||
completed = false,
|
|
||||||
cond_start = function() end,
|
|
||||||
--return table of paramtables e.g. { { player = playername, pos = position, ... } }, custom parameters will be passed to the event object/table
|
|
||||||
on_step = function(event) end,
|
|
||||||
--this function is run every game step when the event is active
|
|
||||||
on_start = function(event) end,
|
|
||||||
-- this function is run when the event starts
|
|
||||||
on_stage_begin = function(event) end,
|
|
||||||
-- this function runs when a new stage of the event starts
|
|
||||||
cond_progress = function(event) end, --return false or next stage id
|
|
||||||
--this function checks if the event should progress to the next (or any other) stage
|
|
||||||
cond_complete = function(event) end,
|
|
||||||
--return true if event finished successfully
|
|
||||||
}
|
|
||||||
|
|
||||||
### Debugging
|
|
||||||
* /event_start <event> -- starts the given event at the current player coordinates
|
|
|
@ -1,155 +0,0 @@
|
||||||
mcl_events = {}
|
|
||||||
mcl_events.registered_events = {}
|
|
||||||
local disabled_events = minetest.settings:get("mcl_disabled_events")
|
|
||||||
if disabled_events then disabled_events = disabled_events:split(",")
|
|
||||||
else disabled_events = {} end
|
|
||||||
local DBG = minetest.settings:get_bool("mcl_logging_event_api",false)
|
|
||||||
local active_events = {}
|
|
||||||
|
|
||||||
local event_tpl = {
|
|
||||||
stage = 0,
|
|
||||||
max_stage = 1,
|
|
||||||
percent = 100,
|
|
||||||
bars = {},
|
|
||||||
completed = false,
|
|
||||||
cond_start = function(event) end, --return table of positions
|
|
||||||
on_step = function(event) end,
|
|
||||||
on_start = function(event) end,
|
|
||||||
on_stage_begin = function(event) end,
|
|
||||||
cond_progress = function(event) end, --return next stage
|
|
||||||
cond_complete = function(event) end, --return success
|
|
||||||
}
|
|
||||||
|
|
||||||
local function mcl_log(m,l)
|
|
||||||
if DBG then
|
|
||||||
if not l then l = "action" end
|
|
||||||
minetest.log(l,"[mcl_events] "..m)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function mcl_events.register_event(name,def)
|
|
||||||
if table.indexof(disabled_events,name) ~= -1 then return end
|
|
||||||
mcl_events.registered_events[name] = def
|
|
||||||
mcl_events.registered_events[name].name = name
|
|
||||||
end
|
|
||||||
|
|
||||||
local function addbars(self)
|
|
||||||
if not self.enable_bossbar then return end
|
|
||||||
for _,player in pairs(minetest.get_connected_players()) do
|
|
||||||
if vector.distance(self.pos,player:get_pos()) < 64 then
|
|
||||||
local bar = mcl_bossbars.add_bar(player, {color = "red", text = self.readable_name .. ": Wave "..self.stage.." / "..self.max_stage, percentage = self.percent }, true,1)
|
|
||||||
table.insert(self.bars,bar)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function start_event(p,e)
|
|
||||||
mcl_log("[mcl_events] Event started: "..e.readable_name.." at "..minetest.pos_to_string(vector.round(p.pos)))
|
|
||||||
local idx = #active_events + 1
|
|
||||||
active_events[idx] = table.copy(e)
|
|
||||||
setmetatable(active_events[idx],{__index = event_tpl})
|
|
||||||
for k,v in pairs(p) do active_events[idx][k] = v end
|
|
||||||
active_events[idx].stage = 0
|
|
||||||
active_events[idx].percent = 100
|
|
||||||
active_events[idx].bars = {}
|
|
||||||
active_events[idx].time_start = os.time()
|
|
||||||
if active_events[idx].on_start then
|
|
||||||
active_events[idx]:on_start(p.pos)
|
|
||||||
end
|
|
||||||
addbars(active_events[idx])
|
|
||||||
end
|
|
||||||
|
|
||||||
local function finish_event(self,idx)
|
|
||||||
mcl_log("[mcl_events] Finished: "..self.readable_name.." at "..minetest.pos_to_string(vector.round(self.pos)))
|
|
||||||
if self.on_complete then self:on_complete() end
|
|
||||||
for _,b in pairs(self.bars) do
|
|
||||||
mcl_bossbars.remove_bar(b)
|
|
||||||
end
|
|
||||||
table.remove(active_events,idx)
|
|
||||||
end
|
|
||||||
|
|
||||||
local etime = 0
|
|
||||||
function check_events(dtime)
|
|
||||||
--process active events
|
|
||||||
for idx,ae in pairs(active_events) do
|
|
||||||
if ae.cond_complete and ae:cond_complete() then
|
|
||||||
ae.finished = true
|
|
||||||
finish_event(ae,idx)
|
|
||||||
elseif not ae.cond_complete and ae.max_stage and ae.max_stage <= ae.stage then
|
|
||||||
ae.finished = true
|
|
||||||
finish_event(ae,idx)
|
|
||||||
elseif not ae.finished and ae.cond_progress then
|
|
||||||
local p = ae:cond_progress()
|
|
||||||
if p == true then
|
|
||||||
ae.stage = ae.stage + 1
|
|
||||||
if ae:on_stage_begin() == true then
|
|
||||||
mcl_log("[mcl_events] Event "..ae.readable_name.." at "..minetest.pos_to_string(vector.round(ae.pos)).." failed at stage_begin of stage "..ae.stage )
|
|
||||||
active_events[idx] = nil
|
|
||||||
end
|
|
||||||
elseif tonumber(p) then
|
|
||||||
ae.stage = tonumber(p) or ae.stage + 1
|
|
||||||
ae:on_stage_begin()
|
|
||||||
end
|
|
||||||
elseif not ae.finished and ae.on_step then
|
|
||||||
ae:on_step(dtime)
|
|
||||||
end
|
|
||||||
addbars(ae)
|
|
||||||
end
|
|
||||||
-- check if a new event should be started
|
|
||||||
etime = etime - dtime
|
|
||||||
if etime > 0 then return end
|
|
||||||
etime = 10
|
|
||||||
for _,e in pairs(mcl_events.registered_events) do
|
|
||||||
local pp = e.cond_start()
|
|
||||||
if pp then
|
|
||||||
--minetest.log("It's gonna start the raid maybe")
|
|
||||||
for _,p in pairs(pp) do
|
|
||||||
local start = true
|
|
||||||
if e.exclusive_to_area then
|
|
||||||
for _,ae in pairs(active_events) do
|
|
||||||
if e.name == ae.name and vector.distance(p.pos,ae.pos) < e.exclusive_to_area then start = false end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if start then
|
|
||||||
--minetest.log("It's gonna start the raid definitely")
|
|
||||||
start_event(p,e)
|
|
||||||
elseif DBG then
|
|
||||||
mcl_log("[mcl_events] Event "..e.readable_name.." already active at "..minetest.pos_to_string(vector.round(p.pos)))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
|
||||||
--minetest.log("Do not start this raid")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
for idx,ae in pairs(active_events) do
|
|
||||||
local player_near = false
|
|
||||||
for _,pl in pairs(minetest.get_connected_players()) do
|
|
||||||
if ae.pos and vector.distance(pl:get_pos(),ae.pos) < 64 then player_near = true end
|
|
||||||
end
|
|
||||||
if ae.pos and not player_near then
|
|
||||||
mcl_log("[mcl_events] Event "..ae.readable_name.." at "..minetest.pos_to_string(vector.round(ae.pos)).." aborted - no players near." )
|
|
||||||
active_events[idx] = nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_globalstep(check_events)
|
|
||||||
|
|
||||||
mcl_info.register_debug_field("Active Events",{
|
|
||||||
level = 4,
|
|
||||||
func = function(pl,pos)
|
|
||||||
return tostring(#active_events)
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_chatcommand("event_start",{
|
|
||||||
privs = {debug = true},
|
|
||||||
description = "Debug command to start events",
|
|
||||||
func = function(pname,param)
|
|
||||||
local p = minetest.get_player_by_name(pname)
|
|
||||||
local evdef = mcl_events.registered_events[param]
|
|
||||||
if not evdef then return false,"Event "..param.." doesn't exist.'" end
|
|
||||||
start_event({pos=p:get_pos(),player=pname,factor=1},evdef)
|
|
||||||
return true,"Started event "..param
|
|
||||||
end,
|
|
||||||
})
|
|
|
@ -1,3 +0,0 @@
|
||||||
name = mcl_events
|
|
||||||
author = cora
|
|
||||||
depends = mcl_mobs,mcl_bossbars, mcl_info
|
|
|
@ -12,12 +12,10 @@ under the LGPLv2.1 license.
|
||||||
|
|
||||||
mcl_explosions = {}
|
mcl_explosions = {}
|
||||||
|
|
||||||
local mod_fire = minetest.get_modpath("mcl_fire")
|
local mod_fire = minetest.get_modpath("mcl_fire") ~= nil
|
||||||
--local CONTENT_FIRE = minetest.get_content_id("mcl_fire:fire")
|
local CONTENT_FIRE = minetest.get_content_id("mcl_fire:fire")
|
||||||
|
|
||||||
local math = math
|
local S = minetest.get_translator("mcl_explosions")
|
||||||
local vector = vector
|
|
||||||
local table = table
|
|
||||||
|
|
||||||
local hash_node_position = minetest.hash_node_position
|
local hash_node_position = minetest.hash_node_position
|
||||||
local get_objects_inside_radius = minetest.get_objects_inside_radius
|
local get_objects_inside_radius = minetest.get_objects_inside_radius
|
||||||
|
@ -28,7 +26,6 @@ local get_voxel_manip = minetest.get_voxel_manip
|
||||||
local bulk_set_node = minetest.bulk_set_node
|
local bulk_set_node = minetest.bulk_set_node
|
||||||
local check_for_falling = minetest.check_for_falling
|
local check_for_falling = minetest.check_for_falling
|
||||||
local add_item = minetest.add_item
|
local add_item = minetest.add_item
|
||||||
local pos_to_string = minetest.pos_to_string
|
|
||||||
|
|
||||||
-- Saved sphere explosion shapes for various radiuses
|
-- Saved sphere explosion shapes for various radiuses
|
||||||
local sphere_shapes = {}
|
local sphere_shapes = {}
|
||||||
|
@ -69,48 +66,50 @@ local function compute_sphere_rays(radius)
|
||||||
local rays = {}
|
local rays = {}
|
||||||
local sphere = {}
|
local sphere = {}
|
||||||
|
|
||||||
local function add_ray(pos)
|
for i=1, 2 do
|
||||||
|
for y = -radius, radius do
|
||||||
|
for z = -radius, radius do
|
||||||
|
for x = -radius, 0, 1 do
|
||||||
|
local d = x * x + y * y + z * z
|
||||||
|
if d <= radius * radius then
|
||||||
|
local pos = { x = x, y = y, z = z }
|
||||||
sphere[hash_node_position(pos)] = pos
|
sphere[hash_node_position(pos)] = pos
|
||||||
end
|
|
||||||
|
|
||||||
for y = -radius, radius do
|
|
||||||
for z = -radius, radius do
|
|
||||||
for x = -radius, 0 do
|
|
||||||
local d = x * x + y * y + z * z
|
|
||||||
if d <= radius * radius then
|
|
||||||
add_ray(vector.new(x, y, z))
|
|
||||||
add_ray(vector.new(-x, y, z))
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for i=1,2 do
|
||||||
for x = -radius, radius do
|
for x = -radius, radius do
|
||||||
for z = -radius, radius do
|
for z = -radius, radius do
|
||||||
for y = -radius, 0 do
|
for y = -radius, 0, 1 do
|
||||||
local d = x * x + y * y + z * z
|
local d = x * x + y * y + z * z
|
||||||
if d <= radius * radius then
|
if d <= radius * radius then
|
||||||
add_ray(vector.new(x, y, z))
|
local pos = { x = x, y = y, z = z }
|
||||||
add_ray(vector.new(x, -y, z))
|
sphere[hash_node_position(pos)] = pos
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for i=1,2 do
|
||||||
for x = -radius, radius do
|
for x = -radius, radius do
|
||||||
for y = -radius, radius do
|
for y = -radius, radius do
|
||||||
for z = -radius, 0 do
|
for z = -radius, 0, 1 do
|
||||||
local d = x * x + y * y + z * z
|
local d = x * x + y * y + z * z
|
||||||
if d <= radius * radius then
|
if d <= radius * radius then
|
||||||
add_ray(vector.new(x, y, z))
|
local pos = { x = x, y = y, z = z }
|
||||||
add_ray(vector.new(x, y, -z))
|
sphere[hash_node_position(pos)] = pos
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for _, pos in pairs(sphere) do
|
for _, pos in pairs(sphere) do
|
||||||
rays[#rays + 1] = vector.normalize(pos)
|
rays[#rays + 1] = vector.normalize(pos)
|
||||||
|
@ -130,10 +129,10 @@ local function add_particles(pos, radius)
|
||||||
time = 0.125,
|
time = 0.125,
|
||||||
minpos = pos,
|
minpos = pos,
|
||||||
maxpos = pos,
|
maxpos = pos,
|
||||||
minvel = vector.new(-radius, -radius, -radius),
|
minvel = {x = -radius, y = -radius, z = -radius},
|
||||||
maxvel = vector.new(radius, radius, radius),
|
maxvel = {x = radius, y = radius, z = radius},
|
||||||
minacc = vector.zero(),
|
minacc = vector.new(),
|
||||||
maxacc = vector.zero(),
|
maxacc = vector.new(),
|
||||||
minexptime = 0.5,
|
minexptime = 0.5,
|
||||||
maxexptime = 1.0,
|
maxexptime = 1.0,
|
||||||
minsize = radius * 0.5,
|
minsize = radius * 0.5,
|
||||||
|
@ -177,11 +176,14 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
|
||||||
|
|
||||||
local ystride = (emax.x - emin_x + 1)
|
local ystride = (emax.x - emin_x + 1)
|
||||||
local zstride = ystride * (emax.y - emin_y + 1)
|
local zstride = ystride * (emax.y - emin_y + 1)
|
||||||
|
local pos_x = pos.x
|
||||||
|
local pos_y = pos.y
|
||||||
|
local pos_z = pos.z
|
||||||
|
|
||||||
--[[local area = VoxelArea:new {
|
local area = VoxelArea:new {
|
||||||
MinEdge = emin,
|
MinEdge = emin,
|
||||||
MaxEdge = emax
|
MaxEdge = emax
|
||||||
}]]
|
}
|
||||||
local data = vm:get_data()
|
local data = vm:get_data()
|
||||||
local destroy = {}
|
local destroy = {}
|
||||||
|
|
||||||
|
@ -245,7 +247,7 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
|
||||||
local ent = obj:get_luaentity()
|
local ent = obj:get_luaentity()
|
||||||
|
|
||||||
-- Ignore items to lower lag
|
-- Ignore items to lower lag
|
||||||
if (obj:is_player() or (ent and ent.name ~= "__builtin.item")) and obj:get_hp() > 0 then
|
if (obj:is_player() or (ent and ent.name ~= '__builtin.item')) and obj:get_hp() > 0 then
|
||||||
local opos = obj:get_pos()
|
local opos = obj:get_pos()
|
||||||
local collisionbox = nil
|
local collisionbox = nil
|
||||||
|
|
||||||
|
@ -258,12 +260,12 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
|
||||||
|
|
||||||
if collisionbox then
|
if collisionbox then
|
||||||
-- Create rays from random points in the collision box
|
-- Create rays from random points in the collision box
|
||||||
local x1 = collisionbox[1]
|
local x1 = collisionbox[1] * 2
|
||||||
local y1 = collisionbox[2]
|
local y1 = collisionbox[2] * 2
|
||||||
local z1 = collisionbox[3]
|
local z1 = collisionbox[3] * 2
|
||||||
local x2 = collisionbox[4]
|
local x2 = collisionbox[4] * 2
|
||||||
local y2 = collisionbox[5]
|
local y2 = collisionbox[5] * 2
|
||||||
local z2 = collisionbox[6]
|
local z2 = collisionbox[6] * 2
|
||||||
local x_len = math.abs(x2 - x1)
|
local x_len = math.abs(x2 - x1)
|
||||||
local y_len = math.abs(y2 - y1)
|
local y_len = math.abs(y2 - y1)
|
||||||
local z_len = math.abs(z2 - z1)
|
local z_len = math.abs(z2 - z1)
|
||||||
|
@ -333,11 +335,11 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
|
||||||
end
|
end
|
||||||
|
|
||||||
if sleep_formspec_doesnt_close_mt53 then
|
if sleep_formspec_doesnt_close_mt53 then
|
||||||
minetest.after(0.3,
|
minetest.after(0.3, function() -- 0.2 is minimum delay for closing old formspec and open died formspec -- TODO: REMOVE THIS IN THE FUTURE
|
||||||
function() -- 0.2 is minimum delay for closing old formspec and open died formspec -- TODO: REMOVE THIS IN THE FUTURE
|
|
||||||
if not obj:is_player() then
|
if not obj:is_player() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_util.deal_damage(obj, damage, {type = "explosion", direct = direct, source = source})
|
mcl_util.deal_damage(obj, damage, {type = "explosion", direct = direct, source = source})
|
||||||
|
|
||||||
obj:add_velocity(vector.multiply(punch_dir, impact * 20))
|
obj:add_velocity(vector.multiply(punch_dir, impact * 20))
|
||||||
|
@ -361,9 +363,9 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
|
||||||
local on_blast = node_on_blast[data[idx]]
|
local on_blast = node_on_blast[data[idx]]
|
||||||
local remove = true
|
local remove = true
|
||||||
|
|
||||||
if do_drop or on_blast then
|
if do_drop or on_blast ~= nil then
|
||||||
local npos = get_position_from_hash(hash)
|
local npos = get_position_from_hash(hash)
|
||||||
if on_blast then
|
if on_blast ~= nil then
|
||||||
on_blast(npos, 1.0, do_drop)
|
on_blast(npos, 1.0, do_drop)
|
||||||
remove = false
|
remove = false
|
||||||
else
|
else
|
||||||
|
@ -397,16 +399,16 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
|
||||||
-- Update falling nodes
|
-- Update falling nodes
|
||||||
for a=1, #airs do
|
for a=1, #airs do
|
||||||
local p = airs[a]
|
local p = airs[a]
|
||||||
check_for_falling(vector.offset(p, 0, 1, 0))
|
check_for_falling({x=p.x, y=p.y+1, z=p.z})
|
||||||
end
|
end
|
||||||
for f=1, #fires do
|
for f=1, #fires do
|
||||||
local p = fires[f]
|
local p = fires[f]
|
||||||
check_for_falling(vector.offset(p, 0, 1, 0))
|
check_for_falling({x=p.x, y=p.y+1, z=p.z})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Log explosion
|
-- Log explosion
|
||||||
minetest.log("action", "Explosion at " .. pos_to_string(pos) .. " with strength " .. strength .. " and radius " ..
|
minetest.log('action', 'Explosion at ' .. minetest.pos_to_string(pos) ..
|
||||||
radius)
|
' with strength ' .. strength .. ' and radius ' .. radius)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Create an explosion with strength at pos.
|
-- Create an explosion with strength at pos.
|
||||||
|
@ -430,11 +432,6 @@ end
|
||||||
-- griefing - If true, the explosion will destroy nodes (default: true)
|
-- griefing - If true, the explosion will destroy nodes (default: true)
|
||||||
-- grief_protected - If true, the explosion will also destroy nodes which have
|
-- grief_protected - If true, the explosion will also destroy nodes which have
|
||||||
-- been protected (default: false)
|
-- been protected (default: false)
|
||||||
---@param pos Vector
|
|
||||||
---@param strength number
|
|
||||||
---@param info {drop_chance: number, max_blast_resistance: number, sound: boolean, particles: boolean, fire: boolean, griefing: boolean, grief_protected: boolean}
|
|
||||||
---@param direct? ObjectRef
|
|
||||||
---@param source? ObjectRef
|
|
||||||
function mcl_explosions.explode(pos, strength, info, direct, source)
|
function mcl_explosions.explode(pos, strength, info, direct, source)
|
||||||
if info == nil then
|
if info == nil then
|
||||||
info = {}
|
info = {}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain:mcl_explosions
|
||||||
|
@1 was caught in an explosion.=@1 wurde Opfer einer Explosion.
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain:mcl_explosions
|
||||||
|
@1 was caught in an explosion.=@1 a été pris dans une explosion.
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1は爆発に巻き込まれた。
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1 została wysadzona.
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain:mcl_explosions
|
||||||
|
@1 was caught in an explosion.=@1 не удалось пережить взрыва.
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1 被炸飛了
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain:mcl_explosions
|
||||||
|
@1 was caught in an explosion.=
|
|
@ -3,26 +3,26 @@ mcl_vars = {}
|
||||||
|
|
||||||
mcl_vars.redstone_tick = 0.1
|
mcl_vars.redstone_tick = 0.1
|
||||||
|
|
||||||
-- GUI / inventory menu settings
|
--- GUI / inventory menu settings
|
||||||
mcl_vars.gui_slots = "listcolors[#9990;#FFF7;#FFF0;#000;#FFF]"
|
mcl_vars.gui_slots = "listcolors[#9990;#FFF7;#FFF0;#000;#FFF]"
|
||||||
|
|
||||||
-- nonbg is added as formspec prepend in mcl_formspec_prepend
|
-- nonbg is added as formspec prepend in mcl_formspec_prepend
|
||||||
mcl_vars.gui_nonbg = table.concat({
|
mcl_vars.gui_nonbg = mcl_vars.gui_slots ..
|
||||||
mcl_vars.gui_slots,
|
"style_type[image_button;border=false;bgimg=mcl_inventory_button9.png;bgimg_pressed=mcl_inventory_button9_pressed.png;bgimg_middle=2,2]"..
|
||||||
"style_type[image_button;border=false;bgimg=mcl_inventory_button9.png;bgimg_pressed=mcl_inventory_button9_pressed.png;bgimg_middle=2,2]",
|
"style_type[button;border=false;bgimg=mcl_inventory_button9.png;bgimg_pressed=mcl_inventory_button9_pressed.png;bgimg_middle=2,2]"..
|
||||||
"style_type[button;border=false;bgimg=mcl_inventory_button9.png;bgimg_pressed=mcl_inventory_button9_pressed.png;bgimg_middle=2,2]",
|
"style_type[field;textcolor=#323232]"..
|
||||||
"style_type[field;textcolor=#323232]",
|
"style_type[label;textcolor=#323232]"..
|
||||||
"style_type[label;textcolor=#323232]",
|
"style_type[textarea;textcolor=#323232]"..
|
||||||
"style_type[textarea;textcolor=#323232]",
|
"style_type[checkbox;textcolor=#323232]"
|
||||||
"style_type[checkbox;textcolor=#323232]",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Background stuff must be manually added by mods (no formspec prepend)
|
-- Background stuff must be manually added by mods (no formspec prepend)
|
||||||
mcl_vars.gui_bg_color = "bgcolor[#00000000]"
|
mcl_vars.gui_bg_color = "bgcolor[#00000000]"
|
||||||
mcl_vars.gui_bg_img = "background9[1,1;1,1;mcl_base_textures_background9.png;true;7]"
|
mcl_vars.gui_bg_img = "background9[1,1;1,1;mcl_base_textures_background9.png;true;7]"
|
||||||
|
|
||||||
|
-- Legacy
|
||||||
|
mcl_vars.inventory_header = ""
|
||||||
|
|
||||||
-- Tool wield size
|
-- Tool wield size
|
||||||
mcl_vars.tool_wield_scale = vector.new(1.8, 1.8, 1)
|
mcl_vars.tool_wield_scale = { x = 1.8, y = 1.8, z = 1 }
|
||||||
|
|
||||||
-- Mapgen variables
|
-- Mapgen variables
|
||||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
|
@ -32,70 +32,56 @@ local singlenode = mg_name == "singlenode"
|
||||||
|
|
||||||
-- Calculate mapgen_edge_min/mapgen_edge_max
|
-- Calculate mapgen_edge_min/mapgen_edge_max
|
||||||
mcl_vars.chunksize = math.max(1, tonumber(minetest.get_mapgen_setting("chunksize")) or 5)
|
mcl_vars.chunksize = math.max(1, tonumber(minetest.get_mapgen_setting("chunksize")) or 5)
|
||||||
mcl_vars.MAP_BLOCKSIZE = math.max(1, minetest.MAP_BLOCKSIZE or 16)
|
mcl_vars.MAP_BLOCKSIZE = math.max(1, core.MAP_BLOCKSIZE or 16)
|
||||||
mcl_vars.mapgen_limit = math.max(1, tonumber(minetest.get_mapgen_setting("mapgen_limit")) or 31000)
|
mcl_vars.mapgen_limit = math.max(1, tonumber(minetest.get_mapgen_setting("mapgen_limit")) or 31000)
|
||||||
mcl_vars.MAX_MAP_GENERATION_LIMIT = math.max(1, minetest.MAX_MAP_GENERATION_LIMIT or 31000)
|
mcl_vars.MAX_MAP_GENERATION_LIMIT = math.max(1, core.MAX_MAP_GENERATION_LIMIT or 31000)
|
||||||
|
|
||||||
local central_chunk_offset = -math.floor(mcl_vars.chunksize / 2)
|
local central_chunk_offset = -math.floor(mcl_vars.chunksize / 2)
|
||||||
|
|
||||||
mcl_vars.central_chunk_offset_in_nodes = central_chunk_offset * mcl_vars.MAP_BLOCKSIZE
|
mcl_vars.central_chunk_offset_in_nodes = central_chunk_offset * mcl_vars.MAP_BLOCKSIZE
|
||||||
mcl_vars.chunk_size_in_nodes = mcl_vars.chunksize * mcl_vars.MAP_BLOCKSIZE
|
mcl_vars.chunk_size_in_nodes = mcl_vars.chunksize * mcl_vars.MAP_BLOCKSIZE
|
||||||
|
|
||||||
local central_chunk_min_pos = central_chunk_offset * mcl_vars.MAP_BLOCKSIZE
|
local central_chunk_min_pos = central_chunk_offset * mcl_vars.MAP_BLOCKSIZE
|
||||||
local central_chunk_max_pos = central_chunk_min_pos + mcl_vars.chunk_size_in_nodes - 1
|
local central_chunk_max_pos = central_chunk_min_pos + mcl_vars.chunk_size_in_nodes - 1
|
||||||
local ccfmin = central_chunk_min_pos - mcl_vars.MAP_BLOCKSIZE -- Fullminp/fullmaxp of central chunk, in nodes
|
local ccfmin = central_chunk_min_pos - mcl_vars.MAP_BLOCKSIZE -- Fullminp/fullmaxp of central chunk, in nodes
|
||||||
local ccfmax = central_chunk_max_pos + mcl_vars.MAP_BLOCKSIZE
|
local ccfmax = central_chunk_max_pos + mcl_vars.MAP_BLOCKSIZE
|
||||||
local mapgen_limit_b = math.floor(math.min(mcl_vars.mapgen_limit, mcl_vars.MAX_MAP_GENERATION_LIMIT) /
|
local mapgen_limit_b = math.floor(math.min(mcl_vars.mapgen_limit, mcl_vars.MAX_MAP_GENERATION_LIMIT) / mcl_vars.MAP_BLOCKSIZE)
|
||||||
mcl_vars.MAP_BLOCKSIZE)
|
|
||||||
local mapgen_limit_min = -mapgen_limit_b * mcl_vars.MAP_BLOCKSIZE
|
local mapgen_limit_min = -mapgen_limit_b * mcl_vars.MAP_BLOCKSIZE
|
||||||
local mapgen_limit_max = (mapgen_limit_b + 1) * mcl_vars.MAP_BLOCKSIZE - 1
|
local mapgen_limit_max = (mapgen_limit_b + 1) * mcl_vars.MAP_BLOCKSIZE - 1
|
||||||
local numcmin = math.max(math.floor((ccfmin - mapgen_limit_min) / mcl_vars.chunk_size_in_nodes), 0) -- Number of complete chunks from central chunk
|
local numcmin = math.max(math.floor((ccfmin - mapgen_limit_min) / mcl_vars.chunk_size_in_nodes), 0) -- Number of complete chunks from central chunk
|
||||||
local numcmax = math.max(math.floor((mapgen_limit_max - ccfmax) / mcl_vars.chunk_size_in_nodes), 0) -- fullminp/fullmaxp to effective mapgen limits.
|
local numcmax = math.max(math.floor((mapgen_limit_max - ccfmax) / mcl_vars.chunk_size_in_nodes), 0) -- fullminp/fullmaxp to effective mapgen limits.
|
||||||
|
|
||||||
mcl_vars.mapgen_edge_min = central_chunk_min_pos - numcmin * mcl_vars.chunk_size_in_nodes
|
mcl_vars.mapgen_edge_min = central_chunk_min_pos - numcmin * mcl_vars.chunk_size_in_nodes
|
||||||
mcl_vars.mapgen_edge_max = central_chunk_max_pos + numcmax * mcl_vars.chunk_size_in_nodes
|
mcl_vars.mapgen_edge_max = central_chunk_max_pos + numcmax * mcl_vars.chunk_size_in_nodes
|
||||||
|
|
||||||
---@param x integer
|
|
||||||
---@return integer
|
|
||||||
local function coordinate_to_block(x)
|
local function coordinate_to_block(x)
|
||||||
return math.floor(x / mcl_vars.MAP_BLOCKSIZE)
|
return math.floor(x / mcl_vars.MAP_BLOCKSIZE)
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param x integer
|
|
||||||
---@return integer
|
|
||||||
local function coordinate_to_chunk(x)
|
local function coordinate_to_chunk(x)
|
||||||
return math.floor((coordinate_to_block(x) - central_chunk_offset) / mcl_vars.chunksize)
|
return math.floor((coordinate_to_block(x) - central_chunk_offset) / mcl_vars.chunksize)
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param pos Vector
|
|
||||||
---@return Vector
|
|
||||||
function mcl_vars.pos_to_block(pos)
|
function mcl_vars.pos_to_block(pos)
|
||||||
return vector.new(
|
return {
|
||||||
coordinate_to_block(pos.x),
|
x = coordinate_to_block(pos.x),
|
||||||
coordinate_to_block(pos.y),
|
y = coordinate_to_block(pos.y),
|
||||||
coordinate_to_block(pos.z)
|
z = coordinate_to_block(pos.z)
|
||||||
)
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param pos Vector
|
|
||||||
---@return Vector
|
|
||||||
function mcl_vars.pos_to_chunk(pos)
|
function mcl_vars.pos_to_chunk(pos)
|
||||||
return vector.new(
|
return {
|
||||||
coordinate_to_chunk(pos.x),
|
x = coordinate_to_chunk(pos.x),
|
||||||
coordinate_to_chunk(pos.y),
|
y = coordinate_to_chunk(pos.y),
|
||||||
coordinate_to_chunk(pos.z)
|
z = coordinate_to_chunk(pos.z)
|
||||||
)
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
local k_positive = math.ceil(mcl_vars.MAX_MAP_GENERATION_LIMIT / mcl_vars.chunk_size_in_nodes)
|
local k_positive = math.ceil(mcl_vars.MAX_MAP_GENERATION_LIMIT / mcl_vars.chunk_size_in_nodes)
|
||||||
local k_positive_z = k_positive * 2
|
local k_positive_z = k_positive * 2
|
||||||
local k_positive_y = k_positive_z * k_positive_z
|
local k_positive_y = k_positive_z * k_positive_z
|
||||||
|
|
||||||
---@param pos Vector
|
|
||||||
---@return integer
|
|
||||||
function mcl_vars.get_chunk_number(pos) -- unsigned int
|
function mcl_vars.get_chunk_number(pos) -- unsigned int
|
||||||
local c = mcl_vars.pos_to_chunk(pos)
|
local c = mcl_vars.pos_to_chunk(pos)
|
||||||
return (c.y + k_positive) * k_positive_y +
|
return
|
||||||
|
(c.y + k_positive) * k_positive_y +
|
||||||
(c.z + k_positive) * k_positive_z +
|
(c.z + k_positive) * k_positive_z +
|
||||||
c.x + k_positive
|
c.x + k_positive
|
||||||
end
|
end
|
||||||
|
@ -131,8 +117,11 @@ elseif singlenode then
|
||||||
mcl_vars.mg_bedrock_is_rough = false
|
mcl_vars.mg_bedrock_is_rough = false
|
||||||
else
|
else
|
||||||
-- Classic superflat
|
-- Classic superflat
|
||||||
local ground = tonumber(minetest.get_mapgen_setting("mgflat_ground_level")) or 8
|
local ground = minetest.get_mapgen_setting("mgflat_ground_level")
|
||||||
|
ground = tonumber(ground)
|
||||||
|
if not ground then
|
||||||
|
ground = 8
|
||||||
|
end
|
||||||
mcl_vars.mg_overworld_min = ground - 3
|
mcl_vars.mg_overworld_min = ground - 3
|
||||||
mcl_vars.mg_overworld_max_official = mcl_vars.mg_overworld_min + minecraft_height_limit
|
mcl_vars.mg_overworld_max_official = mcl_vars.mg_overworld_min + minecraft_height_limit
|
||||||
mcl_vars.mg_bedrock_overworld_min = mcl_vars.mg_overworld_min
|
mcl_vars.mg_bedrock_overworld_min = mcl_vars.mg_overworld_min
|
||||||
|
@ -149,7 +138,6 @@ mcl_vars.mg_nether_min = -29067 -- Carefully chosen to be at a mapchunk border
|
||||||
mcl_vars.mg_nether_max = mcl_vars.mg_nether_min + 128
|
mcl_vars.mg_nether_max = mcl_vars.mg_nether_min + 128
|
||||||
mcl_vars.mg_bedrock_nether_bottom_min = mcl_vars.mg_nether_min
|
mcl_vars.mg_bedrock_nether_bottom_min = mcl_vars.mg_nether_min
|
||||||
mcl_vars.mg_bedrock_nether_top_max = mcl_vars.mg_nether_max
|
mcl_vars.mg_bedrock_nether_top_max = mcl_vars.mg_nether_max
|
||||||
mcl_vars.mg_nether_deco_max = mcl_vars.mg_nether_max -11 -- this is so ceiling decorations don't spill into other biomes as bedrock generation calls minetest.generate_decorations to put netherrack under the bedrock
|
|
||||||
if not superflat then
|
if not superflat then
|
||||||
mcl_vars.mg_bedrock_nether_bottom_max = mcl_vars.mg_bedrock_nether_bottom_min + 4
|
mcl_vars.mg_bedrock_nether_bottom_max = mcl_vars.mg_bedrock_nether_bottom_min + 4
|
||||||
mcl_vars.mg_bedrock_nether_top_min = mcl_vars.mg_bedrock_nether_top_max - 4
|
mcl_vars.mg_bedrock_nether_top_min = mcl_vars.mg_bedrock_nether_top_max - 4
|
||||||
|
@ -174,8 +162,7 @@ end
|
||||||
mcl_vars.mg_end_min = -27073 -- Carefully chosen to be at a mapchunk border
|
mcl_vars.mg_end_min = -27073 -- Carefully chosen to be at a mapchunk border
|
||||||
mcl_vars.mg_end_max_official = mcl_vars.mg_end_min + minecraft_height_limit
|
mcl_vars.mg_end_max_official = mcl_vars.mg_end_min + minecraft_height_limit
|
||||||
mcl_vars.mg_end_max = mcl_vars.mg_overworld_min - 2000
|
mcl_vars.mg_end_max = mcl_vars.mg_overworld_min - 2000
|
||||||
mcl_vars.mg_end_platform_pos = { x = 100, y = mcl_vars.mg_end_min + 64, z = 0 }
|
mcl_vars.mg_end_platform_pos = { x = 100, y = mcl_vars.mg_end_min + 74, z = 0 }
|
||||||
mcl_vars.mg_end_exit_portal_pos = vector.new(0, mcl_vars.mg_end_min + 71, 0)
|
|
||||||
|
|
||||||
-- Realm barrier used to safely separate the End from the void below the Overworld
|
-- Realm barrier used to safely separate the End from the void below the Overworld
|
||||||
mcl_vars.mg_realm_barrier_overworld_end_max = mcl_vars.mg_end_max
|
mcl_vars.mg_realm_barrier_overworld_end_max = mcl_vars.mg_end_max
|
||||||
|
@ -192,8 +179,6 @@ minetest.craftitemdef_default.stack_max = 64
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
|
|
||||||
local chunks = {} -- intervals of chunks generated
|
local chunks = {} -- intervals of chunks generated
|
||||||
|
|
||||||
---@param pos Vector
|
|
||||||
function mcl_vars.add_chunk(pos)
|
function mcl_vars.add_chunk(pos)
|
||||||
local n = mcl_vars.get_chunk_number(pos) -- unsigned int
|
local n = mcl_vars.get_chunk_number(pos) -- unsigned int
|
||||||
local prev
|
local prev
|
||||||
|
@ -220,9 +205,6 @@ function mcl_vars.add_chunk(pos)
|
||||||
end
|
end
|
||||||
chunks[#chunks+1] = {n, n}
|
chunks[#chunks+1] = {n, n}
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param pos Vector
|
|
||||||
---@return boolean
|
|
||||||
function mcl_vars.is_generated(pos)
|
function mcl_vars.is_generated(pos)
|
||||||
local n = mcl_vars.get_chunk_number(pos) -- unsigned int
|
local n = mcl_vars.get_chunk_number(pos) -- unsigned int
|
||||||
for i, d in pairs(chunks) do
|
for i, d in pairs(chunks) do
|
||||||
|
@ -233,46 +215,47 @@ function mcl_vars.is_generated(pos)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
---"Trivial" (actually NOT) function to just read the node and some stuff to not just return "ignore", like mt 5.4 does.
|
-- "Trivial" (actually NOT) function to just read the node and some stuff to not just return "ignore", like mt 5.4 does.
|
||||||
---@param pos Vector Position, if it's wrong, `{name="error"}` node will return.
|
-- p: Position, if it's wrong, {name="error"} node will return.
|
||||||
---@param force? boolean Optional (default: `false`), Do the maximum to still read the node within us_timeout.
|
-- force: optional (default: false) - Do the maximum to still read the node within us_timeout.
|
||||||
---@param us_timeout? number Optional (default: `244 = 0.000244 s = 1/80/80/80`), set it at least to `3000000` to let mapgen to finish its job
|
-- us_timeout: optional (default: 244 = 0.000244 s = 1/80/80/80), set it at least to 3000000 to let mapgen to finish its job.
|
||||||
---@return node # Node definition, eg. `{name="air"}`. Unfortunately still can return `{name="ignore"}`.
|
--
|
||||||
---@nodiscard
|
-- returns node definition, eg. {name="air"}. Unfortunately still can return {name="ignore"}.
|
||||||
function mcl_vars.get_node(pos, force, us_timeout)
|
function mcl_vars.get_node(p, force, us_timeout)
|
||||||
-- check initial circumstances
|
-- check initial circumstances
|
||||||
if not pos or not pos.x or not pos.y or not pos.z then return { name = "error" } end
|
if not p or not p.x or not p.y or not p.z then return {name="error"} end
|
||||||
|
|
||||||
-- try common way
|
-- try common way
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(p)
|
||||||
if node.name ~= "ignore" then
|
if node.name ~= "ignore" then
|
||||||
return node
|
return node
|
||||||
end
|
end
|
||||||
|
|
||||||
-- copy vector to get sure it won't changed by other threads
|
-- copy table to get sure it won't changed by other threads
|
||||||
local pos_copy = vector.copy(pos)
|
local pos = {x=p.x,y=p.y,z=p.z}
|
||||||
|
|
||||||
-- try LVM
|
-- try LVM
|
||||||
minetest.get_voxel_manip():read_from_map(pos_copy, pos_copy)
|
minetest.get_voxel_manip():read_from_map(pos, pos)
|
||||||
node = minetest.get_node(pos_copy)
|
node = minetest.get_node(pos)
|
||||||
if node.name ~= "ignore" or not force then
|
if node.name ~= "ignore" or not force then
|
||||||
return node
|
return node
|
||||||
end
|
end
|
||||||
|
|
||||||
-- all ways failed - need to emerge (or forceload if generated)
|
-- all ways failed - need to emerge (or forceload if generated)
|
||||||
if mcl_vars.is_generated(pos_copy) then
|
local us_timeout = us_timeout or 244
|
||||||
|
if mcl_vars.is_generated(pos) then
|
||||||
minetest.chat_send_all("IMPOSSIBLE! Please report this to MCL2 issue tracker!")
|
minetest.chat_send_all("IMPOSSIBLE! Please report this to MCL2 issue tracker!")
|
||||||
minetest.forceload_block(pos_copy)
|
minetest.forceload_block(pos)
|
||||||
else
|
else
|
||||||
minetest.emerge_area(pos_copy, pos_copy)
|
minetest.emerge_area(pos, pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
local t = minetest.get_us_time()
|
local t = minetest.get_us_time()
|
||||||
|
|
||||||
node = minetest.get_node(pos_copy)
|
node = minetest.get_node(pos)
|
||||||
|
|
||||||
while (not node or node.name == "ignore") and (minetest.get_us_time() - t < (us_timeout or 244)) do
|
while (not node or node.name == "ignore") and (minetest.get_us_time() - t < us_timeout) do
|
||||||
node = minetest.get_node(pos_copy)
|
node = minetest.get_node(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
return node
|
return node
|
||||||
|
|
|
@ -40,9 +40,10 @@ function mcl_loot.get_loot(loot_definitions, pr)
|
||||||
total_weight = total_weight + (loot_definitions.items[i].weight or 1)
|
total_weight = total_weight + (loot_definitions.items[i].weight or 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
--local stacks_min = loot_definitions.stacks_min or 1
|
local stacks_min = loot_definitions.stacks_min
|
||||||
--local stacks_max = loot_definitions.stacks_max or 1
|
local stacks_max = loot_definitions.stacks_max
|
||||||
|
if not stacks_min then stacks_min = 1 end
|
||||||
|
if not stacks_max then stacks_max = 1 end
|
||||||
local stacks = pr:next(loot_definitions.stacks_min, loot_definitions.stacks_max)
|
local stacks = pr:next(loot_definitions.stacks_min, loot_definitions.stacks_max)
|
||||||
for s=1, stacks do
|
for s=1, stacks do
|
||||||
local r = pr:next(1, total_weight)
|
local r = pr:next(1, total_weight)
|
||||||
|
@ -58,27 +59,26 @@ function mcl_loot.get_loot(loot_definitions, pr)
|
||||||
end
|
end
|
||||||
if item then
|
if item then
|
||||||
local itemstring = item.itemstring
|
local itemstring = item.itemstring
|
||||||
|
local itemstack = item.itemstack
|
||||||
if itemstring then
|
if itemstring then
|
||||||
local stack = ItemStack(itemstring)
|
|
||||||
|
|
||||||
if item.amount_min and item.amount_max then
|
if item.amount_min and item.amount_max then
|
||||||
stack:set_count(pr:next(item.amount_min, item.amount_max))
|
itemstring = itemstring .. " " .. pr:next(item.amount_min, item.amount_max)
|
||||||
end
|
end
|
||||||
|
|
||||||
if item.wear_min and item.wear_max then
|
if item.wear_min and item.wear_max then
|
||||||
-- Sadly, PseudoRandom only allows very narrow ranges, so we set wear in steps of 10
|
-- Sadly, PseudoRandom only allows very narrow ranges, so we set wear in steps of 10
|
||||||
local wear_min = math.floor(item.wear_min / 10)
|
local wear_min = math.floor(item.wear_min / 10)
|
||||||
local wear_max = math.floor(item.wear_max / 10)
|
local wear_max = math.floor(item.wear_max / 10)
|
||||||
|
local wear = pr:next(wear_min, wear_max) * 10
|
||||||
|
|
||||||
stack:set_wear(pr:next(wear_min, wear_max) * 10)
|
if not item.amount_min and not item.amount_max then
|
||||||
|
itemstring = itemstring .. " 1"
|
||||||
end
|
end
|
||||||
|
|
||||||
if item.func then
|
itemstring = itemstring .. " " .. tostring(wear)
|
||||||
item.func(stack, pr)
|
|
||||||
end
|
end
|
||||||
|
table.insert(items, itemstring)
|
||||||
table.insert(items, stack)
|
elseif itemstack then
|
||||||
|
table.insert(items, itemstack)
|
||||||
else
|
else
|
||||||
minetest.log("error", "[mcl_loot] INTERNAL ERROR! Failed to select random loot item!")
|
minetest.log("error", "[mcl_loot] INTERNAL ERROR! Failed to select random loot item!")
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,12 +1,3 @@
|
||||||
local vector = vector
|
|
||||||
local table = table
|
|
||||||
|
|
||||||
local hash_node_position = minetest.hash_node_position
|
|
||||||
local add_particlespawner = minetest.add_particlespawner
|
|
||||||
local delete_particlespawner = minetest.delete_particlespawner
|
|
||||||
|
|
||||||
local ipairs = ipairs
|
|
||||||
|
|
||||||
mcl_particles = {}
|
mcl_particles = {}
|
||||||
|
|
||||||
-- Table of particlespawner IDs on a per-node hash basis
|
-- Table of particlespawner IDs on a per-node hash basis
|
||||||
|
@ -41,11 +32,11 @@ function mcl_particles.add_node_particlespawner(pos, particlespawner_definition,
|
||||||
if allowed_level == 0 or levels[level] > allowed_level then
|
if allowed_level == 0 or levels[level] > allowed_level then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local poshash = hash_node_position(pos)
|
local poshash = minetest.hash_node_position(pos)
|
||||||
if not poshash then
|
if not poshash then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local id = add_particlespawner(particlespawner_definition)
|
local id = minetest.add_particlespawner(particlespawner_definition)
|
||||||
if id == -1 then
|
if id == -1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -56,8 +47,6 @@ function mcl_particles.add_node_particlespawner(pos, particlespawner_definition,
|
||||||
return id
|
return id
|
||||||
end
|
end
|
||||||
|
|
||||||
local add_node_particlespawner = mcl_particles.add_node_particlespawner
|
|
||||||
|
|
||||||
-- Deletes all particlespawners that are assigned to a node position.
|
-- Deletes all particlespawners that are assigned to a node position.
|
||||||
-- If no particlespawners exist for this position, nothing happens.
|
-- If no particlespawners exist for this position, nothing happens.
|
||||||
-- pos: Node positon. MUST use integer values!
|
-- pos: Node positon. MUST use integer values!
|
||||||
|
@ -66,11 +55,11 @@ function mcl_particles.delete_node_particlespawners(pos)
|
||||||
if allowed_level == 0 then
|
if allowed_level == 0 then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local poshash = hash_node_position(pos)
|
local poshash = minetest.hash_node_position(pos)
|
||||||
local ids = particle_nodes[poshash]
|
local ids = particle_nodes[poshash]
|
||||||
if ids then
|
if ids then
|
||||||
for i=1, #ids do
|
for i=1, #ids do
|
||||||
delete_particlespawner(ids[i])
|
minetest.delete_particlespawner(ids[i])
|
||||||
end
|
end
|
||||||
particle_nodes[poshash] = nil
|
particle_nodes[poshash] = nil
|
||||||
return true
|
return true
|
||||||
|
@ -83,6 +72,7 @@ end
|
||||||
local smoke_pdef_cached = {}
|
local smoke_pdef_cached = {}
|
||||||
|
|
||||||
function mcl_particles.spawn_smoke(pos, name, smoke_pdef_base)
|
function mcl_particles.spawn_smoke(pos, name, smoke_pdef_base)
|
||||||
|
local min = math.min
|
||||||
local new_minpos = vector.add(pos, smoke_pdef_base.minrelpos)
|
local new_minpos = vector.add(pos, smoke_pdef_base.minrelpos)
|
||||||
local new_maxpos = vector.add(pos, smoke_pdef_base.maxrelpos)
|
local new_maxpos = vector.add(pos, smoke_pdef_base.maxrelpos)
|
||||||
|
|
||||||
|
@ -91,7 +81,7 @@ function mcl_particles.spawn_smoke(pos, name, smoke_pdef_base)
|
||||||
for i, smoke_pdef in ipairs(smoke_pdef_cached[name]) do
|
for i, smoke_pdef in ipairs(smoke_pdef_cached[name]) do
|
||||||
smoke_pdef.minpos = new_minpos
|
smoke_pdef.minpos = new_minpos
|
||||||
smoke_pdef.maxpos = new_maxpos
|
smoke_pdef.maxpos = new_maxpos
|
||||||
add_node_particlespawner(pos, smoke_pdef, "high")
|
mcl_particles.add_node_particlespawner(pos, smoke_pdef, "high")
|
||||||
end
|
end
|
||||||
-- cache already populated
|
-- cache already populated
|
||||||
else
|
else
|
||||||
|
@ -121,9 +111,11 @@ function mcl_particles.spawn_smoke(pos, name, smoke_pdef_base)
|
||||||
smoke_pdef.animation.length = exptime + 0.1
|
smoke_pdef.animation.length = exptime + 0.1
|
||||||
-- minexptime must be set such that the last frame is actully rendered,
|
-- minexptime must be set such that the last frame is actully rendered,
|
||||||
-- even if its very short. Larger exptime -> larger range
|
-- even if its very short. Larger exptime -> larger range
|
||||||
smoke_pdef.minexptime = math.min(exptime, (7.0/8.0 * (exptime + 0.1) + 0.1))
|
smoke_pdef.minexptime = min(exptime, (7.0/8.0 * (exptime + 0.1) + 0.1))
|
||||||
smoke_pdef.texture = "mcl_particles_smoke_anim.png^[colorize:#000000:" ..colorize
|
smoke_pdef.texture = "mcl_particles_smoke_anim.png^[colorize:#000000:" ..colorize
|
||||||
add_node_particlespawner(pos, smoke_pdef, "high")
|
|
||||||
|
mcl_particles.add_node_particlespawner(pos, smoke_pdef, "high")
|
||||||
|
|
||||||
table.insert(smoke_pdef_cached[name], table.copy(smoke_pdef))
|
table.insert(smoke_pdef_cached[name], table.copy(smoke_pdef))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 165 B |
|
@ -18,15 +18,35 @@ Glass breaking sounds (CC BY 3.0):
|
||||||
default_tool_breaks.ogg by EdgardEdition (CC BY 3.0), http://www.freesound.org/people/EdgardEdition
|
default_tool_breaks.ogg by EdgardEdition (CC BY 3.0), http://www.freesound.org/people/EdgardEdition
|
||||||
|
|
||||||
Mito551 (sounds) (CC BY-SA 3.0):
|
Mito551 (sounds) (CC BY-SA 3.0):
|
||||||
default_dig_crumbly.ogg
|
default_dig_choppy.ogg
|
||||||
|
default_dig_cracky.ogg
|
||||||
|
default_dig_crumbly.1.ogg
|
||||||
|
default_dig_crumbly.2.ogg
|
||||||
default_dig_oddly_breakable_by_hand.ogg
|
default_dig_oddly_breakable_by_hand.ogg
|
||||||
default_dug_node.*.ogg
|
default_dug_node.1.ogg
|
||||||
default_grass_footstep.*.ogg
|
default_dug_node.2.ogg
|
||||||
default_gravel_footstep.*.ogg
|
default_grass_footstep.1.ogg
|
||||||
default_place_node.*.ogg
|
default_grass_footstep.2.ogg
|
||||||
default_place_node_hard.*.ogg
|
default_grass_footstep.3.ogg
|
||||||
default_wood_footstep.*.ogg
|
default_gravel_footstep.1.ogg
|
||||||
default_dirt_footstep.*.ogg
|
default_gravel_footstep.2.ogg
|
||||||
|
default_gravel_footstep.3.ogg
|
||||||
|
default_gravel_footstep.4.ogg
|
||||||
|
default_grass_footstep.1.ogg
|
||||||
|
default_place_node.1.ogg
|
||||||
|
default_place_node.2.ogg
|
||||||
|
default_place_node.3.ogg
|
||||||
|
default_place_node_hard.1.ogg
|
||||||
|
default_place_node_hard.2.ogg
|
||||||
|
default_hard_footstep.1.ogg
|
||||||
|
default_hard_footstep.2.ogg
|
||||||
|
default_hard_footstep.3.ogg
|
||||||
|
default_sand_footstep.1.ogg
|
||||||
|
default_sand_footstep.2.ogg
|
||||||
|
default_wood_footstep.1.ogg
|
||||||
|
default_wood_footstep.2.ogg
|
||||||
|
default_dirt_footstep.1.ogg
|
||||||
|
default_dirt_footstep.2.ogg
|
||||||
default_glass_footstep.ogg
|
default_glass_footstep.ogg
|
||||||
|
|
||||||
Metal sounds:
|
Metal sounds:
|
||||||
|
@ -34,64 +54,35 @@ Metal sounds:
|
||||||
- https://www.freesound.org/people/yadronoff/sounds/320397/
|
- https://www.freesound.org/people/yadronoff/sounds/320397/
|
||||||
default_dug_metal.*.ogg - Iwan Gabovitch - qubodup - CC0
|
default_dug_metal.*.ogg - Iwan Gabovitch - qubodup - CC0
|
||||||
- http://opengameart.org/users/qubodup
|
- http://opengameart.org/users/qubodup
|
||||||
default_metal_footstep.*.ogg - (CC0 1.0) - CC0 1.0
|
default_metal_footstep.*.ogg - Ottomaani138 - CC0
|
||||||
- https://freesound.org/people/mypantsfelldown/sounds/398937/
|
- https://www.freesound.org/people/Ottomaani138/sounds/232692/
|
||||||
default_place_node_metal.*.ogg - Ogrebane - CC0
|
default_place_node_metal.*.ogg - Ogrebane - CC0
|
||||||
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
|
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
|
||||||
|
|
||||||
AGFX (CC BY 3.0):
|
AGFX (CC BY 3.0)
|
||||||
https://www.freesound.org/people/AGFX/packs/1253/
|
https://www.freesound.org/people/AGFX/packs/1253/
|
||||||
default_water_footstep.*.ogg
|
default_water_footstep.1.ogg
|
||||||
|
default_water_footstep.2.ogg
|
||||||
|
default_water_footstep.3.ogg
|
||||||
|
(default_water_footstep.4.ogg is silent)
|
||||||
|
|
||||||
blukotek (CC0 1.0):
|
blukotek (CC0 1.0)
|
||||||
https://www.freesound.org/people/blukotek/sounds/251660/
|
https://www.freesound.org/people/blukotek/sounds/251660/
|
||||||
default_dig_snappy.ogg
|
default_dig_snappy.ogg
|
||||||
|
|
||||||
sonictechtonic (CC BY 3.0):
|
sonictechtonic (CC BY 3.0)
|
||||||
https://www.freesound.org/people/sonictechtonic/sounds/241872/
|
https://www.freesound.org/people/sonictechtonic/sounds/241872/
|
||||||
player_damage.ogg
|
player_damage.ogg
|
||||||
|
|
||||||
Sheyvan (CC0 1.0):
|
Voxelands project <http://www.voxelands.com/> (CC BY-SA 3.0)
|
||||||
https://freesound.org/people/Sheyvan/sounds/476113/
|
|
||||||
default_dig_choppy.*.ogg
|
|
||||||
|
|
||||||
lolamadeus (CC0 1.0):
|
|
||||||
https://freesound.org/people/lolamadeus/sounds/179341/
|
|
||||||
default_gravel_dig.*.ogg
|
|
||||||
default_gravel_dug.*.ogg
|
|
||||||
|
|
||||||
Benboncan (CC BY 3.0):
|
|
||||||
https://freesound.org/people/Benboncan/sounds/71823/
|
|
||||||
default_dig_cracky.*.ogg
|
|
||||||
|
|
||||||
Erdie (CC BY 3.0):
|
|
||||||
https://freesound.org/people/Erdie/sounds/41579/
|
|
||||||
default_hard_footstep.*.ogg
|
|
||||||
|
|
||||||
worthahep88 (CC0 1.0):
|
|
||||||
https://freesound.org/people/worthahep88/sounds/319224/
|
|
||||||
default_sand_footstep.*.ogg
|
|
||||||
|
|
||||||
dheming (CC BY 3.0):
|
|
||||||
https://freesound.org/people/dheming/sounds/268023/
|
|
||||||
default_ice_dig.*.ogg
|
|
||||||
|
|
||||||
InspectorJ (CC BY 3.0):
|
|
||||||
https://freesound.org/people/InspectorJ/sounds/416967/
|
|
||||||
default_ice_footstep.*.ogg
|
|
||||||
|
|
||||||
Angel_Perez_Grandi (CC BY 3.0):
|
|
||||||
https://freesound.org/people/Angel_Perez_Grandi/sounds/49190/
|
|
||||||
default_ice_dug.ogg
|
|
||||||
|
|
||||||
Voxelands project <http://www.voxelands.com/> (CC BY-SA 3.0):
|
|
||||||
mcl_sounds_place_node_water.ogg
|
mcl_sounds_place_node_water.ogg
|
||||||
mcl_sounds_dug_water.ogg
|
mcl_sounds_dug_water.ogg
|
||||||
|
|
||||||
(Note: Artists from the Voxelands project include: sdzen, darkrose, sapier,
|
(Note: Artists from the Voxelands project include: sdzen, darkrose, sapier,
|
||||||
Tom Peter, Telaron, juskiddink)
|
Tom Peter, Telaron, juskiddink)
|
||||||
|
|
||||||
Michel Baradari <https://opengameart.org/content/lava-splash> (CC BY 3.0):
|
Michel Baradari <https://opengameart.org/content/lava-splash> (CC BY 3.0)
|
||||||
|
|
||||||
default_place_node_lava.ogg
|
default_place_node_lava.ogg
|
||||||
|
|
||||||
Adam_N (CC0 1.0):
|
Adam_N (CC0 1.0):
|
||||||
|
@ -99,7 +90,7 @@ Adam_N (CC0 1.0):
|
||||||
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>
|
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>
|
||||||
|
|
||||||
Alecia Shepherd (CC BY-SA 4.0):
|
Alecia Shepherd (CC BY-SA 4.0):
|
||||||
mcl_sounds_cloth.*.ogg
|
mcl_sounds_cloth.ogg
|
||||||
Source: SnowSong sound and music pack <https://opengameart.org/content/snowsong-sound-and-music-pack>
|
Source: SnowSong sound and music pack <https://opengameart.org/content/snowsong-sound-and-music-pack>
|
||||||
|
|
||||||
Unknown authors (WTFPL):
|
Unknown authors (WTFPL):
|
||||||
|
|
|
@ -11,7 +11,7 @@ function mcl_sounds.node_sound_defaults(table)
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_dug_node", gain=0.25}
|
{name="default_dug_node", gain=0.25}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_oddly_breakable_by_hand", gain=0.5}
|
{name="default_dig_oddly_breakable_by_hand", gain=1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node_hard", gain=1.0}
|
{name="default_place_node_hard", gain=1.0}
|
||||||
return table
|
return table
|
||||||
|
@ -20,11 +20,11 @@ end
|
||||||
function mcl_sounds.node_sound_stone_defaults(table)
|
function mcl_sounds.node_sound_stone_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_hard_footstep", gain=0.2}
|
{name="default_hard_footstep", gain=0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_hard_footstep", gain=1.0}
|
{name="default_hard_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_cracky", gain=0.5}
|
{name="default_dig_cracky", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
@ -32,13 +32,13 @@ end
|
||||||
function mcl_sounds.node_sound_metal_defaults(table)
|
function mcl_sounds.node_sound_metal_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_metal_footstep", gain=0.2}
|
{name="default_metal_footstep", gain=0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_dug_metal", gain=0.5}
|
{name="default_dug_metal", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_metal", gain=0.5}
|
{name="default_dig_metal", gain=1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node_metal", gain=0.5}
|
{name="default_place_node_metal", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
@ -46,11 +46,11 @@ end
|
||||||
function mcl_sounds.node_sound_dirt_defaults(table)
|
function mcl_sounds.node_sound_dirt_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_dirt_footstep", gain=0.25}
|
|
||||||
table.dug = table.dug or
|
|
||||||
{name="default_dirt_footstep", gain=1.0}
|
{name="default_dirt_footstep", gain=1.0}
|
||||||
|
table.dug = table.dug or
|
||||||
|
{name="default_dirt_footstep", gain=1.5}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_crumbly", gain=0.4}
|
{name="default_dig_crumbly", gain=1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node", gain=1.0}
|
{name="default_place_node", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
@ -60,25 +60,11 @@ end
|
||||||
function mcl_sounds.node_sound_sand_defaults(table)
|
function mcl_sounds.node_sound_sand_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_sand_footstep", gain=0.05}
|
{name="default_sand_footstep", gain=0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_sand_footstep", gain=0.15}
|
{name="default_sand_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_crumbly", gain=0.4}
|
{name="default_dig_crumbly", gain=1.0}
|
||||||
table.place = table.place or
|
|
||||||
{name="default_place_node", gain=1.0}
|
|
||||||
mcl_sounds.node_sound_defaults(table)
|
|
||||||
return table
|
|
||||||
end
|
|
||||||
|
|
||||||
function mcl_sounds.node_sound_gravel_defaults(table)
|
|
||||||
table = table or {}
|
|
||||||
table.footstep = table.footstep or
|
|
||||||
{name="default_gravel_footstep", gain=0.25}
|
|
||||||
table.dug = table.dug or
|
|
||||||
{name="default_gravel_dug", gain=1.0}
|
|
||||||
table.dig = table.dig or
|
|
||||||
{name="default_gravel_dig", gain=0.35}
|
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node", gain=1.0}
|
{name="default_place_node", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
@ -92,33 +78,21 @@ function mcl_sounds.node_sound_snow_defaults(table)
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="pedology_snow_soft_footstep", gain=1.0}
|
{name="pedology_snow_soft_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="pedology_snow_soft_footstep", gain=1.0}
|
{name="default_dig_crumbly", gain=1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node", gain=1.0}
|
{name="default_place_node", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_sounds.node_sound_ice_defaults(table)
|
|
||||||
table = table or {}
|
|
||||||
table.footstep = table.footstep or
|
|
||||||
{name="default_ice_footstep", gain=0.15}
|
|
||||||
table.dug = table.dug or
|
|
||||||
{name="default_ice_dug", gain=0.5}
|
|
||||||
table.dig = table.dig or
|
|
||||||
{name="default_ice_dig", gain=0.5}
|
|
||||||
mcl_sounds.node_sound_defaults(table)
|
|
||||||
return table
|
|
||||||
end
|
|
||||||
|
|
||||||
function mcl_sounds.node_sound_wood_defaults(table)
|
function mcl_sounds.node_sound_wood_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_wood_footstep", gain=0.15}
|
{name="default_wood_footstep", gain=0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_wood_footstep", gain=1.0}
|
{name="default_wood_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_choppy", gain=0.4}
|
{name="default_dig_choppy", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
@ -154,11 +128,11 @@ end
|
||||||
function mcl_sounds.node_sound_glass_defaults(table)
|
function mcl_sounds.node_sound_glass_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_glass_footstep", gain=0.3}
|
{name="default_glass_footstep", gain=0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_break_glass", gain=1.0}
|
{name="default_break_glass", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_cracky", gain=0.5}
|
{name="default_dig_cracky", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|