add nyancat soft dependency

This commit is contained in:
Tai Kedzierski 2018-12-31 01:43:18 +00:00
parent 2462ec8ed5
commit 055cb60c3f
2 changed files with 3 additions and 4 deletions

View File

@ -6,3 +6,4 @@ farming?
3d_armor? 3d_armor?
shields? shields?
itemdrop? itemdrop?
nyancat?

View File

@ -1,12 +1,10 @@
-- The Rainbow Staff is a reward for defeating the final boss -- The Rainbow Staff is a reward for defeating the final boss
-- Classic implementation produces ranbow blocks in any direction it is pointed at and used -- Classic implementation produces rainbow blocks in any direction it is pointed at and used
-- This tends to be problematic on servers, so is replaced with a powerful tool instead -- This tends to be problematic on servers, so is replaced with a powerful tool instead
-- if classic_rainbow_staff is not enabled -- if classic_rainbow_staff is not enabled
if not nssm.server_rainbow_staff and minetest.registered_nodes["nyancat:nyancat_rainbow"] then if not nssm.server_rainbow_staff and minetest.registered_nodes["nyancat:nyancat_rainbow"] then
-- How long the rainbow generating entity should remain in existence local max_rainbow_time = 5
-- Used to be 10, really should not last so long, given that it adds rainbow on every server step...
local max_rainbow_time = 1
minetest.register_entity("nssm:rainbow", { minetest.register_entity("nssm:rainbow", {
textures = {"transparent.png"}, textures = {"transparent.png"},