Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Learn to program with Minecraft
bonjour je voulais créer un programme de defense anti-joueur avec mes amis en serveur local et je voulais savoir
comment on peut choisir un joueur avec

pos = mc.player.getTilePos()

et si non, quelle commande permet de faire ça?
merci de votre reponse
(Nov-11-2018, 11:22 PM)SheeppOSU Wrote: I did everything write but the import of minecraft on python wont work. Did they update the code to import it. The book says,"from mcpi.minecraft import Minecraft" The error message is this:
Traceback (most recent call last): File "C:/Users/Sheep/OneDrive/Desktop/Ayden/Minecraft", line 1, in <module> from mcpi.minecraft import Minecraft ModuleNotFoundError: No module named 'mcpi'

the answer is a lot simpler than you might think, i had the same problem and you just need to make sure your .py file is saved in the same folder that contains your "mcpi" folder

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to draw terrain like minecraft in python using opengl with perlin noise value? hsunteik 0 2,952 Jan-21-2017, 11:45 AM
Last Post: hsunteik
  how to generate random 3d world (like minecraft) in python hsunteik 3 2,979 Jan-06-2017, 06:35 PM
Last Post: metulburr

Forum Jump:

Users browsing this thread: 2 Guest(s)