arpruss / raspberryjammod

Raspberry Jam Mod - a Mod Forge Minecraft mod implementing most of Raspberry Juice/Pi API
http://www.instructables.com/id/Python-coding-for-Minecraft/
Other
355 stars 95 forks source link

Exposing detection of held objects #26

Closed rmackinnon closed 7 years ago

rmackinnon commented 7 years ago

As a general feature request, if there was a way to expose what a player is holding? I see that in private function "holdingSword" we're getting player.getHeldItem(). But that doesn't seem to be exposed anywhere else from the python side. Unless I'm totally missing where it's exposed or how to access it.

arpruss commented 7 years ago

The more functions I add, the more fragmentation there will be in scripts between various implementations (Raspberry PI, Raspberry Juice, mcpiapi). And there is the question of just how much info to return. And whether to implement a player.putInHand() function...

rmackinnon commented 7 years ago

I can understand that. The core idea of the project isn't to add code sprawl, but maintain the core features. I have a pretty specific idea for the use, so I'll just fork the mod and pair down to what I need it for.