zhuowei / RaspberryJuice

A plugin for Bukkit implementing the Minecraft Pi API
Other
327 stars 150 forks source link

Execute minecraft commands from RaspberryJuice #102

Open UnsignedArduino opened 4 years ago

UnsignedArduino commented 4 years ago

Hello there,

First of all, I'm in love with this. It's like a coder's dream come true. Now I can play Minecraft and Python and say I'm doing something educational.

Anyway, I would like to be able to execute a Minecraft command, such as /setblock 0 100 0 Minecraft:note_block[note=13] because mcpi.minecraft.minecraft.setBlock doesn't support that. (I think) I also think this would be a really nice feature too because if the Minecraft command set exposes an ability, then you can run that command in RaspberryJuice. Something like mc.execute("/setblock 0 100 0 Minecraft:note_block[note=13]").

Is this feasible?

UnsignedArduino commented 4 years ago

It looks like Bukkit supports executing Minecraft commands on the server. See https://bukkit.org/threads/send-and-execute-commands.81049/#post-1166298

Xless-Qu-dev commented 8 months ago

As of the latest version (1.12.1), it is not possible to execute “/“ commands as handleCommand does not have such implementation.

(Also for the records, executing commands with command blocks or signs is not possible either as the block properties to make this work cannot be set).