Hi, I am new to canaryMod and rasberryjuice. I am running on windows 8 and have almost everything working. I can run a basic python program (hello-world.py) and see the results in the world I am in. As a player, I can manually place blocks and destroy them (i.e., I have operator status and in the config file I have gamemode=1). However, from within a python program it appears that calls to setBlock have no effect. All other api functions I have tried work (e.g., getBlock, getRotation, getTilePos, getPitch, setPos). When it comes to executing calls to setBlock, the program doesn't crash or produce an error message, it just seems that the calls are "ignored" -- kind of like what happens when a player is in visitor mode. For this reason, it seems to me that the python programs I run have visitor mode permissions. Using lessons learned from setting up the canaryMod server, etc., I have installed the setup on a clean machine -- with the same results -- everything works except setBlock :-(
Below is a program that runs perfectly except for the fact that a diamond block is not placed. The getBlock function reports air (0) at location (0,100,0). Any help would be greatly appreciated.
import mcpi.minecraft as minecraft
import mcpi.block as block
import time
mc = minecraft.Minecraft.create()
mc.postToChat("Python program is running...")
mc.postToChat("Preparing to set a diamond block.")
time.sleep(10)
blockType = mc.getBlock(0,100,0)
mc.postToChat("Block type (0,100,0) = " + str(blockType))
mc.postToChat("A diamond block should have been placed at: (0,100,0)")
time.sleep(10)
mc.postToChat("Done.")