This commit is contained in:
rubenwardy 2020-02-21 22:42:08 +00:00
parent 845d7729a7
commit c1fbe4cf21
6 changed files with 28 additions and 34 deletions

@ -1,29 +1,18 @@
Minetest Game mod: nyancat Minetest mod: nyancat
========================== =====================
Replacement for the now removed Minetest Game "nyancat" mod.
Note that the Nyancat (and thus the media files) might be subject to trademark claims.
It is strongly recommend to use this mod exclusively for non-commercial activity.
License of source code: Authors of source code
----------------------- ----------------------
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com> Originally by celeron55, Perttu Ahola <celeron55@gmail.com> (LGPL 2.1)
Various Minetest developers and contributors (LGPL 2.1)
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.
http://www.gnu.org/licenses/lgpl-2.1.html
License of media (textures and sounds)
--------------------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
http://creativecommons.org/licenses/by-sa/3.0/
Authors of media files Authors of media files
----------------------- ----------------------
Everything not listed in here: VanessaE (CC BY-SA 3.0):
Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com> nyancat_front.png
nyancat_back.png
VanessaE (WTFPL): nyancat_side.png
default_nc_back.png nyancat_rainbow.png
default_nc_front.png
default_nc_rb.png
default_nc_side.png

@ -1,26 +1,31 @@
minetest.register_node("nyancat:nyancat", { minetest.register_node("nyancat:nyancat", {
description = "Nyan Cat", description = "Nyan Cat",
tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png", tiles = {"nyancat_side.png", "nyancat_side.png", "nyancat_side.png",
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"}, "nyancat_side.png", "nyancat_back.png", "nyancat_front.png"},
paramtype = "light",
light_source = default.LIGHT_MAX,
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky = 2}, groups = {cracky = 2},
is_ground_content = false, is_ground_content = false,
legacy_facedir_simple = true,
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
}) })
minetest.register_node("nyancat:nyancat_rainbow", { minetest.register_node("nyancat:nyancat_rainbow", {
description = "Nyan Cat Rainbow", description = "Nyan Cat Rainbow",
tiles = { tiles = {
"default_nc_rb.png^[transformR90", "default_nc_rb.png^[transformR90", "nyancat_rainbow.png^[transformR90",
"default_nc_rb.png", "default_nc_rb.png" "nyancat_rainbow.png^[transformR90",
"nyancat_rainbow.png"
}, },
paramtype = "light",
light_source = default.LIGHT_MAX,
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky = 2}, groups = {cracky = 2},
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "nyancat:nyancat", recipe = "nyancat:nyancat",
@ -33,6 +38,8 @@ minetest.register_craft({
burntime = 1, burntime = 1,
}) })
-- Mapgen
nyancat = {} nyancat = {}
function nyancat.place(pos, facedir, length) function nyancat.place(pos, facedir, length)
@ -75,10 +82,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
nyancat.generate(minp, maxp, seed) nyancat.generate(minp, maxp, seed)
end) end)
-- Legacy -- Legacy compat
minetest.register_alias("default:nyancat", "nyancat:nyancat") minetest.register_alias("default:nyancat", "nyancat:nyancat")
minetest.register_alias("default:nyancat_rainbow", "nyancat:nyancat_rainbow") minetest.register_alias("default:nyancat_rainbow", "nyancat:nyancat_rainbow")
minetest.register_alias("nyancat", "nyancat:nyancat")
minetest.register_alias("nyancat_rainbow", "nyancat:nyancat_rainbow")
default.make_nyancat = nyancat.place default.make_nyancat = nyancat.place
default.generate_nyancats = nyancat.generate default.generate_nyancats = nyancat.generate

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 186 B

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

Before

Width:  |  Height:  |  Size: 137 B

After

Width:  |  Height:  |  Size: 137 B

Before

Width:  |  Height:  |  Size: 148 B

After

Width:  |  Height:  |  Size: 148 B