Closed BlackstoneEngineering closed 8 years ago
As per the Raspberry Pi Minecraft API, pollBlockHits() by default detects only right clicks with a sword. Are you right clicking and do you have a sword in hand? There are options to control this behavior. See symmetry.py.
Ah, got it, I had to equip a sword to make it trigger, it would not work bare handed.
While I have your attention I would like to ask your expertise on something. I have managed to trigger in game events via real world stimuli by using the python script to poll an external server and create blocks in game when. Now I am trying to have events in game trigger external events. I was thinking of having redstone trigger a send to the external server. Currently I have only found the events.pollBlockHits() function, is there a better way to use triggers in game via the python scripts? Like some way to hook up to redstone switches ... etc?
Three options:
Methods 2 and 3 will only work on RaspberryJamMod, not on the official Pi API.
Awesome, I'm going to give this a try, thank you!
Problem
The event.pollBlockHits() function always returns an empty array. This is either a bug or a feature to be implemented, not sure which. The setup tested on is v1.8 using Forge, as directed in the instructable post.
Example
I run the following script as I smash blocks
I see the 'Running Scratch2!' message, but the array returned from pollBlockHits is always empty
[ ]
.