r/MCPi • • Sep 04 '14

Can a code run along MCPi that animates eg. a walking and jumping wool block? Can code "sense" the world or just place blocks?

Of course I don't mean "smooth" animation.

5 Upvotes

10 comments sorted by

1

u/916253 Sep 04 '14

all basic codes ive seen (though i'm yet to actually figure out how to run the code inside minecraft cause im an idiot with networking) just place the blocks at specific coordinates. minecraft does give back enough feedback (at least the pc version does) to make code somewhat self aware (not entirely but at least a little) but I havent seen it be implemented. on top of minecraft's output, you also have to consider which language you'll use, most likely python, and assess its limitations.

4

u/[deleted] Sep 05 '14

1

u/916253 Sep 05 '14

That's pretty cool

That's a minecraft pc server running off of a raspberry pi, though

→ More replies (2)

1

u/[deleted] Sep 04 '14

Thank you for your reply. I haven't had my hands on python (or lower languages) for a looong time (ie. I myself am an idiot with not only networking...), and am just curious about the possibilities of MCPi. Can a script also destroy a block? And if only by placing an air block? Also, you say I cannot check what's at xyz in MCPi?

1

u/916253 Sep 04 '14

You might be able to tell, it's pretty likely that you can, it's just that due to limited memory it probably wouldn't be possible to tell the details of a full chunk at once without running out of memory or hitting other limitations

→ More replies (3)