forked from VoxeLibre/VoxeLibre
Compare commits
1 Commits
master
...
archaeolog
Author | SHA1 | Date |
---|---|---|
Mikita Wiśniewski | cb684521cc |
|
@ -6,5 +6,6 @@
|
||||||
/.idea/
|
/.idea/
|
||||||
*.xcf
|
*.xcf
|
||||||
.Rproj.user
|
.Rproj.user
|
||||||
prompt.txt
|
|
||||||
__pycache__
|
# Windows Thumbnail Cache
|
||||||
|
Thumbs.db
|
||||||
|
|
22
.luacheckrc
22
.luacheckrc
|
@ -1,12 +1,10 @@
|
||||||
---@diagnostic disable
|
|
||||||
|
|
||||||
unused_args = false
|
unused_args = false
|
||||||
allow_defined_top = true
|
allow_defined_top = true
|
||||||
max_line_length = false
|
max_line_length = false
|
||||||
redefined = false
|
redefined = false
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"minetest", "core",
|
"minetest", "core",
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
|
@ -42,16 +40,16 @@ read_globals = {
|
||||||
"factorial"
|
"factorial"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
------
|
------
|
||||||
--MODS
|
--MODS
|
||||||
------
|
------
|
||||||
|
|
||||||
--GENERAL
|
--GENERAL
|
||||||
"default",
|
"default",
|
||||||
|
|
||||||
--ENTITIES
|
--ENTITIES
|
||||||
"cmi",
|
"cmi",
|
||||||
|
|
||||||
--HUD
|
--HUD
|
||||||
"sfinv", "sfinv_buttons", "unified_inventory", "cmsg", "inventory_plus",
|
"sfinv", "sfinv_buttons", "unified_inventory", "cmsg", "inventory_plus",
|
||||||
}
|
}
|
22
.luarc.json
22
.luarc.json
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
"runtime.version": "LuaJIT",
|
|
||||||
"diagnostics": { "disable": ["lowercase-global"] },
|
|
||||||
"diagnostics.globals": [
|
|
||||||
"minetest",
|
|
||||||
"dump",
|
|
||||||
"dump2",
|
|
||||||
"Raycast",
|
|
||||||
"Settings",
|
|
||||||
"PseudoRandom",
|
|
||||||
"PerlinNoise",
|
|
||||||
"VoxelManip",
|
|
||||||
"SecureRandom",
|
|
||||||
"VoxelArea",
|
|
||||||
"PerlinNoiseMap",
|
|
||||||
"PcgRandom",
|
|
||||||
"ItemStack",
|
|
||||||
"AreaStore",
|
|
||||||
"vector"
|
|
||||||
],
|
|
||||||
"workspace.ignoreDir": [".luacheckrc"]
|
|
||||||
}
|
|
32
CREDITS.md
32
CREDITS.md
|
@ -8,32 +8,30 @@
|
||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
* AncientMariner
|
* AncientMariner
|
||||||
* Herowl
|
* Nicu
|
||||||
|
|
||||||
## Previous Maintainers
|
## Previous Maintainers
|
||||||
* Fleckenstein
|
* Fleckenstein
|
||||||
* cora
|
* cora
|
||||||
* Nicu
|
|
||||||
|
|
||||||
## Developers
|
## Developers
|
||||||
* AFCMS
|
* AFCMS
|
||||||
* epCode
|
* epCode
|
||||||
* chmodsayshello
|
* chmodsayshello
|
||||||
|
* PrairieWind
|
||||||
* MrRar
|
* MrRar
|
||||||
* FossFanatic
|
* FossFanatic
|
||||||
* SmokeyDope
|
* SmokeyDope
|
||||||
* Faerraven / Michieal
|
|
||||||
* Codiac
|
|
||||||
|
|
||||||
## Past Developers
|
## Past Developers
|
||||||
* jordan4ibanez
|
* jordan4ibanez
|
||||||
* iliekprogrammar
|
* iliekprogrammar
|
||||||
* kabou
|
* kabou
|
||||||
* kay27
|
* kay27
|
||||||
|
* Faerraven / Michieal
|
||||||
* MysticTempest
|
* MysticTempest
|
||||||
* NO11
|
* NO11
|
||||||
* SumianVoice
|
* SumianVoice
|
||||||
* PrairieWind
|
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
* RandomLegoBrick
|
* RandomLegoBrick
|
||||||
|
@ -114,21 +112,6 @@
|
||||||
* Niterux
|
* Niterux
|
||||||
* appgurueu
|
* appgurueu
|
||||||
* seventeenthShulker
|
* seventeenthShulker
|
||||||
* DinoNuggies4665
|
|
||||||
* basxto
|
|
||||||
* Morik666
|
|
||||||
* Eliy21
|
|
||||||
* mdk
|
|
||||||
* Alessandra Lozoya
|
|
||||||
* VanicGame
|
|
||||||
* ThePython10110
|
|
||||||
* Araca
|
|
||||||
* Montandalar
|
|
||||||
* mim
|
|
||||||
* Dark
|
|
||||||
* Bakawun
|
|
||||||
* JoseDouglas26
|
|
||||||
* Zasco
|
|
||||||
|
|
||||||
## Music
|
## Music
|
||||||
* Jordach for the jukebox music compilation from Big Freaking Dig
|
* Jordach for the jukebox music compilation from Big Freaking Dig
|
||||||
|
@ -172,7 +155,6 @@
|
||||||
* cora
|
* cora
|
||||||
* Faerraven / Michieal
|
* Faerraven / Michieal
|
||||||
* PrairieWind
|
* PrairieWind
|
||||||
* ChrisPHP
|
|
||||||
|
|
||||||
## 3D Models
|
## 3D Models
|
||||||
* 22i
|
* 22i
|
||||||
|
@ -180,7 +162,6 @@
|
||||||
* epCode
|
* epCode
|
||||||
* Faerraven / Michieal
|
* Faerraven / Michieal
|
||||||
* SumianVoice
|
* SumianVoice
|
||||||
* thunder1035
|
|
||||||
|
|
||||||
## Textures
|
## Textures
|
||||||
* XSSheep
|
* XSSheep
|
||||||
|
@ -197,11 +178,8 @@
|
||||||
* Faerraven / Michieal
|
* Faerraven / Michieal
|
||||||
* Nicu
|
* Nicu
|
||||||
* Exhale
|
* Exhale
|
||||||
* Aeonix_Aeon
|
|
||||||
* Wbjitscool
|
* Wbjitscool
|
||||||
* SmokeyDope
|
* SmokeyDope
|
||||||
* thunder1035
|
|
||||||
* Herowl
|
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
* Wuzzy
|
* Wuzzy
|
||||||
|
@ -221,10 +199,6 @@
|
||||||
* Temak
|
* Temak
|
||||||
* megustanlosfrijoles
|
* megustanlosfrijoles
|
||||||
* kbundg
|
* kbundg
|
||||||
* Isaac Dennis
|
|
||||||
* ADLON
|
|
||||||
* Sab Pyrope
|
|
||||||
* JoseDouglas26
|
|
||||||
|
|
||||||
## Funders
|
## Funders
|
||||||
* 40W
|
* 40W
|
||||||
|
|
12
GROUPS.md
12
GROUPS.md
|
@ -170,8 +170,16 @@ These groups are used mostly for informational purposes
|
||||||
* `ammo_bow=1`: Item is used as ammo for bows
|
* `ammo_bow=1`: Item is used as ammo for bows
|
||||||
* `non_combat_armor=1`: Item can be equipped as armor, but is not made for combat (e.g. zombie head, pumpkin)
|
* `non_combat_armor=1`: Item can be equipped as armor, but is not made for combat (e.g. zombie head, pumpkin)
|
||||||
* `container`: Node is a container which physically stores items within and has at least 1 inventory
|
* `container`: Node is a container which physically stores items within and has at least 1 inventory
|
||||||
* `container=1`: Container type, which does not allow hoppers to transfer items
|
* `container=2`: Has one inventory with list name `"main"`. Items can be placed and taken freely
|
||||||
* `container=2`: Items can be placed and taken freely. Can have inventory with list name `"main"` or define `_mcl_hoppers_on_try_pull`, `_mcl_hoppers_on_try_push`, `_mcl_hoppers_on_after_pull`, `_mcl_hoppers_on_after_push` to play along hoppers nicely.
|
* `container=3`: Same as `container=2`, but shulker boxes can not be inserted
|
||||||
|
* `container=4`: Furnace-like, has lists `"src"`, `"fuel"` and `"dst"`.
|
||||||
|
It is expected that this also reacts on `on_timer`;
|
||||||
|
the node timer must be started from other mods when they add into `"src"` or `"fuel"`
|
||||||
|
* `container=5`: Left part of a 2-part horizontal connected container. Both parts have a `"main"` inventory
|
||||||
|
list. Both inventories are considered to belong together. This is used for large chests.
|
||||||
|
* `container=6`: Same as above, but for the right part.
|
||||||
|
* `container=7`: Has inventory list "`main`", no movement allowed
|
||||||
|
* `container=1`: Other/unspecified container type
|
||||||
* `spawn_egg=1`: Spawn egg
|
* `spawn_egg=1`: Spawn egg
|
||||||
|
|
||||||
* `pressure_plate=1`: Pressure plate (off)
|
* `pressure_plate=1`: Pressure plate (off)
|
||||||
|
|
8
LEGAL.md
8
LEGAL.md
|
@ -38,15 +38,11 @@ No non-free licenses are used anywhere.
|
||||||
The textures, unless otherwise noted, are based on the Pixel Perfection resource pack for Minecraft 1.11,
|
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
|
authored by XSSheep. Most textures are verbatim copies, while some textures have been changed or redone
|
||||||
from scratch.
|
from scratch.
|
||||||
The glazed terracotta textures have been created by [MysticTempest](https://github.com/MysticTempest).
|
The glazed terracotta textures have been created by (MysticTempest)[https://github.com/MysticTempest].
|
||||||
Source: <https://www.planetminecraft.com/texture_pack/131pixel-perfection/>
|
Source: <https://www.planetminecraft.com/texture_pack/131pixel-perfection/>
|
||||||
License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)
|
License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)
|
||||||
|
|
||||||
Armor trim models were created by Aeonix_Aeon
|
The main menu images are release under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||||
Source: <https://www.curseforge.com/minecraft/texture-packs/ozocraft-remix>
|
|
||||||
License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
|
||||||
|
|
||||||
The main menu images are released under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
|
||||||
|
|
||||||
All other files, unless mentioned otherwise, fall under:
|
All other files, unless mentioned otherwise, fall under:
|
||||||
Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||||
|
|
23
MODELS.md
23
MODELS.md
|
@ -1,14 +1,13 @@
|
||||||
# Models in Minetest/Mineclone2
|
#Models in Minetest/Mineclone2
|
||||||
|
|
||||||
Models are an important part of all entities & unique nodes in Mineclone2. They provide a 3 dimensional map of an object for which textures are then applied to. This document is for modders, it quickly highlights some important information for the software needed to open models in Mineclone2.
|
Models are an important part of all entities & unique nodes in Mineclone2. They provide a 3 dimensional map of an object for which textures are then applied to. This document is for modders, it quickly highlights some important information for the software needed to open models in Mineclone2.
|
||||||
|
|
||||||
## Minetest Wiki
|
## Minetest Wiki
|
||||||
|
|
||||||
For more detailed information on actually using blender to create and modify models for Minetest/Mineclone2, please visit the Minetest wiki's page on using Blender [Here](https://wiki.minetest.net/Using_Blender)
|
For more detailed information on actually using blender to create and modify models for Minetest/Mineclone2, please visit the Minetest wiki's page on using Blender [Here](https://wiki.minetest.net/Using_Blender)
|
||||||
|
|
||||||
## Recommended software
|
##Recommended software
|
||||||
|
|
||||||
### Blender
|
###Blender
|
||||||
|
|
||||||
Blender is a very popular and free modeling software supported on Windows, MacOS, and most Linux distributions. It is recommended to use Blender to create and modify 3D models within the minetest engine.
|
Blender is a very popular and free modeling software supported on Windows, MacOS, and most Linux distributions. It is recommended to use Blender to create and modify 3D models within the minetest engine.
|
||||||
|
|
||||||
|
@ -20,16 +19,14 @@ Blitz 3D (.b3d) Is one of the main animated model formats used for entities in t
|
||||||
|
|
||||||
The most up to date version of this Blender plugin can be downloaded [Here](https://github.com/GreenXenith/io_scene_b3d/releases/tag/f189786)
|
The most up to date version of this Blender plugin can be downloaded [Here](https://github.com/GreenXenith/io_scene_b3d/releases/tag/f189786)
|
||||||
|
|
||||||
## Types of model formats
|
##Types of model formats
|
||||||
|
|
||||||
### Animated, skinned models
|
|
||||||
|
|
||||||
|
###Animated, skinned models
|
||||||
* Blitz 3D files (.b3d)
|
* Blitz 3D files (.b3d)
|
||||||
|
|
||||||
* Microsoft DirectX (.x) (binary & text, compression is not supported)
|
* Microsoft DirectX (.x) (binary & text, compression is not supported)
|
||||||
|
|
||||||
### Static meshes
|
###Static meshes
|
||||||
|
|
||||||
* Wavefront OBJ (.obj)
|
* Wavefront OBJ (.obj)
|
||||||
|
|
||||||
Note: The sometimes accompanying .mtl files are not supported and can safely be deleted.
|
Note: The sometimes accompanying .mtl files are not supported and can safely be deleted.
|
||||||
|
@ -48,18 +45,16 @@ Note: Do not use .b3d and .x files for static meshes at the moment, Minetest cur
|
||||||
|
|
||||||
Note: Any formats not mentioned above but known to work in the past were removed in 5.5.0 and aren't supported anymore.
|
Note: Any formats not mentioned above but known to work in the past were removed in 5.5.0 and aren't supported anymore.
|
||||||
|
|
||||||
## Pros & Cons of .b3d vs .x
|
##Pros & Cons of .b3d vs .x
|
||||||
|
|
||||||
### B3D
|
|
||||||
|
|
||||||
|
###B3D
|
||||||
* [+] Binary format means a small size
|
* [+] Binary format means a small size
|
||||||
|
|
||||||
* [-] Difficult to postprocess after exporting
|
* [-] Difficult to postprocess after exporting
|
||||||
|
|
||||||
* [-] Difficult to debug problems
|
* [-] Difficult to debug problems
|
||||||
|
|
||||||
### X (text version)
|
###X (text version)
|
||||||
|
|
||||||
* [+] Can be parsed easily with lua scripts
|
* [+] Can be parsed easily with lua scripts
|
||||||
|
|
||||||
* [+] Can be easily generated by scripts
|
* [+] Can be easily generated by scripts
|
||||||
|
|
14
README.md
14
README.md
|
@ -27,7 +27,7 @@ Or you can play in “creative mode” in which you can build almost anything in
|
||||||
## How to play (quick start)
|
## How to play (quick start)
|
||||||
### Getting started
|
### Getting started
|
||||||
* **Punch a tree** trunk until it breaks and collect wood
|
* **Punch a tree** trunk until it breaks and collect wood
|
||||||
* Place the **wood into the 2×2 grid** (your “crafting grid” in your inventory menu) and craft 4 wood planks
|
* Place the **wood into the 2×2 grid** (your “crafting grid” in your inventory menu and craft 4 wood planks
|
||||||
* Place the 4 wood planks in a 2×2 shape in the crafting grid to **make a crafting table**
|
* Place the 4 wood planks in a 2×2 shape in the crafting grid to **make a crafting table**
|
||||||
* **Rightclick the crafting table** for a 3×3 crafting grid to craft more complex things
|
* **Rightclick the crafting table** for a 3×3 crafting grid to craft more complex things
|
||||||
* Use the **crafting guide** (book icon) to learn all the possible crafting recipes
|
* Use the **crafting guide** (book icon) to learn all the possible crafting recipes
|
||||||
|
@ -37,15 +37,15 @@ Or you can play in “creative mode” in which you can build almost anything in
|
||||||
|
|
||||||
### Farming
|
### Farming
|
||||||
* Find seeds
|
* Find seeds
|
||||||
* Craft a hoe
|
* Craft hoe
|
||||||
* Rightclick dirt or a similar block with a hoe to create farmland
|
* Rightclick dirt or similar block with hoe to create farmland
|
||||||
* Place seeds on farmland and watch them grow
|
* Place seeds on farmland and watch them grow
|
||||||
* Collect plants when fully grown
|
* Collect plant when fully grown
|
||||||
* If near water, farmland becomes wet and speeds up growth
|
* If near water, farmland becomes wet and speeds up growth
|
||||||
|
|
||||||
### Furnace
|
### Furnace
|
||||||
* Craft a furnace
|
* Craft furnace
|
||||||
* The furnace allows you to obtain more items
|
* Furnace allows you to obtain more items
|
||||||
* Upper slot must contain a smeltable item (example: iron ore)
|
* Upper slot must contain a smeltable item (example: iron ore)
|
||||||
* Lower slot must contain a fuel item (example: coal)
|
* Lower slot must contain a fuel item (example: coal)
|
||||||
* See tooltips in crafting guide to learn about fuels and smeltable items
|
* See tooltips in crafting guide to learn about fuels and smeltable items
|
||||||
|
@ -162,7 +162,7 @@ Bonus features (not found in Minecraft):
|
||||||
* 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
|
||||||
* Temporary crafting recipes. They only exist to make some otherwise unaccessible items available when you're not in creative mode. These recipes will be removed as development goes on an more features become available
|
* Temporary crafting recipes. They only exist to make some otherwise unaccessible items available when you're not in creative mode. These recipes will be removed as development goes on an more features become available
|
||||||
* Saplings in chests in [mapgen v6](https://wiki.minetest.net/Map_generator#v6)
|
* Saplings in chests in mapgen v6
|
||||||
* Fully moddable (thanks to Minetest's powerful Lua API)
|
* Fully moddable (thanks to Minetest's powerful Lua API)
|
||||||
* New blocks and items:
|
* New blocks and items:
|
||||||
* Lookup tool, shows you the help for whatever it touches
|
* Lookup tool, shows you the help for whatever it touches
|
||||||
|
|
|
@ -137,7 +137,7 @@ Fonctionnalités bonus (absentes de Minecraft) :
|
||||||
* Guide d'artisanat intégré au jeu qui montre les recettes d'artisanat et de cuisson
|
* 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
|
* 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 fonctionnalités.
|
* 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 fonctionnalités.
|
||||||
* Pousses dans les coffres en [mapgen v6](https://wiki.minetest.net/Map_generator#v6)
|
* Pousses dans les coffres en mapgen v6
|
||||||
* Entièrement moddable (grâce la puissante API Lua de Minetest)
|
* Entièrement moddable (grâce la puissante API Lua de Minetest)
|
||||||
* Nouveaux blocs et objets :
|
* Nouveaux blocs et objets :
|
||||||
* Outil de recherche, montre l'aide de ce qu'il touche
|
* Outil de recherche, montre l'aide de ce qu'il touche
|
||||||
|
|
|
@ -1,193 +0,0 @@
|
||||||
# MineClone2
|
|
||||||
Неофициальная игра в стиле Minecraft для Minetest. Форк MineClone от davedevils.
|
|
||||||
Разработана многими людьми. Не разработана и не одобрена Mojang AB.
|
|
||||||
|
|
||||||
### Игровой процесс
|
|
||||||
Вы начинаете в случайно сгенерированном мире созданном целиком из кубов. Вы можете
|
|
||||||
исследовать мир, выкопать и поставить почти каждый блок в мире, чтобы создавать новые
|
|
||||||
структуры. Вы можете играть в “режиме выживания” в котором вам придется бороться с
|
|
||||||
монстрами и голодом за выживание и медленно проходить через различные аспекты игры,
|
|
||||||
такие как копание, фермерство, постройка механизмов и так далее. Или вы можете играть
|
|
||||||
в “творческом режиме” в котором вы сразу можете строить что угодно.
|
|
||||||
|
|
||||||
#### Итоги геймплея
|
|
||||||
|
|
||||||
* Геймплей в стиле песочницы, без целей
|
|
||||||
* Выживайте: сражайтесь с враждебными монстрами и голодом
|
|
||||||
* Добывайте руды и прочие ценные предметы
|
|
||||||
* Магия: получайте опыт и зачаруйте ваше снаряжение
|
|
||||||
* Создавайте из собранных блоков величественные постройки ограниченные только воображением
|
|
||||||
* Собирайте цветы и другие красители, чтобы раскрасить ваш мир
|
|
||||||
* Найдите семена и заведите ферму
|
|
||||||
* Найдите или создайте один из сотен предметов
|
|
||||||
* Проложите рельсы и повеселитесь с вагонетками
|
|
||||||
* Постройте сложные механизмы со схемами из редстоуна
|
|
||||||
* В творческом режиме вы можете свободно строить всё без лимитов
|
|
||||||
|
|
||||||
## Как играть (быстрый старт)
|
|
||||||
### Начнем
|
|
||||||
|
|
||||||
* **Бейте по стволу дерева** пока оно не сломается и соберите древесину
|
|
||||||
* Поставьте **древесину в сетку 2×2** (“сетка крафта” в вашем инвентаре) и скрафтите 4 доски
|
|
||||||
* Разложите 4 доски в форме 2×2 в сетке крафта, чтобы **сделать верстак**
|
|
||||||
* **Правым кликом по верстаку**, чтобы открыть сетку крафта 3×3 для более сложных предметов
|
|
||||||
* Используйте **книгу рецептов** (иконка книги), чтобы узнать все возможные рецепты крафтов
|
|
||||||
* **Скрафтите деревянную кирку**, чтобы вы могли копать камень
|
|
||||||
* Разные инструменты добывают разные виды блоков. Опробуйте их все!
|
|
||||||
* Продолжайте играть как пожелаете. Повеселитесь!
|
|
||||||
|
|
||||||
### Фермерство
|
|
||||||
* Найдите семена
|
|
||||||
* Скрафтите мотыгу
|
|
||||||
* Правой кнопкой мотыгой по земле или похожему блоку, чтобы создать грядку
|
|
||||||
* Посадите семена на грядку и ждите пока они вырастут
|
|
||||||
* Соберите растение когда оно полностью созреет
|
|
||||||
* Рядом с водой грядка становится влажной и растения растут быстрее
|
|
||||||
|
|
||||||
### Переплавка
|
|
||||||
* Скрафтите печь
|
|
||||||
* Печь позволит вам получить больше предметов
|
|
||||||
* Верхний слот должен содержать переплавляемый предмет (например: железную руду)
|
|
||||||
* Нижний слот должен содержать топливо (например: уголь)
|
|
||||||
* Смотрите книгу рецептов, чтобы узнать о других переплавляемых предметах и топливе
|
|
||||||
|
|
||||||
### Дополнительная помощь
|
|
||||||
Больше информации о геймплее, блоках, предметах и многое другое можно найти во
|
|
||||||
внутриигровой справке. Вы можете перейти в неё через ваш инвентарь.
|
|
||||||
|
|
||||||
### Особые предметы
|
|
||||||
Следующие предметы интересны для творческого режима и для строителей приключенческих
|
|
||||||
карт. Их нельзя получить в игре или через творческий инвентарь.
|
|
||||||
|
|
||||||
* Барьер: `mcl_core:barrier`
|
|
||||||
|
|
||||||
Используйте чат-команду `/giveme`, чтобы получить их.
|
|
||||||
Смотрите справку для дальнейшей информации.
|
|
||||||
|
|
||||||
## Установка
|
|
||||||
Эта игра требует [Minetest](http://minetest.net) для запуска (версия 5.4.1 или
|
|
||||||
выше). Вам нужно сперва установить Minetest. Только стабильные версии поддерживаются
|
|
||||||
официально. Не поддерживается запуск MineClone2 на разрабатываемых версиях Minetest.
|
|
||||||
|
|
||||||
Чтобы установить MineClone2 (если вы этого еще не сделали), переместите эту папку в
|
|
||||||
“games” в папке данных Minetest. Смотрите справку Minetest, чтобы узнать больше.
|
|
||||||
|
|
||||||
## Полезные ссылки
|
|
||||||
Репозиторий MineClone2 хранится на Mesehub. Зайдите туда, чтобы оставить запрос или
|
|
||||||
поучаствовать в разработке.
|
|
||||||
|
|
||||||
* Mesehub: <https://git.minetest.land/MineClone2/MineClone2>
|
|
||||||
* Discord: <https://discord.gg/xE4z8EEpDC>
|
|
||||||
* YouTube: <https://www.youtube.com/channel/UClI_YcsXMF3KNeJtoBfnk9A>
|
|
||||||
* ContentDB: <https://content.minetest.net/packages/wuzzy/mineclone2/>
|
|
||||||
* OpenCollective: <https://opencollective.com/mineclone2>
|
|
||||||
* Mastodon: <https://fosstodon.org/@MineClone2>
|
|
||||||
* Lemmy: <https://lemmy.world/c/mineclone2>
|
|
||||||
* Matrix space: <https://app.element.io/#/room/#mcl2:matrix.org>
|
|
||||||
* Форум Minetest: <https://forum.minetest.net/viewtopic.php?f=50&t=16407>
|
|
||||||
* Reddit: <https://www.reddit.com/r/MineClone2/>
|
|
||||||
* IRC (едва используется): <https://web.libera.chat/#mineclone2>
|
|
||||||
|
|
||||||
## Цели
|
|
||||||
- Создать стабильную, модифицируемую, бесплатную и свободную игру основанную на
|
|
||||||
Minecraft на движке Minetest с проработанными возможностями для одиночной игры и
|
|
||||||
для мультиплеера. На данный момент множество возможностей **Minecraft Java
|
|
||||||
Edition** уже реализовано и доработка имеющегося контента в приоритете над
|
|
||||||
добавлением нового.
|
|
||||||
- Реализовать возможности на уровне **текущей версии Minecraft + OptiFine** (OptiFine
|
|
||||||
настолько, насколько это поддерживается движком Minetest).
|
|
||||||
- Добиться производительности для запуска на действительно слабых компьютерах.
|
|
||||||
|
|
||||||
## Готовность
|
|
||||||
Игра сейчас на стадии **бета**. Она играбельна, но еще не имеет всех возможностей.
|
|
||||||
Обратная совместимость целиком не гарантируется, обновление вашего мира может повлечь
|
|
||||||
за собой небольшие ошибки. Если вы хотите использовать разрабатываемую версию
|
|
||||||
Mineclone2, то ветка master обычно относительно стабильна.
|
|
||||||
|
|
||||||
Следущие возможности уже доступны:
|
|
||||||
|
|
||||||
* Инструменты, оружие, броня
|
|
||||||
* Система крафта: сетка 2×2, верстак (сетка 3×3) и книга рецептов
|
|
||||||
* Сундуки, большие сундуки, эндер-сундуки, ящики шалкера
|
|
||||||
* Печи и воронки
|
|
||||||
* Система голода
|
|
||||||
* Большинство монстров и животных
|
|
||||||
* Все руды из Minecraft
|
|
||||||
* Большинство блоков из Верхнего мира
|
|
||||||
* Вода и лава
|
|
||||||
* Погода
|
|
||||||
* 28 биомов + 5 биомов в Незере
|
|
||||||
* Незер, пылающий подземный мир в другом измерении
|
|
||||||
* Схемы из редстоуна (частично)
|
|
||||||
* Вагонетки (частично)
|
|
||||||
* Статусные эффекты (частично)
|
|
||||||
* Опыт
|
|
||||||
* Зачарование
|
|
||||||
* Зельеварение, зелья, смоченные стрелы (частично)
|
|
||||||
* Лодки
|
|
||||||
* Огонь
|
|
||||||
* Строительные блоки: ступени, плиты, двери, люки, заборы, калитки, стены
|
|
||||||
* Часы
|
|
||||||
* Компас
|
|
||||||
* Губки
|
|
||||||
* Блоки слизи
|
|
||||||
* Растения и саженцы
|
|
||||||
* Красители
|
|
||||||
* Флаги
|
|
||||||
* Декоративные блоки: стекло, окрашенное стекло, стеклянные панели, железные решетки, цветная керамика, головы и многое другое
|
|
||||||
* Рамки для предметов
|
|
||||||
* Прогрыватели
|
|
||||||
* Кровати
|
|
||||||
* Меню инвентаря
|
|
||||||
* Творческий инвентарь
|
|
||||||
* Фермерство
|
|
||||||
* Книги с пером
|
|
||||||
* Команды
|
|
||||||
* Деревни
|
|
||||||
* Измерение Края
|
|
||||||
* И многое другое!
|
|
||||||
|
|
||||||
Следующие возможности еще не завершены:
|
|
||||||
|
|
||||||
* Некоторые монстры и животные
|
|
||||||
* Предметы связанные с редстоуном
|
|
||||||
* Некоторые вагонетки (с сундуком и с воронкой уже работают)
|
|
||||||
* Пара нетривиальных блоков и предметов
|
|
||||||
|
|
||||||
Бонусные возможности (нет в Minecraft-е):
|
|
||||||
|
|
||||||
* Встроенный гайд для крафта покажет вам рецепты крафта и переплавки
|
|
||||||
* Внутриигровая справка содержит всестороннюю информацию об основах игры, блоках, предметах и прочее
|
|
||||||
* Временные рецепты крафта. Они существуют, чтобы получить доступ к ранее недоступным предметам вне творческого режима. Они будут удалены как только разработка позволит им стать доступными
|
|
||||||
* Саженцы в сундуках в [mapgen v6](https://wiki.minetest.net/Map_generator#v6)
|
|
||||||
* Полностью модифицируема (благодаря мощному Lua API в Minetest)
|
|
||||||
* Новые блоки и предметы:
|
|
||||||
* Инструмент просмотра покажет справку о том чего коснется
|
|
||||||
* Больше ступеней и плит
|
|
||||||
* Калитки и заборы из адских кирпичей
|
|
||||||
* Замены структур - малые верии структур из Minecraft пока большие структуры не будут сделаны:
|
|
||||||
* Лесная хижина (Особняк)
|
|
||||||
* Форт Незера (Крепости)
|
|
||||||
|
|
||||||
Технические отличия от Minecraft:
|
|
||||||
|
|
||||||
* Лимит высоты - 31000 блоков (намного больше чем в Minecraft)
|
|
||||||
* Горизонтальный размер мира - 62000×62000 блоков (намного меньше чем в Minecraft, но всё еще очень большой)
|
|
||||||
* Всё еще не завершен и содержит много багов
|
|
||||||
* Недостающие блоки, предметы, мобы
|
|
||||||
* Некоторые предметы с другими названиями, чтобы лучше их различать
|
|
||||||
* Другая музыка для проигрывателей
|
|
||||||
* Другие текстуры (Pixel Perfection)
|
|
||||||
* Другие звуки (разные источники)
|
|
||||||
* Другой движок (Minetest)
|
|
||||||
* Другие пасхалки
|
|
||||||
|
|
||||||
… и наконец, MineClone2 это свободное программное обеспечение!
|
|
||||||
|
|
||||||
## Другие readme файлы
|
|
||||||
|
|
||||||
* `LICENSE.txt`: текст лицензии GPLv3
|
|
||||||
* `CONTRIBUTING.md`: информация для тех кто хочет поучаствовать в разработке
|
|
||||||
* `API.md`: для моддеров Minetest кто хочет изменить эту игру
|
|
||||||
* `LEGAL.md`: юридическая информация
|
|
||||||
* `CREDITS.md`: список участников проекта
|
|
18
RELEASE.md
18
RELEASE.md
|
@ -1,11 +1,10 @@
|
||||||
### Standard Release
|
### Standard Release
|
||||||
|
|
||||||
# File to document release steps with a view to evolving into a script
|
#File to document release steps with a view to evolving into a script
|
||||||
|
|
||||||
# Update CREDITS.md
|
#Update CREDITS.md
|
||||||
# Update version in game.conf
|
#Update version in game.conf
|
||||||
|
|
||||||
```
|
|
||||||
lua tools/generate_ingame_credits.lua
|
lua tools/generate_ingame_credits.lua
|
||||||
|
|
||||||
git add CREDITS.md
|
git add CREDITS.md
|
||||||
|
@ -19,11 +18,10 @@ git commit -m "Pre-release update credits and set version 0.83.0"
|
||||||
git tag 0.83.0
|
git tag 0.83.0
|
||||||
|
|
||||||
git push origin 0.83.0
|
git push origin 0.83.0
|
||||||
```
|
|
||||||
|
|
||||||
# Update version in game.conf to the next version with -SNAPSHOT suffix
|
#Update version in game.conf to the next version with -SNAPSHOT suffix
|
||||||
|
|
||||||
`git commit -m "Post-release set version 0.84.0-SNAPSHOT"`
|
git commit -m "Post-release set version 0.84.0-SNAPSHOT"
|
||||||
|
|
||||||
### Hotfix Release
|
### Hotfix Release
|
||||||
|
|
||||||
|
@ -34,17 +32,15 @@ To mitigate this, you just release the last release, and the relevant bug fix. F
|
||||||
|
|
||||||
* Create release branch from the last release tag, push it:
|
* Create release branch from the last release tag, push it:
|
||||||
|
|
||||||
```
|
|
||||||
git checkout -b release/0.82.1 0.82.0
|
git checkout -b release/0.82.1 0.82.0
|
||||||
|
|
||||||
git push origin release/0.82.1
|
git push origin release/0.82.1
|
||||||
```
|
|
||||||
|
|
||||||
##### Prepare feature branch and fix
|
##### Prepare feature branch and fix
|
||||||
|
|
||||||
* Create feature branch from that release branch (can review it to check only fix is there, nothing else, and use to also merge into master separately)
|
* Create feature branch from that release branch (can review it to check only fix is there, nothing else, and use to also merge into master separately)
|
||||||
|
|
||||||
`git checkout -b hotfix_bug_1_branch`
|
git checkout -b hotfix_bug_1_branch
|
||||||
|
|
||||||
* Fix crash/serious bug and commit
|
* Fix crash/serious bug and commit
|
||||||
* Push branch and create pr to the release and also the master branch (Do not rebase, to reduce merge conflict risk. Do not delete after first merge or it needs to be repushed)
|
* Push branch and create pr to the release and also the master branch (Do not rebase, to reduce merge conflict risk. Do not delete after first merge or it needs to be repushed)
|
||||||
|
@ -57,13 +53,11 @@ git push origin release/0.82.1
|
||||||
|
|
||||||
* Tag it, push tag and branch:
|
* Tag it, push tag and branch:
|
||||||
|
|
||||||
```
|
|
||||||
git tag 0.82.1
|
git tag 0.82.1
|
||||||
|
|
||||||
git push origin 0.82.1
|
git push origin 0.82.1
|
||||||
|
|
||||||
git push origin release/0.82.1
|
git push origin release/0.82.1
|
||||||
```
|
|
||||||
|
|
||||||
Note: If you have to do more than 1 hotfix release, can do it on the same release branch.
|
Note: If you have to do more than 1 hotfix release, can do it on the same release branch.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
title = MineClone 2
|
title = 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
|
disallowed_mapgens = v6
|
||||||
version=0.87.0-SNAPSHOT
|
version=0.85.0-SNAPSHOT
|
|
@ -31,7 +31,6 @@ local known_controls = {
|
||||||
aux1 = true,
|
aux1 = true,
|
||||||
down = true,
|
down = true,
|
||||||
up = true,
|
up = true,
|
||||||
zoom = true,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1 z-es mòrt dins una explosion
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1 foi pego(a) em uma explosão.
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_explosions
|
|
||||||
@1 was caught in an explosion.=@1 попал(а) под взрыв.
|
|
|
@ -11,4 +11,4 @@ For example, Copper Blocks have the definition arguement of `_mcl_waxed_variant
|
||||||
|
|
||||||
For waxed nodes, scraping is easy. Start by putting `waxed = 1` into the list of groups of the waxed node.
|
For waxed nodes, scraping is easy. Start by putting `waxed = 1` into the list of groups of the waxed node.
|
||||||
Next put `_mcl_stripped_variant = item string of the unwaxed variant of the node` into the defintion table.
|
Next put `_mcl_stripped_variant = item string of the unwaxed variant of the node` into the defintion table.
|
||||||
Waxed Copper Blocks can be scrapped into normal Copper Blocks because of the definition `_mcl_stripped_variant = "mcl_copper:block"`.
|
Wxaed Copper Blocks can be scrapped into normal Copper Blocks because of the definition `_mcl_stripped_variant = "mcl_copper:block"`.
|
||||||
|
|
|
@ -187,6 +187,15 @@ function mcl_sounds.node_sound_lava_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function mcl_sounds.node_sound_decorated_pot_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
-- TODO: Footstep and dug sounds
|
||||||
|
table.place = table.place or
|
||||||
|
{name = "archaeology_decorated_pot_place", gain = 1.0}
|
||||||
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
-- Player death sound
|
-- Player death sound
|
||||||
minetest.register_on_dieplayer(function(player)
|
minetest.register_on_dieplayer(function(player)
|
||||||
-- TODO: Add separate death sound
|
-- TODO: Add separate death sound
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -22,30 +22,6 @@ function table.update_nil(t, ...)
|
||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
---Works the same as `pairs`, but order returned by keys
|
|
||||||
---
|
|
||||||
---Taken from https://www.lua.org/pil/19.3.html
|
|
||||||
---@generic T: table, K, V, C
|
|
||||||
---@param t T
|
|
||||||
---@param f? fun(a: C, b: C):boolean
|
|
||||||
---@return fun():K, V
|
|
||||||
function table.pairs_by_keys(t, f)
|
|
||||||
local a = {}
|
|
||||||
for n in pairs(t) do table.insert(a, n) end
|
|
||||||
table.sort(a, f)
|
|
||||||
|
|
||||||
local i = 0 -- iterator variable
|
|
||||||
local function iter() -- iterator function
|
|
||||||
i = i + 1
|
|
||||||
if a[i] == nil then
|
|
||||||
return nil
|
|
||||||
else
|
|
||||||
return a[i], t[a[i]]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return iter
|
|
||||||
end
|
|
||||||
|
|
||||||
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_default", false)
|
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_default", false)
|
||||||
local LOG_MODULE = "[MCL2]"
|
local LOG_MODULE = "[MCL2]"
|
||||||
function mcl_util.mcl_log(message, module, bypass_default_logger)
|
function mcl_util.mcl_log(message, module, bypass_default_logger)
|
||||||
|
@ -98,18 +74,6 @@ function mcl_util.check_dtime_timer(self, dtime, timer_name, threshold)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- While we should always favour the new minetest vector functions such as vector.new or vector.offset which validate on
|
|
||||||
-- creation. There may be cases where state gets corrupted and we may have to check the vector is valid if created the
|
|
||||||
-- old way. This allows us to do this as a tactical solution until old style vectors are completely removed.
|
|
||||||
function mcl_util.validate_vector (vect)
|
|
||||||
if vect then
|
|
||||||
if tonumber(vect.x) and tonumber(vect.y) and tonumber(vect.z) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Minetest 5.3.0 or less can only measure the light level. This came in at 5.4
|
-- Minetest 5.3.0 or less can only measure the light level. This came in at 5.4
|
||||||
-- This function has been known to fail in multiple places so the error handling is added increase safety and improve
|
-- This function has been known to fail in multiple places so the error handling is added increase safety and improve
|
||||||
-- debugging. See:
|
-- debugging. See:
|
||||||
|
@ -160,7 +124,7 @@ function mcl_util.rotate_axis_and_place(itemstack, placer, pointed_thing, infini
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local undef = minetest.registered_nodes[unode.name]
|
local undef = minetest.registered_nodes[unode.name]
|
||||||
if undef and undef.on_rightclick and not invert_wall then
|
if undef and undef.on_rightclick then
|
||||||
undef.on_rightclick(pointed_thing.under, unode, placer,
|
undef.on_rightclick(pointed_thing.under, unode, placer,
|
||||||
itemstack, pointed_thing)
|
itemstack, pointed_thing)
|
||||||
return
|
return
|
||||||
|
@ -198,11 +162,25 @@ function mcl_util.rotate_axis_and_place(itemstack, placer, pointed_thing, infini
|
||||||
|
|
||||||
local p2
|
local p2
|
||||||
if is_y then
|
if is_y then
|
||||||
p2 = 0
|
if invert_wall then
|
||||||
|
if fdir == 3 or fdir == 1 then
|
||||||
|
p2 = 12
|
||||||
|
else
|
||||||
|
p2 = 6
|
||||||
|
end
|
||||||
|
end
|
||||||
elseif is_x then
|
elseif is_x then
|
||||||
p2 = 12
|
if invert_wall then
|
||||||
|
p2 = 0
|
||||||
|
else
|
||||||
|
p2 = 12
|
||||||
|
end
|
||||||
elseif is_z then
|
elseif is_z then
|
||||||
p2 = 6
|
if invert_wall then
|
||||||
|
p2 = 0
|
||||||
|
else
|
||||||
|
p2 = 6
|
||||||
|
end
|
||||||
end
|
end
|
||||||
minetest.set_node(pos, {name = wield_name, param2 = p2})
|
minetest.set_node(pos, {name = wield_name, param2 = p2})
|
||||||
|
|
||||||
|
@ -251,25 +229,34 @@ function mcl_util.get_double_container_neighbor_pos(pos, param2, side)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Selects item stack to transfer from
|
-- Iterates through all items in the given inventory and
|
||||||
---@param src_inventory InvRef Source innentory to pull from
|
-- returns the slot of the first item which matches a condition.
|
||||||
---@param src_list string Name of source inventory list to pull from
|
-- Returns nil if no item was found.
|
||||||
---@param dst_inventory InvRef Destination inventory to push to
|
--- source_inventory: Inventory to take the item from
|
||||||
---@param dst_list string Name of destination inventory list to push to
|
--- source_list: List name of the source inventory from which to take the item
|
||||||
---@param condition? fun(stack: ItemStack) Condition which items are allowed to be transfered.
|
--- destination_inventory: Put item into this inventory
|
||||||
---@return integer Item stack number to be transfered
|
--- destination_list: List name of the destination inventory to which to put the item into
|
||||||
function mcl_util.select_stack(src_inventory, src_list, dst_inventory, dst_list, condition)
|
--- condition: Function which takes an itemstack and returns true if it matches the desired item condition.
|
||||||
local src_size = src_inventory:get_size(src_list)
|
--- If set to nil, the slot of the first item stack will be taken unconditionally.
|
||||||
|
-- dst_inventory and dst_list can also be nil if condition is nil.
|
||||||
|
function mcl_util.get_eligible_transfer_item_slot(src_inventory, src_list, dst_inventory, dst_list, condition)
|
||||||
|
local size = src_inventory:get_size(src_list)
|
||||||
local stack
|
local stack
|
||||||
for i = 1, src_size do
|
for i = 1, size do
|
||||||
stack = src_inventory:get_stack(src_list, i)
|
stack = src_inventory:get_stack(src_list, i)
|
||||||
if not stack:is_empty() and dst_inventory:room_for_item(dst_list, stack) and ((condition == nil or condition(stack))) then
|
if not stack:is_empty() and (condition == nil or condition(stack, src_inventory, src_list, dst_inventory, dst_list)) then
|
||||||
return i
|
return i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Returns true if itemstack is a shulker box
|
||||||
|
local function is_not_shulker_box(itemstack)
|
||||||
|
local g = minetest.get_item_group(itemstack:get_name(), "shulker_box")
|
||||||
|
return g == 0 or g == nil
|
||||||
|
end
|
||||||
|
|
||||||
-- Moves a single item from one inventory to another.
|
-- Moves a single item from one inventory to another.
|
||||||
--- source_inventory: Inventory to take the item from
|
--- source_inventory: Inventory to take the item from
|
||||||
--- source_list: List name of the source inventory from which to take the item
|
--- source_list: List name of the source inventory from which to take the item
|
||||||
|
@ -280,6 +267,13 @@ end
|
||||||
-- Returns true on success and false on failure
|
-- Returns true on success and false on failure
|
||||||
-- Possible failures: No item in source slot, destination inventory full
|
-- Possible failures: No item in source slot, destination inventory full
|
||||||
function mcl_util.move_item(source_inventory, source_list, source_stack_id, destination_inventory, destination_list)
|
function mcl_util.move_item(source_inventory, source_list, source_stack_id, destination_inventory, destination_list)
|
||||||
|
if source_stack_id == -1 then
|
||||||
|
source_stack_id = mcl_util.get_first_occupied_inventory_slot(source_inventory, source_list)
|
||||||
|
if source_stack_id == nil then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if not source_inventory:is_empty(source_list) then
|
if not source_inventory:is_empty(source_list) then
|
||||||
local stack = source_inventory:get_stack(source_list, source_stack_id)
|
local stack = source_inventory:get_stack(source_list, source_stack_id)
|
||||||
if not stack:is_empty() then
|
if not stack:is_empty() then
|
||||||
|
@ -297,75 +291,150 @@ function mcl_util.move_item(source_inventory, source_list, source_stack_id, dest
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Try pushing item from hopper inventory to destination inventory
|
-- Moves a single item from one container node into another. Performs a variety of high-level
|
||||||
---@param pos Vector
|
-- checks to prevent invalid transfers such as shulker boxes into shulker boxes
|
||||||
---@param dst_pos Vector
|
--- source_pos: Position ({x,y,z}) of the node to take the item from
|
||||||
function mcl_util.hopper_push(pos, dst_pos)
|
--- destination_pos: Position ({x,y,z}) of the node to put the item into
|
||||||
local hop_inv = minetest.get_meta(pos):get_inventory()
|
--- source_list (optional): List name of the source inventory from which to take the item. Default is normally "main"; "dst" for furnace
|
||||||
local hop_list = 'main'
|
--- source_stack_id (optional): The inventory position ID of the source inventory to take the item from (-1 for slot of the first valid item; -1 is default)
|
||||||
|
--- destination_list (optional): List name of the destination inventory. Default is normally "main"; "src" for furnace
|
||||||
|
-- Returns true on success and false on failure.
|
||||||
|
function mcl_util.move_item_container(source_pos, destination_pos, source_list, source_stack_id, destination_list)
|
||||||
|
local dpos = table.copy(destination_pos)
|
||||||
|
local spos = table.copy(source_pos)
|
||||||
|
local snode = minetest.get_node(spos)
|
||||||
|
local dnode = minetest.get_node(dpos)
|
||||||
|
|
||||||
-- Get node pos' for item transfer
|
local dctype = minetest.get_item_group(dnode.name, "container")
|
||||||
local dst = minetest.get_node(dst_pos)
|
local sctype = minetest.get_item_group(snode.name, "container")
|
||||||
if not minetest.registered_nodes[dst.name] then return end
|
|
||||||
local dst_type = minetest.get_item_group(dst.name, "container")
|
|
||||||
if dst_type ~= 2 then return end
|
|
||||||
local dst_def = minetest.registered_nodes[dst.name]
|
|
||||||
|
|
||||||
local dst_list = 'main'
|
-- Container type 7 does not allow any movement
|
||||||
local dst_inv, stack_id
|
if sctype == 7 then
|
||||||
|
return false
|
||||||
if dst_def._mcl_hoppers_on_try_push then
|
|
||||||
dst_inv, dst_list, stack_id = dst_def._mcl_hoppers_on_try_push(dst_pos, pos, hop_inv, hop_list)
|
|
||||||
else
|
|
||||||
local dst_meta = minetest.get_meta(dst_pos)
|
|
||||||
dst_inv = dst_meta:get_inventory()
|
|
||||||
stack_id = mcl_util.select_stack(hop_inv, hop_list, dst_inv, dst_list)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if stack_id ~= nil then
|
-- Normalize double container by forcing to always use the left segment first
|
||||||
local ok = mcl_util.move_item(hop_inv, hop_list, stack_id, dst_inv, dst_list)
|
local function normalize_double_container(pos, node, ctype)
|
||||||
if dst_def._mcl_hoppers_on_after_push then
|
if ctype == 6 then
|
||||||
dst_def._mcl_hoppers_on_after_push(dst_pos)
|
pos = mcl_util.get_double_container_neighbor_pos(pos, node.param2, "right")
|
||||||
|
if not pos then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
node = minetest.get_node(pos)
|
||||||
|
ctype = minetest.get_item_group(node.name, "container")
|
||||||
|
-- The left segment seems incorrect? We better bail out!
|
||||||
|
if ctype ~= 5 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if ok then
|
return pos, node, ctype
|
||||||
return true
|
end
|
||||||
|
|
||||||
|
spos, snode, sctype = normalize_double_container(spos, snode, sctype)
|
||||||
|
dpos, dnode, dctype = normalize_double_container(dpos, dnode, dctype)
|
||||||
|
if not spos or not dpos then return false end
|
||||||
|
|
||||||
|
local smeta = minetest.get_meta(spos)
|
||||||
|
local dmeta = minetest.get_meta(dpos)
|
||||||
|
|
||||||
|
local sinv = smeta:get_inventory()
|
||||||
|
local dinv = dmeta:get_inventory()
|
||||||
|
|
||||||
|
-- Default source lists
|
||||||
|
if not source_list then
|
||||||
|
-- Main inventory for most container types
|
||||||
|
if sctype == 2 or sctype == 3 or sctype == 5 or sctype == 6 or sctype == 7 then
|
||||||
|
source_list = "main"
|
||||||
|
-- Furnace: output
|
||||||
|
elseif sctype == 4 then
|
||||||
|
source_list = "dst"
|
||||||
|
-- Unknown source container type. Bail out
|
||||||
|
else
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Automatically select stack slot ID if set to automatic
|
||||||
|
if not source_stack_id then
|
||||||
|
source_stack_id = -1
|
||||||
|
end
|
||||||
|
if source_stack_id == -1 then
|
||||||
|
local cond = nil
|
||||||
|
-- Prevent shulker box inception
|
||||||
|
if dctype == 3 then
|
||||||
|
cond = is_not_shulker_box
|
||||||
|
end
|
||||||
|
source_stack_id = mcl_util.get_eligible_transfer_item_slot(sinv, source_list, dinv, dpos, cond)
|
||||||
|
if not source_stack_id then
|
||||||
|
-- Try again if source is a double container
|
||||||
|
if sctype == 5 then
|
||||||
|
spos = mcl_util.get_double_container_neighbor_pos(spos, snode.param2, "left")
|
||||||
|
smeta = minetest.get_meta(spos)
|
||||||
|
sinv = smeta:get_inventory()
|
||||||
|
|
||||||
|
source_stack_id = mcl_util.get_eligible_transfer_item_slot(sinv, source_list, dinv, dpos, cond)
|
||||||
|
if not source_stack_id then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Abort transfer if shulker box wants to go into shulker box
|
||||||
|
if dctype == 3 then
|
||||||
|
local stack = sinv:get_stack(source_list, source_stack_id)
|
||||||
|
if stack and minetest.get_item_group(stack:get_name(), "shulker_box") == 1 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- Container type 7 does not allow any placement
|
||||||
|
if dctype == 7 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
-- If it's a container, put it into the container
|
||||||
|
if dctype ~= 0 then
|
||||||
|
-- Automatically select a destination list if omitted
|
||||||
|
if not destination_list then
|
||||||
|
-- Main inventory for most container types
|
||||||
|
if dctype == 2 or dctype == 3 or dctype == 5 or dctype == 6 or dctype == 7 then
|
||||||
|
destination_list = "main"
|
||||||
|
-- Furnace source slot
|
||||||
|
elseif dctype == 4 then
|
||||||
|
destination_list = "src"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if destination_list then
|
||||||
|
-- Move item
|
||||||
|
local ok = mcl_util.move_item(sinv, source_list, source_stack_id, dinv, destination_list)
|
||||||
|
|
||||||
|
-- Try transfer to neighbor node if transfer failed and double container
|
||||||
|
if not ok and dctype == 5 then
|
||||||
|
dpos = mcl_util.get_double_container_neighbor_pos(dpos, dnode.param2, "left")
|
||||||
|
dmeta = minetest.get_meta(dpos)
|
||||||
|
dinv = dmeta:get_inventory()
|
||||||
|
|
||||||
|
ok = mcl_util.move_item(sinv, source_list, source_stack_id, dinv, destination_list)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Update furnace
|
||||||
|
if ok and dctype == 4 then
|
||||||
|
-- Start furnace's timer function, it will sort out whether furnace can burn or not.
|
||||||
|
minetest.get_node_timer(dpos):start(1.0)
|
||||||
|
end
|
||||||
|
|
||||||
|
return ok
|
||||||
|
end
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Try pulling from source inventory to hopper inventory
|
-- Returns the ID of the first non-empty slot in the given inventory list
|
||||||
---@param pos Vector
|
-- or nil, if inventory is empty.
|
||||||
---@param src_pos Vector
|
function mcl_util.get_first_occupied_inventory_slot(inventory, listname)
|
||||||
function mcl_util.hopper_pull(pos, src_pos)
|
return mcl_util.get_eligible_transfer_item_slot(inventory, listname)
|
||||||
local hop_inv = minetest.get_meta(pos):get_inventory()
|
|
||||||
local hop_list = 'main'
|
|
||||||
|
|
||||||
-- Get node pos' for item transfer
|
|
||||||
local src = minetest.get_node(src_pos)
|
|
||||||
if not minetest.registered_nodes[src.name] then return end
|
|
||||||
local src_type = minetest.get_item_group(src.name, "container")
|
|
||||||
if src_type ~= 2 then return end
|
|
||||||
local src_def = minetest.registered_nodes[src.name]
|
|
||||||
|
|
||||||
local src_list = 'main'
|
|
||||||
local src_inv, stack_id
|
|
||||||
|
|
||||||
if src_def._mcl_hoppers_on_try_pull then
|
|
||||||
src_inv, src_list, stack_id = src_def._mcl_hoppers_on_try_pull(src_pos, pos, hop_inv, hop_list)
|
|
||||||
else
|
|
||||||
local src_meta = minetest.get_meta(src_pos)
|
|
||||||
src_inv = src_meta:get_inventory()
|
|
||||||
stack_id = mcl_util.select_stack(src_inv, src_list, hop_inv, hop_list)
|
|
||||||
end
|
|
||||||
|
|
||||||
if stack_id ~= nil then
|
|
||||||
local ok = mcl_util.move_item(src_inv, src_list, stack_id, hop_inv, hop_list)
|
|
||||||
if src_def._mcl_hoppers_on_after_pull then
|
|
||||||
src_def._mcl_hoppers_on_after_pull(src_pos)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function drop_item_stack(pos, stack)
|
local function drop_item_stack(pos, stack)
|
||||||
|
@ -543,7 +612,7 @@ function mcl_util.deal_damage(target, damage, mcl_reason)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
elseif not target:is_player() then return end
|
end
|
||||||
|
|
||||||
local is_immortal = target:get_armor_groups().immortal or 0
|
local is_immortal = target:get_armor_groups().immortal or 0
|
||||||
if is_immortal>0 then
|
if is_immortal>0 then
|
||||||
|
@ -1032,62 +1101,3 @@ function mcl_util.get_colorwallmounted_rotation(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
---Move items from one inventory list to another, drop items that do not fit in provided pos and direction.
|
|
||||||
---@param src_inv mt.InvRef
|
|
||||||
---@param src_listname string
|
|
||||||
---@param out_inv mt.InvRef
|
|
||||||
---@param out_listname string
|
|
||||||
---@param pos mt.Vector Position to throw items at
|
|
||||||
---@param dir? mt.Vector Direction to throw items in
|
|
||||||
---@param insta_collect? boolean Enable instant collection, let players collect dropped items instantly. Default `false`
|
|
||||||
function mcl_util.move_list(src_inv, src_listname, out_inv, out_listname, pos, dir, insta_collect)
|
|
||||||
local src_list = src_inv:get_list(src_listname)
|
|
||||||
|
|
||||||
if not src_list then return end
|
|
||||||
for i, stack in ipairs(src_list) do
|
|
||||||
if out_inv:room_for_item(out_listname, stack) then
|
|
||||||
out_inv:add_item(out_listname, stack)
|
|
||||||
else
|
|
||||||
local p = vector.copy(pos)
|
|
||||||
p.x = p.x + (math.random(1, 3) * 0.2)
|
|
||||||
p.z = p.z + (math.random(1, 3) * 0.2)
|
|
||||||
|
|
||||||
local obj = minetest.add_item(p, stack)
|
|
||||||
if obj then
|
|
||||||
if dir then
|
|
||||||
local v = vector.copy(dir)
|
|
||||||
v.x = v.x * 4
|
|
||||||
v.y = v.y * 4 + 2
|
|
||||||
v.z = v.z * 4
|
|
||||||
obj:set_velocity(v)
|
|
||||||
mcl_util.mcl_log("item velocity calculated "..vector.to_string(v), "[mcl_util]")
|
|
||||||
end
|
|
||||||
if not insta_collect then
|
|
||||||
obj:get_luaentity()._insta_collect = false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
stack:clear()
|
|
||||||
src_inv:set_stack(src_listname, i, stack)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
---Move items from a player's inventory list to its main inventory list, drop items that do not fit in front of him.
|
|
||||||
---@param player mt.PlayerObjectRef
|
|
||||||
---@param src_listname string
|
|
||||||
function mcl_util.move_player_list(player, src_listname)
|
|
||||||
mcl_util.move_list(player:get_inventory(), src_listname, player:get_inventory(), "main",
|
|
||||||
vector.offset(player:get_pos(), 0, 1.2, 0),
|
|
||||||
player:get_look_dir(), false)
|
|
||||||
end
|
|
||||||
|
|
||||||
function mcl_util.is_it_christmas()
|
|
||||||
local date = os.date("*t")
|
|
||||||
if date.month == 12 and date.day >= 24 or date.month == 1 and date.day <= 7 then
|
|
||||||
return true
|
|
||||||
else
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
|
@ -62,13 +62,8 @@ end
|
||||||
local function set_double_attach(boat)
|
local function set_double_attach(boat)
|
||||||
boat._driver:set_attach(boat.object, "",
|
boat._driver:set_attach(boat.object, "",
|
||||||
{x = 0, y = 0.42, z = 0.8}, {x = 0, y = 0, z = 0})
|
{x = 0, y = 0.42, z = 0.8}, {x = 0, y = 0, z = 0})
|
||||||
if boat._passenger:is_player() then
|
boat._passenger:set_attach(boat.object, "",
|
||||||
boat._passenger:set_attach(boat.object, "",
|
{x = 0, y = 0.42, z = -2.2}, {x = 0, y = 0, z = 0})
|
||||||
{x = 0, y = 0.42, z = -6.2}, {x = 0, y = 0, z = 0})
|
|
||||||
else
|
|
||||||
boat._passenger:set_attach(boat.object, "",
|
|
||||||
{x = 0, y = 0.42, z = -4.5}, {x = 0, y = 270, z = 0})
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
local function set_choat_attach(boat)
|
local function set_choat_attach(boat)
|
||||||
boat._driver:set_attach(boat.object, "",
|
boat._driver:set_attach(boat.object, "",
|
||||||
|
@ -160,7 +155,7 @@ local boat = {
|
||||||
minetest.register_on_respawnplayer(detach_object)
|
minetest.register_on_respawnplayer(detach_object)
|
||||||
|
|
||||||
function boat.on_rightclick(self, clicker)
|
function boat.on_rightclick(self, clicker)
|
||||||
if self._passenger or not clicker or clicker:get_attach() or (self.name == "mcl_boats:chest_boat" and self._driver) then
|
if self._passenger or not clicker or clicker:get_attach() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
attach_object(self, clicker)
|
attach_object(self, clicker)
|
||||||
|
|
|
@ -12,7 +12,6 @@ Water vehicle=Véhicule aquatique
|
||||||
Sneak to dismount=Se baisser pour descendre
|
Sneak to dismount=Se baisser pour descendre
|
||||||
Obsidian Boat=Bateau en obsidienne
|
Obsidian Boat=Bateau en obsidienne
|
||||||
Mangrove Boat=Bateau en palétuvier
|
Mangrove Boat=Bateau en palétuvier
|
||||||
Cherry Boat=Bateau en cerisier
|
|
||||||
Oak Chest Boat=Bateau en chêne avec coffre
|
Oak Chest Boat=Bateau en chêne avec coffre
|
||||||
Spruce Chest Boat=Bateau en sapin avec coffre
|
Spruce Chest Boat=Bateau en sapin avec coffre
|
||||||
Birch Chest Boat=Bateau en bouleau avec coffre
|
Birch Chest Boat=Bateau en bouleau avec coffre
|
||||||
|
@ -20,4 +19,3 @@ Jungle Chest Boat=Bateau en acajou avec coffre
|
||||||
Acacia Chest Boat=Bateau en acacia avec coffre
|
Acacia Chest Boat=Bateau en acacia avec coffre
|
||||||
Dark Oak Chest Boat=Bateau en chêne noir avec coffre
|
Dark Oak Chest Boat=Bateau en chêne noir avec coffre
|
||||||
Mangrove Chest Boat=Bateau en palétuvier avec coffre
|
Mangrove Chest Boat=Bateau en palétuvier avec coffre
|
||||||
Cherry Chest Boat=Bateau en cerisier avec coffre
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
# textdomain: mcl_boats
|
|
||||||
Acacia Boat=Barca de Cacèir
|
|
||||||
Birch Boat=Barca de Beç
|
|
||||||
Boat=Barca
|
|
||||||
Boats are used to travel on the surface of water.=Las barcas son utilizadas per voiatja per aigas.
|
|
||||||
Dark Oak Boat=Barca de Ròure Nèir
|
|
||||||
Jungle Boat=Barca d'Acajó
|
|
||||||
Oak Boat=Barca de Ròure
|
|
||||||
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Use [Sneak] to leave the boat, punch the boat to make it drop as an item.=Fasetz un clic dreit sobre una sorça d'aiga per plaça la barca. Fasetz un clic dreit sobre la barca per rintrar. Utilizatz [Gaucha] e [Dreita] per menar, [Davant] per accelerar e [Darrèir] per ralentir o racuolar. Utilizatz [Sneak] per z-o quitar, tustatz la barca per z-o faire tombar coma objècte.
|
|
||||||
Spruce Boat=Barca de Sap
|
|
||||||
Water vehicle=Veïcule per aiga
|
|
||||||
Sneak to dismount=Se baissar per descendre
|
|
||||||
Obsidian Boat=Barca d'Obsidiana
|
|
||||||
Mangrove Boat=Barca de Paletuvèir
|
|
||||||
Oak Chest Boat=Barca de Ròure embei una Mala
|
|
||||||
Spruce Chest Boat=Barca de Sap embei una Mala
|
|
||||||
Birch Chest Boat=Barca de Beç embei una Mala
|
|
||||||
Jungle Chest Boat=Barca d'Acajó embei una Mala
|
|
||||||
Acacia Chest Boat=Barca de Cacèir embei una Mala
|
|
||||||
Dark Oak Chest Boat=Barca de Ròure Nèir embei una Mala
|
|
||||||
Mangrove Chest Boat=Barca de Paletuvèir embei una Mala
|
|
|
@ -1,23 +0,0 @@
|
||||||
# textdomain: mcl_boats
|
|
||||||
Acacia Boat=Barco de Acácia
|
|
||||||
Birch Boat=Barco de Bétula
|
|
||||||
Boat=Barco
|
|
||||||
Boats are used to travel on the surface of water.=Barcos são usados para viajar na superfície da água
|
|
||||||
Dark Oak Boat=Barco de Carvalho Escuro
|
|
||||||
Jungle Boat=Barco de Selva
|
|
||||||
Oak Boat=Barco de Carvalho
|
|
||||||
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Use [Sneak] to leave the boat, punch the boat to make it drop as an item.=Clique com o botão direito em uma fonte de água para posicionar o barco. Clique com o botão direito no barco para entrar nele. Use [Esquerda] e [Direita] para fazer curva, [Frente] para acelerar e [Trás] para frear e ir para trás. Use [Agachar] para deixar o barco, soque-o para fazê-lo dropar como um item.
|
|
||||||
Spruce Boat=Barco de Pinheiro
|
|
||||||
Water vehicle=Veículo aquático
|
|
||||||
Sneak to dismount=Agache para desmontar
|
|
||||||
Obsidian Boat=Barco de Obsidiana
|
|
||||||
Mangrove Boat=Barco de Mangue
|
|
||||||
Cherry Boat=Barco de Cerejeira
|
|
||||||
Oak Chest Boat=Barco de Carvalho com Baú
|
|
||||||
Spruce Chest Boat=Barco de Pinheiro com Baú
|
|
||||||
Birch Chest Boat=Barco de Bétula com Baú
|
|
||||||
Jungle Chest Boat=Barco de Selva com Baú
|
|
||||||
Acacia Chest Boat=Barco de Acácia com Baú
|
|
||||||
Dark Oak Chest Boat=Barco de Carvalho Escuro com Baú
|
|
||||||
Mangrove Chest Boat=Barco de Mangue com Baú
|
|
||||||
Cherry Chest Boat=Barco de Cerejeira com Baú
|
|
|
@ -1,23 +1,11 @@
|
||||||
# textdomain: mcl_boats
|
# textdomain: mcl_boats
|
||||||
Acacia Boat=Акациевая лодка
|
Acacia Boat=Лодка из акации
|
||||||
Birch Boat=Берёзовая лодка
|
Birch Boat=Берёзовая лодка
|
||||||
Boat=Лодка
|
Boat=Лодка
|
||||||
Boats are used to travel on the surface of water.=На лодке можно плыть по водной поверхности.
|
Boats are used to travel on the surface of water.=С помощью лодки можно путешествовать по водной поверхности.
|
||||||
Dark Oak Boat=Лодка из тёмного дуба
|
Dark Oak Boat=Лодка из тёмного дуба
|
||||||
Jungle Boat=Лодка из тропического дерева
|
Jungle Boat=Лодка из дерева джунглей
|
||||||
Oak Boat=Дубовая лодка
|
Oak Boat=Дубовая лодка
|
||||||
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Use [Sneak] to leave the boat, punch the boat to make it drop as an item.=Правый клик на воде, чтобы установить лодку. Правый клик по лодке, чтобы сесть в нее. [Влево] и [Вправо] - рулить, [Вперед] - разгоняться, [Назад] - тормозить или плыть назад. Нажмите [Красться] для высадки, бейте по лодке, чтобы забрать её.
|
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Rightclick the boat again to leave it, punch the boat to make it drop as an item.=Правый клик по воде спустит лодку на воду. Правый клик по лодке разместит вас в ней. [Влево] и [Вправо] - рулить, [Вперед] - разгоняться, [Назад] - тормозить или плыть назад. Правый клик по лодке, когда вы в ней, позволит выйти из неё. Удар по лодке превратит её обратно в предмет.
|
||||||
Spruce Boat=Еловая лодка
|
Spruce Boat=Еловая лодка
|
||||||
Water vehicle=Водный транспорт
|
Water vehicle=Водный транспорт
|
||||||
Sneak to dismount=Нажмите [Красться] для высадки
|
|
||||||
Obsidian Boat=Обсидиановая лодка
|
|
||||||
Mangrove Boat=Мангровая лодка
|
|
||||||
Cherry Boat=Вишнёвая лодка
|
|
||||||
Oak Chest Boat=Дубовая лодка с сундуком
|
|
||||||
Spruce Chest Boat=Еловая лодка с сундуком
|
|
||||||
Birch Chest Boat=Берёзовая лодка с сундуком
|
|
||||||
Jungle Chest Boat=Лодка из тропического дерева с сундуком
|
|
||||||
Acacia Chest Boat=Акациевая лодка с сундуком
|
|
||||||
Dark Oak Chest Boat=Лодка из тёмного дуба с сундуком
|
|
||||||
Mangrove Chest Boat=Мангровая лодка с сундуком
|
|
||||||
Cherry Chest Boat=Вишнёвая лодка с сундуком
|
|
|
@ -21,7 +21,7 @@ mcl_dripping.register_drop({
|
||||||
-- The group the liquid's nodes belong to
|
-- The group the liquid's nodes belong to
|
||||||
liquid = "water",
|
liquid = "water",
|
||||||
-- The texture used (particles will take a random 2x2 area of it)
|
-- The texture used (particles will take a random 2x2 area of it)
|
||||||
texture = "mcl_core_water_source_animation.png",
|
texture = "default_water_source_animated.png",
|
||||||
-- Define particle glow, ranges from `0` to `minetest.LIGHT_MAX`
|
-- Define particle glow, ranges from `0` to `minetest.LIGHT_MAX`
|
||||||
light = 1,
|
light = 1,
|
||||||
-- The nodes (or node group) the particles will spawn under
|
-- The nodes (or node group) the particles will spawn under
|
||||||
|
|
|
@ -82,7 +82,7 @@ end
|
||||||
|
|
||||||
mcl_dripping.register_drop({
|
mcl_dripping.register_drop({
|
||||||
liquid = "water",
|
liquid = "water",
|
||||||
texture = "mcl_core_water_source_animation.png",
|
texture = "default_water_source_animated.png",
|
||||||
light = 1,
|
light = 1,
|
||||||
nodes = { "group:opaque", "group:leaves" },
|
nodes = { "group:opaque", "group:leaves" },
|
||||||
sound = "drippingwater_drip",
|
sound = "drippingwater_drip",
|
||||||
|
@ -92,7 +92,7 @@ mcl_dripping.register_drop({
|
||||||
|
|
||||||
mcl_dripping.register_drop({
|
mcl_dripping.register_drop({
|
||||||
liquid = "lava",
|
liquid = "lava",
|
||||||
texture = "mcl_core_lava_source_animation.png",
|
texture = "default_lava_source_animated.png",
|
||||||
light = math.max(7, minetest.registered_nodes["mcl_core:lava_source"].light_source - 3),
|
light = math.max(7, minetest.registered_nodes["mcl_core:lava_source"].light_source - 3),
|
||||||
nodes = { "group:opaque" },
|
nodes = { "group:opaque" },
|
||||||
sound = "drippingwater_lavadrip",
|
sound = "drippingwater_lavadrip",
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# textdomain: mcl_falling_nodes
|
|
||||||
@1 was smashed by a falling anvil.=@1 a estat espotit per un enclutge
|
|
||||||
@1 was smashed by a falling block.=@1 a estat espotit per un blòc
|
|
|
@ -1,3 +0,0 @@
|
||||||
# textdomain: mcl_falling_nodes
|
|
||||||
@1 was smashed by a falling anvil.=@1 foi esmagado(a) por uma bigorna em queda.
|
|
||||||
@1 was smashed by a falling block.=@1 foi esmagado(a) por um bloco em queda.
|
|
|
@ -1,3 +0,0 @@
|
||||||
# textdomain: mcl_falling_nodes
|
|
||||||
@1 was smashed by a falling anvil.=@1 был(а) раздавлен(а) падающей наковальней.
|
|
||||||
@1 was smashed by a falling block.=@1 был(а) раздавлен(а) падающим блоком.
|
|
|
@ -362,121 +362,6 @@ function minetest.handle_node_drops(pos, drops, digger)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- the following code is pulled from Minetest builtin without changes except for the call order being changed,
|
|
||||||
-- until a comment saying explicitly it's the end of such code
|
|
||||||
-- TODO if this gets a fix in the engine, remove the block of code
|
|
||||||
local function user_name(user)
|
|
||||||
return user and user:get_player_name() or ""
|
|
||||||
end
|
|
||||||
-- Returns a logging function. For empty names, does not log.
|
|
||||||
local function make_log(name)
|
|
||||||
return name ~= "" and minetest.log or function() end
|
|
||||||
end
|
|
||||||
function minetest.node_dig(pos, node, digger)
|
|
||||||
local diggername = user_name(digger)
|
|
||||||
local log = make_log(diggername)
|
|
||||||
local def = minetest.registered_nodes[node.name]
|
|
||||||
-- Copy pos because the callback could modify it
|
|
||||||
if def and (not def.diggable or
|
|
||||||
(def.can_dig and not def.can_dig(vector.copy(pos), digger))) then
|
|
||||||
log("info", diggername .. " tried to dig "
|
|
||||||
.. node.name .. " which is not diggable "
|
|
||||||
.. minetest.pos_to_string(pos))
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.is_protected(pos, diggername) then
|
|
||||||
log("action", diggername
|
|
||||||
.. " tried to dig " .. node.name
|
|
||||||
.. " at protected position "
|
|
||||||
.. minetest.pos_to_string(pos))
|
|
||||||
minetest.record_protection_violation(pos, diggername)
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
log('action', diggername .. " digs "
|
|
||||||
.. node.name .. " at " .. minetest.pos_to_string(pos))
|
|
||||||
|
|
||||||
local wielded = digger and digger:get_wielded_item()
|
|
||||||
local drops = minetest.get_node_drops(node, wielded and wielded:get_name())
|
|
||||||
|
|
||||||
-- Check to see if metadata should be preserved.
|
|
||||||
if def and def.preserve_metadata then
|
|
||||||
local oldmeta = minetest.get_meta(pos):to_table().fields
|
|
||||||
-- Copy pos and node because the callback can modify them.
|
|
||||||
local pos_copy = vector.copy(pos)
|
|
||||||
local node_copy = {name=node.name, param1=node.param1, param2=node.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
|
|
||||||
|
|
||||||
-- Handle drops
|
|
||||||
minetest.handle_node_drops(pos, drops, digger)
|
|
||||||
|
|
||||||
if wielded then
|
|
||||||
local wdef = wielded:get_definition()
|
|
||||||
local tp = wielded:get_tool_capabilities()
|
|
||||||
local dp = minetest.get_dig_params(def and def.groups, tp, wielded:get_wear())
|
|
||||||
if wdef and wdef.after_use then
|
|
||||||
wielded = wdef.after_use(wielded, digger, node, dp) or wielded
|
|
||||||
else
|
|
||||||
-- Wear out tool
|
|
||||||
if not minetest.is_creative_enabled(diggername) then
|
|
||||||
wielded:add_wear(dp.wear)
|
|
||||||
if wielded:get_count() == 0 and wdef.sound and wdef.sound.breaks then
|
|
||||||
minetest.sound_play(wdef.sound.breaks, {
|
|
||||||
pos = pos,
|
|
||||||
gain = 0.5
|
|
||||||
}, true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
digger:set_wielded_item(wielded)
|
|
||||||
end
|
|
||||||
|
|
||||||
local oldmetadata = nil
|
|
||||||
if def and def.after_dig_node then
|
|
||||||
oldmetadata = minetest.get_meta(pos):to_table()
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Remove node and update
|
|
||||||
minetest.remove_node(pos)
|
|
||||||
|
|
||||||
-- Play sound if it was done by a player
|
|
||||||
if diggername ~= "" and def and def.sounds and def.sounds.dug then
|
|
||||||
minetest.sound_play(def.sounds.dug, {
|
|
||||||
pos = pos,
|
|
||||||
exclude_player = diggername,
|
|
||||||
}, true)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Run callback
|
|
||||||
if def and def.after_dig_node then
|
|
||||||
-- Copy pos and node because callback can modify them
|
|
||||||
local pos_copy = vector.copy(pos)
|
|
||||||
local node_copy = {name=node.name, param1=node.param1, param2=node.param2}
|
|
||||||
def.after_dig_node(pos_copy, node_copy, oldmetadata, digger)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Run script hook
|
|
||||||
for _, callback in ipairs(minetest.registered_on_dignodes) do
|
|
||||||
local origin = minetest.callback_origins[callback]
|
|
||||||
minetest.set_last_run_mod(origin.mod)
|
|
||||||
|
|
||||||
-- Copy pos and node because callback can modify them
|
|
||||||
local pos_copy = vector.copy(pos)
|
|
||||||
local node_copy = {name=node.name, param1=node.param1, param2=node.param2}
|
|
||||||
callback(pos_copy, node_copy, digger)
|
|
||||||
end
|
|
||||||
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
-- end of code pulled from Minetest
|
|
||||||
|
|
||||||
-- Drop single items by default
|
-- Drop single items by default
|
||||||
function minetest.item_drop(itemstack, dropper, pos)
|
function minetest.item_drop(itemstack, dropper, pos)
|
||||||
if dropper and dropper:is_player() then
|
if dropper and dropper:is_player() then
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
# textdomain: mcl_minecarts
|
|
||||||
Minecart=Vagonet
|
|
||||||
Minecarts can be used for a quick transportion on rails.=Los vagonet pòdon èsser utilizats per un transpòrt rapide per ralhs.
|
|
||||||
Minecarts only ride on rails and always follow the tracks. At a T-junction with no straight way ahead, they turn left. The speed is affected by the rail type.=Los vagonets ròtlon mas per ralhs e seguisson totjorn la pista. A una joncion T embei ren davant, tòrnon a gaucha.
|
|
||||||
You can place the minecart on rails. Right-click it to enter it. Punch it to get it moving.=Podètz plaçar le vagonet per ralhs. Fasetz un clic dreit dessobre per çai rentrar. Tustatz z-o per z-o faire bojar.
|
|
||||||
To obtain the minecart, punch it while holding down the sneak key.=Per aver le vagonet, tustatz z-o embei la tocha sneak enfonçada.
|
|
||||||
A minecart with TNT is an explosive vehicle that travels on rail.=Un vagonet embei TNT z-es un vagonet explosiu que voiatja per ralhs.
|
|
||||||
Place it on rails. Punch it to move it. The TNT is ignited with a flint and steel or when the minecart is on an powered activator rail.=Plaçatz z-o per ralhs. Tustatz z-o per z-o desplaçar. La TNT z-es atubada embei un batifuòc o quand le vagonet z-es per un ralh d'activacion atubat.
|
|
||||||
To obtain the minecart and TNT, punch them while holding down the sneak key. You can't do this if the TNT was ignited.=Per obtenèr le vagonet e la TNT, tustatz z-o embei la tocha sneak enfonçada. Podètz pas faire quo si la TNT z-es atubada.
|
|
||||||
A minecart with furnace is a vehicle that travels on rails. It can propel itself with fuel.=Un vagonet embei un fornil z-es un veïcule que voiatja per ralhs. Pòt se propulsar embei dau carburant.
|
|
||||||
Place it on rails. If you give it some coal, the furnace will start burning for a long time and the minecart will be able to move itself. Punch it to get it moving.=Plaçatz z-o per ralhs. Si li balhatz dau charbon, le fornil vai començar de borlar lòngtemps e porà rotlar. Tustatz z-o per z-o faire bojar.
|
|
||||||
To obtain the minecart and furnace, punch them while holding down the sneak key.=Per obtener le vagonet e le fornil, tustatz z-o embei la tocha sneak enfonçada.
|
|
||||||
Minecart with Chest=Vagonet embei una Mala
|
|
||||||
Minecart with Furnace=Vagonet embei un Fornil
|
|
||||||
Minecart with Command Block=Vagonet embei un Blòc de Comandas
|
|
||||||
Minecart with Hopper=Vagonet embei un Embure
|
|
||||||
Minecart with TNT=Vagonet embei de la TNT
|
|
||||||
Place them on the ground to build your railway, the rails will automatically connect to each other and will turn into curves, T-junctions, crossings and slopes as needed.=Plaçatz z-o per sòu per construrre vostre chamin de fèrre, los ralhs se conectaron entre ilhs e faron de las corbas, de las junccions en T, en traversadas et en pentas au besonh.
|
|
||||||
Rail=Ralh
|
|
||||||
Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction.=Los ralhs pòdon èsser utilizats per construrre los chamins de transpòrt per los vagonets. Los ralhs normaus ralentissons gentament los vagonet per causa de friccion.
|
|
||||||
Powered Rail=Ralh Atubat
|
|
||||||
Rails can be used to build transport tracks for minecarts. Powered rails are able to accelerate and brake minecarts.=Los ralhs pòdon èsser utilizats per construrre los chamins de transpòrt per los vagonets. Los ralhs atubats son per faire accelerar o frenar los vagonets.
|
|
||||||
Without redstone power, the rail will brake minecarts. To make this rail accelerate minecarts, power it with redstone power.=Sens energia de pèirotge, le ralh vai frenar los vagonets. Per que le ralh accelera los vagonets, alimentatz z-o embei de l'energia de pèirotge.
|
|
||||||
Activator Rail=Ralh d'Activacion
|
|
||||||
Rails can be used to build transport tracks for minecarts. Activator rails are used to activate special minecarts.=Los ralhs pòdon èsser utilizats per construrre los chamins de transpòrt per los vagonets. Los ralhs d'activacion son utilizats per activar daus vagonets speciaus.
|
|
||||||
To make this rail activate minecarts, power it with redstone power and send a minecart over this piece of rail.=Per activar le ralh, alimentatz z-o embei de l'energia de pèirotge e fasetz rotlar un vagonet per aqueste ralh.
|
|
||||||
Detector Rail=Ralh de Deteccion
|
|
||||||
Rails can be used to build transport tracks for minecarts. A detector rail is able to detect a minecart above it and powers redstone mechanisms.=Los ralhs pòdon èsser utilizats per construirre los chamins de transpòrt per los vagonets. Los ralhs de deteccion pòdon detectar un vagonet per ilhs e atubar un mecanisme de pèirotge.
|
|
||||||
To detect a minecart and provide redstone power, connect it to redstone trails or redstone mechanisms and send any minecart over the rail.=Per detectar un vagonet e produrre de l'energia de pèirotge, conectatz le ralh a de la pèirotge e fasetz rotlar un vagonet per i-aul.
|
|
||||||
Track for minecarts=Pista per vagonets
|
|
||||||
Speed up when powered, slow down when not powered=Acceleratz quand z-es atubat, ralentissetz quand z-es pas atubat.
|
|
||||||
Activates minecarts when powered=Activa los vagonets quand pas atubat.
|
|
||||||
Emits redstone power when a minecart is detected=Emeta de l'energia de pèirotge quand un vagonet z-es detectat.
|
|
||||||
Vehicle for fast travel on rails=Veicule per voiatjar vistament per ralhs.
|
|
||||||
Can be ignited by tools or powered activator rail=Pòt èsser atubat embei daus otilhs o un ralh d'activacion
|
|
||||||
Sneak to dismount=Se baissar per descendre
|
|
|
@ -1,36 +0,0 @@
|
||||||
# textdomain: mcl_minecarts
|
|
||||||
Minecart=Carrinho
|
|
||||||
Minecarts can be used for a quick transportion on rails.=Carrinhos podem ser usados para transporte rápido em trilhos.
|
|
||||||
Minecarts only ride on rails and always follow the tracks. At a T-junction with no straight way ahead, they turn left. The speed is affected by the rail type.=Carrinhos viajam somente em trilhos e sempre seguem os traçados. Em uma junção em T sem linha reta à frente, eles viram à esquerda. A velocidade é afetada pelo tipo do trilho.
|
|
||||||
You can place the minecart on rails. Right-click it to enter it. Punch it to get it moving.=Você pode posicionar o carrinho em trilhos. Clique com o botão direito para entrar nele. Soque-o para fazê-lo mover.
|
|
||||||
To obtain the minecart, punch it while holding down the sneak key.=Para obter o carrinho, soque-o enquanto segura pressionada a tecla de agachar.
|
|
||||||
A minecart with TNT is an explosive vehicle that travels on rail.=Um carrinho com TNT é um veículo explosivo que viaja nos trilhos.
|
|
||||||
Place it on rails. Punch it to move it. The TNT is ignited with a flint and steel or when the minecart is on an powered activator rail.=Posicione-o nos trilhos. Soque-o para movê-lo. A TNT é acesa com um isqueiro ou quando o carrinho está sobre um trilho ativador energizado.
|
|
||||||
To obtain the minecart and TNT, punch them while holding down the sneak key. You can't do this if the TNT was ignited.=Para obter o carrinho e a TNT, soque-os enquanto segura pressionada a tecla de agachar. Você não consegue fazer isso se a TNT foi acesa.
|
|
||||||
A minecart with furnace is a vehicle that travels on rails. It can propel itself with fuel.=Um carrinho com fornalha é um veículo que viaja nos trilhos. Se move por conta própria com combustível.
|
|
||||||
Place it on rails. If you give it some coal, the furnace will start burning for a long time and the minecart will be able to move itself. Punch it to get it moving.=Posicione-o nos trilhos. Se você o der um pouco de carvão, a fornalha vai começar a queimar por um longo tempo e o carrinho será capaz de se mover por conta própria. Soque-o para fazê-lo mover.
|
|
||||||
To obtain the minecart and furnace, punch them while holding down the sneak key.=Para obter o carrinho e a fornalha, soque-os enquanto segura pressionada a tecla de agachar.
|
|
||||||
Minecart with Chest=Carrinho com Baú
|
|
||||||
Minecart with Furnace=Carrinho com Fornalha
|
|
||||||
Minecart with Command Block=Carrinho com Bloco de Comandos
|
|
||||||
Minecart with Hopper=Carrinho com Funil
|
|
||||||
Minecart with TNT=Carrinho com TNT
|
|
||||||
Place them on the ground to build your railway, the rails will automatically connect to each other and will turn into curves, T-junctions, crossings and slopes as needed.=Posicione-os no chão para construir suas linhas férreas, os trilhos vão conectar-se automaticamente uns nos outros e vão se transformar em curvas, junções em T, cruzamentos e rampas quando necessário.
|
|
||||||
Rail=Trilho
|
|
||||||
Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Trilhos normais freiam carrinhos gradativamente devido ao atrito.
|
|
||||||
Powered Rail=Trilho Energizador
|
|
||||||
Rails can be used to build transport tracks for minecarts. Powered rails are able to accelerate and brake minecarts.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Trilhos energizados são capazes de acelerar e frear carrinhos.
|
|
||||||
Without redstone power, the rail will brake minecarts. To make this rail accelerate minecarts, power it with redstone power.=Sem carga de redstone, o trilho vai frear os carrinhos. Para fazer o trilho acelerar os carrinhos, energize-o com uma carga de redstone.
|
|
||||||
Activator Rail=Trilho Ativador
|
|
||||||
Rails can be used to build transport tracks for minecarts. Activator rails are used to activate special minecarts.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Trilhos ativadores são usados para ativar carrinhos especiais.
|
|
||||||
To make this rail activate minecarts, power it with redstone power and send a minecart over this piece of rail.=Para fazer esse trilho ativar os carrinhos, energize-o com uma carga de redstone e envie um carrinho sobre esse pedaço de trilho.
|
|
||||||
Detector Rail=Trilho Detector
|
|
||||||
Rails can be used to build transport tracks for minecarts. A detector rail is able to detect a minecart above it and powers redstone mechanisms.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Um trilho detector é capaz de detectar um carrinho sobre ele e energizar mecanismos de redstone.
|
|
||||||
To detect a minecart and provide redstone power, connect it to redstone trails or redstone mechanisms and send any minecart over the rail.=Para detectar um carrinho e providenciar carga de redstone, conecte-o em trilhas de redstone ou mecanismos de redstone e envie qualquer carrinho sobre esse trilho.
|
|
||||||
Track for minecarts=Traçado para carrinhos
|
|
||||||
Speed up when powered, slow down when not powered=Acelera quando energizado, desacelera quando não energizado
|
|
||||||
Activates minecarts when powered=Ativa carrinhos quando energizado
|
|
||||||
Emits redstone power when a minecart is detected=Emite carga de redstone quando um carrinho é detectado
|
|
||||||
Vehicle for fast travel on rails=Veículo para viajar rápido em trilhos
|
|
||||||
Can be ignited by tools or powered activator rail=Pode ser aceso por ferramentas ou trilho ativador energizado
|
|
||||||
Sneak to dismount=Agache para desmontar
|
|
|
@ -1,36 +1,36 @@
|
||||||
# textdomain: mcl_minecarts
|
# textdomain: mcl_minecarts
|
||||||
Minecart=Вагонетка
|
Minecart=Вагонетка
|
||||||
Minecarts can be used for a quick transportion on rails.=Вагонетка может быть использована для быстрого перемещения по рельсам.
|
Minecarts can be used for a quick transportion on rails.=Вагонетки нужны, чтобы быстро перемещаться по рельсам.
|
||||||
Minecarts only ride on rails and always follow the tracks. At a T-junction with no straight way ahead, they turn left. The speed is affected by the rail type.=Вагонетки едут только по проложенным рельсам. На Т-образной развилке они поворачивают налево. Скорость зависит от типа рельсов.
|
Minecarts only ride on rails and always follow the tracks. At a T-junction with no straight way ahead, they turn left. The speed is affected by the rail type.=Вагонетки едут строго по проложенному железнодорожному пути. На Т-образной развилке они поворачивают налево. Скорость зависит от типа рельсов.
|
||||||
You can place the minecart on rails. Right-click it to enter it. Punch it to get it moving.=Вы можете поставить вагонетку на рельсы. Правым кликом сядьте в неё. Ударьте по ней, чтобы она поехала.
|
You can place the minecart on rails. Right-click it to enter it. Punch it to get it moving.=Вы ставите вагонетку на рельсы. Правым кликом садитесь в неё. Стукаете, чтобы начать движение.
|
||||||
To obtain the minecart, punch it while holding down the sneak key.=Чтобы забрать вагонетку, ударьте по ней, удерживая клавишу [Красться].
|
To obtain the minecart, punch it while holding down the sneak key.=Чтобы взять вагонетку, стукните её, удерживая клавишу [Красться].
|
||||||
A minecart with TNT is an explosive vehicle that travels on rail.=Вагонетка с ТНТ это взрывающийся железнодорожный транспорт.
|
A minecart with TNT is an explosive vehicle that travels on rail.=Вагон тротила это подрывной железнодорожный транспорт.
|
||||||
Place it on rails. Punch it to move it. The TNT is ignited with a flint and steel or when the minecart is on an powered activator rail.=Поместите вагонетку на рельсы. Ударьте по ней, чтобы она поехала. ТНТ активируется, если его поджечь огнивом или когда вагонетка проедет через подключенные активирующие рельсы.
|
Place it on rails. Punch it to move it. The TNT is ignited with a flint and steel or when the minecart is on an powered activator rail.=Поместите его на рельсы. Стукните, чтобы он поехал. Тротил воспламеняется, если его поджечь огнивом, либо при попадании на подключенный рельсовый активатор.
|
||||||
To obtain the minecart and TNT, punch them while holding down the sneak key. You can't do this if the TNT was ignited.=Чтобы забрать вагонетку с ТНТ, ударьте по ней, удерживая клавишу [Красться]. Если ТНТ подожжён, сделать это нельзя.
|
To obtain the minecart and TNT, punch them while holding down the sneak key. You can't do this if the TNT was ignited.=Чтобы взять вагон тротила, стукните его, удерживая клавишу [Красться]. Если тротил воспламенён, сделать это нельзя.
|
||||||
A minecart with furnace is a vehicle that travels on rails. It can propel itself with fuel.=Вагонетка с печью это железнодорожный транспорт. Она может ехать сама за счёт топлива.
|
A minecart with furnace is a vehicle that travels on rails. It can propel itself with fuel.=Вагон с печью - это железнодорожный транспорт. Он может двигаться за счёт топлива.
|
||||||
Place it on rails. If you give it some coal, the furnace will start burning for a long time and the minecart will be able to move itself. Punch it to get it moving.=Поставьте вагонетку на рельсы. Если добавить в неё угля, то печь будет гореть продолжительное время и вагонетка сможет поехать сама. Ударьте по ней, чтобы она поехала.
|
Place it on rails. If you give it some coal, the furnace will start burning for a long time and the minecart will be able to move itself. Punch it to get it moving.=Поставьте его на рельсы. Если добавить немного угля, то печь зажжётся на продолжительное время и вагон сможет ехать. Стукните вагон для начала движения.
|
||||||
To obtain the minecart and furnace, punch them while holding down the sneak key.=Чтобы забрать вагонетку с печью, ударьте по ней, удерживая клавишу [Красться].
|
To obtain the minecart and furnace, punch them while holding down the sneak key.=Чтобы взять вагон с печью, стукните его, удерживая клавишу [Красться].
|
||||||
Minecart with Chest=Вагонетка с сундуком
|
Minecart with Chest=Вагон с сундуком
|
||||||
Minecart with Furnace=Вагонетка с печью
|
Minecart with Furnace=Вагон с печью
|
||||||
Minecart with Command Block=Вагонетка с командным блоком
|
Minecart with Command Block=Вагон с командным блоком
|
||||||
Minecart with Hopper=Вагонетка с воронкой
|
Minecart with Hopper=Вагон с бункером
|
||||||
Minecart with TNT=Вагонетка с ТНТ
|
Minecart with TNT=Вагон тротила
|
||||||
Place them on the ground to build your railway, the rails will automatically connect to each other and will turn into curves, T-junctions, crossings and slopes as needed.=Поместите рельсы на землю, чтобы сделать железную дорогу, рельсы автоматически соединятся между собой и будут образовывать повороты, T-образные развилки, перекрёстки и склоны там, где это потребуется.
|
Place them on the ground to build your railway, the rails will automatically connect to each other and will turn into curves, T-junctions, crossings and slopes as needed.=Поместите на землю, чтобы сделать железную дорогу, рельсы автоматически соединятся между собой и будут превращаться в плавный повороты, T-образные развилки, перекрёстки и уклоны там, где это потребуется.
|
||||||
Rail=Рельсы
|
Rail=Рельсы
|
||||||
Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction.=Рельсы используются для строительства железной дороги. Обычные рельсы немного замедляют движение вагонеток из-за трения.
|
Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction.=Рельсы используются для строительства железной дороги. Обычные рельсы немного замедляют движение вагонеток из-за трения.
|
||||||
Powered Rail=Энергорельсы
|
Powered Rail=Подключаемые рельсы
|
||||||
Rails can be used to build transport tracks for minecarts. Powered rails are able to accelerate and brake minecarts.=Энергорельсы используются для строительства железной дороги. Энергорельсы могут ускорять и тормозить вагонетки.
|
Rails can be used to build transport tracks for minecarts. Powered rails are able to accelerate and brake minecarts.=Рельсы используются для строительства железной дороги. Подключённые рельсы могут разгонять и тормозить вагонетки.
|
||||||
Without redstone power, the rail will brake minecarts. To make this rail accelerate minecarts, power it with redstone power.=Неподключенные энергорельсы замедляют вагонетки. Чтобы энергорельсы ускоряли вагонетки, проведите к ним сигнал редстоуна.
|
Without redstone power, the rail will brake minecarts. To make this rail accelerate minecarts, power it with redstone power.=Без энергии редстоуна рельсы будут тормозить вагонетки.
|
||||||
Activator Rail=Активирующие рельсы
|
Activator Rail=Рельсовый активатор
|
||||||
Rails can be used to build transport tracks for minecarts. Activator rails are used to activate special minecarts.=Активирующие рельсы используются для строительства железной дороги. Активирующие рельсы активируют некоторые особые вагонетки.
|
Rails can be used to build transport tracks for minecarts. Activator rails are used to activate special minecarts.=Рельсы используются для строительства железной дороги. Рельсовый активатор активирует особые вагонетки.
|
||||||
To make this rail activate minecarts, power it with redstone power and send a minecart over this piece of rail.=Чтобы эти рельсы активировали вагонетки, подключите активирующие рельсы к сигналу редстоуна и направьте вагонетку через них.
|
To make this rail activate minecarts, power it with redstone power and send a minecart over this piece of rail.=Чтобы этот блок рельсов активировал вагонетку, подключите его к энергии редстоуна и направьте вагонетку через него.
|
||||||
Detector Rail=Нажимные рельсы
|
Detector Rail=Рельсовый детектор
|
||||||
Rails can be used to build transport tracks for minecarts. A detector rail is able to detect a minecart above it and powers redstone mechanisms.=Нажимные рельсы используются для строительства железной дороги. Нажимные рельсы реагируют на проезжающие по ним вагонетки и выдают сигнал для механизмов из редстоуна.
|
Rails can be used to build transport tracks for minecarts. A detector rail is able to detect a minecart above it and powers redstone mechanisms.=Рельсы используются для строительства железной дороги. Рельсовый детектор может обнаруживать вагонетку у себя наверху и подключать механизмы редстоуна.
|
||||||
To detect a minecart and provide redstone power, connect it to redstone trails or redstone mechanisms and send any minecart over the rail.=Подсоедините к нажимным рельсам редстоун или редстоуновые механизмы, чтобы активировать их когда по рельсам проезжает вагонетка.
|
To detect a minecart and provide redstone power, connect it to redstone trails or redstone mechanisms and send any minecart over the rail.=Чтобы обнаруживать вагонетку и подавать энергию редстоуна, подключите его к дорожке редстоуна или механизму редстоуна, после чего направьте любую вагонетку через него.
|
||||||
Track for minecarts=Железная дорога
|
Track for minecarts=Железная дорога
|
||||||
Speed up when powered, slow down when not powered=Если подключены - ускоряют, если нет - тормозят
|
Speed up when powered, slow down when not powered=Разгоняет, если подключён, тормозит, если не подключён
|
||||||
Activates minecarts when powered=Активирует особые вагонетки, если подключены
|
Activates minecarts when powered=Активирует особые вагонетки, если подключён
|
||||||
Emits redstone power when a minecart is detected=Подает сигнал редстоуна при обнаружении вагонетки
|
Emits redstone power when a minecart is detected=Испускает энергию редстоуна при обнаружении вагонетки
|
||||||
Vehicle for fast travel on rails=Железнодорожный транспорт
|
Vehicle for fast travel on rails=Быстрый железнодорожный транспорт
|
||||||
Can be ignited by tools or powered activator rail=Можно поджечь инструментом или активирующими рельсами
|
Can be ignited by tools or powered activator rail=Можно воспламенить с помощью инструмента или подключенного рельсового активатора
|
||||||
Sneak to dismount=Нажмите [Красться] для высадки
|
Sneak to dismount=Нажмите [Красться] для высадки
|
||||||
|
|
|
@ -32,9 +32,6 @@ function mob_class:feed_tame(clicker, feed_count, breed, tame, notake)
|
||||||
if not self.follow then
|
if not self.follow then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
if clicker:get_wielded_item():get_definition()._mcl_not_consumable then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
-- can eat/tame with item in hand
|
-- can eat/tame with item in hand
|
||||||
if self.nofollow or self:follow_holding(clicker) then
|
if self.nofollow or self:follow_holding(clicker) then
|
||||||
local consume_food = false
|
local consume_food = false
|
||||||
|
|
|
@ -21,8 +21,6 @@ local function atan(x)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_mobs.effect_functions = {}
|
|
||||||
|
|
||||||
|
|
||||||
-- check if daytime and also if mob is docile during daylight hours
|
-- check if daytime and also if mob is docile during daylight hours
|
||||||
function mob_class:day_docile()
|
function mob_class:day_docile()
|
||||||
|
@ -35,19 +33,14 @@ function mob_class:day_docile()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get this mob to attack the object
|
-- attack player/mob
|
||||||
function mob_class:do_attack(object)
|
function mob_class:do_attack(player)
|
||||||
|
|
||||||
if self.state == "attack" or self.state == "die" then
|
if self.state == "attack" or self.state == "die" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.attack = player
|
||||||
if object:is_player() and not minetest.settings:get_bool("enable_damage") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
self.attack = object
|
|
||||||
self.state = "attack"
|
self.state = "attack"
|
||||||
|
|
||||||
-- TODO: Implement war_cry sound without being annoying
|
-- TODO: Implement war_cry sound without being annoying
|
||||||
|
@ -389,8 +382,7 @@ function mob_class:monster_attack()
|
||||||
-- find specific mob to attack, failing that attack player/npc/animal
|
-- find specific mob to attack, failing that attack player/npc/animal
|
||||||
if specific_attack(self.specific_attack, name)
|
if specific_attack(self.specific_attack, name)
|
||||||
and (type == "player" or ( type == "npc" and self.attack_npcs )
|
and (type == "player" or ( type == "npc" and self.attack_npcs )
|
||||||
or (type == "animal" and self.attack_animals == true)
|
or (type == "animal" and self.attack_animals == true)) then
|
||||||
or (self.extra_hostile and not self.attack_exception(player))) then
|
|
||||||
p = player:get_pos()
|
p = player:get_pos()
|
||||||
sp = s
|
sp = s
|
||||||
|
|
||||||
|
@ -521,28 +513,6 @@ end
|
||||||
|
|
||||||
-- deal damage and effects when mob punched
|
-- deal damage and effects when mob punched
|
||||||
function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
||||||
local is_player = hitter:is_player()
|
|
||||||
local mob_pos = self.object:get_pos()
|
|
||||||
local player_pos = hitter:get_pos()
|
|
||||||
|
|
||||||
if is_player then
|
|
||||||
-- is mob out of reach?
|
|
||||||
if vector.distance(mob_pos, player_pos) > 3 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
-- is mob protected?
|
|
||||||
if self.protected and minetest.is_protected(mob_pos, hitter:get_player_name()) then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local time_now = minetest.get_us_time()
|
|
||||||
local time_diff = time_now - self.invul_timestamp
|
|
||||||
|
|
||||||
-- check for invulnerability time in microseconds (0.5 second)
|
|
||||||
if time_diff <= 500000 and time_diff >= 0 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- custom punch function
|
-- custom punch function
|
||||||
if self.do_punch then
|
if self.do_punch then
|
||||||
|
@ -559,15 +529,20 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local time_now = minetest.get_us_time()
|
local is_player = hitter:is_player()
|
||||||
|
|
||||||
if is_player then
|
if is_player then
|
||||||
|
-- is mob protected?
|
||||||
|
if self.protected and minetest.is_protected(self.object:get_pos(), hitter:get_player_name()) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.is_creative_enabled(hitter:get_player_name()) then
|
if minetest.is_creative_enabled(hitter:get_player_name()) then
|
||||||
self.health = 0
|
self.health = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
-- set/update 'drop xp' timestamp if hitted by player
|
-- set/update 'drop xp' timestamp if hitted by player
|
||||||
self.xp_timestamp = time_now
|
self.xp_timestamp = minetest.get_us_time()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -679,9 +654,6 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
||||||
-- do damage
|
-- do damage
|
||||||
self.health = self.health - damage
|
self.health = self.health - damage
|
||||||
|
|
||||||
-- give invulnerability
|
|
||||||
self.invul_timestamp = time_now
|
|
||||||
|
|
||||||
-- skip future functions if dead, except alerting others
|
-- skip future functions if dead, except alerting others
|
||||||
if self:check_for_death( "hit", {type = "punch", puncher = hitter}) then
|
if self:check_for_death( "hit", {type = "punch", puncher = hitter}) then
|
||||||
die = true
|
die = true
|
||||||
|
@ -697,10 +669,10 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
||||||
if not v then return end
|
if not v then return end
|
||||||
local r = 1.4 - math.min(punch_interval, 1.4)
|
local r = 1.4 - math.min(punch_interval, 1.4)
|
||||||
local kb = r * (math.abs(v.x)+math.abs(v.z))
|
local kb = r * (math.abs(v.x)+math.abs(v.z))
|
||||||
local up = 2.625
|
local up = 2
|
||||||
|
|
||||||
if die==true then
|
if die==true then
|
||||||
kb=kb*1.25
|
kb=kb*2
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if already in air then dont go up anymore when hit
|
-- if already in air then dont go up anymore when hit
|
||||||
|
@ -714,7 +686,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
||||||
if tool_capabilities.damage_groups["knockback"] then
|
if tool_capabilities.damage_groups["knockback"] then
|
||||||
kb = tool_capabilities.damage_groups["knockback"]
|
kb = tool_capabilities.damage_groups["knockback"]
|
||||||
else
|
else
|
||||||
kb = kb * 1.25
|
kb = kb * 1.5
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -724,19 +696,9 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
||||||
end
|
end
|
||||||
if hitter and is_player then
|
if hitter and is_player then
|
||||||
local wielditem = hitter:get_wielded_item()
|
local wielditem = hitter:get_wielded_item()
|
||||||
kb = kb + 9 * mcl_enchanting.get_enchantment(wielditem, "knockback")
|
kb = kb + 3 * mcl_enchanting.get_enchantment(wielditem, "knockback")
|
||||||
-- add player velocity to mob knockback
|
elseif luaentity and luaentity._knockback then
|
||||||
local hv = hitter:get_velocity()
|
|
||||||
local dir_dot = (hv.x * dir.x) + (hv.z * dir.z)
|
|
||||||
local player_mag = math.sqrt((hv.x * hv.x) + (hv.z * hv.z))
|
|
||||||
local mob_mag = math.sqrt((v.x * v.x) + (v.z * v.z))
|
|
||||||
if dir_dot > 0 and mob_mag <= player_mag * 0.625 then
|
|
||||||
kb = kb + ((math.abs(hv.x) + math.abs(hv.z)) * r)
|
|
||||||
end
|
|
||||||
elseif luaentity and luaentity._knockback and die == false then
|
|
||||||
kb = kb + luaentity._knockback
|
kb = kb + luaentity._knockback
|
||||||
elseif luaentity and luaentity._knockback and die == true then
|
|
||||||
kb = kb + luaentity._knockback * 0.25
|
|
||||||
end
|
end
|
||||||
self._kb_turn = true
|
self._kb_turn = true
|
||||||
self._turn_to=self.object:get_yaw()-1.57
|
self._turn_to=self.object:get_yaw()-1.57
|
||||||
|
@ -891,8 +853,7 @@ function mob_class:do_states_attack (dtime)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local target_line_of_sight = self:target_visible(s)
|
local target_line_of_sight = self:line_of_sight(s, p, 2)
|
||||||
|
|
||||||
if not target_line_of_sight then
|
if not target_line_of_sight then
|
||||||
if self.target_time_lost then
|
if self.target_time_lost then
|
||||||
local time_since_seen = os.time() - self.target_time_lost
|
local time_since_seen = os.time() - self.target_time_lost
|
||||||
|
@ -1141,11 +1102,6 @@ function mob_class:do_states_attack (dtime)
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
damage_groups = {fleshy = self.damage}
|
damage_groups = {fleshy = self.damage}
|
||||||
}, nil)
|
}, nil)
|
||||||
if self.dealt_effect then
|
|
||||||
mcl_mobs.effect_functions[self.dealt_effect.name](
|
|
||||||
self.attack, self.dealt_effect.factor, self.dealt_effect.dur
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self.custom_attack(self, p)
|
self.custom_attack(self, p)
|
||||||
|
@ -1236,9 +1192,6 @@ function mob_class:do_states_attack (dtime)
|
||||||
-- important for mcl_shields
|
-- important for mcl_shields
|
||||||
ent._shooter = self.object
|
ent._shooter = self.object
|
||||||
ent._saved_shooter_pos = self.object:get_pos()
|
ent._saved_shooter_pos = self.object:get_pos()
|
||||||
if ent.homing then
|
|
||||||
ent._target = self.attack
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local amount = (vec.x * vec.x + vec.y * vec.y + vec.z * vec.z) ^ 0.5
|
local amount = (vec.x * vec.x + vec.y * vec.y + vec.z * vec.z) ^ 0.5
|
||||||
|
@ -1255,13 +1208,7 @@ function mob_class:do_states_attack (dtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
|
||||||
elseif self.attack_type == "custom" and self.attack_state then
|
|
||||||
self.attack_state(self, dtime)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.on_attack then
|
|
||||||
self.on_attack(self, dtime)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
local math, tonumber, vector, minetest, mcl_mobs = math, tonumber, vector, minetest, mcl_mobs
|
local math, tonumber, vector, minetest, mcl_mobs = math, tonumber, vector, minetest, mcl_mobs
|
||||||
local mob_class = mcl_mobs.mob_class
|
local mob_class = mcl_mobs.mob_class
|
||||||
local validate_vector = mcl_util.validate_vector
|
|
||||||
|
|
||||||
local active_particlespawners = {}
|
local active_particlespawners = {}
|
||||||
local disable_blood = minetest.settings:get_bool("mobs_disable_blood")
|
local disable_blood = minetest.settings:get_bool("mobs_disable_blood")
|
||||||
local DEFAULT_FALL_SPEED = -9.81*1.5
|
local DEFAULT_FALL_SPEED = -9.81*1.5
|
||||||
|
@ -11,6 +9,16 @@ local PATHFINDING = "gowp"
|
||||||
local player_transfer_distance = tonumber(minetest.settings:get("player_transfer_distance")) or 128
|
local player_transfer_distance = tonumber(minetest.settings:get("player_transfer_distance")) or 128
|
||||||
if player_transfer_distance == 0 then player_transfer_distance = math.huge end
|
if player_transfer_distance == 0 then player_transfer_distance = math.huge end
|
||||||
|
|
||||||
|
|
||||||
|
local function validate_vector (vect)
|
||||||
|
if vect then
|
||||||
|
if tonumber(vect.x) and tonumber(vect.y) and tonumber(vect.z) then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
-- custom particle effects
|
-- custom particle effects
|
||||||
function mcl_mobs.effect(pos, amount, texture, min_size, max_size, radius, gravity, glow, go_down)
|
function mcl_mobs.effect(pos, amount, texture, min_size, max_size, radius, gravity, glow, go_down)
|
||||||
|
|
||||||
|
@ -410,7 +418,7 @@ function mob_class:check_head_swivel(dtime)
|
||||||
--final_rotation = vector.new(0,0,0)
|
--final_rotation = vector.new(0,0,0)
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_util.set_bone_position(self.object,self.head_swivel, vector.new(0,self.bone_eye_height,self.horizontal_head_height), final_rotation)
|
mcl_util.set_bone_position(self.object,self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), final_rotation)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -147,7 +147,7 @@ function mcl_mobs.register_mob(name, def)
|
||||||
head_eye_height = def.head_eye_height or def.bone_eye_height or 0, -- how hight aproximatly the mobs head is fromm the ground to tell the mob how high to look up at the player
|
head_eye_height = def.head_eye_height or def.bone_eye_height or 0, -- how hight aproximatly the mobs head is fromm the ground to tell the mob how high to look up at the player
|
||||||
curiosity = def.curiosity or 1, -- how often mob will look at player on idle
|
curiosity = def.curiosity or 1, -- how often mob will look at player on idle
|
||||||
head_yaw = def.head_yaw or "y", -- axis to rotate head on
|
head_yaw = def.head_yaw or "y", -- axis to rotate head on
|
||||||
horizontal_head_height = def.horizontal_head_height or 0,
|
horrizonatal_head_height = def.horrizonatal_head_height or 0,
|
||||||
wears_armor = def.wears_armor, -- a number value used to index texture slot for armor
|
wears_armor = def.wears_armor, -- a number value used to index texture slot for armor
|
||||||
stepheight = def.stepheight or 0.6,
|
stepheight = def.stepheight or 0.6,
|
||||||
name = name,
|
name = name,
|
||||||
|
@ -171,7 +171,6 @@ function mcl_mobs.register_mob(name, def)
|
||||||
xp_min = def.xp_min or 0,
|
xp_min = def.xp_min or 0,
|
||||||
xp_max = def.xp_max or 0,
|
xp_max = def.xp_max or 0,
|
||||||
xp_timestamp = 0,
|
xp_timestamp = 0,
|
||||||
invul_timestamp = 0,
|
|
||||||
breath_max = def.breath_max or 15,
|
breath_max = def.breath_max or 15,
|
||||||
breathes_in_water = def.breathes_in_water or false,
|
breathes_in_water = def.breathes_in_water or false,
|
||||||
physical = true,
|
physical = true,
|
||||||
|
@ -288,7 +287,6 @@ function mcl_mobs.register_mob(name, def)
|
||||||
spawn_in_group_min = def.spawn_in_group_min,
|
spawn_in_group_min = def.spawn_in_group_min,
|
||||||
noyaw = def.noyaw or false,
|
noyaw = def.noyaw or false,
|
||||||
particlespawners = def.particlespawners,
|
particlespawners = def.particlespawners,
|
||||||
spawn_check = def.spawn_check,
|
|
||||||
-- End of MCL2 extensions
|
-- End of MCL2 extensions
|
||||||
on_spawn = def.on_spawn,
|
on_spawn = def.on_spawn,
|
||||||
on_blast = def.on_blast or function(self,damage)
|
on_blast = def.on_blast or function(self,damage)
|
||||||
|
@ -299,7 +297,6 @@ function mcl_mobs.register_mob(name, def)
|
||||||
return false, true, {}
|
return false, true, {}
|
||||||
end,
|
end,
|
||||||
do_punch = def.do_punch,
|
do_punch = def.do_punch,
|
||||||
deal_damage = def.deal_damage,
|
|
||||||
on_breed = def.on_breed,
|
on_breed = def.on_breed,
|
||||||
on_grown = def.on_grown,
|
on_grown = def.on_grown,
|
||||||
on_pick_up = def.on_pick_up,
|
on_pick_up = def.on_pick_up,
|
||||||
|
@ -314,16 +311,8 @@ function mcl_mobs.register_mob(name, def)
|
||||||
|
|
||||||
return self:mob_activate(staticdata, def, dtime)
|
return self:mob_activate(staticdata, def, dtime)
|
||||||
end,
|
end,
|
||||||
attack_state = def.attack_state, -- custom attack state
|
|
||||||
on_attack = def.on_attack, -- called after attack, useful with otherwise predefined attack states (not custom)
|
|
||||||
harmed_by_heal = def.harmed_by_heal,
|
harmed_by_heal = def.harmed_by_heal,
|
||||||
is_boss = def.is_boss,
|
on_lightning_strike = def.on_lightning_strike
|
||||||
dealt_effect = def.dealt_effect,
|
|
||||||
on_lightning_strike = def.on_lightning_strike,
|
|
||||||
extra_hostile = def.extra_hostile,
|
|
||||||
attack_exception = def.attack_exception or function(p) return false end,
|
|
||||||
|
|
||||||
_spawner = def._spawner,
|
|
||||||
}
|
}
|
||||||
minetest.register_entity(name, setmetatable(final_def,mcl_mobs.mob_class_meta))
|
minetest.register_entity(name, setmetatable(final_def,mcl_mobs.mob_class_meta))
|
||||||
|
|
||||||
|
@ -334,13 +323,6 @@ function mcl_mobs.register_mob(name, def)
|
||||||
end -- END mcl_mobs.register_mob function
|
end -- END mcl_mobs.register_mob function
|
||||||
|
|
||||||
|
|
||||||
function mcl_mobs.get_arrow_damage_func(damage, typ)
|
|
||||||
local typ = mcl_damage.types[typ] and typ or "arrow"
|
|
||||||
return function(projectile, object)
|
|
||||||
return mcl_util.deal_damage(object, damage, {type = typ})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- register arrow for shoot attack
|
-- register arrow for shoot attack
|
||||||
function mcl_mobs.register_arrow(name, def)
|
function mcl_mobs.register_arrow(name, def)
|
||||||
|
|
||||||
|
@ -357,18 +339,15 @@ function mcl_mobs.register_arrow(name, def)
|
||||||
hit_node = def.hit_node,
|
hit_node = def.hit_node,
|
||||||
hit_mob = def.hit_mob,
|
hit_mob = def.hit_mob,
|
||||||
hit_object = def.hit_object,
|
hit_object = def.hit_object,
|
||||||
homing = def.homing,
|
|
||||||
drop = def.drop or false, -- drops arrow as registered item when true
|
drop = def.drop or false, -- drops arrow as registered item when true
|
||||||
collisionbox = {0, 0, 0, 0, 0, 0}, -- remove box around arrows
|
collisionbox = {0, 0, 0, 0, 0, 0}, -- remove box around arrows
|
||||||
timer = 0,
|
timer = 0,
|
||||||
switch = 0,
|
switch = 0,
|
||||||
_lifetime = def._lifetime or 7,
|
|
||||||
owner_id = def.owner_id,
|
owner_id = def.owner_id,
|
||||||
rotate = def.rotate,
|
rotate = def.rotate,
|
||||||
on_punch = def.on_punch or function(self, puncher, time_from_last_punch, tool_capabilities, dir, damage)
|
on_punch = function(self)
|
||||||
local vel = self.object:get_velocity():length()
|
local vel = self.object:get_velocity()
|
||||||
self.object:set_velocity({x=dir.x * vel, y=dir.y * vel, z=dir.z * vel})
|
self.object:set_velocity({x=vel.x * -1, y=vel.y * -1, z=vel.z * -1})
|
||||||
self._puncher = puncher
|
|
||||||
end,
|
end,
|
||||||
collisionbox = def.collisionbox or {0, 0, 0, 0, 0, 0},
|
collisionbox = def.collisionbox or {0, 0, 0, 0, 0, 0},
|
||||||
automatic_face_movement_dir = def.rotate
|
automatic_face_movement_dir = def.rotate
|
||||||
|
@ -378,12 +357,12 @@ function mcl_mobs.register_arrow(name, def)
|
||||||
|
|
||||||
on_step = def.on_step or function(self, dtime)
|
on_step = def.on_step or function(self, dtime)
|
||||||
|
|
||||||
self.timer = self.timer + dtime
|
self.timer = self.timer + 1
|
||||||
|
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
|
|
||||||
if self.switch == 0
|
if self.switch == 0
|
||||||
or self.timer > self._lifetime
|
or self.timer > 150
|
||||||
or not within_limits(pos, 0) then
|
or not within_limits(pos, 0) then
|
||||||
mcl_burning.extinguish(self.object)
|
mcl_burning.extinguish(self.object)
|
||||||
self.object:remove();
|
self.object:remove();
|
||||||
|
@ -431,37 +410,26 @@ function mcl_mobs.register_arrow(name, def)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.homing and self._target then
|
|
||||||
local p = self._target:get_pos()
|
|
||||||
if p then
|
|
||||||
if minetest.line_of_sight(self.object:get_pos(), p) then
|
|
||||||
self.object:set_velocity(vector.direction(self.object:get_pos(), p) * self.velocity)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
self._target = nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if self.hit_player or self.hit_mob or self.hit_object then
|
if self.hit_player or self.hit_mob or self.hit_object then
|
||||||
|
|
||||||
for _,object in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do
|
for _,player in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do
|
||||||
|
|
||||||
if self.hit_player
|
if self.hit_player
|
||||||
and object:is_player() then
|
and player:is_player() then
|
||||||
|
|
||||||
self.hit_player(self, object)
|
self.hit_player(self, player)
|
||||||
self.object:remove();
|
self.object:remove();
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local entity = object:get_luaentity()
|
local entity = player:get_luaentity()
|
||||||
|
|
||||||
if entity
|
if entity
|
||||||
and self.hit_mob
|
and self.hit_mob
|
||||||
and entity.is_mob == true
|
and entity.is_mob == true
|
||||||
and (tostring(object) ~= self.owner_id or self.timer > 2)
|
and tostring(player) ~= self.owner_id
|
||||||
and entity.name ~= self.object:get_luaentity().name then
|
and entity.name ~= self.object:get_luaentity().name then
|
||||||
self.hit_mob(self, object)
|
self.hit_mob(self, player)
|
||||||
self.object:remove();
|
self.object:remove();
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -469,9 +437,9 @@ function mcl_mobs.register_arrow(name, def)
|
||||||
if entity
|
if entity
|
||||||
and self.hit_object
|
and self.hit_object
|
||||||
and (not entity.is_mob)
|
and (not entity.is_mob)
|
||||||
and (tostring(object) ~= self.owner_id or self.timer > 2)
|
and tostring(player) ~= self.owner_id
|
||||||
and entity.name ~= self.object:get_luaentity().name then
|
and entity.name ~= self.object:get_luaentity().name then
|
||||||
self.hit_object(self, object)
|
self.hit_object(self, player)
|
||||||
self.object:remove();
|
self.object:remove();
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
# textdomain: mcl_mobs
|
|
||||||
Peaceful mode active! No monsters will spawn.=Mòde tranquile actiu! Gis de mostre vai aparèisser.
|
|
||||||
This allows you to place a single mob.=Quo permet de plaça una creatura.
|
|
||||||
Just place it where you want the mob to appear. Animals will spawn tamed, unless you hold down the sneak key while placing. If you place this on a mob spawner, you change the mob it spawns.=Plaçatz z-o a l'endreit que volètz veire la creatura aparèisser. Las bèstias seron dejà domesticadas, defòra si laissatz la tocha se baissar enfonçada. Si z-o plaçatz sobre un generator de creaturas, chamjatz la creatura generada.
|
|
||||||
You need the “maphack” privilege to change the mob spawner.=Avètz besonh dau privilègi "maphack" per chamjar le generator de creaturas.
|
|
||||||
Name Tag=Étiquette de nom
|
|
||||||
A name tag is an item to name a mob.=Una etiqueta z-es un otilh per chamjar le nom de la creatura.
|
|
||||||
Before you use the name tag, you need to set a name at an anvil. Then you can use the name tag to name a mob. This uses up the name tag.=Davant d'utilizar l'etiqueta, vos fau li botar un nom embei una enclutge. Après, podètz utilizar l'etiqueta per nomar una creatura. L'etiqueta pòt èsser utilizada un còp.
|
|
||||||
Only peaceful mobs allowed!=Mas las creaturas pacificas son autorizadas!
|
|
||||||
Give names to mobs=Balha daus noms a las creaturas
|
|
||||||
Set name at anvil=Botar le nom embei l'enclutge
|
|
||||||
Removes specified mobs except nametagged and tamed ones. For the second parameter, use nametagged/tamed to select only nametagged/tamed mobs, or a range to specify a maximum distance from the player.=Lèva las creaturas specifiadas defòra de las que son nomadas o domesticadas. Per le paramètre segònd, utilizar nomat/domesticat per mas seleccionar las creaturas nomadas/domesticadas, o una distança per specifiar la distança maximum embei li joairi.
|
|
||||||
Default usage. Clearing hostile mobs. For more options please type: /help clearmobs=Usage par défaut. Lèva las creaturas ostilas. Per mai d'opcions, escriure : /help clearmobs
|
|
|
@ -1,13 +0,0 @@
|
||||||
# textdomain: mcl_mobs
|
|
||||||
Peaceful mode active! No monsters will spawn.=Modo pacífico ativado! Nenhum monstro será gerado.
|
|
||||||
This allows you to place a single mob.=Isso permite você posicionar um único mob.
|
|
||||||
Just place it where you want the mob to appear. Animals will spawn tamed, unless you hold down the sneak key while placing. If you place this on a mob spawner, you change the mob it spawns.=Posicione-o onde você deseja que o mob apareça. Animais serão gerados domesticados, a menos que você segure pressionada a tecla de agachar enquanto posiciona. Se você posicionar em um gerador de mobs, você muda o mob que será gerado.
|
|
||||||
You need the “maphack” privilege to change the mob spawner.=Você precisa do privilégio "maphack" para mudar o gerador de mobs.
|
|
||||||
Name Tag=Etiqueta
|
|
||||||
A name tag is an item to name a mob.=Uma etiqueta é um item para nomear um mob.
|
|
||||||
Before you use the name tag, you need to set a name at an anvil. Then you can use the name tag to name a mob. This uses up the name tag.=Antes de você usar a etiqueta, você precisa determinar um nome em uma bigorna. Assim você pode usar a etiqueta para nomear um mob. Isso consumirá a etiqueta.
|
|
||||||
Only peaceful mobs allowed!=Apenas mobs pacíficos permitidos!
|
|
||||||
Give names to mobs=Dá nome aos mobs
|
|
||||||
Set name at anvil=Determine um nome em uma bigorna
|
|
||||||
Removes specified mobs except nametagged and tamed ones. For the second parameter, use nametagged/tamed to select only nametagged/tamed mobs, or a range to specify a maximum distance from the player.=Remove mobs especifícos exceto os mobs nomeados ou domesticados. Como segundo parâmetro, use nametagged/tamed para selecionar apenas mobs nomeados/domesticados, ou um alcançe para especificar uma distância máxima em relação ao jogador.
|
|
||||||
Default usage. Clearing hostile mobs. For more options please type: /help clearmobs=Uso padrão. Eliminando mobs hostis. Para mais opções por favor digite: /help clearmobs
|
|
|
@ -1,13 +1,11 @@
|
||||||
# textdomain: mcl_mobs
|
# textdomain: mcl_mobs
|
||||||
Peaceful mode active! No monsters will spawn.=Мирный режим включён! Монстры не будут спауниться.
|
Peaceful mode active! No monsters will spawn.=Мирный режим включён! Чудовища не будут появляться.
|
||||||
This allows you to place a single mob.=Позволяет вам заспаунить одного моба.
|
This allows you to place a single mob.=Позволяет вам породить одно существо.
|
||||||
Just place it where you want the mob to appear. Animals will spawn tamed, unless you hold down the sneak key while placing. If you place this on a mob spawner, you change the mob it spawns.=Используйте предмет там, где вы хотите, чтобы заспаунился моб. Животные будут спауниться уже прирученные, если только вы не удерживаете клавишу [Красться] при размещении. Если использовать на спаунере мобов, изменится создаваемый им моб.
|
Just place it where you want the mob to appear. Animals will spawn tamed, unless you hold down the sneak key while placing. If you place this on a mob spawner, you change the mob it spawns.=Просто нажмите на блок, где хотите, чтобы появилось существо. Животные будут появляться уже прирученные, если это не нужно, удерживайте клавишу [Красться] при размещении. Если использовать на порождателе, тогда существо будет изменено.
|
||||||
You need the “maphack” privilege to change the mob spawner.=Вам нужна привилегия “maphack”, чтобы изменить спаунер мобов.
|
You need the “maphack” privilege to change the mob spawner.=Вам нужно обладать привилегией «maphack», чтобы изменить порождатель существ.
|
||||||
Name Tag=Бирка
|
Name Tag=Именная бирка
|
||||||
A name tag is an item to name a mob.=Бирка это предмет, дающий мобу имя.
|
A name tag is an item to name a mob.=Именная бирка — это предмет, чтобы дать существу имя.
|
||||||
Before you use the name tag, you need to set a name at an anvil. Then you can use the name tag to name a mob. This uses up the name tag.=Прежде чем использовать бирку, нужно задать ей имя на наковальне. Тогда вы сможете использовать бирку, чтобы дать имя мобу.
|
Before you use the name tag, you need to set a name at an anvil. Then you can use the name tag to name a mob. This uses up the name tag.=Прежде чем использовать именную бирку, нужно задать имя на наковальне. Тогда вы сможете использовать бирку, чтобы дать имя мобу.
|
||||||
Only peaceful mobs allowed!=Разрешены только мирные мобы!
|
Only peaceful mobs allowed!=Разрешены только мирные существа!
|
||||||
Give names to mobs=Даёт имена мобам
|
Give names to mobs=Даёт имена существам
|
||||||
Set name at anvil=Задайте имя на наковальне
|
Set name at anvil=Задайте имя при помощи наковальни
|
||||||
Removes specified mobs except nametagged and tamed ones. For the second parameter, use nametagged/tamed to select only nametagged/tamed mobs, or a range to specify a maximum distance from the player.=Удаляет указанных мобов кроме именованных и прирученных. Для второго параметра используйте nametagged/tamed, чтобы выбрать именованных/прирученных мобов или радиус указывающий максимальную дистанцию от игрока.
|
|
||||||
Default usage. Clearing hostile mobs. For more options please type: /help clearmobs=Параметры по умолчанию. Удаляем враждебных мобов. Для дополнительных опций введите: /help clearmobs
|
|
||||||
|
|
|
@ -76,67 +76,6 @@ function mob_class:is_node_waterhazard(nodename)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local function raycast_line_of_sight (origin, target)
|
|
||||||
local raycast = minetest.raycast(origin, target, false, true)
|
|
||||||
|
|
||||||
local los_blocked = false
|
|
||||||
|
|
||||||
for hitpoint in raycast do
|
|
||||||
if hitpoint.type == "node" then
|
|
||||||
--TODO type object could block vision, for example chests
|
|
||||||
local node = minetest.get_node(minetest.get_pointed_thing_position(hitpoint))
|
|
||||||
|
|
||||||
if node.name ~= "air" then
|
|
||||||
local nodef = minetest.registered_nodes[node.name]
|
|
||||||
if nodef and nodef.walkable then
|
|
||||||
los_blocked = true
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return not los_blocked
|
|
||||||
end
|
|
||||||
|
|
||||||
function mob_class:target_visible(origin)
|
|
||||||
if not origin then return end
|
|
||||||
|
|
||||||
if not self.attack then return end
|
|
||||||
local target_pos = self.attack:get_pos()
|
|
||||||
|
|
||||||
if not target_pos then return end
|
|
||||||
|
|
||||||
local origin_eye_pos = vector.offset(origin, 0, self.head_eye_height, 0)
|
|
||||||
|
|
||||||
--minetest.log("origin: " .. dump(origin))
|
|
||||||
--minetest.log("origin_eye_pos: " .. dump(origin_eye_pos))
|
|
||||||
|
|
||||||
local targ_head_height, targ_feet_height
|
|
||||||
if self.attack:is_player() then
|
|
||||||
local cbox = self.object:get_properties().collisionbox
|
|
||||||
targ_head_height = vector.offset(target_pos, 0, cbox[5], 0)
|
|
||||||
targ_feet_height = target_pos -- Cbox would put feet under ground which interferes with ray
|
|
||||||
else
|
|
||||||
targ_head_height = vector.offset(target_pos, 0, self.collisionbox[5], 0)
|
|
||||||
targ_feet_height = vector.offset(target_pos, 0, self.collisionbox[2], 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
--minetest.log("start targ_head_height: " .. dump(targ_head_height))
|
|
||||||
if raycast_line_of_sight (origin_eye_pos, targ_head_height) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
--minetest.log("Start targ_feet_height: " .. dump(targ_feet_height))
|
|
||||||
if raycast_line_of_sight (origin_eye_pos, targ_feet_height) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
-- TODO mid way between feet and head
|
|
||||||
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
-- check line of sight (BrunoMine)
|
-- check line of sight (BrunoMine)
|
||||||
function mob_class:line_of_sight(pos1, pos2, stepsize)
|
function mob_class:line_of_sight(pos1, pos2, stepsize)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
|
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
|
||||||
local mob_class = mcl_mobs.mob_class
|
local mob_class = mcl_mobs.mob_class
|
||||||
local validate_vector = mcl_util.validate_vector
|
|
||||||
|
|
||||||
local ENTITY_CRAMMING_MAX = 24
|
local ENTITY_CRAMMING_MAX = 24
|
||||||
local CRAMMING_DAMAGE = 3
|
local CRAMMING_DAMAGE = 3
|
||||||
|
@ -356,7 +355,7 @@ function mob_class:set_yaw(yaw, delay, dtime)
|
||||||
|
|
||||||
if math.abs(target_shortest_path_nums) > 10 then
|
if math.abs(target_shortest_path_nums) > 10 then
|
||||||
self.object:set_yaw(self.object:get_yaw()+(target_shortest_path*(3.6*ddtime)))
|
self.object:set_yaw(self.object:get_yaw()+(target_shortest_path*(3.6*ddtime)))
|
||||||
if validate_vector(self.acc) then
|
if self.acc then
|
||||||
self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), target_shortest_path*(3.6*ddtime))
|
self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), target_shortest_path*(3.6*ddtime))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -676,20 +675,13 @@ function mob_class:do_env_damage()
|
||||||
self.standing_in = node_ok(pos, "air").name
|
self.standing_in = node_ok(pos, "air").name
|
||||||
self.standing_on = node_ok(pos2, "air").name
|
self.standing_on = node_ok(pos2, "air").name
|
||||||
|
|
||||||
local pos3 = vector.offset(pos, 0, 1, 0)
|
|
||||||
self.standing_under = node_ok(pos3, "air").name
|
|
||||||
|
|
||||||
-- don't fall when on ignore, just stand still
|
-- don't fall when on ignore, just stand still
|
||||||
if self.standing_in == "ignore" then
|
if self.standing_in == "ignore" then
|
||||||
self.object:set_velocity({x = 0, y = 0, z = 0})
|
self.object:set_velocity({x = 0, y = 0, z = 0})
|
||||||
-- wither rose effect
|
|
||||||
elseif self.standing_in == "mcl_flowers:wither_rose" then
|
|
||||||
mcl_potions.withering_func(self.object, 1, 2)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local nodef = minetest.registered_nodes[self.standing_in]
|
local nodef = minetest.registered_nodes[self.standing_in]
|
||||||
local nodef2 = minetest.registered_nodes[self.standing_on]
|
local nodef2 = minetest.registered_nodes[self.standing_on]
|
||||||
local nodef3 = minetest.registered_nodes[self.standing_under]
|
|
||||||
|
|
||||||
-- rain
|
-- rain
|
||||||
if self.rain_damage > 0 then
|
if self.rain_damage > 0 then
|
||||||
|
@ -761,61 +753,6 @@ function mob_class:do_env_damage()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Cactus damage
|
|
||||||
local near = minetest.find_node_near(pos, 1, "mcl_core:cactus", true)
|
|
||||||
if not near and near ~= nil then
|
|
||||||
near = find_node_near({x=pos.x, y=pos.y-1, z=pos.z}, 1, "mcl_core:cactus", true)
|
|
||||||
end
|
|
||||||
if near then
|
|
||||||
-- is mob touching the cactus?
|
|
||||||
local dist = vector.distance(pos, near)
|
|
||||||
local dist_feet = vector.distance({x=pos.x, y=pos.y-1, z=pos.z}, near)
|
|
||||||
local large_mob = false
|
|
||||||
local medium_mob = false
|
|
||||||
if self.name == "mobs_mc:ender_dragon" or
|
|
||||||
self.name == "mobs_mc:ghast" or
|
|
||||||
self.name == "mobs_mc:guardian_elder" or
|
|
||||||
self.name == "mobs_mc:slime_big" or
|
|
||||||
self.name == "mobs_mc:magma_cube_big" or
|
|
||||||
self.name == "mobs_mc:wither" then
|
|
||||||
|
|
||||||
large_mob = true
|
|
||||||
elseif self.name == "mobs_mc:hoglin" or
|
|
||||||
self.name == "mobs_mc:zoglin" or
|
|
||||||
self.name == "mobs_mc:horse" or
|
|
||||||
self.name == "mobs_mc:skeleton_horse" or
|
|
||||||
self.name == "mobs_mc:zombie_horse" or
|
|
||||||
self.name == "mobs_mc:donkey" or
|
|
||||||
self.name == "mobs_mc:mule" or
|
|
||||||
self.name == "mobs_mc:iron_golem" or
|
|
||||||
self.name == "mobs_mc:polar_bear" or
|
|
||||||
self.name == "mobs_mc:spider" or
|
|
||||||
self.name == "mobs_mc:cave_spider" or
|
|
||||||
self.name == "mobs_mc:strider" then
|
|
||||||
|
|
||||||
medium_mob = true
|
|
||||||
end
|
|
||||||
if (not large_mob and not medium_mob and (dist < 1.03 or dist_feet < 1.6)) or (medium_mob and (dist < 1.165 or dist_feet < 1.73)) or (large_mob and (dist < 1.25 or dist_feet < 1.9)) then
|
|
||||||
if self.health ~= 0 then
|
|
||||||
self:damage_mob("cactus", 2)
|
|
||||||
|
|
||||||
if self:check_for_death("cactus", {type = "environment",
|
|
||||||
pos = pos, node = self.standing_in}) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
-- is mob standing on the cactus?
|
|
||||||
if self.standing_on == "mcl_core:cactus" or self.standing_in == "mcl_core:cactus" or self.standing_under == "mcl_core:cactus" then
|
|
||||||
self:damage_mob("cactus", 2)
|
|
||||||
|
|
||||||
if self:check_for_death("cactus", {type = "environment",
|
|
||||||
pos = pos, node = self.standing_in}) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Drowning damage
|
-- Drowning damage
|
||||||
if self.breath_max ~= -1 then
|
if self.breath_max ~= -1 then
|
||||||
local drowning = false
|
local drowning = false
|
||||||
|
@ -824,7 +761,7 @@ function mob_class:do_env_damage()
|
||||||
if minetest.get_item_group(self.standing_in, "water") == 0 then
|
if minetest.get_item_group(self.standing_in, "water") == 0 then
|
||||||
drowning = true
|
drowning = true
|
||||||
end
|
end
|
||||||
elseif nodef.drowning > 0 and nodef3.drowning > 0 then
|
elseif nodef.drowning > 0 then
|
||||||
drowning = true
|
drowning = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1002,7 +939,7 @@ function mob_class:falling(pos)
|
||||||
|
|
||||||
-- in water then float up
|
-- in water then float up
|
||||||
if registered_node.groups.water then
|
if registered_node.groups.water then
|
||||||
if acc and self.floats == 1 and minetest.registered_nodes[node_ok(vector.offset(pos,0,self.collisionbox[5] -0.25,0)).name].groups.water then
|
if acc and self.floats == 1 then
|
||||||
self.object:set_acceleration(vector.new(0, -self.fall_speed / (math.max(1, v.y) ^ 2), 0))
|
self.object:set_acceleration(vector.new(0, -self.fall_speed / (math.max(1, v.y) ^ 2), 0))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
|
@ -2,13 +2,6 @@
|
||||||
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
|
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
|
||||||
local mob_class = mcl_mobs.mob_class
|
local mob_class = mcl_mobs.mob_class
|
||||||
|
|
||||||
local modern_lighting = minetest.settings:get_bool("mcl_mobs_modern_lighting", true)
|
|
||||||
local nether_threshold = tonumber(minetest.settings:get("mcl_mobs_nether_threshold")) or 11
|
|
||||||
local end_threshold = tonumber(minetest.settings:get("mcl_mobs_end_threshold")) or 0
|
|
||||||
local overworld_threshold = tonumber(minetest.settings:get("mcl_mobs_overworld_threshold")) or 0
|
|
||||||
local overworld_sky_threshold = tonumber(minetest.settings:get("mcl_mobs_overworld_sky_threshold")) or 7
|
|
||||||
local overworld_passive_threshold = tonumber(minetest.settings:get("mcl_mobs_overworld_passive_threshold")) or 7
|
|
||||||
|
|
||||||
local get_node = minetest.get_node
|
local get_node = minetest.get_node
|
||||||
local get_item_group = minetest.get_item_group
|
local get_item_group = minetest.get_item_group
|
||||||
local get_node_light = minetest.get_node_light
|
local get_node_light = minetest.get_node_light
|
||||||
|
@ -16,6 +9,7 @@ local find_nodes_in_area_under_air = minetest.find_nodes_in_area_under_air
|
||||||
local get_biome_name = minetest.get_biome_name
|
local get_biome_name = minetest.get_biome_name
|
||||||
local get_objects_inside_radius = minetest.get_objects_inside_radius
|
local get_objects_inside_radius = minetest.get_objects_inside_radius
|
||||||
local get_connected_players = minetest.get_connected_players
|
local get_connected_players = minetest.get_connected_players
|
||||||
|
local minetest_get_perlin = minetest.get_perlin
|
||||||
|
|
||||||
local math_random = math.random
|
local math_random = math.random
|
||||||
local math_floor = math.floor
|
local math_floor = math.floor
|
||||||
|
@ -96,6 +90,19 @@ local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false
|
||||||
local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= false
|
local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= false
|
||||||
local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true)
|
local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true)
|
||||||
|
|
||||||
|
local noise_params = {
|
||||||
|
offset = 0,
|
||||||
|
scale = 3,
|
||||||
|
spread = {
|
||||||
|
x = 301,
|
||||||
|
y = 50,
|
||||||
|
z = 304,
|
||||||
|
},
|
||||||
|
seed = 100,
|
||||||
|
octaves = 3,
|
||||||
|
persistence = 0.5,
|
||||||
|
}
|
||||||
|
|
||||||
-- THIS IS THE BIG LIST OF ALL BIOMES - used for programming/updating mobs
|
-- THIS IS THE BIG LIST OF ALL BIOMES - used for programming/updating mobs
|
||||||
-- Also used for missing parameter
|
-- Also used for missing parameter
|
||||||
-- Please update the list when adding new biomes!
|
-- Please update the list when adding new biomes!
|
||||||
|
@ -432,6 +439,7 @@ WARNING: BIOME INTEGRATION NEEDED -> How to get biome through lua??
|
||||||
local spawn_dictionary = {}
|
local spawn_dictionary = {}
|
||||||
--this is where all of the spawning information is kept for mobs that don't naturally spawn
|
--this is where all of the spawning information is kept for mobs that don't naturally spawn
|
||||||
local non_spawn_dictionary = {}
|
local non_spawn_dictionary = {}
|
||||||
|
local summary_chance = 0
|
||||||
|
|
||||||
function mcl_mobs:spawn_setup(def)
|
function mcl_mobs:spawn_setup(def)
|
||||||
if not mobs_spawn then return end
|
if not mobs_spawn then return end
|
||||||
|
@ -493,6 +501,7 @@ function mcl_mobs:spawn_setup(def)
|
||||||
check_position = check_position,
|
check_position = check_position,
|
||||||
on_spawn = on_spawn,
|
on_spawn = on_spawn,
|
||||||
}
|
}
|
||||||
|
summary_chance = summary_chance + chance
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_mobs:mob_light_lvl(mob_name, dimension)
|
function mcl_mobs:mob_light_lvl(mob_name, dimension)
|
||||||
|
@ -596,8 +605,10 @@ function mcl_mobs:spawn_specific(name, dimension, type_of_spawning, biomes, min_
|
||||||
spawn_dictionary[key]["day_toggle"] = day_toggle
|
spawn_dictionary[key]["day_toggle"] = day_toggle
|
||||||
spawn_dictionary[key]["check_position"] = check_position
|
spawn_dictionary[key]["check_position"] = check_position
|
||||||
|
|
||||||
|
summary_chance = summary_chance + chance
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local two_pi = 2 * math.pi
|
local two_pi = 2 * math.pi
|
||||||
local function get_next_mob_spawn_pos(pos)
|
local function get_next_mob_spawn_pos(pos)
|
||||||
-- TODO We should consider spawning something a little further away sporadically.
|
-- TODO We should consider spawning something a little further away sporadically.
|
||||||
|
@ -698,6 +709,9 @@ local function spawn_check(pos, spawn_def)
|
||||||
and spawn_def.dimension == dimension
|
and spawn_def.dimension == dimension
|
||||||
and biome_check(spawn_def.biomes, gotten_biome) then
|
and biome_check(spawn_def.biomes, gotten_biome) then
|
||||||
|
|
||||||
|
--mcl_log("Level 1 spawn check passed")
|
||||||
|
--minetest.log("Mob: " .. mob_def.name)
|
||||||
|
|
||||||
if (is_ground or spawn_def.type_of_spawning ~= "ground")
|
if (is_ground or spawn_def.type_of_spawning ~= "ground")
|
||||||
and (spawn_def.type_of_spawning ~= "ground" or not is_leaf)
|
and (spawn_def.type_of_spawning ~= "ground" or not is_leaf)
|
||||||
and (not is_farm_animal(spawn_def.name) or is_grass)
|
and (not is_farm_animal(spawn_def.name) or is_grass)
|
||||||
|
@ -707,41 +721,20 @@ local function spawn_check(pos, spawn_def)
|
||||||
and (spawn_def.check_position and spawn_def.check_position(pos) or spawn_def.check_position == nil)
|
and (spawn_def.check_position and spawn_def.check_position(pos) or spawn_def.check_position == nil)
|
||||||
and ( not spawn_protected or not minetest.is_protected(pos, "") ) then
|
and ( not spawn_protected or not minetest.is_protected(pos, "") ) then
|
||||||
|
|
||||||
|
--mcl_log("Level 2 spawn check passed")
|
||||||
|
|
||||||
local gotten_light = get_node_light(pos)
|
local gotten_light = get_node_light(pos)
|
||||||
|
if gotten_light >= spawn_def.min_light and gotten_light <= spawn_def.max_light then
|
||||||
if modern_lighting then
|
--mcl_log("Level 3 spawn check passed")
|
||||||
local my_node = get_node(pos)
|
return true
|
||||||
local sky_light = minetest.get_natural_light(pos)
|
|
||||||
local art_light = minetest.get_artificial_light(my_node.param1)
|
|
||||||
|
|
||||||
if mob_def.spawn_check then
|
|
||||||
return mob_def.spawn_check(pos, gotten_light, art_light, sky_light)
|
|
||||||
elseif mob_type == "monster" then
|
|
||||||
if dimension == "nether" then
|
|
||||||
if art_light <= nether_threshold then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
elseif dimension == "end" then
|
|
||||||
if art_light <= end_threshold then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
elseif dimension == "overworld" then
|
|
||||||
if art_light <= overworld_threshold and sky_light <= overworld_sky_threshold then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
|
||||||
-- passive threshold is apparently the same in all dimensions ...
|
|
||||||
if gotten_light > overworld_passive_threshold then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
if gotten_light >= spawn_def.min_light and gotten_light <= spawn_def.max_light then
|
--mcl_log("Spawn check level 3 failed")
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
--mcl_log("Spawn check level 2 failed")
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
--mcl_log("Spawn check level 1 failed")
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -857,6 +850,8 @@ minetest.register_chatcommand("spawn_mob",{
|
||||||
|
|
||||||
if mobs_spawn then
|
if mobs_spawn then
|
||||||
|
|
||||||
|
local perlin_noise
|
||||||
|
|
||||||
-- Get pos to spawn, x and z are randomised, y is range
|
-- Get pos to spawn, x and z are randomised, y is range
|
||||||
|
|
||||||
|
|
||||||
|
@ -953,21 +948,9 @@ if mobs_spawn then
|
||||||
return spawning_position
|
return spawning_position
|
||||||
end
|
end
|
||||||
|
|
||||||
local cumulative_chance = nil
|
|
||||||
local mob_library_worker_table = nil
|
|
||||||
local function initialize_spawn_data()
|
|
||||||
if not mob_library_worker_table then
|
|
||||||
mob_library_worker_table = table_copy(spawn_dictionary)
|
|
||||||
end
|
|
||||||
if not cumulative_chance then
|
|
||||||
cumulative_chance = 0
|
|
||||||
for k, v in pairs(mob_library_worker_table) do
|
|
||||||
cumulative_chance = cumulative_chance + v.chance
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function spawn_a_mob(pos, cap_space_hostile, cap_space_non_hostile)
|
local function spawn_a_mob(pos, cap_space_hostile, cap_space_non_hostile)
|
||||||
|
--create a disconnected clone of the spawn dictionary, prevents memory leak
|
||||||
|
local mob_library_worker_table = table_copy(spawn_dictionary)
|
||||||
|
|
||||||
local spawning_position = find_spawning_position(pos, FIND_SPAWN_POS_RETRIES)
|
local spawning_position = find_spawning_position(pos, FIND_SPAWN_POS_RETRIES)
|
||||||
if not spawning_position then
|
if not spawning_position then
|
||||||
|
@ -980,25 +963,22 @@ if mobs_spawn then
|
||||||
--output_mob_stats(mob_counts_wide)
|
--output_mob_stats(mob_counts_wide)
|
||||||
|
|
||||||
--grab mob that fits into the spawning location
|
--grab mob that fits into the spawning location
|
||||||
--use random weighted choice with replacement to grab a mob, don't exclude any possibilities
|
--randomly grab a mob, don't exclude any possibilities
|
||||||
--shuffle table once every loop to provide equal inclusion probability to all mobs
|
perlin_noise = perlin_noise or minetest_get_perlin(noise_params)
|
||||||
--repeat grabbing a mob to maintain existing spawn rates
|
local noise = perlin_noise:get_3d(spawning_position)
|
||||||
local spawn_loop_counter = #mob_library_worker_table
|
local current_summary_chance = summary_chance
|
||||||
|
|
||||||
while spawn_loop_counter > 0 do
|
table.shuffle(mob_library_worker_table)
|
||||||
table.shuffle(mob_library_worker_table)
|
|
||||||
local mob_chance_offset = math_random(1, cumulative_chance)
|
while #mob_library_worker_table > 0 do
|
||||||
|
local mob_chance_offset = (math_round(noise * current_summary_chance + 12345) % current_summary_chance) + 1
|
||||||
local mob_index = 1
|
local mob_index = 1
|
||||||
local mob_chance = mob_library_worker_table[mob_index].chance
|
local mob_chance = mob_library_worker_table[mob_index].chance
|
||||||
local step_chance = mob_chance
|
local step_chance = mob_chance
|
||||||
while step_chance < mob_chance_offset do
|
while step_chance < mob_chance_offset do
|
||||||
mob_index = mob_index + 1
|
mob_index = mob_index + 1
|
||||||
if mob_index <= #mob_library_worker_table then
|
mob_chance = mob_library_worker_table[mob_index].chance
|
||||||
mob_chance = mob_library_worker_table[mob_index].chance
|
step_chance = step_chance + mob_chance
|
||||||
step_chance = step_chance + mob_chance
|
|
||||||
else
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
--minetest.log(mob_def.name.." "..step_chance.. " "..mob_chance)
|
--minetest.log(mob_def.name.." "..step_chance.. " "..mob_chance)
|
||||||
|
|
||||||
|
@ -1083,7 +1063,8 @@ if mobs_spawn then
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
spawn_loop_counter = spawn_loop_counter - 1
|
current_summary_chance = current_summary_chance - mob_chance
|
||||||
|
table_remove(mob_library_worker_table, mob_index)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1095,7 +1076,6 @@ if mobs_spawn then
|
||||||
|
|
||||||
timer = timer + dtime
|
timer = timer + dtime
|
||||||
if timer < WAIT_FOR_SPAWN_ATTEMPT then return end
|
if timer < WAIT_FOR_SPAWN_ATTEMPT then return end
|
||||||
initialize_spawn_data()
|
|
||||||
timer = 0
|
timer = 0
|
||||||
|
|
||||||
local players = get_connected_players()
|
local players = get_connected_players()
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_paintings
|
|
||||||
Painting=Quadre
|
|
|
@ -1,2 +0,0 @@
|
||||||
# textdomain:mcl_paintings
|
|
||||||
Painting=Pintura
|
|
|
@ -1,2 +1,2 @@
|
||||||
# textdomain:mcl_paintings
|
# textdomain:mcl_paintings
|
||||||
Painting=Картина
|
Painting=Рисование
|
||||||
|
|
|
@ -2,9 +2,6 @@ local dim = {"x", "z"}
|
||||||
|
|
||||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||||
|
|
||||||
local anti_troll = minetest.settings:get_bool("wither_anti_troll_measures", false)
|
|
||||||
local peaceful = minetest.settings:get_bool("only_peaceful_mobs", false)
|
|
||||||
|
|
||||||
local function load_schem(filename)
|
local function load_schem(filename)
|
||||||
local file = io.open(modpath .. "/schems/" .. filename, "r")
|
local file = io.open(modpath .. "/schems/" .. filename, "r")
|
||||||
local data = minetest.deserialize(file:read())
|
local data = minetest.deserialize(file:read())
|
||||||
|
@ -12,14 +9,6 @@ local function load_schem(filename)
|
||||||
return data
|
return data
|
||||||
end
|
end
|
||||||
|
|
||||||
local wboss_overworld = 0
|
|
||||||
local wboss_nether = 0
|
|
||||||
local wboss_end = 0
|
|
||||||
|
|
||||||
local LIM_OVERWORLD = tonumber(minetest.settings:get("wither_cap_overworld")) or 3
|
|
||||||
local LIM_NETHER = tonumber(minetest.settings:get("wither_cap_nether")) or 10
|
|
||||||
local LIM_END = tonumber(minetest.settings:get("wither_cap_end")) or 5
|
|
||||||
|
|
||||||
local wither_spawn_schems = {}
|
local wither_spawn_schems = {}
|
||||||
|
|
||||||
for _, d in pairs(dim) do
|
for _, d in pairs(dim) do
|
||||||
|
@ -27,13 +16,8 @@ for _, d in pairs(dim) do
|
||||||
end
|
end
|
||||||
|
|
||||||
local function check_schem(pos, schem)
|
local function check_schem(pos, schem)
|
||||||
local cn_name
|
|
||||||
for _, n in pairs(schem) do
|
for _, n in pairs(schem) do
|
||||||
cn_name = minetest.get_node(vector.add(pos, n)).name
|
if minetest.get_node(vector.add(pos, n)).name ~= n.name then
|
||||||
if string.find(cn_name, "mcl_heads:wither_skeleton") then
|
|
||||||
cn_name = "mcl_heads:wither_skeleton"
|
|
||||||
end
|
|
||||||
if cn_name ~= n.name then
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -46,32 +30,14 @@ local function remove_schem(pos, schem)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function check_limit(pos)
|
local function wither_spawn(pos)
|
||||||
local dim = mcl_worlds.pos_to_dimension(pos)
|
|
||||||
if dim == "overworld" and wboss_overworld >= LIM_OVERWORLD then return false
|
|
||||||
elseif dim == "end" and wboss_end >= LIM_END then return false
|
|
||||||
elseif wboss_nether >= LIM_NETHER then return false
|
|
||||||
else return true end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function wither_spawn(pos, player)
|
|
||||||
if peaceful then return end
|
|
||||||
for _, d in pairs(dim) do
|
for _, d in pairs(dim) do
|
||||||
for i = 0, 2 do
|
for i = 0, 2 do
|
||||||
local p = vector.add(pos, {x = 0, y = -2, z = 0, [d] = -i})
|
local p = vector.add(pos, {x = 0, y = -2, z = 0, [d] = -i})
|
||||||
local schem = wither_spawn_schems[d]
|
local schem = wither_spawn_schems[d]
|
||||||
if check_schem(p, schem) and (not anti_troll or check_limit(pos)) then
|
if check_schem(p, schem) then
|
||||||
remove_schem(p, schem)
|
remove_schem(p, schem)
|
||||||
local wither = minetest.add_entity(vector.add(p, {x = 0, y = 1, z = 0, [d] = 1}), "mobs_mc:wither")
|
minetest.add_entity(vector.add(p, {x = 0, y = 1, z = 0, [d] = 1}), "mobs_mc:wither")
|
||||||
if not wither then return end
|
|
||||||
local wither_ent = wither:get_luaentity()
|
|
||||||
wither_ent._spawner = player:get_player_name()
|
|
||||||
local dim = mcl_worlds.pos_to_dimension(pos)
|
|
||||||
if dim == "overworld" then
|
|
||||||
wboss_overworld = wboss_overworld + 1
|
|
||||||
elseif dim == "end" then
|
|
||||||
wboss_end = wboss_end + 1
|
|
||||||
else wboss_nether = wboss_nether + 1 end
|
|
||||||
local objects = minetest.get_objects_inside_radius(pos, 20)
|
local objects = minetest.get_objects_inside_radius(pos, 20)
|
||||||
for _, players in ipairs(objects) do
|
for _, players in ipairs(objects) do
|
||||||
if players:is_player() then
|
if players:is_player() then
|
||||||
|
@ -88,19 +54,7 @@ local old_on_place = wither_head.on_place
|
||||||
function wither_head.on_place(itemstack, placer, pointed)
|
function wither_head.on_place(itemstack, placer, pointed)
|
||||||
local n = minetest.get_node(vector.offset(pointed.above,0,-1,0))
|
local n = minetest.get_node(vector.offset(pointed.above,0,-1,0))
|
||||||
if n and n.name == "mcl_nether:soul_sand" then
|
if n and n.name == "mcl_nether:soul_sand" then
|
||||||
minetest.after(0, wither_spawn, pointed.above, placer)
|
minetest.after(0, wither_spawn, pointed.above)
|
||||||
end
|
end
|
||||||
return old_on_place(itemstack, placer, pointed)
|
return old_on_place(itemstack, placer, pointed)
|
||||||
end
|
end
|
||||||
|
|
||||||
if anti_troll then
|
|
||||||
-- pull wither counts per dimension
|
|
||||||
minetest.register_globalstep(function(dtime)
|
|
||||||
wboss_overworld = mobs_mc.wither_count_overworld
|
|
||||||
wboss_nether = mobs_mc.wither_count_nether
|
|
||||||
wboss_end = mobs_mc.wither_count_end
|
|
||||||
mobs_mc.wither_count_overworld = 0
|
|
||||||
mobs_mc.wither_count_nether = 0
|
|
||||||
mobs_mc.wither_count_end = 0
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
|
@ -191,10 +191,9 @@ Origin of those models:
|
||||||
* [Spennnyyy](https://freesound.org/people/Spennnyyy/) (CC0)
|
* [Spennnyyy](https://freesound.org/people/Spennnyyy/) (CC0)
|
||||||
* `mcl_totems_totem.ogg`
|
* `mcl_totems_totem.ogg`
|
||||||
* Source: <https://freesound.org/people/Spennnyyy/sounds/323502/>
|
* Source: <https://freesound.org/people/Spennnyyy/sounds/323502/>
|
||||||
* [Baŝto](https://opengameart.org/users/ba%C5%9Dto) (remixer) and [kantouth](https://freesound.org/people/kantouth/) (original author)
|
* [Baŝto](https://opengameart.org/users/ba%C5%9Dto)
|
||||||
* `mobs_mc_skeleton_random.*.ogg` (CC BY 3.0)
|
* `mobs_mc_skeleton_random.*.ogg` (CC BY 3.0)
|
||||||
* Source: <https://opengameart.org/content/walking-skeleton>
|
* Source: <https://opengameart.org/content/walking-skeleton>
|
||||||
* Based on: <https://freesound.org/people/kantouth/sounds/115113/>
|
|
||||||
* [spookymodem](https://freesound.org/people/spookymodem/)
|
* [spookymodem](https://freesound.org/people/spookymodem/)
|
||||||
* `mobs_mc_skeleton_death.ogg` (CC0)
|
* `mobs_mc_skeleton_death.ogg` (CC0)
|
||||||
* <https://freesound.org/people/spookymodem/sounds/202091/>
|
* <https://freesound.org/people/spookymodem/sounds/202091/>
|
||||||
|
@ -305,10 +304,7 @@ Origin of those models:
|
||||||
* `mobs_mc_rabbit_random.*.ogg` (CC0)
|
* `mobs_mc_rabbit_random.*.ogg` (CC0)
|
||||||
* Changes were made.
|
* Changes were made.
|
||||||
* Source: <https://freesound.org/people/Alshred/>
|
* Source: <https://freesound.org/people/Alshred/>
|
||||||
* [epCode]
|
|
||||||
* `extra_mobs_hoglin*.ogg` (LGPL 3.0)
|
|
||||||
* Source: <https://git.minetest.land/epCode/extra_mobs/src/branch/master/sounds>
|
|
||||||
|
|
||||||
Note: Many of these sounds have been more or less modified to fit the game.
|
Note: Many of these sounds have been more or less modified to fit the game.
|
||||||
|
|
||||||
Sounds not mentioned here are licensed under CC0.
|
Sounds not mentioned hre are licensed under CC0.
|
||||||
|
|
|
@ -13,7 +13,7 @@ local axolotl = {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = -1,
|
bone_eye_height = -1,
|
||||||
head_eye_height = -0.5,
|
head_eye_height = -0.5,
|
||||||
horizontal_head_height = 0,
|
horrizonatal_head_height = 0,
|
||||||
curiosity = 10,
|
curiosity = 10,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
|
|
||||||
|
@ -78,6 +78,7 @@ local axolotl = {
|
||||||
attack_animals = true,
|
attack_animals = true,
|
||||||
specific_attack = {
|
specific_attack = {
|
||||||
"extra_mobs_cod",
|
"extra_mobs_cod",
|
||||||
|
"mobs_mc:sheep",
|
||||||
"extra_mobs_glow_squid",
|
"extra_mobs_glow_squid",
|
||||||
"extra_mobs_salmon",
|
"extra_mobs_salmon",
|
||||||
"extra_mobs_tropical_fish",
|
"extra_mobs_tropical_fish",
|
||||||
|
@ -171,7 +172,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
100,
|
4000,
|
||||||
3,
|
3,
|
||||||
water-16,
|
water-16,
|
||||||
water+1)
|
water+1)
|
||||||
|
|
|
@ -2,18 +2,6 @@
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_mc")
|
local S = minetest.get_translator("mobs_mc")
|
||||||
|
|
||||||
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
|
|
||||||
local date = os.date("*t")
|
|
||||||
local maxlight
|
|
||||||
if (date.month == 10 and date.day >= 20) or (date.month == 11 and date.day <= 3) then
|
|
||||||
maxlight = 6
|
|
||||||
else
|
|
||||||
maxlight = 3
|
|
||||||
end
|
|
||||||
|
|
||||||
return artificial_light <= maxlight
|
|
||||||
end
|
|
||||||
|
|
||||||
mcl_mobs.register_mob("mobs_mc:bat", {
|
mcl_mobs.register_mob("mobs_mc:bat", {
|
||||||
description = S("Bat"),
|
description = S("Bat"),
|
||||||
type = "animal",
|
type = "animal",
|
||||||
|
@ -62,7 +50,6 @@ mcl_mobs.register_mob("mobs_mc:bat", {
|
||||||
jump = false,
|
jump = false,
|
||||||
fly = true,
|
fly = true,
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
spawn_check = spawn_check,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -150,7 +137,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
maxlight,
|
maxlight,
|
||||||
20,
|
20,
|
||||||
100,
|
5000,
|
||||||
2,
|
2,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mobs_mc.water_level-1)
|
mobs_mc.water_level-1)
|
||||||
|
|
|
@ -11,9 +11,6 @@ local mod_target = minetest.get_modpath("mcl_target")
|
||||||
--################### BLAZE
|
--################### BLAZE
|
||||||
--###################
|
--###################
|
||||||
|
|
||||||
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
|
|
||||||
return artificial_light <= 11
|
|
||||||
end
|
|
||||||
|
|
||||||
mcl_mobs.register_mob("mobs_mc:blaze", {
|
mcl_mobs.register_mob("mobs_mc:blaze", {
|
||||||
description = S("Blaze"),
|
description = S("Blaze"),
|
||||||
|
@ -140,7 +137,6 @@ mcl_mobs.register_mob("mobs_mc:blaze", {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
spawn_check = spawn_check,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mcl_mobs:spawn_specific(
|
mcl_mobs:spawn_specific(
|
||||||
|
@ -151,7 +147,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
1000,
|
5000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
|
|
@ -23,7 +23,7 @@ mcl_mobs.register_mob("mobs_mc:chicken", {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 4,
|
bone_eye_height = 4,
|
||||||
head_eye_height = 1.5,
|
head_eye_height = 1.5,
|
||||||
horizontal_head_height = -.3,
|
horrizonatal_head_height = -.3,
|
||||||
curiosity = 10,
|
curiosity = 10,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
visual_size = {x=1,y=1},
|
visual_size = {x=1,y=1},
|
||||||
|
@ -157,7 +157,7 @@ mcl_mobs:spawn_specific(
|
||||||
},
|
},
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30, 100,
|
30, 17000,
|
||||||
3,
|
3,
|
||||||
mobs_mc.water_level,
|
mobs_mc.water_level,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -266,7 +266,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
750,
|
4000,
|
||||||
3,
|
3,
|
||||||
water-16,
|
water-16,
|
||||||
water+1)
|
water+1)
|
||||||
|
|
|
@ -24,7 +24,7 @@ local cow_def = {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 10,
|
bone_eye_height = 10,
|
||||||
head_eye_height = 1.1,
|
head_eye_height = 1.1,
|
||||||
horizontal_head_height=-1.8,
|
horrizonatal_head_height=-1.8,
|
||||||
curiosity = 2,
|
curiosity = 2,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
|
@ -105,7 +105,7 @@ mooshroom_def.on_rightclick = function(self, clicker)
|
||||||
end
|
end
|
||||||
local item = clicker:get_wielded_item()
|
local item = clicker:get_wielded_item()
|
||||||
-- Use shears to get mushrooms and turn mooshroom into cow
|
-- Use shears to get mushrooms and turn mooshroom into cow
|
||||||
if minetest.get_item_group(item:get_name(), "shears") > 0 then
|
if item:get_name() == "mcl_tools:shears" then
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
|
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ mcl_mobs:spawn_specific(
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
80,
|
17000,
|
||||||
10,
|
10,
|
||||||
mobs_mc.water_level,
|
mobs_mc.water_level,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
@ -225,7 +225,7 @@ mcl_mobs:spawn_specific(
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
80,
|
17000,
|
||||||
5,
|
5,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -24,7 +24,6 @@ mcl_mobs.register_mob("mobs_mc:creeper", {
|
||||||
mesh = "mobs_mc_creeper.b3d",
|
mesh = "mobs_mc_creeper.b3d",
|
||||||
head_swivel = "Head_Control",
|
head_swivel = "Head_Control",
|
||||||
bone_eye_height = 2.35,
|
bone_eye_height = 2.35,
|
||||||
head_eye_height = 1.8;
|
|
||||||
curiosity = 2,
|
curiosity = 2,
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_mc_creeper.png",
|
{"mobs_mc_creeper.png",
|
||||||
|
@ -50,7 +49,7 @@ mcl_mobs.register_mob("mobs_mc:creeper", {
|
||||||
explosion_strength = 3,
|
explosion_strength = 3,
|
||||||
explosion_radius = 3.5,
|
explosion_radius = 3.5,
|
||||||
explosion_damage_radius = 3.5,
|
explosion_damage_radius = 3.5,
|
||||||
explosiontimer_reset_radius = 3,
|
explosiontimer_reset_radius = 6,
|
||||||
reach = 3,
|
reach = 3,
|
||||||
explosion_timer = 1.5,
|
explosion_timer = 1.5,
|
||||||
allow_fuse_reset = true,
|
allow_fuse_reset = true,
|
||||||
|
@ -172,7 +171,7 @@ mcl_mobs.register_mob("mobs_mc:creeper_charged", {
|
||||||
explosion_strength = 6,
|
explosion_strength = 6,
|
||||||
explosion_radius = 8,
|
explosion_radius = 8,
|
||||||
explosion_damage_radius = 8,
|
explosion_damage_radius = 8,
|
||||||
explosiontimer_reset_radius = 3,
|
explosiontimer_reset_radius = 6,
|
||||||
reach = 3,
|
reach = 3,
|
||||||
explosion_timer = 1.5,
|
explosion_timer = 1.5,
|
||||||
allow_fuse_reset = true,
|
allow_fuse_reset = true,
|
||||||
|
@ -407,7 +406,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
20,
|
20,
|
||||||
1000,
|
16500,
|
||||||
2,
|
2,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -244,7 +244,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
70,
|
4000,
|
||||||
3,
|
3,
|
||||||
water-16,
|
water-16,
|
||||||
water+1)
|
water+1)
|
||||||
|
|
|
@ -136,7 +136,6 @@ mcl_mobs.register_mob("mobs_mc:enderdragon", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
fire_resistant = true,
|
fire_resistant = true,
|
||||||
is_boss = true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -668,7 +668,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
100,
|
3000,
|
||||||
12,
|
12,
|
||||||
mcl_vars.mg_end_min,
|
mcl_vars.mg_end_min,
|
||||||
mcl_vars.mg_end_max)
|
mcl_vars.mg_end_max)
|
||||||
|
@ -816,7 +816,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
30,
|
30,
|
||||||
100,
|
19000,
|
||||||
2,
|
2,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
@ -833,7 +833,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
11,
|
11,
|
||||||
30,
|
30,
|
||||||
100,
|
27500,
|
||||||
4,
|
4,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
@ -849,7 +849,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
11,
|
11,
|
||||||
30,
|
30,
|
||||||
100,
|
5000,
|
||||||
4,
|
4,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
|
|
@ -20,7 +20,7 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
xp_min = 5,
|
xp_min = 5,
|
||||||
xp_max = 5,
|
xp_max = 5,
|
||||||
collisionbox = {-2, 0, -2, 2, 4, 2, rotate=true},
|
collisionbox = {-2, 5, -2, 2, 9, 2},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_ghast.b3d",
|
mesh = "mobs_mc_ghast.b3d",
|
||||||
spawn_in_group = 1,
|
spawn_in_group = 1,
|
||||||
|
@ -33,7 +33,7 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
|
||||||
death = "mobs_mc_zombie_death",
|
death = "mobs_mc_zombie_death",
|
||||||
attack = "mobs_fireball",
|
attack = "mobs_fireball",
|
||||||
random = "mobs_eerie",
|
random = "mobs_eerie",
|
||||||
distance = 80,
|
distance = 16,
|
||||||
-- TODO: damage
|
-- TODO: damage
|
||||||
-- TODO: better death
|
-- TODO: better death
|
||||||
},
|
},
|
||||||
|
@ -50,11 +50,11 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
|
||||||
run_start = 0, run_end = 40,
|
run_start = 0, run_end = 40,
|
||||||
},
|
},
|
||||||
fall_damage = 0,
|
fall_damage = 0,
|
||||||
view_range = 64,
|
view_range = 100,
|
||||||
attack_type = "dogshoot",
|
attack_type = "dogshoot",
|
||||||
arrow = "mobs_mc:fireball",
|
arrow = "mobs_mc:fireball",
|
||||||
shoot_interval = 5,
|
shoot_interval = 3.5,
|
||||||
shoot_offset = -0.5,
|
shoot_offset = -5,
|
||||||
dogshoot_switch = 1,
|
dogshoot_switch = 1,
|
||||||
dogshoot_count_max =1,
|
dogshoot_count_max =1,
|
||||||
passive = false,
|
passive = false,
|
||||||
|
@ -97,7 +97,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
30,
|
30,
|
||||||
400,
|
72000,
|
||||||
2,
|
2,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
@ -107,9 +107,8 @@ mcl_mobs.register_arrow("mobs_mc:fireball", {
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
visual_size = {x = 1, y = 1},
|
visual_size = {x = 1, y = 1},
|
||||||
textures = {"mcl_fire_fire_charge.png"},
|
textures = {"mcl_fire_fire_charge.png"},
|
||||||
velocity = 5,
|
velocity = 15,
|
||||||
collisionbox = {-.5, -.5, -.5, .5, .5, .5},
|
collisionbox = {-.5, -.5, -.5, .5, .5, .5},
|
||||||
_lifetime = 10,
|
|
||||||
_is_fireball = true,
|
_is_fireball = true,
|
||||||
|
|
||||||
hit_player = function(self, player)
|
hit_player = function(self, player)
|
||||||
|
@ -131,10 +130,6 @@ mcl_mobs.register_arrow("mobs_mc:fireball", {
|
||||||
damage_groups = {fleshy = 6},
|
damage_groups = {fleshy = 6},
|
||||||
}, nil)
|
}, nil)
|
||||||
mcl_mobs.mob_class.boom(self,self.object:get_pos(), 1, true)
|
mcl_mobs.mob_class.boom(self,self.object:get_pos(), 1, true)
|
||||||
local ent = mob:get_luaentity()
|
|
||||||
if not ent or ent.health <= 0 then
|
|
||||||
awards.unlock(self._puncher:get_player_name(), "mcl:fireball_redir_serv")
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
hit_node = function(self, pos, node)
|
hit_node = function(self, pos, node)
|
||||||
|
|
|
@ -237,7 +237,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX + 1,
|
minetest.LIGHT_MAX + 1,
|
||||||
30,
|
30,
|
||||||
100,
|
10000,
|
||||||
3,
|
3,
|
||||||
water - 16,
|
water - 16,
|
||||||
water)
|
water)
|
||||||
|
|
|
@ -31,9 +31,8 @@ local hoglin = {
|
||||||
} },
|
} },
|
||||||
visual_size = {x=3, y=3},
|
visual_size = {x=3, y=3},
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "extra_mobs_hoglin.1",
|
random = "extra_mobs_hoglin",
|
||||||
damage = "extra_mobs_hoglin_hurt",
|
damage = "extra_mobs_hoglin_hurt",
|
||||||
death = "extra_mobs_hoglin_hurt",
|
|
||||||
distance = 16,
|
distance = 16,
|
||||||
},
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
|
@ -93,12 +92,6 @@ local zoglin = table.copy(hoglin)
|
||||||
zoglin.description = S("Zoglin")
|
zoglin.description = S("Zoglin")
|
||||||
zoglin.fire_resistant = 1
|
zoglin.fire_resistant = 1
|
||||||
zoglin.textures = {"extra_mobs_zoglin.png"}
|
zoglin.textures = {"extra_mobs_zoglin.png"}
|
||||||
sounds = {
|
|
||||||
random = "extra_mobs_hoglin.2",
|
|
||||||
damage = "extra_mobs_hoglin_hurt",
|
|
||||||
death = "extra_mobs_hoglin_hurt",
|
|
||||||
distance = 16,
|
|
||||||
}
|
|
||||||
zoglin.do_custom = function()
|
zoglin.do_custom = function()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -136,7 +129,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
200,
|
6000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
|
|
@ -44,6 +44,18 @@ local function get_drops(self)
|
||||||
max = 2,
|
max = 2,
|
||||||
looting = "common",
|
looting = "common",
|
||||||
})
|
})
|
||||||
|
if self._saddle then
|
||||||
|
table.insert(self.drops,{name = "mcl_mobitems:saddle",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 1,})
|
||||||
|
end
|
||||||
|
if self._chest then
|
||||||
|
table.insert(self.drops,{name = "mcl_chests:chest",
|
||||||
|
chance = 1,
|
||||||
|
min = 1,
|
||||||
|
max = 1,})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Helper functions to determine equipment rules
|
-- Helper functions to determine equipment rules
|
||||||
|
@ -233,18 +245,10 @@ local horse = {
|
||||||
|
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
|
|
||||||
-- drop saddle when horse is killed
|
-- drop saddle when horse is killed while riding
|
||||||
if self._saddle then
|
if self._saddle then
|
||||||
minetest.add_item(pos, "mcl_mobitems:saddle")
|
minetest.add_item(pos, "mcl_mobitems:saddle")
|
||||||
end
|
end
|
||||||
-- drop chest when mule/donkey is killed
|
|
||||||
if self._chest then
|
|
||||||
minetest.add_item(pos, "mcl_chests:chest")
|
|
||||||
end
|
|
||||||
-- drop armor when horse is killed
|
|
||||||
if self._wearing_armor then
|
|
||||||
minetest.add_item(pos, self._horse_armor)
|
|
||||||
end
|
|
||||||
-- also detach from horse properly
|
-- also detach from horse properly
|
||||||
if self.driver then
|
if self.driver then
|
||||||
mcl_mobs.detach(self.driver, {x = 1, y = 0, z = 1})
|
mcl_mobs.detach(self.driver, {x = 1, y = 0, z = 1})
|
||||||
|
@ -397,7 +401,6 @@ local horse = {
|
||||||
-- Put on armor and take armor from player's inventory
|
-- Put on armor and take armor from player's inventory
|
||||||
local armor = minetest.get_item_group(iname, "horse_armor")
|
local armor = minetest.get_item_group(iname, "horse_armor")
|
||||||
self._horse_armor = iname
|
self._horse_armor = iname
|
||||||
self._wearing_armor = true
|
|
||||||
local w = clicker:get_wielded_item()
|
local w = clicker:get_wielded_item()
|
||||||
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
||||||
w:take_item()
|
w:take_item()
|
||||||
|
@ -609,7 +612,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
40,
|
15000,
|
||||||
4,
|
4,
|
||||||
mobs_mc.water_level+3,
|
mobs_mc.water_level+3,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
@ -632,7 +635,7 @@ mcl_mobs:spawn_specific(
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
10,
|
15000,
|
||||||
4,
|
4,
|
||||||
mobs_mc.water_level+3,
|
mobs_mc.water_level+3,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -4,14 +4,12 @@
|
||||||
--License for code WTFPL and otherwise stated in readmes
|
--License for code WTFPL and otherwise stated in readmes
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_mc")
|
local S = minetest.get_translator("mobs_mc")
|
||||||
local allow_nav_hacks = minetest.settings:get_bool("mcl_mob_allow_nav_hacks ",false)
|
|
||||||
|
|
||||||
--###################
|
--###################
|
||||||
--################### IRON GOLEM
|
--################### IRON GOLEM
|
||||||
--###################
|
--###################
|
||||||
|
|
||||||
local walk_dist = 40
|
local etime = 0
|
||||||
local tele_dist = 80
|
|
||||||
|
|
||||||
mcl_mobs.register_mob("mobs_mc:iron_golem", {
|
mcl_mobs.register_mob("mobs_mc:iron_golem", {
|
||||||
description = S("Iron Golem"),
|
description = S("Iron Golem"),
|
||||||
|
@ -87,23 +85,11 @@ mcl_mobs.register_mob("mobs_mc:iron_golem", {
|
||||||
punch_start = 40, punch_end = 50,
|
punch_start = 40, punch_end = 50,
|
||||||
},
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
do_custom = function(self, dtime)
|
on_step = function(self,dtime)
|
||||||
self.home_timer = (self.home_timer or 0) + dtime
|
etime = etime + dtime
|
||||||
|
if etime > 10 then
|
||||||
if self.home_timer > 10 then
|
if self._home and vector.distance(self._home,self.object:get_pos()) > 50 then
|
||||||
self.home_timer = 0
|
self:gopath(self._home)
|
||||||
if self._home and self.state ~= "attack" then
|
|
||||||
local dist = vector.distance(self._home,self.object:get_pos())
|
|
||||||
if allow_nav_hacks and dist >= tele_dist then
|
|
||||||
self.object:set_pos(self._home)
|
|
||||||
self.state = "stand"
|
|
||||||
self.order = "follow"
|
|
||||||
elseif dist >= walk_dist then
|
|
||||||
self:gopath(self._home, function(self)
|
|
||||||
self.state = "stand"
|
|
||||||
self.order = "follow"
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -62,7 +62,7 @@ mcl_mobs.register_mob("mobs_mc:llama", {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 11,
|
bone_eye_height = 11,
|
||||||
head_eye_height = 3,
|
head_eye_height = 3,
|
||||||
horizontal_head_height=0,
|
horrizonatal_head_height=0,
|
||||||
curiosity = 60,
|
curiosity = 60,
|
||||||
head_yaw = "z",
|
head_yaw = "z",
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
50,
|
15000,
|
||||||
5,
|
5,
|
||||||
mobs_mc.water_level+15,
|
mobs_mc.water_level+15,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -21,7 +21,6 @@ Mule=Mule
|
||||||
Iron Golem=Golem de fer
|
Iron Golem=Golem de fer
|
||||||
Llama=Lama
|
Llama=Lama
|
||||||
Ocelot=Ocelot
|
Ocelot=Ocelot
|
||||||
Cat=Chat
|
|
||||||
Parrot=Perroquet
|
Parrot=Perroquet
|
||||||
Pig=Cochon
|
Pig=Cochon
|
||||||
Polar Bear=Ours blanc
|
Polar Bear=Ours blanc
|
||||||
|
@ -49,15 +48,8 @@ Witch=Sorcière
|
||||||
Wither=Wither
|
Wither=Wither
|
||||||
Wolf=Loup
|
Wolf=Loup
|
||||||
Husk=Zombie Momifié
|
Husk=Zombie Momifié
|
||||||
Baby Husk=Bébé Zombie Momifié
|
|
||||||
Zombie=Zombie
|
Zombie=Zombie
|
||||||
Baby Zombie=Bébé Zombie
|
Zombie Piglin=Zombie Cochon
|
||||||
Piglin=Piglin
|
|
||||||
Baby Piglin=Bébé Piglin
|
|
||||||
Zombie Piglin=Piglin Zombie
|
|
||||||
Baby Zombie Piglin=Bébé Piglin Zombie
|
|
||||||
Sword Piglin=Piglin avec une épée
|
|
||||||
Piglin Brute=Piglin Barbare
|
|
||||||
Farmer=Fermier
|
Farmer=Fermier
|
||||||
Fisherman=Pêcheur
|
Fisherman=Pêcheur
|
||||||
Fletcher=Archer
|
Fletcher=Archer
|
||||||
|
@ -77,7 +69,5 @@ Dolphin=Dauphin
|
||||||
Pillager=Pilleur
|
Pillager=Pilleur
|
||||||
Tropical fish=Poisson tropical
|
Tropical fish=Poisson tropical
|
||||||
Hoglin=Hoglin
|
Hoglin=Hoglin
|
||||||
Baby hoglin=Bébé Hoglin
|
|
||||||
Zoglin=Zoglin
|
|
||||||
Strider=Arpenteur
|
Strider=Arpenteur
|
||||||
Glow Squid=Poulpe Brillant
|
Glow Squid=Poulpe Brillant
|
|
@ -1,73 +0,0 @@
|
||||||
# textdomain: mobs_mc
|
|
||||||
Agent=Agent
|
|
||||||
Axolotl=Axolòtl
|
|
||||||
Bat=Ratapenada
|
|
||||||
Blaze=Flamor
|
|
||||||
Chicken=Polet
|
|
||||||
Cow=Vacha
|
|
||||||
Mooshroom=Vachairòla
|
|
||||||
Creeper=Creeper
|
|
||||||
Ender Dragon=Dragon de Finuèit
|
|
||||||
Enderman=Finuèairi
|
|
||||||
Endermite=Finuèibau
|
|
||||||
Ghast=Òrra
|
|
||||||
Elder Guardian=Ancian Gardian
|
|
||||||
Guardian=Gardian
|
|
||||||
Horse=Ega
|
|
||||||
Skeleton Horse=Ega Squeleta
|
|
||||||
Zombie Horse=Ega Zombia
|
|
||||||
Donkey=Asne
|
|
||||||
Mule=Miule
|
|
||||||
Iron Golem=Golem de Fèrre
|
|
||||||
Llama=Lamà
|
|
||||||
Ocelot=Ocelòt
|
|
||||||
Parrot=Papagai
|
|
||||||
Pig=Cochon
|
|
||||||
Polar Bear=Ors Blanc
|
|
||||||
Rabbit=Lapin
|
|
||||||
Killer Bunny=Lapin Tuaire
|
|
||||||
Sheep=Moton
|
|
||||||
Shulker=Coirafin
|
|
||||||
Silverfish=Peiçon d'Argent
|
|
||||||
Skeleton=Squeleta
|
|
||||||
Stray=Trainabiaça
|
|
||||||
Wither Skeleton=Squeleta Sechaire
|
|
||||||
Magma Cube=Cube de Magmà
|
|
||||||
Slime=Slime
|
|
||||||
Snow Golem=Golem d'Ivèrn
|
|
||||||
Spider=Aranha
|
|
||||||
Cave Spider=Aranha Venimósa
|
|
||||||
Squid=Pofre
|
|
||||||
Vex=Vex
|
|
||||||
Evoker=Invocataire
|
|
||||||
Illusioner=Fisiciaire
|
|
||||||
Villager=Vialatgés
|
|
||||||
Vindicator=Vindicataire
|
|
||||||
Zombie Villager=Vialatgés Zombia
|
|
||||||
Witch=Fachinèira
|
|
||||||
Wither=Le Sechaire
|
|
||||||
Wolf=Lop
|
|
||||||
Husk=Zombia Momificat
|
|
||||||
Zombie=Zombia
|
|
||||||
Zombie Piglin=Porcadés Zombia
|
|
||||||
Farmer=Boriaire
|
|
||||||
Fisherman=Peschaire
|
|
||||||
Fletcher=Archèir
|
|
||||||
Shepherd=Bergèir
|
|
||||||
Librarian=Bibliotecaire
|
|
||||||
Cartographer=Cartografe
|
|
||||||
Armorer=Armurèir
|
|
||||||
Leatherworker=Tanaire
|
|
||||||
Butcher=Maselèir
|
|
||||||
Weapon Smith=Farjaire d'Armas
|
|
||||||
Tool Smith=Farjaire d'Otilhs
|
|
||||||
Cleric=Clerc
|
|
||||||
Nitwit=Simple
|
|
||||||
Cod=Merluça
|
|
||||||
Salmon=Saumon
|
|
||||||
Dolphin=Daufin
|
|
||||||
Pillager=Pilhard
|
|
||||||
Tropical fish=Peiçon tropicau
|
|
||||||
Hoglin=Porcard
|
|
||||||
Strider=Trèva
|
|
||||||
Glow Squid=Pofre Lusent
|
|
|
@ -1,83 +0,0 @@
|
||||||
# textdomain: mobs_mc
|
|
||||||
Agent=Agente
|
|
||||||
Axolotl=Axolote
|
|
||||||
Bat=Morcego
|
|
||||||
Blaze=Blaze
|
|
||||||
Chicken=Galinha
|
|
||||||
Cow=Vaca
|
|
||||||
Mooshroom=Coguvaca
|
|
||||||
Creeper=Creeper
|
|
||||||
Ender Dragon=Dragão do Fim
|
|
||||||
Enderman=Enderman
|
|
||||||
Endermite=Endermite
|
|
||||||
Ghast=Ghast
|
|
||||||
Elder Guardian=Guardião Ancião
|
|
||||||
Guardian=Guardião
|
|
||||||
Horse=Cavalo
|
|
||||||
Skeleton Horse=Cavalo Esqueleto
|
|
||||||
Zombie Horse=Cavalo Zumbi
|
|
||||||
Donkey=Burro
|
|
||||||
Mule=Mula
|
|
||||||
Iron Golem=Golem de Ferro
|
|
||||||
Llama=Lhama
|
|
||||||
Ocelot=Jaguatirica
|
|
||||||
Cat=Gato
|
|
||||||
Parrot=Papagaio
|
|
||||||
Pig=Porco
|
|
||||||
Polar Bear=Urso Polar
|
|
||||||
Rabbit=Coelho
|
|
||||||
Killer Bunny=Coelho Assassino
|
|
||||||
Sheep=Ovelha
|
|
||||||
Shulker=Shulker
|
|
||||||
Silverfish=Traça
|
|
||||||
Skeleton=Esqueleto
|
|
||||||
Stray=Esqueleto Errante
|
|
||||||
Wither Skeleton=Esqueleto Wither
|
|
||||||
Magma Cube=Cubo de Magma
|
|
||||||
Slime=Slime
|
|
||||||
Snow Golem=Golem de Neve
|
|
||||||
Spider=Aranha
|
|
||||||
Cave Spider=Aranha de Caverna
|
|
||||||
Squid=Lula
|
|
||||||
Vex=Vex
|
|
||||||
Evoker=Invocador
|
|
||||||
Illusioner=Ilusionista
|
|
||||||
Villager=Aldeão
|
|
||||||
Vindicator=Vingador
|
|
||||||
Zombie Villager=Aldeão Zumbi
|
|
||||||
Witch=Bruxa
|
|
||||||
Wither=Wither
|
|
||||||
Wolf=Lobo
|
|
||||||
Husk=Zumbi-Múmia
|
|
||||||
Baby Husk=Zumbi-Múmia Bebê
|
|
||||||
Zombie=Zumbi
|
|
||||||
Baby Zombie=Zumbi Bebê
|
|
||||||
Piglin=Piglin
|
|
||||||
Baby Piglin=Piglin Bebê
|
|
||||||
Zombie Piglin=Piglin Zumbi
|
|
||||||
Baby Zombie Piglin=Piglin Zumbi Bebê
|
|
||||||
Sword Piglin=Piglin Espadachim
|
|
||||||
Piglin Brute=Piglin Barbáro
|
|
||||||
Farmer=Fazendeiro
|
|
||||||
Fisherman=Pescador
|
|
||||||
Fletcher=Flecheiro
|
|
||||||
Shepherd=Pastor
|
|
||||||
Librarian=Bibliotecário
|
|
||||||
Cartographer=Cartógrafo
|
|
||||||
Armorer=Armoreiro
|
|
||||||
Leatherworker=Coureiro
|
|
||||||
Butcher=Açougueiro
|
|
||||||
Weapon Smith=Armeiro
|
|
||||||
Tool Smith=Ferramenteiro
|
|
||||||
Cleric=Clérigo
|
|
||||||
Nitwit=Palerma
|
|
||||||
Cod=Bacalhau
|
|
||||||
Salmon=Salmão
|
|
||||||
Dolphin=Golfinho
|
|
||||||
Pillager=Saqueador
|
|
||||||
Tropical fish=Peixe Tropical
|
|
||||||
Hoglin=Hoglin
|
|
||||||
Baby hoglin=Hoglin Bebê
|
|
||||||
Zoglin=Zoglin
|
|
||||||
Strider=Lavagante
|
|
||||||
Glow Squid=Lula Brilhante
|
|
|
@ -1,27 +1,25 @@
|
||||||
# textdomain: mobs_mc
|
# textdomain: mobs_mc
|
||||||
Agent=Агент
|
Agent=Агент
|
||||||
Axolotl=Аксолотль
|
|
||||||
Bat=Летучая мышь
|
Bat=Летучая мышь
|
||||||
Blaze=Ифрит
|
Blaze=Ифрит
|
||||||
Chicken=Курица
|
Chicken=Курица
|
||||||
Cow=Корова
|
Cow=Корова
|
||||||
Mooshroom=Грибная корова
|
Mooshroom=Гриб
|
||||||
Creeper=Крипер
|
Creeper=Крипер
|
||||||
Ender Dragon=Дракон Края
|
Ender Dragon=Дракон Предела
|
||||||
Enderman=Эндермен
|
Enderman=Эндермен
|
||||||
Endermite=Эндермит
|
Endermite=Эндермит
|
||||||
Ghast=Гаст
|
Ghast=Гаст
|
||||||
Elder Guardian=Древний страж
|
Elder Guardian=Древний страж
|
||||||
Guardian=Страж
|
Guardian=Страж
|
||||||
Horse=Лошадь
|
Horse=Лошадь
|
||||||
Skeleton Horse=Лошадь-скелет
|
Skeleton Horse=Скелет лошади
|
||||||
Zombie Horse=Лошадь-зомби
|
Zombie Horse=Зомби-лошадь
|
||||||
Donkey=Ослик
|
Donkey=Ослик
|
||||||
Mule=Мул
|
Mule=Мул
|
||||||
Iron Golem=Железный голем
|
Iron Golem=Железный голем
|
||||||
Llama=Лама
|
Llama=Лама
|
||||||
Ocelot=Оцелот
|
Ocelot=Оцелот
|
||||||
Cat=Кошка
|
|
||||||
Parrot=Попугай
|
Parrot=Попугай
|
||||||
Pig=Свинья
|
Pig=Свинья
|
||||||
Polar Bear=Полярный медведь
|
Polar Bear=Полярный медведь
|
||||||
|
@ -34,13 +32,13 @@ Skeleton=Скелет
|
||||||
Stray=Странник
|
Stray=Странник
|
||||||
Wither Skeleton=Скелет-иссушитель
|
Wither Skeleton=Скелет-иссушитель
|
||||||
Magma Cube=Лавовый куб
|
Magma Cube=Лавовый куб
|
||||||
Slime=Слизень
|
Slime=Слизняк
|
||||||
Snow Golem=Снежный голем
|
Snow Golem=Снежный голем
|
||||||
Spider=Паук
|
Spider=Паук
|
||||||
Cave Spider=Пещерный паук
|
Cave Spider=Пещерный паук
|
||||||
Squid=Спрут
|
Squid=Кальмар
|
||||||
Vex=Досаждатель
|
Vex=Досаждатель
|
||||||
Evoker=Вызыватель
|
Evoker=Маг
|
||||||
Illusioner=Иллюзор
|
Illusioner=Иллюзор
|
||||||
Villager=Житель
|
Villager=Житель
|
||||||
Vindicator=Поборник
|
Vindicator=Поборник
|
||||||
|
@ -49,15 +47,8 @@ Witch=Ведьма
|
||||||
Wither=Иссушитель
|
Wither=Иссушитель
|
||||||
Wolf=Волк
|
Wolf=Волк
|
||||||
Husk=Кадавр
|
Husk=Кадавр
|
||||||
Baby Husk=Кадавр-ребёнок
|
|
||||||
Zombie=Зомби
|
Zombie=Зомби
|
||||||
Baby Zombie=Зомби-ребёнок
|
Zombie Pigman=Зомби-свиночеловек
|
||||||
Piglin=Пиглин
|
|
||||||
Baby Piglin=Пиглин-ребёнок
|
|
||||||
Zombie Piglin=Зомби-пиглин
|
|
||||||
Baby Zombie Piglin=Зомби-пиглин-ребёнок
|
|
||||||
Sword Piglin=Пиглин-мечник
|
|
||||||
Piglin Brute=Жестокий пиглин
|
|
||||||
Farmer=Фермер
|
Farmer=Фермер
|
||||||
Fisherman=Рыбак
|
Fisherman=Рыбак
|
||||||
Fletcher=Лучник
|
Fletcher=Лучник
|
||||||
|
@ -71,13 +62,3 @@ Weapon Smith=Оружейник
|
||||||
Tool Smith=Инструментальщик
|
Tool Smith=Инструментальщик
|
||||||
Cleric=Церковник
|
Cleric=Церковник
|
||||||
Nitwit=Нищий
|
Nitwit=Нищий
|
||||||
Cod=Треска
|
|
||||||
Salmon=Лосось
|
|
||||||
Dolphin=Дельфин
|
|
||||||
Pillager=Разбойник
|
|
||||||
Tropical fish=Тропическая рыба
|
|
||||||
Hoglin=Хоглин
|
|
||||||
Baby hoglin=Детёныш хоглина
|
|
||||||
Zoglin=Зоглин
|
|
||||||
Strider=Страйдер
|
|
||||||
Glow Squid=Светящийся спрут
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ Mule=
|
||||||
Iron Golem=
|
Iron Golem=
|
||||||
Llama=
|
Llama=
|
||||||
Ocelot=
|
Ocelot=
|
||||||
Cat=
|
|
||||||
Parrot=
|
Parrot=
|
||||||
Pig=
|
Pig=
|
||||||
Polar Bear=
|
Polar Bear=
|
||||||
|
@ -49,9 +48,7 @@ Witch=
|
||||||
Wither=
|
Wither=
|
||||||
Wolf=
|
Wolf=
|
||||||
Husk=
|
Husk=
|
||||||
Baby Husk=
|
|
||||||
Zombie=
|
Zombie=
|
||||||
Baby Zombie=
|
|
||||||
Piglin=
|
Piglin=
|
||||||
Baby Piglin=
|
Baby Piglin=
|
||||||
Zombie Piglin=
|
Zombie Piglin=
|
||||||
|
@ -77,7 +74,5 @@ Dolphin=
|
||||||
Pillager=
|
Pillager=
|
||||||
Tropical fish=
|
Tropical fish=
|
||||||
Hoglin=
|
Hoglin=
|
||||||
Baby hoglin=
|
|
||||||
Zoglin=
|
|
||||||
Strider=
|
Strider=
|
||||||
Glow Squid=
|
Glow Squid=
|
|
@ -2,4 +2,4 @@ name = mobs_mc
|
||||||
author = maikerumine
|
author = maikerumine
|
||||||
description = Adds Minecraft-like monsters and animals.
|
description = Adds Minecraft-like monsters and animals.
|
||||||
depends = mcl_init, mcl_particles, mcl_mobs, mcl_wip, mcl_core, mcl_util
|
depends = mcl_init, mcl_particles, mcl_mobs, mcl_wip, mcl_core, mcl_util
|
||||||
optional_depends = default, mcl_tnt, mcl_bows, mcl_throwing, mcl_fishing, bones, mesecons_materials, doc_items, mcl_worlds
|
optional_depends = default, mcl_tnt, mcl_bows, mcl_throwing, mcl_fishing, bones, mesecons_materials, doc_items
|
||||||
|
|
Binary file not shown.
|
@ -39,7 +39,7 @@ local ocelot = {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 6.2,
|
bone_eye_height = 6.2,
|
||||||
head_eye_height = 0.4,
|
head_eye_height = 0.4,
|
||||||
horizontal_head_height=-0,
|
horrizonatal_head_height=-0,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
curiosity = 4,
|
curiosity = 4,
|
||||||
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.69, 0.3},
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.69, 0.3},
|
||||||
|
@ -186,7 +186,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
300,
|
15000,
|
||||||
5,
|
5,
|
||||||
mobs_mc.water_level+15,
|
mobs_mc.water_level+15,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -137,7 +137,7 @@ mcl_mobs.register_mob("mobs_mc:parrot", {
|
||||||
xp_max = 3,
|
xp_max = 3,
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 1.1,
|
bone_eye_height = 1.1,
|
||||||
horizontal_head_height=0,
|
horrizonatal_head_height=0,
|
||||||
curiosity = 10,
|
curiosity = 10,
|
||||||
collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25},
|
collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -235,7 +235,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
7,
|
7,
|
||||||
400,
|
30000,
|
||||||
1,
|
1,
|
||||||
mobs_mc.water_level+7,
|
mobs_mc.water_level+7,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -22,7 +22,7 @@ mcl_mobs.register_mob("mobs_mc:pig", {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 7.5,
|
bone_eye_height = 7.5,
|
||||||
head_eye_height = 0.8,
|
head_eye_height = 0.8,
|
||||||
horizontal_head_height=-1,
|
horrizonatal_head_height=-1,
|
||||||
curiosity = 3,
|
curiosity = 3,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
|
@ -258,7 +258,7 @@ mcl_mobs:spawn_specific(
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
100,
|
15000,
|
||||||
8,
|
8,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -61,10 +61,8 @@ local piglin = {
|
||||||
} },
|
} },
|
||||||
visual_size = {x=1, y=1},
|
visual_size = {x=1, y=1},
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_mc_zombiepig_random",
|
random = "extra_mobs_piglin",
|
||||||
war_cry = "mobs_mc_zombiepig_war_cry", death = "mobs_mc_zombiepig_death",
|
damage = "extra_mobs_piglin_hurt",
|
||||||
damage = "mobs_mc_zombiepig_hurt.2",
|
|
||||||
death = "mobs_mc_zombiepig_death.2",
|
|
||||||
distance = 16,
|
distance = 16,
|
||||||
},
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
|
@ -221,10 +219,6 @@ mcl_mobs.register_mob("mobs_mc:sword_piglin", sword_piglin)
|
||||||
-- Zombified Piglin --
|
-- Zombified Piglin --
|
||||||
|
|
||||||
|
|
||||||
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
|
|
||||||
return artificial_light <= 11
|
|
||||||
end
|
|
||||||
|
|
||||||
local zombified_piglin = {
|
local zombified_piglin = {
|
||||||
description = S("Zombie Piglin"),
|
description = S("Zombie Piglin"),
|
||||||
-- type="animal", passive=false: This combination is needed for a neutral mob which becomes hostile, if attacked
|
-- type="animal", passive=false: This combination is needed for a neutral mob which becomes hostile, if attacked
|
||||||
|
@ -262,7 +256,6 @@ local zombified_piglin = {
|
||||||
},
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
spawn_check = spawn_check,
|
|
||||||
walk_velocity = .8,
|
walk_velocity = .8,
|
||||||
run_velocity = 2.6,
|
run_velocity = 2.6,
|
||||||
pathfinding = 1,
|
pathfinding = 1,
|
||||||
|
@ -399,7 +392,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
150,
|
6000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_lava_nether_max,
|
mcl_vars.mg_lava_nether_max,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
@ -415,7 +408,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
150,
|
6000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_lava_nether_max,
|
mcl_vars.mg_lava_nether_max,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
@ -431,7 +424,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
1000,
|
6000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
@ -448,7 +441,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
50,
|
100000,
|
||||||
4,
|
4,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
|
|
@ -27,7 +27,7 @@ mcl_mobs.register_mob("mobs_mc:polar_bear", {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 2.6,
|
bone_eye_height = 2.6,
|
||||||
head_eye_height = 1,
|
head_eye_height = 1,
|
||||||
horizontal_head_height = 0,
|
horrizonatal_head_height = 0,
|
||||||
curiosity = 20,
|
curiosity = 20,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
visual_size = {x=3.0, y=3.0},
|
visual_size = {x=3.0, y=3.0},
|
||||||
|
@ -86,7 +86,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
50,
|
7000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -18,7 +18,7 @@ local rabbit = {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 2,
|
bone_eye_height = 2,
|
||||||
head_eye_height = 0.5,
|
head_eye_height = 0.5,
|
||||||
horizontal_head_height = -.3,
|
horrizonatal_head_height = -.3,
|
||||||
curiosity = 20,
|
curiosity = 20,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -148,7 +148,7 @@ mcl_mobs:spawn_specific(
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
40,
|
15000,
|
||||||
8,
|
8,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -220,7 +220,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
260,
|
4000,
|
||||||
3,
|
3,
|
||||||
water-16,
|
water-16,
|
||||||
water+1)
|
water+1)
|
||||||
|
|
|
@ -67,7 +67,7 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
|
||||||
head_swivel = "head.control",
|
head_swivel = "head.control",
|
||||||
bone_eye_height = 3.3,
|
bone_eye_height = 3.3,
|
||||||
head_eye_height = 1.1,
|
head_eye_height = 1.1,
|
||||||
horizontal_head_height=-.7,
|
horrizonatal_head_height=-.7,
|
||||||
curiosity = 6,
|
curiosity = 6,
|
||||||
head_yaw="z",
|
head_yaw="z",
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -111,7 +111,7 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
|
||||||
run_start = 81, run_end = 121, run_speed = 60,
|
run_start = 81, run_end = 121, run_speed = 60,
|
||||||
eat_start = 121, eat_start = 161, eat_loop = false,
|
eat_start = 121, eat_start = 161, eat_loop = false,
|
||||||
},
|
},
|
||||||
follow = { "mcl_farming:wheat_item", "mcl_shepherd:shepherd_staff" },
|
follow = { "mcl_farming:wheat_item" },
|
||||||
view_range = 12,
|
view_range = 12,
|
||||||
|
|
||||||
-- Eat grass
|
-- Eat grass
|
||||||
|
@ -234,7 +234,7 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
|
||||||
if self:feed_tame(clicker, 1, true, false) then return end
|
if self:feed_tame(clicker, 1, true, false) then return end
|
||||||
if mcl_mobs:protect(self, clicker) then return end
|
if mcl_mobs:protect(self, clicker) then return end
|
||||||
|
|
||||||
if minetest.get_item_group(item:get_name(), "shears") > 0 and not self.gotten and not self.child then
|
if item:get_name() == "mcl_tools:shears" and not self.gotten and not self.child then
|
||||||
self.gotten = true
|
self.gotten = true
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
|
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
|
||||||
|
@ -379,7 +379,7 @@ mcl_mobs:spawn_specific(
|
||||||
9,
|
9,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
120,
|
15000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -35,7 +35,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
spawn_class = "hostile",
|
spawn_class = "hostile",
|
||||||
attack_type = "shoot",
|
attack_type = "shoot",
|
||||||
shoot_interval = 6,
|
shoot_interval = 0.5,
|
||||||
arrow = "mobs_mc:shulkerbullet",
|
arrow = "mobs_mc:shulkerbullet",
|
||||||
shoot_offset = 0.5,
|
shoot_offset = 0.5,
|
||||||
passive = false,
|
passive = false,
|
||||||
|
@ -43,7 +43,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
||||||
hp_max = 30,
|
hp_max = 30,
|
||||||
xp_min = 5,
|
xp_min = 5,
|
||||||
xp_max = 5,
|
xp_max = 5,
|
||||||
armor = 20,
|
armor = 150,
|
||||||
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.99, 0.5},
|
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.99, 0.5},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_shulker.b3d",
|
mesh = "mobs_mc_shulker.b3d",
|
||||||
|
@ -51,7 +51,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
||||||
-- TODO: sounds
|
-- TODO: sounds
|
||||||
-- TODO: Make shulker dye-able
|
-- TODO: Make shulker dye-able
|
||||||
visual_size = {x=3, y=3},
|
visual_size = {x=3, y=3},
|
||||||
walk_chance = 10,
|
walk_chance = 0,
|
||||||
knock_back = false,
|
knock_back = false,
|
||||||
jump = false,
|
jump = false,
|
||||||
can_despawn = false,
|
can_despawn = false,
|
||||||
|
@ -65,19 +65,15 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
||||||
looting_factor = 0.0625},
|
looting_factor = 0.0625},
|
||||||
},
|
},
|
||||||
animation = {
|
animation = {
|
||||||
stand_speed = 25, walk_speed = 25, run_speed = 50, punch_speed = 25,
|
stand_speed = 25, walk_speed = 0, run_speed = 50, punch_speed = 25,
|
||||||
speed_normal = 25, speed_run = 50,
|
speed_normal = 25, speed_run = 50,
|
||||||
stand_start = 0, stand_end = 25,
|
stand_start = 0, stand_end = 25,
|
||||||
walk_start = 45, walk_end = 65,
|
walk_start = 25, walk_end = 45,
|
||||||
walk_loop = false,
|
run_start = 45, run_end = 85,
|
||||||
run_start = 65, run_end = 85,
|
|
||||||
run_loop = false,
|
|
||||||
punch_start = 80, punch_end = 100,
|
punch_start = 80, punch_end = 100,
|
||||||
},
|
},
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
fear_height = 0,
|
fear_height = 0,
|
||||||
walk_velocity = 0,
|
|
||||||
run_velocity = 0,
|
|
||||||
noyaw = true,
|
noyaw = true,
|
||||||
do_custom = function(self,dtime)
|
do_custom = function(self,dtime)
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
|
@ -85,13 +81,12 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
||||||
self.object:set_yaw(0)
|
self.object:set_yaw(0)
|
||||||
mcl_mobs:yaw(self, 0, 0, dtime)
|
mcl_mobs:yaw(self, 0, 0, dtime)
|
||||||
end
|
end
|
||||||
|
if self.state == "walk" or self.state == "stand" then
|
||||||
|
self.state = "stand"
|
||||||
|
self:set_animation("stand")
|
||||||
|
end
|
||||||
if self.state == "attack" then
|
if self.state == "attack" then
|
||||||
self:set_animation("run")
|
self:set_animation("punch")
|
||||||
self.armor = 0
|
|
||||||
elseif self.state == "stand" then
|
|
||||||
self.armor = 20
|
|
||||||
elseif self.state == "walk" or self.state == "run" then
|
|
||||||
self.armor = 0
|
|
||||||
end
|
end
|
||||||
self.path.way = false
|
self.path.way = false
|
||||||
self.look_at_players = false
|
self.look_at_players = false
|
||||||
|
@ -154,9 +149,6 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_attack = function(self, dtime)
|
|
||||||
self.shoot_interval = math.random(1, 6)
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- bullet arrow (weapon)
|
-- bullet arrow (weapon)
|
||||||
|
@ -164,12 +156,27 @@ mcl_mobs.register_arrow("mobs_mc:shulkerbullet", {
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
visual_size = {x = 0.25, y = 0.25},
|
visual_size = {x = 0.25, y = 0.25},
|
||||||
textures = {"mobs_mc_shulkerbullet.png"},
|
textures = {"mobs_mc_shulkerbullet.png"},
|
||||||
velocity = 5,
|
velocity = 6,
|
||||||
homing = true,
|
|
||||||
hit_player = mcl_mobs.get_arrow_damage_func(4),
|
hit_player = function(self, player)
|
||||||
hit_mob = mcl_mobs.get_arrow_damage_func(4),
|
player:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval = 1.0,
|
||||||
|
damage_groups = {fleshy = 4},
|
||||||
|
}, nil)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hit_mob = function(self, mob)
|
||||||
|
mob:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval = 1.0,
|
||||||
|
damage_groups = {fleshy = 4},
|
||||||
|
}, nil)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
mcl_mobs.register_egg("mobs_mc:shulker", S("Shulker"), "#946694", "#4d3852", 0)
|
mcl_mobs.register_egg("mobs_mc:shulker", S("Shulker"), "#946694", "#4d3852", 0)
|
||||||
mcl_mobs:non_spawn_specific("mobs_mc:shulker","overworld",0,minetest.LIGHT_MAX+1)
|
mcl_mobs:non_spawn_specific("mobs_mc:shulker","overworld",0,minetest.LIGHT_MAX+1)
|
||||||
--[[
|
--[[
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_mc")
|
local S = minetest.get_translator("mobs_mc")
|
||||||
|
|
||||||
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
|
|
||||||
return artificial_light <= 11
|
|
||||||
end
|
|
||||||
|
|
||||||
mcl_mobs.register_mob("mobs_mc:silverfish", {
|
mcl_mobs.register_mob("mobs_mc:silverfish", {
|
||||||
description = S("Silverfish"),
|
description = S("Silverfish"),
|
||||||
type = "monster",
|
type = "monster",
|
||||||
|
@ -57,7 +53,6 @@ mcl_mobs.register_mob("mobs_mc:silverfish", {
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
damage = 1,
|
damage = 1,
|
||||||
spawn_check = spawn_check,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mcl_mobs.register_egg("mobs_mc:silverfish", S("Silverfish"), "#6d6d6d", "#313131", 0)
|
mcl_mobs.register_egg("mobs_mc:silverfish", S("Silverfish"), "#6d6d6d", "#313131", 0)
|
||||||
|
|
|
@ -299,7 +299,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
20,
|
20,
|
||||||
800,
|
17000,
|
||||||
2,
|
2,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
@ -316,7 +316,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
800,
|
10000,
|
||||||
3,
|
3,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
@ -336,7 +336,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
20,
|
20,
|
||||||
1200,
|
19000,
|
||||||
2,
|
2,
|
||||||
mobs_mc.water_level,
|
mobs_mc.water_level,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -96,11 +96,6 @@ mcl_mobs.register_mob("mobs_mc:witherskeleton", {
|
||||||
fear_height = 4,
|
fear_height = 4,
|
||||||
harmed_by_heal = true,
|
harmed_by_heal = true,
|
||||||
fire_resistant = true,
|
fire_resistant = true,
|
||||||
dealt_effect = {
|
|
||||||
name = "withering",
|
|
||||||
factor = 1,
|
|
||||||
dur = 10,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
--spawn
|
--spawn
|
||||||
|
@ -116,7 +111,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
30,
|
30,
|
||||||
500,
|
5000,
|
||||||
5,
|
5,
|
||||||
mcl_vars.mg_nether_min,
|
mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
|
|
@ -6,7 +6,6 @@ local MAPBLOCK_SIZE = 16
|
||||||
local seed = minetest.get_mapgen_setting("seed")
|
local seed = minetest.get_mapgen_setting("seed")
|
||||||
|
|
||||||
local slime_chunk_match
|
local slime_chunk_match
|
||||||
local slime_chunk_spawn_max = mcl_worlds.layer_to_y(40)
|
|
||||||
local x_modifier
|
local x_modifier
|
||||||
local z_modifier
|
local z_modifier
|
||||||
|
|
||||||
|
@ -162,18 +161,6 @@ local spawn_children_on_die = function(child_mob, spawn_distance, eject_speed)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local swamp_light_max = 7
|
|
||||||
|
|
||||||
local function slime_spawn_check(pos, environmental_light, artificial_light, sky_light)
|
|
||||||
local maxlight = swamp_light_max
|
|
||||||
|
|
||||||
if pos.y <= slime_chunk_spawn_max and is_slime_chunk(pos) then
|
|
||||||
maxlight = minetest.LIGHT_MAX + 1
|
|
||||||
end
|
|
||||||
|
|
||||||
return math.max(artificial_light, sky_light) <= maxlight
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Slime
|
-- Slime
|
||||||
local slime_big = {
|
local slime_big = {
|
||||||
description = S("Slime"),
|
description = S("Slime"),
|
||||||
|
@ -184,7 +171,7 @@ local slime_big = {
|
||||||
hp_max = 16,
|
hp_max = 16,
|
||||||
xp_min = 4,
|
xp_min = 4,
|
||||||
xp_max = 4,
|
xp_max = 4,
|
||||||
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02, rotate = true},
|
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02},
|
||||||
visual_size = {x=12.5, y=12.5},
|
visual_size = {x=12.5, y=12.5},
|
||||||
textures = {{"mobs_mc_slime.png", "mobs_mc_slime.png"}},
|
textures = {{"mobs_mc_slime.png", "mobs_mc_slime.png"}},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -198,7 +185,7 @@ local slime_big = {
|
||||||
distance = 16,
|
distance = 16,
|
||||||
},
|
},
|
||||||
damage = 4,
|
damage = 4,
|
||||||
reach = 2.5,
|
reach = 3,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
drops = {},
|
drops = {},
|
||||||
-- TODO: Fix animations
|
-- TODO: Fix animations
|
||||||
|
@ -226,7 +213,6 @@ local slime_big = {
|
||||||
spawn_small_alternative = "mobs_mc:slime_small",
|
spawn_small_alternative = "mobs_mc:slime_small",
|
||||||
on_die = spawn_children_on_die("mobs_mc:slime_small", 1.0, 1.5),
|
on_die = spawn_children_on_die("mobs_mc:slime_small", 1.0, 1.5),
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
spawn_check = slime_spawn_check,
|
|
||||||
}
|
}
|
||||||
mcl_mobs.register_mob("mobs_mc:slime_big", slime_big)
|
mcl_mobs.register_mob("mobs_mc:slime_big", slime_big)
|
||||||
|
|
||||||
|
@ -236,10 +222,10 @@ slime_small.hp_min = 4
|
||||||
slime_small.hp_max = 4
|
slime_small.hp_max = 4
|
||||||
slime_small.xp_min = 2
|
slime_small.xp_min = 2
|
||||||
slime_small.xp_max = 2
|
slime_small.xp_max = 2
|
||||||
slime_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51, rotate = true}
|
slime_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51}
|
||||||
slime_small.visual_size = {x=6.25, y=6.25}
|
slime_small.visual_size = {x=6.25, y=6.25}
|
||||||
slime_small.damage = 3
|
slime_small.damage = 3
|
||||||
slime_small.reach = 2.25
|
slime_small.reach = 2.75
|
||||||
slime_small.walk_velocity = 1.8
|
slime_small.walk_velocity = 1.8
|
||||||
slime_small.run_velocity = 1.8
|
slime_small.run_velocity = 1.8
|
||||||
slime_small.jump_height = 4.3
|
slime_small.jump_height = 4.3
|
||||||
|
@ -253,10 +239,10 @@ slime_tiny.hp_min = 1
|
||||||
slime_tiny.hp_max = 1
|
slime_tiny.hp_max = 1
|
||||||
slime_tiny.xp_min = 1
|
slime_tiny.xp_min = 1
|
||||||
slime_tiny.xp_max = 1
|
slime_tiny.xp_max = 1
|
||||||
slime_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505, rotate = true}
|
slime_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505}
|
||||||
slime_tiny.visual_size = {x=3.125, y=3.125}
|
slime_tiny.visual_size = {x=3.125, y=3.125}
|
||||||
slime_tiny.damage = 1
|
slime_tiny.damage = 0
|
||||||
slime_tiny.reach = 2
|
slime_tiny.reach = 2.5
|
||||||
slime_tiny.drops = {
|
slime_tiny.drops = {
|
||||||
-- slimeball
|
-- slimeball
|
||||||
{name = "mcl_mobitems:slimeball",
|
{name = "mcl_mobitems:slimeball",
|
||||||
|
@ -311,6 +297,7 @@ local cave_min = mcl_vars.mg_overworld_min
|
||||||
local cave_max = water_level - 23
|
local cave_max = water_level - 23
|
||||||
|
|
||||||
local swampy_biomes = {"Swampland", "MangroveSwamp"}
|
local swampy_biomes = {"Swampland", "MangroveSwamp"}
|
||||||
|
local swamp_light_max = 7
|
||||||
local swamp_min = water_level
|
local swamp_min = water_level
|
||||||
local swamp_max = water_level + 27
|
local swamp_max = water_level + 27
|
||||||
|
|
||||||
|
@ -322,7 +309,7 @@ cave_biomes,
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
1000,
|
12000,
|
||||||
4,
|
4,
|
||||||
cave_min,
|
cave_min,
|
||||||
cave_max,
|
cave_max,
|
||||||
|
@ -336,7 +323,7 @@ swampy_biomes,
|
||||||
0,
|
0,
|
||||||
swamp_light_max,
|
swamp_light_max,
|
||||||
30,
|
30,
|
||||||
1000,
|
12000,
|
||||||
4,
|
4,
|
||||||
swamp_min,
|
swamp_min,
|
||||||
swamp_max)
|
swamp_max)
|
||||||
|
@ -349,7 +336,7 @@ cave_biomes,
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
1000,
|
8500,
|
||||||
4,
|
4,
|
||||||
cave_min,
|
cave_min,
|
||||||
cave_max,
|
cave_max,
|
||||||
|
@ -363,7 +350,7 @@ swampy_biomes,
|
||||||
0,
|
0,
|
||||||
swamp_light_max,
|
swamp_light_max,
|
||||||
30,
|
30,
|
||||||
1000,
|
8500,
|
||||||
4,
|
4,
|
||||||
swamp_min,
|
swamp_min,
|
||||||
swamp_max)
|
swamp_max)
|
||||||
|
@ -376,7 +363,7 @@ cave_biomes,
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
1000,
|
10000,
|
||||||
4,
|
4,
|
||||||
cave_min,
|
cave_min,
|
||||||
cave_max,
|
cave_max,
|
||||||
|
@ -390,7 +377,7 @@ swampy_biomes,
|
||||||
0,
|
0,
|
||||||
swamp_light_max,
|
swamp_light_max,
|
||||||
30,
|
30,
|
||||||
1000,
|
10000,
|
||||||
4,
|
4,
|
||||||
swamp_min,
|
swamp_min,
|
||||||
swamp_max)
|
swamp_max)
|
||||||
|
@ -404,7 +391,7 @@ local magma_cube_big = {
|
||||||
hp_max = 16,
|
hp_max = 16,
|
||||||
xp_min = 4,
|
xp_min = 4,
|
||||||
xp_max = 4,
|
xp_max = 4,
|
||||||
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02, rotate = true},
|
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02},
|
||||||
visual_size = {x=12.5, y=12.5},
|
visual_size = {x=12.5, y=12.5},
|
||||||
textures = {{ "mobs_mc_magmacube.png", "mobs_mc_magmacube.png" }},
|
textures = {{ "mobs_mc_magmacube.png", "mobs_mc_magmacube.png" }},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -419,7 +406,7 @@ local magma_cube_big = {
|
||||||
walk_velocity = 2.5,
|
walk_velocity = 2.5,
|
||||||
run_velocity = 2.5,
|
run_velocity = 2.5,
|
||||||
damage = 6,
|
damage = 6,
|
||||||
reach = 2.35,
|
reach = 3,
|
||||||
armor = 53,
|
armor = 53,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mcl_mobitems:magma_cream",
|
{name = "mcl_mobitems:magma_cream",
|
||||||
|
@ -464,10 +451,10 @@ magma_cube_small.hp_min = 4
|
||||||
magma_cube_small.hp_max = 4
|
magma_cube_small.hp_max = 4
|
||||||
magma_cube_small.xp_min = 2
|
magma_cube_small.xp_min = 2
|
||||||
magma_cube_small.xp_max = 2
|
magma_cube_small.xp_max = 2
|
||||||
magma_cube_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51, rotate = true}
|
magma_cube_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51}
|
||||||
magma_cube_small.visual_size = {x=6.25, y=6.25}
|
magma_cube_small.visual_size = {x=6.25, y=6.25}
|
||||||
magma_cube_small.damage = 3
|
magma_cube_small.damage = 3
|
||||||
magma_cube_small.reach = 2.1
|
magma_cube_small.reach = 2.75
|
||||||
magma_cube_small.walk_velocity = .8
|
magma_cube_small.walk_velocity = .8
|
||||||
magma_cube_small.run_velocity = 2.0
|
magma_cube_small.run_velocity = 2.0
|
||||||
magma_cube_small.jump_height = 6
|
magma_cube_small.jump_height = 6
|
||||||
|
@ -486,13 +473,13 @@ magma_cube_tiny.hp_min = 1
|
||||||
magma_cube_tiny.hp_max = 1
|
magma_cube_tiny.hp_max = 1
|
||||||
magma_cube_tiny.xp_min = 1
|
magma_cube_tiny.xp_min = 1
|
||||||
magma_cube_tiny.xp_max = 1
|
magma_cube_tiny.xp_max = 1
|
||||||
magma_cube_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505, rotate = true}
|
magma_cube_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505}
|
||||||
magma_cube_tiny.visual_size = {x=3.125, y=3.125}
|
magma_cube_tiny.visual_size = {x=3.125, y=3.125}
|
||||||
magma_cube_tiny.walk_velocity = 1.02
|
magma_cube_tiny.walk_velocity = 1.02
|
||||||
magma_cube_tiny.run_velocity = 1.02
|
magma_cube_tiny.run_velocity = 1.02
|
||||||
magma_cube_tiny.jump_height = 4
|
magma_cube_tiny.jump_height = 4
|
||||||
magma_cube_tiny.damage = 3
|
magma_cube_tiny.damage = 3
|
||||||
magma_cube_tiny.reach = 2
|
magma_cube_tiny.reach = 2.5
|
||||||
magma_cube_tiny.armor = 50
|
magma_cube_tiny.armor = 50
|
||||||
magma_cube_tiny.drops = {}
|
magma_cube_tiny.drops = {}
|
||||||
magma_cube_tiny.spawn_small_alternative = nil
|
magma_cube_tiny.spawn_small_alternative = nil
|
||||||
|
@ -513,7 +500,7 @@ magma_cube_biomes,
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
100,
|
15000,
|
||||||
4,
|
4,
|
||||||
nether_min,
|
nether_min,
|
||||||
nether_max)
|
nether_max)
|
||||||
|
@ -526,7 +513,7 @@ magma_cube_biomes,
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
100,
|
15500,
|
||||||
4,
|
4,
|
||||||
nether_min,
|
nether_min,
|
||||||
nether_max)
|
nether_max)
|
||||||
|
@ -539,7 +526,7 @@ magma_cube_biomes,
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
100,
|
16000,
|
||||||
4,
|
4,
|
||||||
nether_min,
|
nether_min,
|
||||||
nether_max)
|
nether_max)
|
||||||
|
|
|
@ -114,7 +114,7 @@ mcl_mobs.register_mob("mobs_mc:snowman", {
|
||||||
-- Remove pumpkin if using shears
|
-- Remove pumpkin if using shears
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
local item = clicker:get_wielded_item()
|
local item = clicker:get_wielded_item()
|
||||||
if self.gotten ~= true and minetest.get_item_group(item:get_name(), "shears") > 0 then
|
if self.gotten ~= true and item:get_name() == "mcl_tools:shears" then
|
||||||
-- Remove pumpkin
|
-- Remove pumpkin
|
||||||
self.gotten = true
|
self.gotten = true
|
||||||
self.object:set_properties({
|
self.object:set_properties({
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -114,7 +114,9 @@ mcl_mobs.register_mob("mobs_mc:spider", spider)
|
||||||
local cave_spider = table.copy(spider)
|
local cave_spider = table.copy(spider)
|
||||||
cave_spider.description = S("Cave Spider")
|
cave_spider.description = S("Cave Spider")
|
||||||
cave_spider.textures = { {"mobs_mc_cave_spider.png^(mobs_mc_spider_eyes.png^[makealpha:0,0,0)"} }
|
cave_spider.textures = { {"mobs_mc_cave_spider.png^(mobs_mc_spider_eyes.png^[makealpha:0,0,0)"} }
|
||||||
cave_spider.damage = 2
|
-- TODO: Poison damage
|
||||||
|
-- TODO: Revert damage to 2
|
||||||
|
cave_spider.damage = 3 -- damage increased to undo non-existing poison
|
||||||
cave_spider.hp_min = 1
|
cave_spider.hp_min = 1
|
||||||
cave_spider.hp_max = 12
|
cave_spider.hp_max = 12
|
||||||
cave_spider.collisionbox = {-0.35, -0.01, -0.35, 0.35, 0.46, 0.35}
|
cave_spider.collisionbox = {-0.35, -0.01, -0.35, 0.35, 0.46, 0.35}
|
||||||
|
@ -136,11 +138,6 @@ cave_spider.walk_velocity = 1.3
|
||||||
cave_spider.run_velocity = 3.2
|
cave_spider.run_velocity = 3.2
|
||||||
cave_spider.sounds = table.copy(spider.sounds)
|
cave_spider.sounds = table.copy(spider.sounds)
|
||||||
cave_spider.sounds.base_pitch = 1.25
|
cave_spider.sounds.base_pitch = 1.25
|
||||||
cave_spider.dealt_effect = {
|
|
||||||
name = "poison",
|
|
||||||
factor = 2.5,
|
|
||||||
dur = 7,
|
|
||||||
}
|
|
||||||
mcl_mobs.register_mob("mobs_mc:cave_spider", cave_spider)
|
mcl_mobs.register_mob("mobs_mc:cave_spider", cave_spider)
|
||||||
|
|
||||||
|
|
||||||
|
@ -287,7 +284,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
30,
|
30,
|
||||||
1000,
|
17000,
|
||||||
2,
|
2,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -211,7 +211,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
80,
|
5500,
|
||||||
3,
|
3,
|
||||||
water-16,
|
water-16,
|
||||||
water+1)
|
water+1)
|
||||||
|
|
|
@ -225,7 +225,7 @@ mcl_mobs:spawn_setup({
|
||||||
},
|
},
|
||||||
min_height = mcl_vars.mg_nether_min,
|
min_height = mcl_vars.mg_nether_min,
|
||||||
max_height = mcl_vars.mg_nether_max,
|
max_height = mcl_vars.mg_nether_max,
|
||||||
chance = 200,
|
chance = 2000,
|
||||||
})
|
})
|
||||||
|
|
||||||
mcl_mobs:spawn_setup({
|
mcl_mobs:spawn_setup({
|
||||||
|
@ -241,7 +241,7 @@ mcl_mobs:spawn_setup({
|
||||||
},
|
},
|
||||||
min_height = mcl_vars.mg_nether_min,
|
min_height = mcl_vars.mg_nether_min,
|
||||||
max_height = mcl_vars.mg_nether_max,
|
max_height = mcl_vars.mg_nether_max,
|
||||||
chance = 20,
|
chance = 100,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- spawn eggs
|
-- spawn eggs
|
||||||
|
|
|
@ -183,7 +183,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
750,
|
4000,
|
||||||
3,
|
3,
|
||||||
water-16,
|
water-16,
|
||||||
water+1)
|
water+1)
|
||||||
|
|
|
@ -37,7 +37,6 @@ mcl_mobs.register_mob("mobs_mc:vex", {
|
||||||
walk_velocity = 3.2,
|
walk_velocity = 3.2,
|
||||||
run_velocity = 5.9,
|
run_velocity = 5.9,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
attack_frequency = 2,
|
|
||||||
sounds = {
|
sounds = {
|
||||||
-- TODO: random
|
-- TODO: random
|
||||||
death = "mobs_mc_vex_death",
|
death = "mobs_mc_vex_death",
|
||||||
|
@ -64,13 +63,10 @@ mcl_mobs.register_mob("mobs_mc:vex", {
|
||||||
self.object:set_properties({textures=self.base_texture})
|
self.object:set_properties({textures=self.base_texture})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if self.base_texture[2] == "mobs_mc_vex_charging.png" then
|
|
||||||
self.base_texture[2] = "mobs_mc_vex.png"
|
|
||||||
end
|
|
||||||
if self.base_texture[1] ~= "default_tool_steelsword.png" then
|
if self.base_texture[1] ~= "default_tool_steelsword.png" then
|
||||||
self.base_texture[1] = "default_tool_steelsword.png"
|
self.base_texture[1] = "default_tool_steelsword.png"
|
||||||
|
self.object:set_properties({textures=self.base_texture})
|
||||||
end
|
end
|
||||||
self.object:set_properties({textures=self.base_texture})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Take constant damage if the vex' life clock ran out
|
-- Take constant damage if the vex' life clock ran out
|
||||||
|
|
|
@ -101,32 +101,28 @@ local professions = {
|
||||||
jobsite = "mcl_composters:composter",
|
jobsite = "mcl_composters:composter",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_farming:wheat_item", 20, 20, }, E1 },
|
{ { "mcl_farming:wheat_item", 18, 22, }, E1 },
|
||||||
{ { "mcl_farming:potato_item", 26, 26, }, E1 },
|
{ { "mcl_farming:potato_item", 15, 19, }, E1 },
|
||||||
{ { "mcl_farming:carrot_item", 22, 22, }, E1 },
|
{ { "mcl_farming:carrot_item", 15, 19, }, E1 },
|
||||||
{ { "mcl_farming:beetroot_item", 15, 15 }, E1 },
|
{ E1, { "mcl_farming:bread", 2, 4 } },
|
||||||
{ E1, { "mcl_farming:bread", 6, 6 } },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_farming:pumpkin", 6, 6 }, E1 },
|
{ { "mcl_farming:pumpkin", 6, 7 }, E1 },
|
||||||
{ E1, { "mcl_farming:pumpkin_pie", 4, 4 } },
|
{ E1, { "mcl_farming:pumpkin_pie", 2, 3} },
|
||||||
{ E1, { "mcl_core:apple", 4, 4 } },
|
{ E1, { "mcl_core:apple", 2, 3} },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_farming:melon", 4, 4 }, E1 },
|
{ { "mcl_farming:melon", 7, 12 }, E1 },
|
||||||
{ { "mcl_core:emerald", 3, 3 }, {"mcl_farming:cookie", 18, 18 }, },
|
{ E1, {"mcl_farming:cookie", 5, 7 }, },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ E1, { "mcl_cake:cake", 1, 1 } },
|
|
||||||
{ E1, { "mcl_mushrooms:mushroom_stew", 6, 10 } }, --FIXME: expert level farmer is supposed to sell sus stews.
|
{ E1, { "mcl_mushrooms:mushroom_stew", 6, 10 } }, --FIXME: expert level farmer is supposed to sell sus stews.
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_farming:carrot_item_gold", 3, 3 } },
|
{ E1, { "mcl_farming:carrot_item_gold", 3, 10 } },
|
||||||
{ { "mcl_core:emerald", 4, 4 }, { "mcl_potions:speckled_melon", 3, 3 } },
|
{ E1, { "mcl_potions:speckled_melon", 1, 4 } },
|
||||||
TRADE_V6_BIRCH_SAPLING,
|
TRADE_V6_BIRCH_SAPLING,
|
||||||
TRADE_V6_DARK_OAK_SAPLING,
|
TRADE_V6_DARK_OAK_SAPLING,
|
||||||
TRADE_V6_ACACIA_SAPLING,
|
TRADE_V6_ACACIA_SAPLING,
|
||||||
|
@ -139,36 +135,31 @@ local professions = {
|
||||||
jobsite = "mcl_barrels:barrel_closed",
|
jobsite = "mcl_barrels:barrel_closed",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:string", 20, 20 }, E1 },
|
{ { "mcl_fishing:fish_raw", 6, 6, "mcl_core:emerald", 1, 1 },{ "mcl_fishing:fish_cooked", 6, 6 } },
|
||||||
{ { "mcl_core:coal_lump", 10, 10 }, E1 },
|
{ { "mcl_mobitems:string", 15, 20 }, E1 },
|
||||||
{ { "mcl_core:emerald", 1, 1, "mcl_fishing:fish_raw", 6, 6 }, { "mcl_fishing:fish_cooked", 6, 6 } },
|
{ { "mcl_core:coal_lump", 10, 15 }, E1 },
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_buckets:bucket_cod", 1, 1 } },
|
-- FIXME missing: bucket of cod + fish should be cod.
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_fishing:fish_raw", 15, 15 }, E1 },
|
{ { "mcl_fishing:fish_raw", 6, 15,}, E1 },
|
||||||
{ { "mcl_core:emerald", 1, 1, "mcl_fishing:salmon_raw", 6, 6 }, { "mcl_fishing:salmon_cooked", 6, 6 } },
|
{ { "mcl_fishing:salmon_raw", 6, 6, "mcl_core:emerald", 1, 1 },{ "mcl_fishing:salmon_cooked", 6, 6 } },
|
||||||
{ { "mcl_core:emerald", 2, 2 }, {"mcl_campfires:campfire_lit", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 },{"mcl_campfires:campfire_lit",1,1} },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_fishing:salmon_raw", 13, 13 }, E1 },
|
{ { "mcl_fishing:salmon_raw", 6, 13,}, E1 },
|
||||||
{ { "mcl_core:emerald", 8, 22 }, { "mcl_fishing:fishing_rod_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 22 }, { "mcl_fishing:fishing_rod_enchanted", 1, 1} },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_fishing:clownfish_raw", 6, 6 }, E1 },
|
{ { "mcl_fishing:clownfish_raw", 6, 6,}, E1 },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_fishing:pufferfish_raw", 4, 4 }, E1 },
|
{ { "mcl_fishing:pufferfish_raw", 4, 4,}, E1 },
|
||||||
|
|
||||||
--Boat cherry?
|
{ { "mcl_boats:boat", 1, 1,}, E1 },
|
||||||
{ { "mcl_boats:boat", 1, 1 }, E1 },
|
{ { "mcl_boats:boat_acacia", 1, 1,}, E1 },
|
||||||
{ { "mcl_boats:boat_acacia", 1, 1 }, E1 },
|
{ { "mcl_boats:boat_spruce", 1, 1,}, E1 },
|
||||||
{ { "mcl_boats:boat_spruce", 1, 1 }, E1 },
|
{ { "mcl_boats:boat_dark_oak", 1, 1,}, E1 },
|
||||||
{ { "mcl_boats:boat_dark_oak", 1, 1 }, E1 },
|
{ { "mcl_boats:boat_birch", 1, 1,}, E1 },
|
||||||
{ { "mcl_boats:boat_birch", 1, 1 }, E1 },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -178,28 +169,25 @@ local professions = {
|
||||||
jobsite = "mcl_fletching_table:fletching_table",
|
jobsite = "mcl_fletching_table:fletching_table",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
|
{ { "mcl_mobitems:string", 15, 20 }, E1 },
|
||||||
|
{ E1, { "mcl_bows:arrow", 8, 12 } },
|
||||||
|
{ { "mcl_core:gravel", 10, 10, "mcl_core:emerald", 1, 1 }, { "mcl_core:flint", 6, 10 } },
|
||||||
{ { "mcl_core:stick", 32, 32 }, E1 },
|
{ { "mcl_core:stick", 32, 32 }, E1 },
|
||||||
{ E1, { "mcl_bows:arrow", 16, 16 } },
|
|
||||||
{ { "mcl_core:emerald", 1, 1, "mcl_core:gravel", 10, 10 }, { "mcl_core:flint", 10, 10 } },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:flint", 26, 26 }, E1 },
|
{ { "mcl_core:flint", 26, 26 }, E1 },
|
||||||
{ { "mcl_core:emerald", 2, 2 }, { "mcl_bows:bow", 1, 1 } },
|
{ { "mcl_core:emerald", 2, 3 }, { "mcl_bows:bow", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:string", 14, 14 }, E1 },
|
{ { "mcl_mobitems:string", 14, 14 }, E1 },
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_bows:crossbow", 1, 1 } },
|
{ { "mcl_core:emerald", 3, 3 }, { "mcl_bows:crossbow", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:feather", 24, 24 }, E1 },
|
{ { "mcl_mobitems:string", 24, 24 }, E1 },
|
||||||
{ { "mcl_core:emerald", 7, 21 } , { "mcl_bows:bow_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 21 } , { "mcl_bows:bow_enchanted", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
--FIXME: supposed to be tripwire hook{ { "tripwirehook", 8, 8 }, E1 },
|
--FIXME: supposed to be tripwire hook{ { "tripwirehook", 24, 24 }, E1 },
|
||||||
{ { "mcl_core:emerald", 8, 22 } , { "mcl_bows:crossbow_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 8, 22 } , { "mcl_bows:crossbow_enchanted", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 2, 2, "mcl_bows:arrow", 5, 5 }, { "mcl_potions:healing_arrow", 5, 5 } },
|
{ { "mcl_core:emerald", 2, 2, "mcl_bows:arrow", 5, 5 }, { "mcl_potions:healing_arrow", 5, 5 } },
|
||||||
{ { "mcl_core:emerald", 2, 2, "mcl_bows:arrow", 5, 5 }, { "mcl_potions:harming_arrow", 5, 5 } },
|
{ { "mcl_core:emerald", 2, 2, "mcl_bows:arrow", 5, 5 }, { "mcl_potions:harming_arrow", 5, 5 } },
|
||||||
|
@ -221,108 +209,27 @@ local professions = {
|
||||||
jobsite = "mcl_loom:loom",
|
jobsite = "mcl_loom:loom",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_wool:white", 18, 18 }, E1 },
|
{ { "mcl_wool:white", 16, 22 }, E1 },
|
||||||
{ { "mcl_wool:brown", 18, 18 }, E1 },
|
{ { "mcl_core:emerald", 3, 4 }, { "mcl_tools:shears", 1, 1 } },
|
||||||
{ { "mcl_wool:black", 18, 18 }, E1 },
|
|
||||||
{ { "mcl_wool:grey", 18, 18 }, E1 },
|
|
||||||
{ { "mcl_core:emerald", 2, 2 }, { "mcl_tools:shears", 1, 1 } },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_dye:black", 12, 12 }, E1 },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:white", 1, 1 } },
|
||||||
{ { "mcl_dye:dark_grey", 12, 12 }, E1 },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:grey", 1, 1 } },
|
||||||
{ { "mcl_dye:green", 12, 12 }, E1 },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:silver", 1, 1 } },
|
||||||
{ { "mcl_dye:lightblue", 12, 12 }, E1 },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:black", 1, 1 } },
|
||||||
{ { "mcl_dye:white", 12, 12 }, E1 },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:yellow", 1, 1 } },
|
||||||
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:orange", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:white", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:red", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:grey", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:magenta", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:silver", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:purple", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:black", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:blue", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:yellow", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:cyan", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:orange", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:lime", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:red", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:green", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:magenta", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:pink", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:purple", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:light_blue", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:blue", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 2 }, { "mcl_wool:brown", 1, 1 } },
|
||||||
{ E1, { "mcl_wool:cyan", 1, 1 } },
|
|
||||||
{ E1, { "mcl_wool:lime", 1, 1 } },
|
|
||||||
{ E1, { "mcl_wool:green", 1, 1 } },
|
|
||||||
{ E1, { "mcl_wool:pink", 1, 1 } },
|
|
||||||
{ E1, { "mcl_wool:light_blue", 1, 1 } },
|
|
||||||
{ E1, { "mcl_wool:brown", 1, 1 } },
|
|
||||||
|
|
||||||
{ E1, { "mcl_wool:white_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:grey_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:silver_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:black_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:yellow_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:orange_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:red_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:magenta_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:purple_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:blue_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:cyan_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:lime_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:green_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:pink_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:light_blue_carpet", 4, 4 } },
|
|
||||||
{ E1, { "mcl_wool:brown_carpet", 4, 4 } },
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
{ { "mcl_dye:red", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:grey", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:pink", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:yellow", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:orange", 12, 12 }, E1 },
|
|
||||||
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_red_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_blue_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_cyan_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_grey_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_silver_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_black_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_yellow_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_green_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_magenta_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_orange_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_purple_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_brown_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_pink_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_lime_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_light_blue_bottom", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_beds:bed_white_bottom", 1, 1 } },
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
{ { "mcl_dye:dark_green", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:brown", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:blue", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:violet", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:cyan", 12, 12 }, E1 },
|
|
||||||
{ { "mcl_dye:magenta", 12, 12 }, E1 },
|
|
||||||
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_white", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_grey", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_silver", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_black", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_red", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_yellow", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_green", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_cyan", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_blue", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_magenta", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_orange", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_purple", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_brown", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_pink", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_lime", 1, 1 } },
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_light_blue", 1, 1 } },
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
{ { "mcl_core:emerald", 2, 2 }, { "mcl_paintings:painting", 3, 3 } },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -332,28 +239,28 @@ local professions = {
|
||||||
jobsite = "mcl_lectern:lectern",
|
jobsite = "mcl_lectern:lectern",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_core:paper", 24, 24 }, E1 },
|
{ { "mcl_core:paper", 24, 36 }, E1 },
|
||||||
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 } },
|
{ { "mcl_books:book", 8, 10 }, E1 },
|
||||||
{ { "mcl_core:emerald", 9, 9 }, { "mcl_books:bookshelf", 1 ,1 } },
|
{ { "mcl_core:emerald", 9, 9 }, { "mcl_books:bookshelf", 1 ,1 }},
|
||||||
|
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 }},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_books:book", 4, 4 }, E1 },
|
{ { "mcl_books:written_book", 2, 2 }, E1 },
|
||||||
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 } },
|
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 }},
|
||||||
{ E1, { "mcl_lanterns:lantern_floor", 1, 1 } },
|
{ E1, { "mcl_lanterns:lantern_floor", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:ink_sac", 5, 5 }, E1 },
|
{ { "mcl_dye:black", 5, 5 }, E1 },
|
||||||
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 } },
|
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 }},
|
||||||
{ E1, { "mcl_core:glass", 4, 4 } },
|
{ E1, { "mcl_core:glass", 4, 4 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_books:writable_book", 1, 1 }, E1 },
|
{ E1, { "mcl_books:writable_book", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 } },
|
{ { "mcl_core:emerald", 5, 64, "mcl_books:book", 1, 1 }, { "mcl_enchanting:book_enchanted", 1 ,1 }},
|
||||||
|
{ { "mcl_core:emerald", 4, 4 }, { "mcl_compass:compass", 1 ,1 }},
|
||||||
{ { "mcl_core:emerald", 5, 5 }, { "mcl_clock:clock", 1, 1 } },
|
{ { "mcl_core:emerald", 5, 5 }, { "mcl_clock:clock", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 4, 4 }, { "mcl_compass:compass", 1 ,1 } },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -368,43 +275,38 @@ local professions = {
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_core:paper", 24, 24 }, E1 },
|
{ { "mcl_core:paper", 24, 24 }, E1 },
|
||||||
{ { "mcl_core:emerald", 7, 7 }, { "mcl_maps:empty_map", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_maps:empty_map", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
-- compass subject to special checks
|
-- compass subject to special checks
|
||||||
{ { "xpanes:pane_natural_flat", 11, 11 }, E1 },
|
{ { "xpanes:pane_natural_flat", 11, 11 }, E1 },
|
||||||
--{ { "mcl_core:emerald", 13, 13, "mcl_compass:compass", 1, 1 }, { "FIXME:ocean explorer map" 1, 1 } },
|
--{ { "mcl_core:emerald", 13, 13, "mcl_compass:compass", 1, 1 }, { "FIXME:ocean explorer map" 1, 1} },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_compass:compass", 1, 1 }, E1 },
|
{ { "mcl_compass:compass", 1, 1 }, E1 },
|
||||||
--{ { "mcl_core:emerald", 14, 14, "mcl_compass:compass", 1, 1 }, { "FIXME:woodland explorer map" 1, 1 } },
|
--{ { "mcl_core:emerald", 13, 13, "mcl_compass:compass", 1, 1 }, { "FIXME:woodland explorer map" 1, 1} },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:emerald", 7, 7 }, { "mcl_itemframes:item_frame", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_itemframes:item_frame", 1, 1 }},
|
||||||
|
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_white", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_white", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_grey", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_grey", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_silver", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_silver", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_black", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_black", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_red", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_red", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_yellow", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_green", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_green", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_cyan", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_cyan", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_blue", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_blue", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_magenta", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_magenta", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_orange", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_orange", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_purple", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_purple", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_brown", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_brown", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_pink", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_pink", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_lime", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_lime", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7}, { "mcl_banners:banner_item_light_blue", 1, 1 }},
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_banners:banner_item_light_blue", 1, 1 } },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
--{ { "mcl_core:emerald", 8, 8 }, { "FIXME: globe banner pattern", 1, 1 } },
|
--{ { "mcl_core:emerald", 8, 8}, { "FIXME: globe banner pattern", 1, 1 } },
|
||||||
},
|
},
|
||||||
-- TODO: special maps
|
-- TODO: special maps
|
||||||
},
|
},
|
||||||
|
@ -428,7 +330,6 @@ local professions = {
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_armor:leggings_chain", 1, 1 } },
|
{ { "mcl_core:emerald", 3, 3 }, { "mcl_armor:leggings_chain", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 1, 1 }, { "mcl_armor:boots_chain", 1, 1 } },
|
{ { "mcl_core:emerald", 1, 1 }, { "mcl_armor:boots_chain", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_buckets:bucket_lava", 1, 1 }, E1 },
|
{ { "mcl_buckets:bucket_lava", 1, 1 }, E1 },
|
||||||
{ { "mcl_core:diamond", 1, 1 }, E1 },
|
{ { "mcl_core:diamond", 1, 1 }, E1 },
|
||||||
|
@ -441,7 +342,6 @@ local professions = {
|
||||||
{ { "mcl_core:emerald", 19, 33 }, { "mcl_armor:leggings_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 19, 33 }, { "mcl_armor:leggings_diamond_enchanted", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 13, 27 }, { "mcl_armor:boots_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 13, 27 }, { "mcl_armor:boots_diamond_enchanted", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:emerald", 13, 27 }, { "mcl_armor:helmet_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 13, 27 }, { "mcl_armor:helmet_diamond_enchanted", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 21, 35 }, { "mcl_armor:chestplate_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 21, 35 }, { "mcl_armor:chestplate_diamond_enchanted", 1, 1 } },
|
||||||
|
@ -451,34 +351,29 @@ local professions = {
|
||||||
leatherworker = {
|
leatherworker = {
|
||||||
name = N("Leatherworker"),
|
name = N("Leatherworker"),
|
||||||
texture = "mobs_mc_villager_leatherworker.png",
|
texture = "mobs_mc_villager_leatherworker.png",
|
||||||
jobsite = "group:cauldron",
|
jobsite = "mcl_cauldrons:cauldron",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:leather", 6, 6 }, E1 },
|
{ { "mcl_mobitems:leather", 9, 12 }, E1 },
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_armor:leggings_leather", 1, 1 } },
|
{ { "mcl_core:emerald", 3, 3 }, { "mcl_armor:leggings_leather", 2, 4 } },
|
||||||
{ { "mcl_core:emerald", 7, 7 }, { "mcl_armor:chestplate_leather", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7 }, { "mcl_armor:chestplate_leather", 2, 4 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:flint", 26, 26 }, E1 },
|
{ { "mcl_core:flint", 26, 26 }, E1 },
|
||||||
{ { "mcl_core:emerald", 5, 5 }, { "mcl_armor:helmet_leather", 1, 1 } },
|
{ { "mcl_core:emerald", 5, 5 }, { "mcl_armor:helmet_leather", 2, 4 } },
|
||||||
{ { "mcl_core:emerald", 4, 4 }, { "mcl_armor:boots_leather", 1, 1 } },
|
{ { "mcl_core:emerald", 4, 4 }, { "mcl_armor:boots_leather", 2, 4 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:rabbit_hide", 9, 9 }, E1 },
|
{ { "mcl_mobitems:rabbit_hide", 9, 9 }, E1 },
|
||||||
{ { "mcl_core:emerald", 7, 7 }, { "mcl_armor:chestplate_leather", 1, 1 } },
|
{ { "mcl_core:emerald", 7, 7 }, { "mcl_armor:chestplate_leather", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
--{ { "FIXME: scute", 4, 4 }, E1 },
|
--{ { "FIXME: scute", 4, 4 }, E1 },
|
||||||
{ { "mcl_core:emerald", 8, 10 }, { "mcl_mobitems:saddle", 1, 1 } },
|
{ { "mcl_core:emerald", 8, 10 }, { "mcl_mobitems:saddle", 1, 1 } },
|
||||||
--FIXME: { { "mcl_core:emerald", 6, 6 }, { "mcl_mobitems:leather_horse_armor", 1, 1 } },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:emerald", 6, 6 }, { "mcl_mobitems:saddle", 1, 1 } },
|
{ { "mcl_core:emerald", 6, 6 }, { "mcl_mobitems:saddle", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 5, 5 }, { "mcl_armor:helmet_leather", 1, 1 } },
|
{ { "mcl_core:emerald", 5, 5 }, { "mcl_armor:helmet_leather", 2, 4 } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -488,8 +383,8 @@ local professions = {
|
||||||
jobsite = "mcl_smoker:smoker",
|
jobsite = "mcl_smoker:smoker",
|
||||||
trades = {
|
trades = {
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:chicken", 14, 14 }, E1 },
|
{ { "mcl_mobitems:beef", 14, 14 }, E1 },
|
||||||
{ { "mcl_mobitems:porkchop", 7, 7 }, E1 },
|
{ { "mcl_mobitems:chicken", 7, 7 }, E1 },
|
||||||
{ { "mcl_mobitems:rabbit", 4, 4 }, E1 },
|
{ { "mcl_mobitems:rabbit", 4, 4 }, E1 },
|
||||||
{ E1, { "mcl_mobitems:rabbit_stew", 1, 1 } },
|
{ E1, { "mcl_mobitems:rabbit_stew", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
@ -499,15 +394,16 @@ local professions = {
|
||||||
{ E1, { "mcl_mobitems:cooked_porkchop", 5, 5 } },
|
{ E1, { "mcl_mobitems:cooked_porkchop", 5, 5 } },
|
||||||
{ E1, { "mcl_mobitems:cooked_chicken", 8, 8 } },
|
{ E1, { "mcl_mobitems:cooked_chicken", 8, 8 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:mutton", 7, 7 }, E1 },
|
{ { "mcl_mobitems:mutton", 7, 7 }, E1 },
|
||||||
{ { "mcl_mobitems:beef", 10, 10 }, E1 },
|
{ { "mcl_mobitems:beef", 10, 10 }, E1 },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_ocean:dried_kelp_block", 10, 10 }, E1 },
|
{ { "mcl_mobitems:mutton", 7, 7 }, E1 },
|
||||||
{ { "mcl_farming:sweet_berry", 10, 10 }, E1 },
|
{ { "mcl_mobitems:beef", 10, 10 }, E1 },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
--{ { "FIXME: Sweet Berries", 10, 10 }, E1 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -526,13 +422,11 @@ local professions = {
|
||||||
{ { "mcl_core:iron_ingot", 4, 4 }, E1 },
|
{ { "mcl_core:iron_ingot", 4, 4 }, E1 },
|
||||||
{ { "mcl_core:emerald", 36, 36 }, { "mcl_bells:bell", 1, 1 } },
|
{ { "mcl_core:emerald", 36, 36 }, { "mcl_bells:bell", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:flint", 24, 24 }, E1 },
|
{ { "mcl_core:flint", 7, 9 }, E1 },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:diamond", 1, 1 }, E1 },
|
{ { "mcl_core:diamond", 7, 9 }, E1 },
|
||||||
{ { "mcl_core:emerald", 17, 31 }, { "mcl_tools:axe_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 17, 31 }, { "mcl_tools:axe_diamond_enchanted", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -558,7 +452,6 @@ local professions = {
|
||||||
{ { "mcl_core:iron_ingot", 4, 4 }, E1 },
|
{ { "mcl_core:iron_ingot", 4, 4 }, E1 },
|
||||||
{ { "mcl_core:emerald", 36, 36 }, { "mcl_bells:bell", 1, 1 } },
|
{ { "mcl_core:emerald", 36, 36 }, { "mcl_bells:bell", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:flint", 30, 30 }, E1 },
|
{ { "mcl_core:flint", 30, 30 }, E1 },
|
||||||
{ { "mcl_core:emerald", 6, 20 }, { "mcl_tools:axe_iron_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 6, 20 }, { "mcl_tools:axe_iron_enchanted", 1, 1 } },
|
||||||
|
@ -566,13 +459,11 @@ local professions = {
|
||||||
{ { "mcl_core:emerald", 8, 22 }, { "mcl_tools:pick_iron_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 8, 22 }, { "mcl_tools:pick_iron_enchanted", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 4, 4 }, { "mcl_farming:hoe_diamond", 1, 1 } },
|
{ { "mcl_core:emerald", 4, 4 }, { "mcl_farming:hoe_diamond", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:diamond", 1, 1 }, E1 },
|
{ { "mcl_core:diamond", 1, 1 }, E1 },
|
||||||
{ { "mcl_core:emerald", 17, 31 }, { "mcl_tools:axe_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 17, 31 }, { "mcl_tools:axe_diamond_enchanted", 1, 1 } },
|
||||||
{ { "mcl_core:emerald", 10, 24 }, { "mcl_tools:shovel_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 10, 24 }, { "mcl_tools:shovel_diamond_enchanted", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:emerald", 18, 32 }, { "mcl_tools:pick_diamond_enchanted", 1, 1 } },
|
{ { "mcl_core:emerald", 18, 32 }, { "mcl_tools:pick_diamond_enchanted", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
@ -587,96 +478,71 @@ local professions = {
|
||||||
{ { "mcl_mobitems:rotten_flesh", 32, 32 }, E1 },
|
{ { "mcl_mobitems:rotten_flesh", 32, 32 }, E1 },
|
||||||
{ E1, { "mesecons:redstone", 2, 2 } },
|
{ E1, { "mesecons:redstone", 2, 2 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_core:gold_ingot", 3, 3 }, E1 },
|
{ { "mcl_core:gold_ingot", 3, 3 }, E1 },
|
||||||
{ E1, { "mcl_core:lapis", 1, 1 } },
|
{ E1, { "mcl_core:lapis", 1, 1 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_mobitems:rabbit_foot", 2, 2 }, E1 },
|
{ { "mcl_mobitems:rabbit_foot", 2, 2 }, E1 },
|
||||||
{ { "mcl_core:emerald", 4, 4 }, { "mcl_nether:glowstone", 1, 1 } },
|
{ E1, { "mcl_nether:glowstone", 4, 4 } },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
--{ { "FIXME: scute", 4, 4 }, E1 },
|
--{ { "FIXME: scute", 4, 4 }, E1 },
|
||||||
{ { "mcl_potions:glass_bottle", 9, 9 }, E1 },
|
{ { "mcl_potions:glass_bottle", 9, 9 }, E1 },
|
||||||
{ { "mcl_core:emerald", 5, 5 }, { "mcl_throwing:ender_pearl", 1, 1 } },
|
{ { "mcl_core:emerald", 5, 5 }, { "mcl_throwing:ender_pearl", 1, 1 } },
|
||||||
TRADE_V6_RED_SANDSTONE,
|
TRADE_V6_RED_SANDSTONE,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{ { "mcl_nether:nether_wart_item", 22, 22 }, E1 },
|
{ { "mcl_nether:nether_wart_item", 22, 22 }, E1 },
|
||||||
{ { "mcl_core:emerald", 3, 3 }, { "mcl_experience:bottle", 1, 1 } },
|
{ { "mcl_core:emerald", 3, 3 }, { "mcl_experience:bottle", 1, 1 } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mason = {
|
mason = {
|
||||||
name = N("Mason"),
|
name = N("Mason"),
|
||||||
texture = "mobs_mc_villager_mason.png",
|
texture = "mobs_mc_villager_mason.png",
|
||||||
jobsite = "mcl_stonecutter:stonecutter",
|
jobsite = "mcl_stonecutter:stonecutter",
|
||||||
trades = {
|
trades = {
|
||||||
|
{
|
||||||
|
{ { "mcl_core:clay_lump", 10, 10 }, E1 },
|
||||||
|
{ E1, { "mcl_core:brick", 10, 10 } },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
{ { "mcl_core:clay_lump", 10, 10 }, E1 },
|
{ { "mcl_core:stone", 20, 20 }, E1 },
|
||||||
{ E1, { "mcl_core:brick", 10, 10 } },
|
{ E1, { "mcl_core:stonebrickcarved", 4, 4 } },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
{
|
{ { "mcl_core:granite", 16, 16 }, E1 },
|
||||||
{ { "mcl_core:stone", 20, 20 }, E1 },
|
{ { "mcl_core:andesite", 16, 16 }, E1 },
|
||||||
{ E1, { "mcl_core:stonebrickcarved", 4, 4 } },
|
{ { "mcl_core:diorite", 16, 16 }, E1 },
|
||||||
},
|
{ E1, { "mcl_core:granite_smooth", 4, 4 } },
|
||||||
|
{ E1, { "mcl_core:andesite_smooth", 4, 4 } },
|
||||||
{
|
{ E1, { "mcl_core:diorite_smooth", 4, 4 } },
|
||||||
{ { "mcl_core:granite", 16, 16 }, E1 },
|
},
|
||||||
{ { "mcl_core:andesite", 16, 16 }, E1 },
|
{
|
||||||
{ { "mcl_core:diorite", 16, 16 }, E1 },
|
{ { "mcl_nether:quartz", 12, 12 }, E1 },
|
||||||
{ E1, { "mcl_core:andesite_smooth", 4, 4 } },
|
{ E1, { "mcl_colorblocks:hardened_clay", 1, 1} },
|
||||||
{ E1, { "mcl_core:granite_smooth", 4, 4 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_white", 1, 1} },
|
||||||
{ E1, { "mcl_core:diorite_smooth", 4, 4 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_grey", 1, 1} },
|
||||||
--FIXME: { E1, { "Dripstone Block", 4, 4 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_silver", 1, 1} },
|
||||||
},
|
{ E1, { "mcl_colorblocks:hardened_clay_black", 1, 1} },
|
||||||
|
{ E1, { "mcl_colorblocks:hardened_clay_red", 1, 1} },
|
||||||
{
|
{ E1, { "mcl_colorblocks:hardened_clay_yellow", 1, 1} },
|
||||||
{ { "mcl_nether:quartz", 12, 12 }, E1 },
|
{ E1, { "mcl_colorblocks:hardened_clay_green", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_white", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_cyan", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_grey", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_blue", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_silver", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_magenta", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_black", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_orange", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_red", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_brown", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_yellow", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_pink", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_green", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_light_blue", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_cyan", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_lime", 1, 1} },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_blue", 1, 1 } },
|
{ E1, { "mcl_colorblocks:hardened_clay_purple", 1, 1 } },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_magenta", 1, 1 } },
|
},
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_orange", 1, 1 } },
|
{
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_brown", 1, 1 } },
|
{ E1, { "mcl_nether:quartz_pillar", 1, 1 } },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_pink", 1, 1 } },
|
{ E1, { "mcl_nether:quartz_block", 1, 1 } },
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_light_blue", 1, 1 } },
|
},
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_lime", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:hardened_clay_purple", 1, 1 } },
|
|
||||||
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_white", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_grey", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_silver", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_black", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_red", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_yellow", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_green", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_cyan", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_blue", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_magenta", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_orange", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_brown", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_pink", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_light_blue", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_lime", 1, 1 } },
|
|
||||||
{ E1, { "mcl_colorblocks:glazed_terracotta_purple", 1, 1 } },
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
{ E1, { "mcl_nether:quartz_pillar", 1, 1 } },
|
|
||||||
{ E1, { "mcl_nether:quartz_block", 1, 1 } },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
nitwit = {
|
nitwit = {
|
||||||
|
@ -1142,15 +1008,7 @@ end
|
||||||
----- JOBSITE LOGIC
|
----- JOBSITE LOGIC
|
||||||
local function get_profession_by_jobsite(js)
|
local function get_profession_by_jobsite(js)
|
||||||
for k,v in pairs(professions) do
|
for k,v in pairs(professions) do
|
||||||
if v.jobsite == js then
|
if v.jobsite == js then return k end
|
||||||
return k
|
|
||||||
-- Catch Nitwit doesn't have a jobsite
|
|
||||||
elseif v.jobsite and v.jobsite:find("^group:") then
|
|
||||||
local group = v.jobsite:gsub("^group:", "")
|
|
||||||
if minetest.get_item_group(js, group) > 0 then
|
|
||||||
return k
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1941,7 +1799,6 @@ local trade_inventory = {
|
||||||
if not wanted2:is_empty() then
|
if not wanted2:is_empty() then
|
||||||
inv:remove_item("input", inv:get_stack("wanted", 2))
|
inv:remove_item("input", inv:get_stack("wanted", 2))
|
||||||
end
|
end
|
||||||
local name = player:get_player_name()
|
|
||||||
local trader = player_trading_with[name]
|
local trader = player_trading_with[name]
|
||||||
minetest.sound_play("mobs_mc_villager_accept", {to_player = player:get_player_name(),object=trader.object}, true)
|
minetest.sound_play("mobs_mc_villager_accept", {to_player = player:get_player_name(),object=trader.object}, true)
|
||||||
end
|
end
|
||||||
|
@ -2336,7 +2193,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
minetest.LIGHT_MAX+1,
|
minetest.LIGHT_MAX+1,
|
||||||
30,
|
30,
|
||||||
2,
|
20,
|
||||||
4,
|
4,
|
||||||
mobs_mc.water_level+1,
|
mobs_mc.water_level+1,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -42,7 +42,6 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
||||||
run_velocity = 1.4,
|
run_velocity = 1.4,
|
||||||
group_attack = true,
|
group_attack = true,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
attack_frequency = 15,
|
|
||||||
-- Summon vexes
|
-- Summon vexes
|
||||||
custom_attack = function(self, to_attack)
|
custom_attack = function(self, to_attack)
|
||||||
if not spawned_vexes[self] then spawned_vexes[self] = {} end
|
if not spawned_vexes[self] then spawned_vexes[self] = {} end
|
||||||
|
@ -65,6 +64,7 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
||||||
table.insert(spawned_vexes[self],ent)
|
table.insert(spawned_vexes[self],ent)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
shoot_interval = 15,
|
||||||
passive = false,
|
passive = false,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mcl_core:emerald",
|
{name = "mcl_core:emerald",
|
||||||
|
@ -86,11 +86,6 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
||||||
},
|
},
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
fear_height = 4,
|
fear_height = 4,
|
||||||
|
|
||||||
on_spawn = function(self)
|
|
||||||
self.timer = 15
|
|
||||||
return true
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- spawn eggs
|
-- spawn eggs
|
||||||
|
|
|
@ -225,7 +225,7 @@ mcl_mobs:spawn_specific(
|
||||||
0,
|
0,
|
||||||
7,
|
7,
|
||||||
30,
|
30,
|
||||||
50,
|
4090,
|
||||||
4,
|
4,
|
||||||
mcl_vars.mg_overworld_min,
|
mcl_vars.mg_overworld_min,
|
||||||
mcl_vars.mg_overworld_max)
|
mcl_vars.mg_overworld_max)
|
||||||
|
|
|
@ -70,11 +70,6 @@ mcl_mobs.register_mob("mobs_mc:witch", {
|
||||||
},
|
},
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
fear_height = 4,
|
fear_height = 4,
|
||||||
deal_damage = function(self, damage, mcl_reason)
|
|
||||||
local factor = 1
|
|
||||||
if mcl_reason.type == "magic" then factor = 0.15 end
|
|
||||||
self.health = self.health - factor*damage
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- potion projectile (EXPERIMENTAL)
|
-- potion projectile (EXPERIMENTAL)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue