- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
Belial
-
Content Count
4 -
Joined
-
Last visited
Posts posted by Belial
-
-
20 hours ago, SirGeneral said:
I want to create a program that runs "redstone <direction> <number>" when you run it and "redstone <direction> 0" when you run it again but I do not know how to program at all
If you don't know how to do that, the best thing to do is trying to do that. Especially in programming. I suggest you try. It won't be easy at first, but you'll learn in the end. Good luck.
-
7 hours ago, Molinko said:
robot.detect is synchronous. meaning it is executed in the order you call() it. Your code prob just has a bug.
I believe it is, but strangely it doesn't work like that. I might made a mistake, but at the moment I can't see it. Can you configure and check it?
This is an example configuration. It moves forward when below block is same with the 1st slot, moves right when it is same with the 2nd. Normally it shouldn't move when it detects any block in front. But strangely, it doesn't see the block then moves to the right. That's why I thought it happens before moving is complete. It might be synchronous, but I'm not sure about does it wait for the movement to finish.
EDIT
Okay, I got it fixed. I break the loop after checking the block below, so it doesn't overlap anymore. Thanks! -
Can I delay robot.detect()? At the moment, my robot trying to detect a block in front of it, but as I understand, it does this before it moves. So it detects nothing, this causes bug. Is there any way to delay detecting so it can detect after it moves?
Here is code btw:
https://hastebin.com/itevasanij.lua
Thanks in advance.
Transposer Returns Nil
in Programming
Posted
Hi, I just tried to return simple info with transposer before I start to actually do something, and it returned nil. I'm sure about the direction of inventory. Also, I tried other directions as well. Am I misunderstanding a concept about this? Thanks in advance.
Code:
local comp = require("component") local sides = require("sides") local tp = comp.transposer local result = tp.getInventorySize(sides.south) print(result)
EDIT
Okay, I tried to reproduce the problem in another world and found out it was caused by minecolonies. It's caused by colony permission I suppose. Sorry for posting this without trying to reproduce in the first place.