Created
March 6, 2017 04:25
-
-
Save inotives/d3abc48c316885bf8c9105bc3918b370 to your computer and use it in GitHub Desktop.
Minecraft-lua-placeblockcheck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function checkLimit(totalBlocks) | |
if(totalBlocks > turtle.getFuelLevel()) then return true | |
else return false | |
end | |
local function placeBlock() | |
if(turtle.getItemCount() == 0) then | |
if(turtle.getSelectedSlot() == 16) | |
print(">>END:INV-EMPTY") | |
end | |
turtle.select(turtle.getSelectedSlot() + 1) | |
end | |
turtle.placeDown() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment