- ComputerCraft | Programmable Computers for Minecraft
- → Jappards's Content
Jappards's Content
There have been 126 items by Jappards (Search limited from 10-February 22)
#143746 War.
Posted by
Jappards
on 06 September 2013 - 02:42 PM
in
Forum Games
#137389 [mc 1.6.x] Openperipheral
Posted by
Jappards
on 01 August 2013 - 03:20 AM
in
Peripherals and Turtle Upgrades
so you can do like:
local Con = peripheral.wrap("back")--the ME controller
local Mechest = peripheral.wrap("Con.MEchest.1")--the 1st ME chest connected to the ME network
local InvName = MEchest.getInvName()
print(InvName)
It would be really powerfull and hard to code thought, and you wouldn`t need any networking cable and wired modems.
#133437 making the beacon a peripheral
Posted by
Jappards
on 14 July 2013 - 03:40 AM
in
Suggestions
Pharap, on 14 July 2013 - 01:05 AM, said:
Attaching it to a turtle would generate the beacon's stat boost zone around the turtle, thus as the turtle moves, the zone moves, effectively making it act like a moveable beacon.
It would be handy for taking underground since it would grant the player the boosts they would have had they erected a beacon-pyramid underground. The key difference being that the beacon-turtle could follow the player and act as a constant support.
That would be really powerfull with openCCsensors, but off course the range needs to be a lot weaker to balance it out and to give the player the challenge and need to program the beacon turtle to follow you
#133188 Forum Suggestions
Posted by
Jappards
on 13 July 2013 - 02:17 AM
in
Forum Discussion
#132132 Random Number API (more random than math.random()!)
Posted by
Jappards
on 08 July 2013 - 10:55 AM
in
Programs
features:
RandomNumber.genNumber()--doesn`t accept an argument, generates a random number RandomNumber.genBetween(min,max)--generates a random number, min is the minimal amount it needs to be, guess what`s max for? this returns 2 parameters: randomnumber, remainder (remainder of my algorithm)
code:
http://pastebin.com/nZAfgJVk
usage:
1.pastebin get nZAfgJVk RandomNumber
2.os.loadAPI("RandomNumber")
3.????
4.PROFIT!!!
#131870 Desktops
Posted by
Jappards
on 07 July 2013 - 11:20 AM
in
Suggestions
#131626 deployer turtle
Posted by
Jappards
on 06 July 2013 - 08:01 AM
in
Turtle Programs
features
-added channel support
-send the message "deploy" on sending channel 50
-compacted if statements a little bit
#131608 [lua][rednet]turtle doesn`t respond to channel message
Posted by
Jappards
on 06 July 2013 - 03:26 AM
in
Ask a Pro
message sender (normal computer with a wireless modem on the left):
http://pastebin.com/CBHVykxv
#131448 [lua][rednet]turtle doesn`t respond to channel message
Posted by
Jappards
on 05 July 2013 - 01:08 PM
in
Ask a Pro
code:
http://pastebin.com/FfLFK3b8
#131423 deployer turtle
Posted by
Jappards
on 05 July 2013 - 11:04 AM
in
Turtle Programs
features
-made the turtles share their redstone signal
-redstone signal sharing can be disabled in the shareSignal table
-made the turtles respond more quikly
#131302 deployer turtle
Posted by
Jappards
on 04 July 2013 - 02:41 PM
in
Turtle Programs
The turtles even share their signal, but you have to power them from the left, otherwise it won`t work, but you can disable that in the config.
you can also send all turtles that have this program send the message: "deploy" at channel 50 to make them all deploy at the same time.
code:
http://pastebin.com/8jUbGpuP
pastebin get 8jUbGpuP deploy
suggestions appreciated!
#131266 Rate the Above User's Avatar!
Posted by
Jappards
on 04 July 2013 - 12:56 PM
in
Forum Games
#131262 Hurt/Heal Forum Staff & Members
Posted by
Jappards
on 04 July 2013 - 12:46 PM
in
Forum Games
Heal Cloudy
Hurt theoriginalbit
AfterLifeLochie: 8
Cloudy: 8 (+1)
Cranium: 4
dan200: 11
MysticT: 7
nitrogenfingers: 11
theoriginalbit: 5 (-2)
#131019 Corrupt-A-Wish!
Posted by
Jappards
on 03 July 2013 - 01:06 PM
in
Forum Games
Granted, but lua no longer is able to use an API, making lua useless
I wish i fully learned Java and Minecraft Forge and that i`m able to use it and make fully functional code, so corrupting this wish doesn`t effect my programming in any way.
#130430 [CC1.53][MC1.5.2] MiscPeripherals 3.3
Posted by
Jappards
on 30 June 2013 - 02:34 PM
in
Peripherals and Turtle Upgrades
#130358 Help with moving system
Posted by
Jappards
on 30 June 2013 - 08:46 AM
in
Ask a Pro
function forward()
print("How far do you want to go forward?")
local i = tonumber(read())
for f = 1, i do--you don`t need the last 1.
turtle.forward()
end
end
function up()
print("How far do you want to go up?")
local i = tonumber(read())
for u = 1, i do
turtle.up()
end
end
function back()
print("How far do you want to go back?")
local i = tonumber(read())
for b = 1, i do
turtle.back()
end
end
function down()
print("How far do you want to go down?")
local i = tonumber(read())
for d = 1, i do
turtle.down()
end
end
function turn()
print("Do you want to turn right, left or none?")
local input = read()
if input == "right" then--[[the "right" needs to be in quotes, because this is text, text always needs to be a string, read converts that automaticly
print("How many rotations to the right?")
local i = tonumber(read())
for r = 1, i do
turtle.turnRight()
end
end
if input == "left" then
print("How many rotations to the left?")
local i = tonumber(read())
for l = 1, i do
turtle.turnLeft()
end
end
if input == "none" then--if you put an if statement inside a script, it needs to actually do something
sleep(10)
end[/size]
end
turn()
forward()
up()
back()
down()
#130353 Help with loops and if statements
Posted by
Jappards
on 30 June 2013 - 08:28 AM
in
Ask a Pro
while true do
local RedstoneInput = rs.getInput("left")--you need to use rs or redstone
if RedstoneInput == true then--checks to see if the redstone is on
(do stuff)
end
sleep(10)
end
This code does the thing you specify in "do stuff" as long as a redstone signal is being applied to it, that means that you can just wire the redstone being connected to a lever and make it constantly cut trees, but with Xyexs`s code (no offence) you need to wire the redstone up to a clock.You can chose what code you like the best, i don`t mind your decision.
Also: you can use CTRL+T to terminate loops.
Read more here:http://computercraft.../Redstone_(API)
#130313 turtle return false when turtle.suck() on Mystcraft Book Receptacle
Posted by
Jappards
on 30 June 2013 - 02:53 AM
in
Ask a Pro
local inv = peripheral.wrap("right")
while true do
local event, parameter = os.pullEvent("redstone")
if redstone.testBundledInput("back", colors.white) then
write("placing noam")
inv.suckDown(1,1)
turtle.dropUp()
sleep(5)
turtle.suckUp()
inv.dropDown(1,1)
end
end
local inv = peripheral.wrap("right")
while true do
local event, parameter = os.pullEvent("redstone")
if redstone.testBundledInput("back", colors.white) then
write("placing noam")
inv.suckDown(0,1)--saw what i`ve done here?
turtle.dropUp()
sleep(5)
turtle.suckUp()
inv.dropDown(0,1)--saw what i`ve done here?
end
end
#130184 making the beacon a peripheral
Posted by
Jappards
on 29 June 2013 - 01:52 PM
in
Suggestions
#129673 Riddles
Posted by
Jappards
on 27 June 2013 - 04:32 AM
in
Forum Games
#128496 Any Super Power
Posted by
Jappards
on 23 June 2013 - 05:02 AM
in
Forum Games
- ComputerCraft | Programmable Computers for Minecraft
- → Jappards's Content


