# We have to import the minecraft api module to do anything in the minecraft world
require_relative 'mcpi/minecraft'

=begin
First thing you do is create a connection to minecraft
This is like dialling a phone.
It sets up a communication line between your script and the minecraft world
=end

# Create a connection to Minecraft
# Any communication with the world must use this object
mc = Minecraft.create()

# Get the block that the player is currently in
playerPosition = mc.player.getTilePos()
# Get the exact position of the player
playerPosFLoat = mc.player.getPos()
# create the output message as a string
message = "You are at( #{playerPosition.x}, #{playerPosition.y}, #{playerPosition.z})"

# puts to the ruby interpreter standard output (terminal probably)
puts(message)

# send message to the minecraft chat
mc.postToChat(message)


# We have to import the minecraft api module to do anything in the minecraft world
require_relative 'mcpi/minecraft'

=begin
First thing you do is create a connection to minecraft
This is like dialling a phone.
It sets up a communication line between your script and the minecraft world
=end

# Create a connection to Minecraft
# Any communication with the world must use this object
mc = Minecraft.create()

# Get the block that the player is currently in
playerPosition = mc.player.getTilePos()

# create the output message as a string
message = "You are at( #{playerPosition.x}, #{playerPosition.y}, #{playerPosition.z})"

# puts to the ruby interpreter standard output (terminal probably)
puts(message)

# send message to the minecraft chat
mc.postToChat(message)


Remove unused exact position method call
Remove unused exact position method call

Remove unused call and place in another separate example
