mirror of
https://github.com/Thomas--S/moognu.git
synced 2025-06-30 15:10:33 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
bacbe92903 |
1
depends.txt
Normal file
1
depends.txt
Normal file
@ -0,0 +1 @@
|
||||
default
|
1
description.txt
Normal file
1
description.txt
Normal file
@ -0,0 +1 @@
|
||||
This mod adds a free alternative to the removed Nyan Cats: The MooGNU.
|
4
init.lua
4
init.lua
@ -68,7 +68,7 @@ function moognu.generate(minp, maxp, seed)
|
||||
for i = 1, max_num_moognus do
|
||||
if pr:next(0, 1000) == 0 then
|
||||
local x0 = pr:next(minp.x, maxp.x)
|
||||
local y0 = pr:next(y_min, y_max)
|
||||
local y0 = pr:next(minp.y, maxp.y)
|
||||
local z0 = pr:next(minp.z, maxp.z)
|
||||
local p0 = {x = x0, y = y0, z = z0}
|
||||
moognu.place(p0, pr:next(0, 3), pr:next(3, 15))
|
||||
@ -85,3 +85,5 @@ minetest.register_alias("default:nyancat", "moognu:moognu")
|
||||
minetest.register_alias("nyancat:nyancat", "moognu:moognu")
|
||||
minetest.register_alias("default:nyancat_rainbow", "moognu:moognu_rainbow")
|
||||
minetest.register_alias("nyancat:nyancat_rainbow", "moognu:moognu_rainbow")
|
||||
|
||||
minetest.log("action", "[moognu] loaded.")
|
||||
|
Reference in New Issue
Block a user