- ComputerCraft | Programmable Computers for Minecraft
- → Viproz's Content
Viproz's Content
There have been 27 items by Viproz (Search limited from 10-February 22)
#159138 [mc 1.6.2] [cc 1.56] Applied Energistics Peripheral
Posted by
Viproz
on 03 January 2014 - 03:21 PM
in
Peripherals and Turtle Upgrades
#148435 [Mc 1.5.2][Cc 1.53] Camera Peripheral
Posted by
Viproz
on 09 October 2013 - 11:07 AM
in
Peripherals and Turtle Upgrades
We might can use it to detect resign cluster on rubber log
Edit : could you please allow in the config to set the noise level to 0 ?
#100775 Turtle dropoff function
Posted by
Viproz
on 23 March 2013 - 09:47 PM
in
Ask a Pro
local function numbItemsInInv()
local items = 0
for i = 1, 16 do -- Scan every slot of the turtle
items = items + turtle.getItemCount(i)
end
return items
end
local function forward(forw)
for i = 1,forw do -- it will execute the code forw times
while not turtle.forward() do -- it will not leave while the turtle don''t move
turtle.dig()
turtle.attack()
end
end
end
local function empty() --Dropoff starts here
turtle.select(16)
turtle.placeUp()
items = numbItemsInInv()
while items ~= 0 do
print("Try to empty the turtle's inventory")
for i = 1,16 do -- Maybe it's to 17, i don't remember
turtle.select(i)
turtle.dropUp()
end
items = numbItemsInInv()
if items ~= 0 then sleep(5) end
end
-- Here the inventory is obligatory empty
print("Inventory is empty!")
turtle.select(16)
turtle.digUp()
end --Ends here
inv = numbItemsInInv()
print(inv)
empty()
I didn't test it, I commented the code for the changes
#99251 little help with xpturtles (miscperipherals)
Posted by
Viproz
on 20 March 2013 - 01:52 AM
in
Ask a Pro
xpPeripheral = peripheral.wrap("right") -- mabe it's left i don't remember it when there is a sword
xpPeripheral.setAutoCollect(true) -- you don''t need to execute it more than one time (sorry for double cote, it''s not rendering well without in the forum)
while true do -- this loop will always run
turtle.attack()
if xpPeripheral.getLevels() >= 30 then
turtle.select(16) --book or tools in this slot
xpPeripheral.enchant(30)
end
sleep(0.5) -- to don''t run it too fast.
end
this will work !
PS : it's very hard to switch between c++ and lua (i put // instad of -- in my first post
#99242 2 part question: changing id's and end program on key press?
Posted by
Viproz
on 20 March 2013 - 01:18 AM
in
Ask a Pro
For the fist question, i have no idea
#99239 little help with xpturtles (miscperipherals)
Posted by
Viproz
on 20 March 2013 - 01:08 AM
in
Ask a Pro
monkeybee11, on 20 March 2013 - 12:07 AM, said:
but it keeps coming back with errors :S
(have not unlocked brain in a jar on the server im playing on so for now its just sucking up the xp mobs drop)
if true then do
turtle.attack()
turtle.setAutoCollect(autocollect)
turtle.select(16) --book or tools in this slot
turtle.enchant("30")
end
if false then do
turtle.attack()
turtle.setAutoCollect(autocollect)
end
ofc its a meele xp turtle
plz and thx for the help
turtle.enchant("30") //Edit : Wow i didn't realise i was turtle. sorry fot that
You need to give an int, not a string so remove the "".turtle.setAutoCollect(autocollect) //Edit :Wow i didn't realise i was turtle. sorry fot thatThis require a bool (true or false) so i don't know what is your autocollect var.
Anf wtf is your if true then do ???
You need to learn a little bit lua to use it.
#98540 Ultimate Wood Chopper [0.9.5 Prerelease B][Session Persistent]
Posted by
Viproz
on 18 March 2013 - 06:03 AM
in
Turtle Programs
#98516 [Cc 1.56] [Mc 1.6.x] Someluigi's Peripheral(S) 2 - Welcome Back, Http Server
Posted by
Viproz
on 18 March 2013 - 04:45 AM
in
Peripherals and Turtle Upgrades
#90048 [WIP] Modular CC Robotics [Dev Stage 1: 50%] [HELP WANTED]
Posted by
Viproz
on 22 February 2013 - 07:10 AM
in
Peripheral Help and Discussion
#90042 CC Syntax Highlighting/Code Completions v1.2 - Sublime Text 2
Posted by
Viproz
on 22 February 2013 - 06:29 AM
in
APIs and Utilities
#86944 turtle mob grinder
Posted by
Viproz
on 14 February 2013 - 07:03 AM
in
Ask a Pro
tribalthomas, on 14 February 2013 - 05:43 AM, said:
while true do while turtle.detectDown() = true do turtle.attack() end end
now it says
[string "startup"]:2: 'do' expected
any ideas on how to fix it
to compare two objects, you need to put "==" and not "=" so :
while true do while turtle.detectDown() == true do turtle.attack() end end
But you don't need to put this, just do :
while true do while turtle.detectDown() do turtle.attack() end end
Edit : the turtle.detectDown() func only return true when there is a block down
#83485 [CC 1.5 | MC 1.4.7] Inventory Manager
Posted by
Viproz
on 03 February 2013 - 10:09 PM
in
Peripherals and Turtle Upgrades
I think you should add a security for players to don't steal theirs stuff, like you need a right click on the plate to authorize it to manage your stuff !
#83165 [API][MiscPeripherals] Interactive Sorter ID/Meta Reader API
Posted by
Viproz
on 03 February 2013 - 03:19 AM
in
APIs and Utilities
#82871 [CC 1.5 | MC 1.4.7] Inventory Manager
Posted by
Viproz
on 02 February 2013 - 08:52 AM
in
Peripherals and Turtle Upgrades
I can't wait adding this !
#73972 [CC1.53][MC1.5.2] MiscPeripherals 3.3
Posted by
Viproz
on 13 January 2013 - 09:47 PM
in
Peripherals and Turtle Upgrades
#69730 Side parameter on redstone Event
Posted by
Viproz
on 06 January 2013 - 03:56 AM
in
Suggestions
I think for the programs using redstone, it would be better if the event redstone return the side where the computer is powered.
just like that :
while true do event, side = os.pullEventRaw() if event == "redstone" then if side == "right" then -- do something elseif side == "top" then -- another thing end end end
I hope you will add this small thing !
#69370 Forge will not load it
Posted by
Viproz
on 05 January 2013 - 10:54 AM
in
Ask a Pro
2013-01-04 21:50:33 [INFO] [STDERR] java.lang.IllegalArgumentException: Slot 4094 is already occupied by [email protected] when adding [email protected]
ID conflict between TF2 and CC but post your code into code balises !
Edit : Sorry with all of this long message and don't saw the others replies
- ComputerCraft | Programmable Computers for Minecraft
- → Viproz's Content


