30 posts
Posted 18 April 2014 - 01:22 AM
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.
47 posts
Location
A bit lost
Posted 18 April 2014 - 02: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. :unsure:/>
30 posts
Posted 18 April 2014 - 03:48 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. :unsure:/>/>
Thank you for responding - what I mean is to set / get BLOCKS in the ACTUAL Minecraft world.
To replace the new /setBlock and /fill and /clone commands that we're added in the latest Minecraft snapshot.
1281 posts
Posted 18 April 2014 - 11:50 AM
Commandblocks probably could do something like that, but idk, as i've never used one.
235 posts
Location
Germany
Posted 18 April 2014 - 12:03 PM
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.
30 posts
Posted 18 April 2014 - 04:38 PM
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.
yea- I could use comand blocks but there are 2 problems
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.
8543 posts
Posted 18 April 2014 - 05:47 PM
There is a command block peripheral API that can be enabled in the config.
47 posts
Location
A bit lost
Posted 18 April 2014 - 06:07 PM
There is a command block peripheral API that can be enabled in the config.
Wow, I wish I knew this before. I always just used multiple command blocks around a single computer. Thanks. :)/>
30 posts
Posted 18 April 2014 - 06:09 PM
There is a command block peripheral API that can be enabled in the config.
Really? Thanks I will research about it :)/>