ScriptCraft icon indicating copy to clipboard operation
ScriptCraft copied to clipboard

Is it possible to query what blocks exist in the world relative to the drone?

Open Noxid86 opened this issue 7 years ago • 7 comments

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');
     }
})

Noxid86 avatar Jul 01 '18 23:07 Noxid86

MyDrone.fwd(5)
MyDrone.getBlock().type            // or typeId instead of type if you need the BlockID

leumasme avatar Jul 02 '18 13:07 leumasme

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!

Noxid86 avatar Jul 02 '18 13:07 Noxid86

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.

leumasme avatar Jul 02 '18 13:07 leumasme

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.

tiredoftry avatar Jul 02 '18 13:07 tiredoftry

Last Post from May 4 Views, 0 Replies

leumasme avatar Jul 02 '18 14:07 leumasme

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.

Noxid86 avatar Jul 02 '18 15:07 Noxid86

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.

leumasme avatar Jul 03 '18 12:07 leumasme