2014-10-18 03:28:53 -07:00
|
|
|
--Candy by Ratmonkey--
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
------------------------
|
|
|
|
--register sugar block--
|
|
|
|
------------------------
|
2014-10-17 06:21:54 -07:00
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
minetest.register_node("mtcandy:sugar_block", {
|
|
|
|
description = "Sugarblock",
|
|
|
|
tiles = {"mtcandy_sugar_block.png"},
|
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-21 09:39:28 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
--recipe for sugar block--
|
|
|
|
--------------------------
|
2014-10-17 08:36:16 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-10-22 10:09:57 -07:00
|
|
|
output = "mtcandy:sugar_block",
|
2014-10-22 08:12:34 -07:00
|
|
|
recipe = {
|
|
|
|
{"mtfoods:sugar" ,"mtfoods:sugar" ,"mtfoods:sugar"},
|
|
|
|
{"mtfoods:sugar" ,"mtfoods:sugar" ,"mtfoods:sugar"},
|
|
|
|
{"mtfoods:sugar" ,"mtfoods:sugar" ,"mtfoods:sugar"}
|
|
|
|
}
|
2014-10-17 10:13:42 -07:00
|
|
|
})
|
2014-10-17 06:21:54 -07:00
|
|
|
|
2014-10-17 10:13:42 -07:00
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------
|
2014-10-17 10:13:42 -07:00
|
|
|
--register caramel--
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------
|
2014-10-17 10:13:42 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:caramel", {
|
2014-10-17 10:13:42 -07:00
|
|
|
description = "Caramel",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_caramel.png"},
|
2014-10-17 09:07:03 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 09:07:03 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
----------------------
|
|
|
|
--recipe for caramel--
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-10-22 08:12:34 -07:00
|
|
|
type = "cooking",
|
|
|
|
output = "mtcandy:caramel",
|
|
|
|
recipe = "mtcandy:sugar_block",
|
2014-10-21 09:39:28 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-----------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register crosscandy--
|
2014-10-21 09:39:28 -07:00
|
|
|
-----------------------
|
2014-10-17 08:46:20 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:crosscandy", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Crosscandy",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_crosscandy.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
-------------------------
|
|
|
|
--recipe for crosscandy--
|
|
|
|
-------------------------
|
2014-10-21 06:16:54 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:crosscandy 2",
|
|
|
|
recipe = {
|
|
|
|
{"dye:magenta", "mtcandy:caramel", "dye:magenta"},
|
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register rectangular candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------------------
|
|
|
|
|
2014-10-18 03:28:53 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:candyrec_bluecyan", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Candyrec Blue",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_candyrec_bluecyan.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:candyrec_magenta", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Candyrec Magenta",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_candyrec_magenta.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:candyrec_orange", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Candyrec Orange",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_candyrec_orange.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:candyrec_yellow", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Candyrec Yellow",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_candyrec_yellow.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
----------------------------------
|
|
|
|
--recipe for rectangular candies--
|
|
|
|
----------------------------------
|
2014-10-21 06:15:45 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:candyrec_bluecyan 2",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "dye:cyan", ""},
|
|
|
|
{"dye:blue", "mtcandy:caramel", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:candyrec_magenta 2",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "dye:magenta", ""},
|
|
|
|
{"dye:red", "mtcandy:caramel", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:candyrec_orange 2",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "dye:orange", ""},
|
|
|
|
{"dye:red", "mtcandy:caramel", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:candyrec_yellow 2",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "dye:yellow", ""},
|
|
|
|
{"dye:white", "mtcandy:caramel", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
---------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register dotted candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
---------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:dotted_green", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Dotted Green",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_dotted_green.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:dotted_red", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Dotted Red",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_dotted_red.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:dotted_pink", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Dotted Pink",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_dotted_pink.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:dotted_orange", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Dotted Orange",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_dotted_orange.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:39:26 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:dotted_yellow", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Dotted Yellow",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_dotted_yellow.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
-----------------------------
|
|
|
|
--recipe for dotted candies--
|
|
|
|
-----------------------------
|
2014-10-21 06:18:38 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:dotted_green 2",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:white", ""},
|
|
|
|
{"mtcandy:caramel", "", "mtcandy:caramel"},
|
|
|
|
{"", "dye:green", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:dotted_red 2",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:white", ""},
|
|
|
|
{"mtcandy:caramel", "", "mtcandy:caramel"},
|
|
|
|
{"", "dye:red", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:dotted_pink 2",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:white", ""},
|
|
|
|
{"mtcandy:caramel", "", "mtcandy:caramel"},
|
|
|
|
{"", "dye:pink", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:dotted_orange 2",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:white", ""},
|
|
|
|
{"mtcandy:caramel", "", "mtcandy:caramel"},
|
|
|
|
{"", "dye:orange", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:dotted_yellow 2",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:white", ""},
|
|
|
|
{"mtcandy:caramel", "", "mtcandy:caramel"},
|
|
|
|
{"", "dye:yellow", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register peppermints--
|
2014-10-21 09:39:28 -07:00
|
|
|
------------------------
|
2014-10-17 06:21:54 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Peppermint",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_peppermint_top.png", "mtcandy_peppermint_top.png", "mtcandy_peppermint_side.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint_red", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Peppermint Red",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_peppermint_red.png", "mtcandy_peppermint_red_bott.png", "mtcandy_peppermint_red_side.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint_cyan_top", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Peppermint Cyan",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_peppermint_cyan_top.png", "mtcandy_peppermint_cyan_bott.png", "mtcandy_peppermint_cyan_side.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint_green_top", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Peppermint Green",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_peppermint_green_top.png", "mtcandy_peppermint_green_bott.png", "mtcandy_peppermint_green_side.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint_magenta_top", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Peppermint Magenta",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_peppermint_magenta_top.png", "mtcandy_peppermint_magenta_bott.png", "mtcandy_peppermint_magenta_side.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 06:44:55 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint_orange_top", {
|
|
|
|
description = "Peppermint Orange",
|
|
|
|
tiles = {"mtcandy_peppermint_orange_top.png", "mtcandy_peppermint_orange_bott.png", "mtcandy_peppermint_orange_side.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 06:58:29 -07:00
|
|
|
minetest.register_node("mtcandy:peppermint_yellow_top", {
|
|
|
|
description = "Peppermint Yellow",
|
|
|
|
tiles = {"mtcandy_peppermint_yellow_top.png", "mtcandy_peppermint_yellow_bott.png", "mtcandy_peppermint_yellow_side.png"},
|
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-21 06:58:29 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 03:28:53 -07:00
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------------
|
|
|
|
--recipe for peppermints--
|
|
|
|
--------------------------
|
2014-10-21 07:40:10 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:magenta", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:white", "", "dye:white"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint_red 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:white", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:red", "", "dye:red"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint_cyan_top 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:yellow", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:cyan", "", "dye:cyan"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint_green_top 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:magenta", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:green", "", "dye:green"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint_magenta_top 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:blue", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:magenta", "", "dye:magenta"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint_orange_top 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:violet", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:orange", "", "dye:orange"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:peppermint_yellow_top 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "dye:magenta", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"dye:yellow", "", "dye:yellow"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
---------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register spiral candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
---------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:spiral_blue", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Spiral Blue",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_spiral_blue.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-22 09:17:45 -07:00
|
|
|
minetest.register_node("mtcandy:spiral_purple", {
|
|
|
|
description = "Spiral Purple",
|
|
|
|
tiles = {"mtcandy_spiral_purple.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:spiral_yellow", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Spiral Yellow",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_spiral_yellow.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
-----------------------------
|
|
|
|
--recipe for spiral candies--
|
|
|
|
-----------------------------
|
2014-10-21 08:01:56 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:spiral_blue",
|
|
|
|
recipe = {
|
2014-10-21 09:39:28 -07:00
|
|
|
{"dye:cyan", "", "dye:blue 2"},
|
2014-10-21 08:01:56 -07:00
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-10-22 09:17:45 -07:00
|
|
|
output = "mtcandy:spiral_purple 2",
|
2014-10-21 08:01:56 -07:00
|
|
|
recipe = {
|
|
|
|
{"dye:violet", "", "dye:pink"},
|
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-10-21 09:39:28 -07:00
|
|
|
output = "mtcandy:spiral_yellow 2",
|
2014-10-21 08:01:56 -07:00
|
|
|
recipe = {
|
|
|
|
{"dye:yellow", "", "dye:green"},
|
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
{"", "mtcandy:caramel", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
---------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register stiped candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
---------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:striped_pink_brown", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Striped Pink Brown",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_striped_pink_brown.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:striped_pink_white", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Striped Pink White",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_striped_pink_white.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:striped_pink_yellow", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "Striped Pink Yellow",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_striped_pink_yellow.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-22 09:17:45 -07:00
|
|
|
minetest.register_node("mtcandy:striped_purple_green", {
|
|
|
|
description = "Striped Purple Green",
|
|
|
|
tiles = {"mtcandy_striped_purple_green.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:striped_lime_green", {
|
2014-10-18 03:28:53 -07:00
|
|
|
description = "Striped Lime Green",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_striped_lime_green.png"},
|
2014-10-18 03:28:53 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-18 03:28:53 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 09:28:21 -07:00
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
-----------------------------
|
|
|
|
--recipe for stiped candies--
|
|
|
|
-----------------------------
|
2014-10-21 09:28:21 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:striped_pink_brown 3",
|
|
|
|
recipe = {
|
|
|
|
{"dye:brown", "dye:pink", "dye:brown"},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:striped_pink_white 3",
|
|
|
|
recipe = {
|
|
|
|
{"dye:white", "dye:pink", "dye:white"},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:striped_pink_yellow 3",
|
|
|
|
recipe = {
|
|
|
|
{"dye:yellow", "dye:pink", "dye:yellow"},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2014-10-22 09:17:45 -07:00
|
|
|
output = "mtcandy:striped_purple_green 3",
|
2014-10-21 09:28:21 -07:00
|
|
|
recipe = {
|
|
|
|
{"dye:cyan", "dye:green", "dye:cyan"},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:striped_lime_green 3",
|
|
|
|
recipe = {
|
|
|
|
{"dye:green", "dye:white", "dye:green"},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", "mtcandy:caramel"},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
------------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register chocolate candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
------------------------------
|
2014-10-17 06:21:54 -07:00
|
|
|
|
2014-10-21 09:28:21 -07:00
|
|
|
minetest.register_node("mtcandy:milk_choco", {
|
|
|
|
description = "Milk Chocolate",
|
|
|
|
tiles = {"mtcandy_milk_choco.png"},
|
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-21 09:28:21 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:white_choco", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "White Chocolate",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_white_choco.png"},
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 09:28:21 -07:00
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------------------
|
2014-10-21 09:28:21 -07:00
|
|
|
--recipe for chocolate candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
--------------------------------
|
2014-10-21 09:28:21 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:milk_choco 2",
|
|
|
|
recipe = {
|
|
|
|
{"mtfoods:chocolate", "mtfoods:chocolate", ""},
|
|
|
|
{"mtcandy:caramel", "mtcandy:caramel", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
|
|
|
|
2014-10-21 09:28:21 -07:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:white_choco 2",
|
|
|
|
recipe = {
|
|
|
|
{"mtfoods:cream", "dye:white", ""},
|
|
|
|
{"mtcandy:milk_choco", "mtcandy:milk_choco", ""},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
----------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
--register special candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
----------------------------
|
2014-10-18 03:28:53 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:orange", {
|
2014-10-18 05:36:04 -07:00
|
|
|
description = "orange",
|
2014-10-22 08:12:34 -07:00
|
|
|
tiles = {"mtcandy_orange.png"},
|
|
|
|
light_source = 10,
|
2014-10-18 05:36:04 -07:00
|
|
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
2014-10-18 05:51:06 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-18 05:36:04 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:pcorn_side", {
|
2014-10-18 05:36:04 -07:00
|
|
|
description = "Popcorn Bucket",
|
2014-10-22 08:12:34 -07:00
|
|
|
tiles = {"mtcandy_pcorn_top.png", "mtcandy_pcorn_bott.png", "mtcandy_pcorn_side.png"},
|
|
|
|
light_source = 10,
|
2014-10-18 05:36:04 -07:00
|
|
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
2014-10-18 05:51:06 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-18 05:36:04 -07:00
|
|
|
})
|
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:daisy", {
|
2014-10-18 05:51:06 -07:00
|
|
|
description = "daisy",
|
2014-10-22 08:12:34 -07:00
|
|
|
tiles = {"mtcandy_daisy.png"},
|
|
|
|
light_source = 10,
|
2014-10-18 05:51:06 -07:00
|
|
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-18 05:51:06 -07:00
|
|
|
})
|
2014-10-18 05:36:04 -07:00
|
|
|
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:heart_candy", {
|
2014-10-18 03:28:53 -07:00
|
|
|
description = "Heart Candy",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_heart_candy.png"},
|
2014-10-18 05:51:06 -07:00
|
|
|
light_source = 10,
|
2014-10-18 03:28:53 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-18 03:28:53 -07:00
|
|
|
})
|
2014-10-18 09:00:32 -07:00
|
|
|
minetest.register_node("mtcandy:emenems", {
|
2014-10-17 06:21:54 -07:00
|
|
|
description = "m & m",
|
2014-10-19 08:27:04 -07:00
|
|
|
tiles = {"mtcandy_emenems.png"},
|
2014-10-18 05:51:06 -07:00
|
|
|
light_source = 10,
|
2014-10-17 06:21:54 -07:00
|
|
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
2014-10-17 08:36:16 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2016-10-08 03:36:49 -07:00
|
|
|
on_use = minetest.item_eat(4),
|
2014-10-17 06:21:54 -07:00
|
|
|
})
|
2014-10-21 09:29:59 -07:00
|
|
|
|
|
|
|
|
2014-10-21 09:39:28 -07:00
|
|
|
-------------------------------
|
2014-10-21 09:29:59 -07:00
|
|
|
--recipes for special candies--
|
2014-10-21 09:39:28 -07:00
|
|
|
-------------------------------
|
2014-10-21 09:29:59 -07:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:orange 3",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:orange"},
|
|
|
|
{"dye:yellow", "default:torch", "mtcandy:caramel"},
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:orange"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:pcorn_side 3",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:red"},
|
|
|
|
{"dye:yellow", "default:torch", "mtcandy:caramel"},
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:white"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:daisy 3",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:yellow"},
|
|
|
|
{"dye:violet", "default:torch", "mtcandy:caramel"},
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:white"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:heart_candy 3",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:red"},
|
|
|
|
{"dye:yellow", "default:torch", "mtcandy:caramel"},
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:orange"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mtcandy:emenems 3",
|
|
|
|
recipe = {
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:yellow"},
|
|
|
|
{"dye:brown", "default:torch", "mtcandy:caramel"},
|
|
|
|
{"mtcandy:caramel", "default:torch", "dye:magenta"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2014-10-22 09:17:45 -07:00
|
|
|
-- won't work with upstream moreblocks
|
|
|
|
if core.get_modpath( 'moreblocks' ) ~= nil and stairsplus.register_nodes then
|
|
|
|
local nodes = {
|
|
|
|
'candyrec_bluecyan',
|
|
|
|
'candyrec_magenta',
|
|
|
|
'candyrec_orange',
|
|
|
|
'candyrec_yellow',
|
|
|
|
'dotted_green',
|
|
|
|
'dotted_orange',
|
|
|
|
'dotted_pink',
|
|
|
|
'dotted_red',
|
|
|
|
'dotted_yellow',
|
|
|
|
'striped_lime_green',
|
|
|
|
'striped_purple_green',
|
|
|
|
'striped_pink_yellow',
|
|
|
|
'striped_pink_white',
|
|
|
|
'striped_pink_brown',
|
|
|
|
'milk_choco',
|
|
|
|
'white_choco',
|
|
|
|
'crosscandy',
|
|
|
|
'daisy',
|
|
|
|
'orange'
|
|
|
|
}
|
|
|
|
stairsplus.register_nodes ( 'mtcandy', nodes )
|
|
|
|
end
|