1.5.0-dev-2407211145

pull/1/head
Mikita Wiśniewski 2021-07-24 11:45:42 +07:00
parent 1f1b7bbbb6
commit 8d49958b9d
3 changed files with 28 additions and 35 deletions

24
LICENSE
View File

@ -1,24 +0,0 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>

View File

@ -1,4 +1,5 @@
default
farming
tt?
lucky_block?
lucky_block?
dye?

View File

@ -7,7 +7,7 @@
-- загружены ли поддерживаемые моды?
local ttmod = minetest.global_exists("tt")
local lbmod = minetest.global_exists("lucky_block")
local awmod = minetest.global_exists("awards")
local dymod = minetest.global_exists("dye")
-- описываем кто такие светогрибы и что они делают
minetest.register_node("glowshrooms:glowshroom_green", {
@ -93,7 +93,7 @@ minetest.register_craft({
recipe = "glowshrooms:glowshroom_red",
cooktime = 7,
})
-- NEW: засахаренные светогрибы и как их делать
-- засахаренные светогрибы и как их делать
minetest.register_craftitem("glowshrooms:glowshroom_green_candied", {
description = "Candied green glowshroom",
inventory_image = "glowshrooms_glowshroom_green_candied.png",
@ -141,6 +141,9 @@ minetest.register_alias("glowshroom_red", "glowshrooms:glowshroom_red")
minetest.register_alias("glowshroom_green_cooked", "glowshrooms:glowshroom_green_cooked")
minetest.register_alias("glowshroom_blue_cooked", "glowshrooms:glowshroom_blue_cooked")
minetest.register_alias("glowshroom_red_cooked", "glowshrooms:glowshroom_red_cooked")
minetest.register_alias("glowshroom_green_candied", "glowshrooms:glowshroom_green_candied")
minetest.register_alias("glowshroom_blue_candied", "glowshrooms:glowshroom_blue_candied")
minetest.register_alias("glowshroom_red_candied", "glowshrooms:glowshroom_red_candied")
-- делаем так, чтобы светогрибы появлялись в мире
minetest.register_decoration({
@ -193,14 +196,27 @@ if lbmod then
{"dro", {"glowshrooms:glowshroom_red_candied"}, 3},
})
end
-- часть с awards не работает
if awmod then
awards.register_award("glowshrooms:award", {
description = "Is This a Toadstool?",
trigger = {
type = "dig",
node = "glowshrooms:glowshroom_red",
target = 1,
if dymod then
minetest.register_craft({
type = "shapeless",
output = "dye:green",
recipe = {
"glowshrooms:glowshroom_green",
},
})
minetest.register_craft({
type = "shapeless",
output = "dye:blue",
recipe = {
"glowshrooms:glowshroom_blue",
},
})
minetest.register_craft({
type = "shapeless",
output = "dye:red",
recipe = {
"glowshrooms:glowshroom_red",
},
})
end