GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Python Tutorials

This view

  • Original page
  • New address

GeezerVison is showing minecraft.makecode.com — Compass Rose

Skip to main content
About FAQ Projects GitHub
Examples
Super Powers
Mega Jump Flower trail Super Digger Yellow brick road Game Over
Agent
Agent Dig Agent Tower Agent Checkers Agent Wanderer Agent Pyramid Hilbert Fractals
Mobs
Chicken Rain Zombie Pig Cats vs Dogs Rabbit Invasion Bouncing Pigs Bat Cave
Terraforming
1000 TNT Wipe Out Lava Tower Earthquake Pitfall Grid world Lorenz Attractor
Mini Games
Spleef Leap of Faith Gold Stairs TNT Spleef Gladiator Ice Age
Builder
Builder Wall 3D Axis Compass Build a House TNT Cannon
Courses
CS Intro
About
Lessons Blocks Minecraft Authors
Events
Overview Unplugged 1 Unplugged 2 Activity 1 Activity 2 Activity 3 Activity 4 Project
Coordinates
Overview Unplugged 1 Unplugged 2 Activity 1 Activity 2 Activity 3 Project
Variables
Overview Unplugged Activity 1 Activity 2 Activity 3 Activity 4 Project
Iteration
Overview Unplugged 1 Unplugged 2 Activity 1 Activity 2 Activity 3 Activity 4 Project
Conditionals
Overview Unplugged Activity 1 Activity 2 Activity 3 Activity 4 Project
Functions
Overview Unplugged Activity 1 Activity 2 Activity 3 Project
Arrays
Overview Unplugged 1 Unplugged 2 Activity 1 Activity 2 Activity 3 Project
Artificial Intelligence
Overview Unplugged Activity 1 Activity 2 Activity 3 Project
Final Project
Review Guide Project
Reference
Player Blocks Mobs Agent Builder Gameplay Positions Shapes
Blocks
On Start
Loops
repeat for while for of
Logic
if Boolean
Variables
assign change var var
Math JavaScript blocks Custom blocks
Python
Calling Sequencing Variables Operators Statements Functions Classes
JavaScript
Calling Sequencing Variables Operators Statements Functions Types Classes Interfaces Generics
Types
Number String Boolean Array Function
Get setup Blocks Gallery
Miscellaneous
About Support Translate Sharing projects Offline support Save Reset Beta version Home page content
Developers
Command Line Interface Visual Studio Code support Blocks Embed
Tutorials
Chicken rain Agent Moves Agent Build Agent Wall Mega Jump Walk On Water Flower Trail Positions Super Digger Billboard Compass Rose Fast Forward Spleef Leap of faith Gold Stairs Lava Tower Rainbow Beacon Colorful Rainbow Sand Storm Aquarium Leaping Salmon
Python Tutorials
Chicken rain Agent Moves Agent Build Mega Jump Flower Trail Super Digger Billboard Compass Rose Fast Forward Spleef Leap of faith Gold Stairs Lava Tower Sand Storm Aquarium Leaping Salmon
Using Extensions
Castle Builder Roller Coaster Pixel Art Builder
Lessons
Area AI - Part 1 AI - Part 2 Ratio Volcanoes - Part 1 Volcanoes - Part 2 Storyline Story ending Cubic units Gold mine

Compass Rose

Introduction

This tutorial shows you how to create words and letters (text) from blocks. The text is placed in the Minecraft world at a position where you print them at. The object you will make is called a compass rose. This is a 2D marker showing the North, South, East, and West directions. In the last step, you will add another dimension to the compass rose to show the Up and Down directions.

Print a letter

Print the letter E in the west direction at the player's current location. This is a direction label for the East direction.

# @highlight
blocks.print("E", GLOWSTONE,
    pos(0, 0, 0),
    WEST)

Try it!

Run the program now.

Printing the direction label will place a big "E" in the Minecraft world at your current position.

Set the East direction

Change the printing position to (20, 0, 0) so that the letter "E" is placed 20 blocks east of your current position.

With positions, the first number, x, of a position coordinate represents the East/West direction. A positive value goes East, negative goes West.

The position of (20, 0, 0) is relative to the player's position rather than to a world position. So, (20, 0, 0) means 20 blocks East of the player's position.

blocks.print("E",GLOWSTONE,
    # @highlight
    pos(20, 0, 0),
    WEST)

Try it again

Run the program again to see the new print position.

The "E" letter is now printed 20 blocks away.

Print West

Print another label to show a "W" at 20 blocks West. Run the program to test it.

West goes in the negative direction so the position is set as (-20, 0, 0). Don't move until all letters are printed!.

blocks.print("E",GLOWSTONE,
    pos(20, 0, 0),
    WEST)
# @highlight
blocks.print("W",GLOWSTONE,
    # @highlight
    pos(-20, 0, 0),
    # @highlight
    WEST)

Print North and South

Print two more direction labels to show "N" 20 blocks North, "S" 20 blocks South. Try it in Minecraft.

The 3rd number, z, of the position is the South/North coordinate. A positive value goes South, a negative value goes North.

blocks.print("N",GLOWSTONE,
    # @highlight
    pos(0, 0, -20),
    WEST)
blocks.print("S",GLOWSTONE,
    # @highlight
    pos(0, 0, 20),
    WEST)

Print Up and Down

Add direction labels to show "U" 20 blocks Up, "D" 20 blocks Down. Try it in Minecraft.

The 2nd number, y, of the position is the Up/Down direction for elevation. A positive value goes Up, a negative value goes Down.

blocks.print("U",GLOWSTONE,
    # @highlight
    pos(0, 20, 0),
    WEST)
blocks.print("D",GLOWSTONE,
    # @highlight
    pos(0, -20, 0),
    WEST)

Edit this page on GitHub
Edit template of this page on GitHub
Edit template of this page on GitHub

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.