Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2018-10-07 06:20:41

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

[Question] Getting block id

Simple question, just never had to do it.  How do I get the block id at a specific coordinate?


Om_1869ea_249353.jpg

Offline

#2 2018-10-07 06:29:18

minam
Member
Joined: 2016-02-10
Posts: 459

Re: [Question] Getting block id

cercul1 wrote:

Simple question, just never had to do it.  How do I get the block id at a specific coordinate?

Inspect
Press "I"

It should the show you the coordinates, and the block ids for the foreground and background.


Isn't this eggciting?
ZWfJa.gif07acp.gif

Offline

Wooted by:

#3 2018-10-07 11:10:16, last edited by Latif (2018-10-07 21:38:57)

Latif
Member
From: The Netherlands
Joined: 2015-03-13
Posts: 1,206

Re: [Question] Getting block id

minam wrote:
cercul1 wrote:

Simple question, just never had to do it.  How do I get the block id at a specific coordinate?

Inspect
Press "I"

It should the show you the coordinates, and the block ids for the foreground and background.

I think this question is related to bot programming, do you see the subforum name?

Offline

Wooted by:

#4 2018-10-07 11:17:28

minam
Member
Joined: 2016-02-10
Posts: 459

Re: [Question] Getting block id

Latif wrote:
minam wrote:
cercul1 wrote:

Simple question, just never had to do it.  How do I get the block id at a specific coordinate?

Inspect
Press "I"

It should the show you the coordinates, and the block ids for the foreground and background.

I think this question is related to bot programming, do you see the subforum name?


Weops. I didn't.


Isn't this eggciting?
ZWfJa.gif07acp.gif

Offline

#5 2018-10-07 23:14:12

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Question] Getting block id

The only way to do that is by keeping track of the blocks you obtain in init and through all the 'b' messages yourself.
There's no message you can sent to the server to receive the block at [x,y].

Offline

#6 2018-10-08 02:18:31

Andymakeer
Member
From: Nine-tails Vale
Joined: 2016-05-29
Posts: 672

Re: [Question] Getting block id

you need to retrieve the World Data information of init message, deserialize it and copy it into an array

here:
https://forums.everybodyedits.com/viewt … p?id=26792
(credits Processor)


F

Offline

Andymakeer1538961511727661

Board footer

Powered by FluxBB

[ Started around 1732185887.0533 - Generated in 0.040 seconds, 12 queries executed - Memory usage: 1.49 MiB (Peak: 1.62 MiB) ]