So I have a question- how do I make an API that will allow me to manipulate blocks? For example:
getID(x,y,z)
setBlock(x,y,z,ID)
Ime asking because I believe an ALI like that will have to be written in java.
So - is it possible?
Ps I don't want to wait until Forge and CC get updated to include the commands in the new snapshots.
1
Block manipulation API
Started by c4ooo, Apr 18 2014 12:22 AM
8 replies to this topic
#1
Posted 18 April 2014 - 12:22 AM
#2
Posted 18 April 2014 - 01:51 AM
In the current version, I don't think there is a way to check the id of an item in the turtle's inventory. Sorry.
#3
Posted 18 April 2014 - 02:48 AM
axel.codeFail(), on 18 April 2014 - 01:51 AM, said:
In the current version, I don't think there is a way to check the id of an item in the turtle's inventory. Sorry. />
To replace the new /setBlock and /fill and /clone commands that we're added in the latest Minecraft snapshot.
#4
Posted 18 April 2014 - 10:50 AM
Commandblocks probably could do something like that, but idk, as i've never used one.
#5
Posted 18 April 2014 - 11:03 AM
There is no way except using command blocks I think.
Indeed you can set blocks with turtles but you can't get the ID of an item or a block because turtles are intended to be bind.
But the problem is that you can set blocks with commands blocks but I think you can't make the command block to return the ID of a block to the computer. It may work with peripherals but I am not familar with that.
Indeed you can set blocks with turtles but you can't get the ID of an item or a block because turtles are intended to be bind.
But the problem is that you can set blocks with commands blocks but I think you can't make the command block to return the ID of a block to the computer. It may work with peripherals but I am not familar with that.
#6
Posted 18 April 2014 - 03:38 PM
kornichen, on 18 April 2014 - 11:03 AM, said:
There is no way except using command blocks I think.
Indeed you can set blocks with turtles but you can't get the ID of an item or a block because turtles are intended to be bind.
But the problem is that you can set blocks with commands blocks but I think you can't make the command block to return the ID of a block to the computer. It may work with peripherals but I am not familar with that.
Indeed you can set blocks with turtles but you can't get the ID of an item or a block because turtles are intended to be bind.
But the problem is that you can set blocks with commands blocks but I think you can't make the command block to return the ID of a block to the computer. It may work with peripherals but I am not familar with that.
1) the commands I want to use are in the newest Minecraft snapshots and I don't want to wait till all the different things get updated.
2) commend blocks are too derpy compared to actual code.
Now that I think of it, there should be a way to execute commands from a computer. It will make it way more dynamic.
#7
Posted 18 April 2014 - 04:47 PM
There is a command block peripheral API that can be enabled in the config.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users