Is it possible to query what blocks exist in the world relative to the drone?
What I mean is if I tell a drone to move forward can i then do something akin to
.fwd().queryBlock('fwd', function(info){
if( info.blocktype() == 'wood'){
say('this is wood');
}
})
MyDrone.fwd(5)
MyDrone.getBlock().type // or typeId instead of type if you need the BlockID
Thank you very much. Im not sure if this is the best place to ask questions when getting started. Is there a forum somewhere that is usage oriented rather than development oriented? This project is very exciting :D thanks!
I usually just ask here, but yeah a forum would be great. Saw someone talking about a Website coming soon in another Issue but that was from mid 2017 so thats prb cancelled.
As another reference, there is a Google group located at https://groups.google.com/forum/?fromgroups#!forum/scriptcraft---scripting-minecraft. Lots of good information and people for feedback there as well.
Last Post from May 4 Views, 0 Replies
Thank you for all the feedback. I started learning Javascript for Web last year and this has me giddy. Are there any serious limitations? I also havent been able to figure out if one can directly edit object/block properties like 'hits to break' or add new blocks.
adding new blocks and stuff like that is not possible without a modification on the client, and you wont be able to do that just with javascript. making blocks 1hit could be archived by checking player interact events, if its a hit on a block of your choice, destroy the block and drop the item.