diff --git a/Licence.txt b/Licence.txt deleted file mode 100644 index d9ad4d6..0000000 --- a/Licence.txt +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (C) UjEdwin 2016 - - -Its only 2 agruments. -You are not alowed to take files from the mod and use to other things (but ok to link form other mods). -You have to show me (UjEdwin) as the orginal creater (if you want to make another version / spread the mod) - -It does not mather what you is doing with the mod as long you folow this 2 agruments. - -So: its ok to do stuff like: use in public servers/edit/spread/upload/make an update / using in a video (like youtube)... - - -The reasons the the arguments. -It does not feel good if someone takes hard work and or characteristics of your work, and says its him self created it. -In some mods i spended more then 30 hours... so its a good reason to add this license :-) - - - - - - diff --git a/Readme.txt b/Readme.txt index c497fb5..01914ec 100644 --- a/Readme.txt +++ b/Readme.txt @@ -1,3 +1,8 @@ +License: CC BY-NC-SA +Name: Diplazer +Created by: UjEdwin +Date: 2016-03-27 + See the version in the init.lua or type /dihelp in game Diplazer is a advanced build / digging tool, and it can even teleport, object teleporter and gravitygun, and more! diff --git a/init.lua b/init.lua index b89e85e..f9fc6cb 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ -diplazer_vesrion="19" +diplazer_vesrion="19.1" diplazer_Tele={} diplazer_UserTele={} diff --git a/pchest.lua b/pchest.lua index 0ddaec4..ed9eee0 100644 --- a/pchest.lua +++ b/pchest.lua @@ -67,9 +67,23 @@ minetest.register_tool("diplazer:pchest", { minetest.register_node("diplazer:pchest_node", { description = "Portable locked chest", tiles = {"diplazer_chest2.png","diplazer_chest2.png","diplazer_chest1.png","diplazer_chest1.png","diplazer_chest1.png","diplazer_chest3.png"}, - groups = {dig_immediate = 2, not_in_creative_inventory=1}, + groups = {dig_immediate = 2, not_in_creative_inventory=1,tubedevice = 1, tubedevice_receiver = 1}, drop="diplazer:pchest", paramtype2 = "facedir", + tube = {insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local added = inv:add_item("main", stack) + --after_inventory_change(pos) + return added + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:room_for_item("main", stack) + end, + input_inventory = "main", + connect_sides = {left = 1, right = 1, front = 1, back = 1, top = 1, bottom = 1}}, allow_metadata_inventory_put = function(pos, listname, index, stack, player) local owner = minetest.get_meta(pos):get_string("owner") if (stack:get_name()~="diplazer:pchest") and (owner==player:get_player_name() or owner=="") then