Skip to content

Instantly share code, notes, and snippets.

@inotives
Created March 6, 2017 04:25
Show Gist options
  • Save inotives/d3abc48c316885bf8c9105bc3918b370 to your computer and use it in GitHub Desktop.
Save inotives/d3abc48c316885bf8c9105bc3918b370 to your computer and use it in GitHub Desktop.
Minecraft-lua-placeblockcheck
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