Bigjango13 / MCPI-Addons

Addons to the MCPI api.
17 stars 5 forks source link

After installing the package on the machine, do we need to compile? #4

Closed syang closed 1 year ago

syang commented 1 year ago

The Readme seems not clear. Could you please make it a bit clearer?

Just run ./build.sh to create the bianary and run mv libextrapi.so ~/.minecraft-pi/mods to install it.

Why do we need the above step? Note: I have successfully installed the python package pip3 install mcpi-addons

Bigjango13 commented 1 year ago

Should be fixed in 84da3b7 :+1:

syang commented 1 year ago

@Bigjango13 I am still not 100% sure if I need to do the ‘compiling’ step after I do pip install. Can you clarify when you put the build.sh there?

Bigjango13 commented 1 year ago

I'm not sure what you mean, what part is confusing? It's needed to compile the backend which is loaded as a MCPI-Reborn mod.

syang commented 1 year ago

I'm not sure what you mean, what part is confusing? It's needed to compile the backend which is loaded as a MCPI-Reborn mod.

I guess I did not follow the following step (also please see issue #5 -- that's what I experienced)

Just run ./build.sh to create the binary and run mv libextrapi.so ~/.minecraft-pi/mods to install the mod, this is needed because MCPI doesn't support any of these extentions that this api adds, so a C++ mod is loaded to intercept CommandServer::parse.

I am running this on my Macbook, and I am trying to use Python to modify my server. Your compiling step seems to only target Raspberry Pi (Linux), can you give guidance on the Macbook?

Bigjango13 commented 1 year ago

I am running this on my Macbook, and I am trying to use Python to modify my server.

This mod is only for Minecraft Pi: Reborn and not the Java/Bedrock/Any other editions. However, if you want use python to control your Java server you might be able to use RaspberryJuice

The reason I only provide a way to build on Linux is because Minecraft Pi: Reborn only supports Linux.