mckaygerhard
762b2d7838
fix perlin noise returns null on some rarte cases as reported in minetest
* i was first checked at https://forum.minetest.net/viewtopic.php?t=8157 as "minetest.get_perlin() and minetest.get_perlin_map() Return nil" by prestidigitator The `minetest.get_perlin()` function returns nil since 0.4.8+ until 5.1.0 The `PerlinNoise()` constructor does return a valid object, on the other hand, barely documented as alternatrive cos is internally used only and not api public cos can only call it after the environment is created, so the code must bne inside `minetest.after(0, ...)` it only works the first time, or must be used an alternative * was reported also https://github.com/minetest/minetest/issues/10385 that does not properly handle large world seeds * Close https://codeberg.org/Wuzzy/minetest_tsm_pyramids/issues/2 * Close https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/2 * Also uses older get2d vs get_2d for newer engines older pre 5.0.0 as seen on https://github.com/minetest-LOTR/Lord-of-the-Test/issues/139 detect newer engine and uses proper method to get agains perlin object Closes https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/2
Pyramids (with Treasurer support) [tsm_pyramids
]
- Version: 1.0.4
Description
This is a mod for Minetest Game which adds randomly spawned pyramids in deserts and sandstone deserts. The pyramids are very rare and contain chests with stuff. Also there are mummies inside, which attack the player if found in their radius.
Historic notes
This mod is a fork of the old pyramids
mod by BlockMen and intended to be a direct
(but unofficial) successor of it.
Licensing
This program is free software. It comes without any warranty, to the extent permitted by applicable law.
Source code and textures
- MIT License
- (c) Copyright BlockMen (2013)
Mummy model
- MIT License
- (c) Copyright Pavel_S (2013)
Textures
tsm_pyramids_eye.png
by bas080, CC-BY-SA 3.0tsm_pyramids_men.png
by bas080, CC-BY-SA 3.0tsm_pyramids_sun.png
by bas080, CC-BY-SA 3.0- All other: BlockMen (MIT License)
Sounds
The authors are (freesound.org):
mummy.1.ogg
by Raventhornn, CC0mummy.2.ogg
by Raventhornn, CC0mummy_hurt.1.ogg
by Under7dude, CC0mummy_death.1.ogg
by scorpion67890 (modified by Wuzzy), CC0
Description
BUILDINGS of pyramids with treasures!
Readme
Languages
Lua
100%