-Code : GPLv3
-Textures : WTFPL (credits: Gambit, Cisoun, kilbith)
+------------------------------------------------------------------------
+| Copyright (c) 2015-2016 kilbith <jeanpatrick.guerrero@gmail.com> |
+| |
+| Code: GPL version 3 |
+| Textures: WTFPL (credits: Gambit, kilbith, Cisoun) |
+------------------------------------------------------------------------
-==============================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
## X-Decor ##
-##### Minimal decoration mod for Minetest meant to be light and simple. #####
-##### It adds just the essential made of cute pixels and cubes. #####
-##### It's a lightweight alternative to homedecor and moreblocks all together. #####
+##### A decoration mod meant to be light, simple and well-featured. #####
+##### It adds a bunch of cute cubes and stuff for cutting, cooking, enchanting, etc. #####
+##### It's a lightweight alternative to Home Decor and More Blocks all together. #####
### Credits ###
-##### Special thanks to Gambit for the textures from PixelBox #####
+##### Special thanks to Gambit for the textures from the PixelBOX pack for Minetest. #####
![Preview](http://i.imgur.com/VorR6zc.png)
![Preview2](http://i.imgur.com/M05BqjT.png)
+![Preview3](https://lut.im/oWfKNfxAA4/n9jqwFpJOdUdo8yT.png)
+![Preview4](https://lut.im/BBG10S4T2x/VNRPd7gK9bTMYSST.png)
return 0
end
-function worktable.update_inventory(inv, inputstack)
+function worktable.get_output(inv, inputstack)
if inv:is_empty("input") then
inv:set_list("forms", {})
return
function worktable.on_put(pos, listname, _, stack, _)
if listname == "input" then
local inv = minetest.get_meta(pos):get_inventory()
- worktable.update_inventory(inv, stack)
+ worktable.get_output(inv, stack)
end
end
local inv = minetest.get_meta(pos):get_inventory()
if listname == "input" then
if stack:get_name() == inv:get_stack("input", 1):get_name() then
- worktable.update_inventory(inv, stack)
+ worktable.get_output(inv, stack)
else
inv:set_list("forms", {})
end
local inputstack = inv:get_stack("input", 1)
inputstack:take_item(math.ceil(stack:get_count() / def[index][2]))
inv:set_stack("input", 1, inputstack)
- worktable.update_inventory(inv, inputstack)
+ worktable.get_output(inv, inputstack)
end
end