Fix: temporary remove nyan cat, remove wisps and temporary remove skyrealms (not finished)
|
@ -1,23 +0,0 @@
|
|||
Minetest Game mod: nyancat
|
||||
==========================
|
||||
See license.txt for license information.
|
||||
|
||||
Authors of source code
|
||||
----------------------
|
||||
Originally by celeron55, Perttu Ahola <celeron55@gmail.com> (LGPL 2.1)
|
||||
Various Minetest developers and contributors (LGPL 2.1)
|
||||
|
||||
Authors of media files
|
||||
----------------------
|
||||
VanessaE (CC BY-SA 3.0):
|
||||
nyancat_front.png
|
||||
nyancat_back.png
|
||||
nyancat_side.png
|
||||
nyancat_rainbow.png
|
||||
|
||||
VanessaE (CC BY 4.0):
|
||||
|
||||
pbj_pup_front.png
|
||||
pbj_pup_back.png
|
||||
pbj_pup_jelly.png
|
||||
pbj_pup_sides.png
|
|
@ -1,127 +0,0 @@
|
|||
-- mod check and sound settings
|
||||
|
||||
local def = core.get_modpath("default")
|
||||
local mcl = core.get_modpath("mcl_core")
|
||||
local snd = mcl and mcl_sounds.node_sound_glass_defaults() or default.node_sound_glass_defaults()
|
||||
|
||||
-- Nyan Cat node
|
||||
|
||||
core.register_node(":nyancat:nyancat", {
|
||||
description = "Nyan Cat",
|
||||
tiles = {
|
||||
"nyancat_side.png",
|
||||
"nyancat_side.png",
|
||||
"nyancat_side.png",
|
||||
"nyancat_side.png",
|
||||
"nyancat_back.png",
|
||||
"nyancat_front.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = 15,
|
||||
paramtype2 = "facedir",
|
||||
groups = { cracky = 2, handy = 1 },
|
||||
is_ground_content = false,
|
||||
sounds = snd,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
||||
-- Rainbow node
|
||||
|
||||
core.register_node(":nyancat:nyancat_rainbow", {
|
||||
description = "Rainbow",
|
||||
tiles = {
|
||||
"nyancat_rainbow.png^[transformR90",
|
||||
"nyancat_rainbow.png^[transformR90",
|
||||
"nyancat_rainbow.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = 15,
|
||||
paramtype2 = "facedir",
|
||||
groups = { cracky = 2, handy = 1 },
|
||||
is_ground_content = false,
|
||||
sounds = snd,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
||||
-- Fuels
|
||||
|
||||
core.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "nyancat:nyancat",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "nyancat:nyancat_rainbow",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
-- helper function to place Nyan/Pup/Moo with rainbow tail
|
||||
|
||||
local types = { "nyancat:nyancat" }
|
||||
|
||||
local function place(pos, facedir, length)
|
||||
if facedir > 3 then
|
||||
facedir = 0
|
||||
end
|
||||
|
||||
local tailvec = core.facedir_to_dir(facedir)
|
||||
local p = { x = pos.x, y = pos.y, z = pos.z }
|
||||
local num = math.random(#types)
|
||||
|
||||
core.swap_node(p, { name = types[num], param2 = facedir })
|
||||
|
||||
for i = 1, length do
|
||||
p.x = p.x + tailvec.x
|
||||
p.z = p.z + tailvec.z
|
||||
|
||||
core.swap_node(p, { name = "nyancat:nyancat_rainbow", param2 = facedir })
|
||||
end
|
||||
end
|
||||
|
||||
-- Do we generate PB&J Pup and Nyan Cat's in world?
|
||||
|
||||
local function generate(minp, maxp, seed)
|
||||
local height_min = -31000
|
||||
local height_max = -32
|
||||
local chance = 1000
|
||||
|
||||
if maxp.y < height_min or minp.y > height_max then
|
||||
return
|
||||
end
|
||||
|
||||
local y_min = math.max(minp.y, height_min)
|
||||
local y_max = math.min(maxp.y, height_max)
|
||||
local volume = (maxp.x - minp.x + 1) * (y_max - y_min + 1) * (maxp.z - minp.z + 1)
|
||||
local pr = PseudoRandom(seed + 9324342)
|
||||
local max_num_nyancats = math.floor(volume / (16 * 16 * 16))
|
||||
|
||||
for i = 1, max_num_nyancats do
|
||||
if pr:next(0, 1000) == 0 then
|
||||
local x0 = pr:next(minp.x, maxp.x)
|
||||
local y0 = pr:next(minp.y, maxp.y)
|
||||
local z0 = pr:next(minp.z, maxp.z)
|
||||
local p0 = {x = x0, y = y0, z = z0}
|
||||
nyancat.place(p0, pr:next(0, 3), pr:next(3, 15))
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
core.register_on_generated(generate)
|
||||
|
||||
if def then
|
||||
default.generate_nyancats = generate
|
||||
end --Legacy
|
||||
|
||||
-- Legacy
|
||||
|
||||
core.register_alias("default:nyancat", "nyancat:nyancat")
|
||||
core.register_alias("default:nyancat_rainbow", "nyancat:nyancat_rainbow")
|
||||
|
||||
if def then
|
||||
default.make_nyancat = place
|
||||
end
|
||||
|
||||
print("[MOD] PB&J Pup loaded")
|
|
@ -1,50 +0,0 @@
|
|||
License of source code
|
||||
----------------------
|
||||
|
||||
GNU Lesser General Public License, version 2.1
|
||||
Copyright (C) 2011-2016 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2012-2016 Various Minetest developers and contributors
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms
|
||||
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
||||
either version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details:
|
||||
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
||||
|
||||
|
||||
Licenses of media (textures)
|
||||
----------------------------
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2012-2016 VanessaE
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||
that suggests the licensor endorses you or your use.
|
||||
|
||||
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||
your contributions under the same license as the original.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that
|
||||
legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public
|
||||
domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary
|
||||
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||
rights may limit how you use the material.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
|
@ -1,7 +0,0 @@
|
|||
name = pbj_pup
|
||||
description = Randomly generates PB&J Pups, Nyan Cats or MooGnu's in your world with a rainbow tail.
|
||||
optional_depends = default, mcl_sounds
|
||||
min_minetest_version = 5.0
|
||||
release = 30956
|
||||
author = TenPlus1
|
||||
title = PB&J Pup and Nyan Cat
|
Before Width: | Height: | Size: 13 KiB |
|
@ -1,2 +0,0 @@
|
|||
# If enabled generates PB&J Pup and Nyan Cats in world
|
||||
pbj_pup_generate (Generate PB&J Pup) bool true
|
Before Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 249 B |