removed unused code

updated readme
This commit is contained in:
DonBatman 2015-05-17 06:17:10 -07:00
parent fd9b4c3085
commit 68a6676d2e
3 changed files with 2 additions and 16 deletions

View File

@ -15,13 +15,7 @@ Code for machine based off of Noncubic by yves_de_beck
mycorners adds corners to many default blocks. mycorners adds corners to many default blocks.
To use simply craft a corner machine. Then put in wood, stone or stone brick. Click Make. This gives you your corner items. To use simply craft a corner machine. Then put in wood, stone or stone brick. Click Make. This gives you your corner items.
Then craft a corner installer machine. Put in the block you want a corner on and the corner items you want installed. Click Make.
You can either install the corners in the machine or craft a corner tool and install the corners to blocks already placed.
Corner Tool
place the corners beside the corner tool
left click installs the corners
right click rotates the block
Craft Craft
------- -------

View File

@ -1,13 +1,5 @@
local USES = 200 local USES = 200
local function rotate(x, max)
x = x + 1
if x > max then
x = 0
end
return x
end
minetest.register_tool( "mycorners:corner_tool",{ minetest.register_tool( "mycorners:corner_tool",{
description = "Corner Tool", description = "Corner Tool",
inventory_image = "mycorners_cornertool.png", inventory_image = "mycorners_cornertool.png",

View File

@ -1,5 +1,5 @@
mycorners = {} mycorners = {}
--dofile(minetest.get_modpath("mycorners").."/cornertool.lua") dofile(minetest.get_modpath("mycorners").."/cornertool.lua")
dofile(minetest.get_modpath("mycorners").."/nodes.lua") dofile(minetest.get_modpath("mycorners").."/nodes.lua")
dofile(minetest.get_modpath("mycorners").."/machine.lua") dofile(minetest.get_modpath("mycorners").."/machine.lua")
dofile(minetest.get_modpath("mycorners").."/register.lua") dofile(minetest.get_modpath("mycorners").."/register.lua")