commit a523463f96c7ad42201b8f4f4de5fb03194075cc Author: migdyn Date: Sun Mar 10 21:14:04 2019 +0000 Initial commit diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..2dd02a0 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright 2019 migdyn + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +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 OR COPYRIGHT HOLDERS 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. \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..69a337f --- /dev/null +++ b/init.lua @@ -0,0 +1,99 @@ +--[[ +Copyright 2019 migdyn + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +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 OR COPYRIGHT HOLDERS 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. +]] +--Bars +minetest.register_craftitem("chocolate:bar_dark", { + description = "Dark Chocolate Bar", + inventory_image = "chocolate_bar_dark.png", + on_use = minetest.item_eat(6), +}) + +minetest.register_craftitem("chocolate:bar_milk", { + description = "Milk Chocolate Bar", + inventory_image = "chocolate_bar_milk.png", + on_use = minetest.item_eat(5), +}) + +minetest.register_craftitem("chocolate:bar_white", { + description = "White Chocolate Bar", + inventory_image = "chocolate_bar_white.png", + on_use = minetest.item_eat(3), +}) + +--Blocks +minetest.register_node("chocolate:block_dark", { + description = "Dark Chocolate Block", + tiles = {"chocolate_block_dark.png"}, + on_use = minetest.item_eat(20), +}) + +minetest.register_node("chocolate:block_milk", { + description = "Milk Chocolate Block", + tiles = {"chocolate_block_milk.png"}, + on_use = minetest.item_eat(20), +}) + +minetest.register_node("chocolate:block_white", { + description = "White Chocolate Block", + tiles = {"chocolate_block_white.png"}, + on_use = minetest.item_eat(15), +}) + +--If the player doesn't have the vessels mod isntalled + +if not minetest.get_modpath("vessels") then + minetest.register_craftitem("chocolate:vsl_bottle_glass", { + description = "Empty Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass.png", + }) + + minetest.register_craftitem("chocolate:vsl_bottle_steel", { + description = "Empty Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + }) +end + +--Liquid Chocolate Glass Bottles +minetest.register_craftitem("chocolate:vsl_bottle_glass_dark", { + description = "Liquid Dark Chocolate Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass_dark.png", + on_use = minetest.item_eat(3), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_glass_milk", { + description = "Liquid Milk Chocolate Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass_milk.png", + on_use = minetest.item_eat(2), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_glass_white", { + description = "Liquid White Chocolate Glass Bottle", + inventory_image = "chocolate_vsl_bottle_glass_white.png", + on_use = minetest.item_eat(1), +}) + +--Liquid Chocolate Steel Bottles +minetest.register_craftitem("chocolate:vsl_bottle_steel_dark", { + description = "Liquid Dark Chocolate Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + on_use = minetest.item_eat(3), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_steel_milk", { + description = "Liquid Milk Chocolate Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + on_use = minetest.item_eat(2), +}) + +minetest.register_craftitem("chocolate:vsl_bottle_steel_white", { + description = "Liquid White Chocolate Steel Bottle", + inventory_image = "chocolate_vsl_bottle_steel.png", + on_use = minetest.item_eat(1), +}) + diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..fd101f1 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +optional_depends = vessels \ No newline at end of file diff --git a/textures/chocolate_bar_dark.png b/textures/chocolate_bar_dark.png new file mode 100644 index 0000000..130268b Binary files /dev/null and b/textures/chocolate_bar_dark.png differ diff --git a/textures/chocolate_bar_milk.png b/textures/chocolate_bar_milk.png new file mode 100644 index 0000000..23c87c6 Binary files /dev/null and b/textures/chocolate_bar_milk.png differ diff --git a/textures/chocolate_bar_white.png b/textures/chocolate_bar_white.png new file mode 100644 index 0000000..d748f01 Binary files /dev/null and b/textures/chocolate_bar_white.png differ diff --git a/textures/chocolate_block_dark.png b/textures/chocolate_block_dark.png new file mode 100644 index 0000000..b3a3981 Binary files /dev/null and b/textures/chocolate_block_dark.png differ diff --git a/textures/chocolate_block_milk.png b/textures/chocolate_block_milk.png new file mode 100644 index 0000000..98fc470 Binary files /dev/null and b/textures/chocolate_block_milk.png differ diff --git a/textures/chocolate_block_white.png b/textures/chocolate_block_white.png new file mode 100644 index 0000000..ec0426d Binary files /dev/null and b/textures/chocolate_block_white.png differ diff --git a/textures/chocolate_vsl_bottle_glass.png b/textures/chocolate_vsl_bottle_glass.png new file mode 100644 index 0000000..d6566a8 Binary files /dev/null and b/textures/chocolate_vsl_bottle_glass.png differ diff --git a/textures/chocolate_vsl_bottle_glass_dark.png b/textures/chocolate_vsl_bottle_glass_dark.png new file mode 100644 index 0000000..f5ef5c7 Binary files /dev/null and b/textures/chocolate_vsl_bottle_glass_dark.png differ diff --git a/textures/chocolate_vsl_bottle_glass_milk.png b/textures/chocolate_vsl_bottle_glass_milk.png new file mode 100644 index 0000000..500909e Binary files /dev/null and b/textures/chocolate_vsl_bottle_glass_milk.png differ diff --git a/textures/chocolate_vsl_bottle_glass_white.png b/textures/chocolate_vsl_bottle_glass_white.png new file mode 100644 index 0000000..3cc1698 Binary files /dev/null and b/textures/chocolate_vsl_bottle_glass_white.png differ diff --git a/textures/chocolate_vsl_bottle_steel.png b/textures/chocolate_vsl_bottle_steel.png new file mode 100644 index 0000000..2cc5b5c Binary files /dev/null and b/textures/chocolate_vsl_bottle_steel.png differ