Initial commit

master
migdyn 2019-03-10 21:14:04 +00:00
commit a523463f96
14 changed files with 107 additions and 0 deletions

7
LICENSE.txt Normal file
View File

@ -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.

99
init.lua Normal file
View File

@ -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),
})

1
mod.conf Normal file
View File

@ -0,0 +1 @@
optional_depends = vessels

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B