Commit Graph

227 Commits

Author SHA1 Message Date
kno10 f219e5f4ae Fix structure spawns under water + peaceful spawns (#4607)
- peaceful structure spawns would not run in peaceful mode (e.g., parrots)
- water structure spawns (e.g., guardians) would not run because the code required air above
- small code improvements

Reviewed-on: VoxeLibre/VoxeLibre#4607
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-15 23:15:30 +02:00
kno10 444c491e14 Remove mcl_structures:structblocks (#4619)
As spawning happens via gennotify anyway, we can omit placing a
structblock right away.

This also avoids certain cases of holes in snow cover or water.
Plus, the code is simpler.

Isolated from the big mapgen overhaul, for the main branch.

Reviewed-on: VoxeLibre/VoxeLibre#4619
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-08-31 21:01:44 +02:00
kno10 12214c5bd6 Allow salmon, tropical fish, witch huts in rivers (#4605)
As witch huts use flag "liquid_surface", place_on only can be water. If we want on-shore witch huts, this needs to be solved differently.
Also, probably no witch huts in deep ocean swamp water?

Reviewed-on: VoxeLibre/VoxeLibre#4605
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-08-31 10:16:43 +02:00
kno10 d2b96b6142 Queue is not used anywhere (#4608)
Dead code.

Reviewed-on: VoxeLibre/VoxeLibre#4608
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-08-30 18:20:38 +02:00
WillConker cddc1982be Fix first loot pool not being used in shipwrecks or ocean temples (#4523)
Reviewed-on: VoxeLibre/VoxeLibre#4523
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: WillConker <willconker@noreply.git.minetest.land>
Co-committed-by: WillConker <willconker@noreply.git.minetest.land>
2024-07-31 03:00:27 +02:00
JoseDouglas26 f824f109e2 mcl_structures pt_BR translation 2023-12-22 23:45:07 +01:00
chmodsayshello 712a6d6c66 Merge pull request 'add 1.20 armor trims' (#3784) from armor_trims into master
Reviewed-on: MineClone2/MineClone2#3784
Reviewed-by: AFCMS <afcm.contact@gmail.com>
2023-10-03 21:46:00 +00:00
chmodsayshello 408c7f71da Merge pull request 'Update Russian translation' (#3896) from Nanashi_Mumei/MineClone2:master into master
Reviewed-on: MineClone2/MineClone2#3896
Reviewed-by: rudzik8
2023-09-02 08:25:43 +00:00
SmokeyDope aa08a176fc lower ruined portal structure spawn rate 2023-08-31 22:47:02 +00:00
chmodsayshello 7c43c15fda update loottables 2023-08-31 17:17:38 +02:00
Sab Pyrope 5b4a79a26d Update russian translation 2023-08-31 14:16:42 +08:00
chmodsayshello 8431ac34d0 add armor trim templates 2023-06-08 00:16:57 +02:00
PrairieWind f7bdf7481c Update ruined portal loot table 2023-04-01 00:11:56 +00:00
PrairieWind 802ff3d984 Remove evoker spawning in Pillager Outposts 2023-03-23 01:53:44 +00:00
ancientmarinerdev 38732e801d Fix geode crash 2023-01-15 22:27:02 +00:00
ancientmarinerdev e6e898671a Merge pull request 'add japanese translation' (#3149) from SakuraRiu/MineClone2:master into master
Reviewed-on: MineClone2/MineClone2#3149
Reviewed-by: Michieal <michieal@noreply.git.minetest.land>
2022-12-29 22:14:48 +00:00
kabou d2edc75407 Separate blue dye from lapis lazuli.
* Add craftitem "mcl_core:lapis".
* Add texture for blue dye item.
* Add crafting recipe for blue dye.
* Add legacy conversion recipe.
* Update dyes table.
* Update translations.
* Update lapis block crafting recipes.
* Update lapis ore drops.
* Update dungeon and shipwreck loot.
* Update enchanting table input.
* Update villager trade.
2022-12-29 03:08:49 +00:00
Riu Sakura 2b61231f82 add japanese translation 2022-12-19 15:33:31 +09:00
PrairieWind 0a2f57476e Update Woodland Outpost Schematic
Switched double chest with barrels so that they work correctly
2022-12-19 01:03:53 +00:00
PrairieWind 256655df83 Add bookshelves and anvils as structure constructed nodes 2022-12-19 01:03:53 +00:00
cora 63225c20e5 change schematics for gold and sponges instead of chests 2022-11-15 01:28:51 +01:00
PrairieWind 54d4a97a27 Add Ocean Temple Loot 2022-11-15 01:28:51 +01:00
cora 61b5783e73 Make temple rarer 2022-11-15 01:28:51 +01:00
cora 04cb919f2b structure-spawning: make water spawns possible 2022-11-15 01:28:51 +01:00
cora 4ceecffc8b Add ocean temple 2022-11-15 01:28:51 +01:00
cora 00541cbfb8 Fix end spike wrong vector.add usage 2022-11-15 01:26:06 +01:00
cora 36a6a353a3 Fix local construct_nodes 2022-11-15 01:26:06 +01:00
cora e146b173b3 Replace "oning" with cages 2022-11-05 01:18:03 +01:00
cora 51d34c9f3d Add second pillager outpost schematic 2022-11-05 01:18:03 +01:00
cora 009ca7535c Add nether outpost with bridges
just via spawnstruct for now
2022-11-01 04:52:17 +01:00
cora d393e6a181 fix single mob spawning and poutpost walls 2022-11-01 04:52:17 +01:00
cora 0f01a28c93 Add structure spawning to other structures 2022-11-01 04:52:17 +01:00
cora 27a434641d Make structure spawning respect caps 2022-11-01 04:52:17 +01:00
cora 77bdce5cea Add structure mob respawning mechanic
this sets a metadata field "spawnblock" in the nodes mobs spawn on
and registers an abm to respan them
2022-11-01 04:52:17 +01:00
cora 1f58cfb240 Fix merge conflict 2022-11-01 04:52:17 +01:00
cora 6b8236e8f3 Fix crash in villagegen 2022-11-01 04:52:17 +01:00
cora 6bc12ec5ec mcl_structures Check if file exists before placing schematics 2022-11-01 04:52:17 +01:00
cora 302b18833a Add variable interior for nether bulwark 2022-11-01 04:52:17 +01:00
cora f76e0628e4 initial daughter structure support 2022-11-01 04:52:17 +01:00
cora c850c0dfbb move remaining api code to mcl_structures/api.lua 2022-10-28 21:25:43 +02:00
cora 9aaa13408a Remove get_structure_data_construct
the positions are available from the registered structure
2022-10-28 21:25:43 +02:00
cora c30e2c33b9 Move end portal shrine generation to structure api 2022-10-28 21:25:43 +02:00
cora 146e2de1a5 Structure-api: add initial rotation support 2022-10-28 21:25:43 +02:00
cora 4a9a7b8fef Fix igloo chest loot 2022-10-16 00:52:47 +02:00
cora dd163f4850 initialize special nodes on igloo placement 2022-10-16 00:52:47 +02:00
cora 7fee2cd55a struct-api: export construct_nodes function 2022-10-16 00:52:47 +02:00
PrairieWind 7f2ecb6ed0 Add brewing stand and furnace to igloo schematics 2022-10-16 00:52:47 +02:00
cora 1a380da960 Don't spawn pilalgers *in* the ground 2022-10-14 02:31:23 +02:00
cora 4de1e4d543 Fix Structure loot generation (again) lol 2022-09-14 20:37:08 +00:00
cora 70e0d8bdfd Don't spawn the dragon in peaceful
and keep portal open
2022-09-14 20:37:08 +00:00