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 — Super Digger

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

Super Digger

Introduction

Let's create a program that gives you super digging powers!

Super digging!

Mine a little

Fill in air to fill replace the block below the player with air.

blocks.fill(AIR, pos(0, 0, 0), pos(0, -1, 0), FillOperation.REPLACE)

Mine some more

Set the coordinate values in the from position to (-1, 0, 1). Then, set the values in the to position as (1, 1, 1). This will mine out a wider and taller volume of blocks.

blocks.fill(AIR, pos(-1, 0, -1), pos(1, 1, 1), FillOperation.REPLACE)

Try digging

Go to Minecraft and move near something. If your world isn't flat, you will dig out blocks near you when you run the program.

Mine a lot

We don't want to mine just a few blocks at a time, so edit the from and to positions to mine a 5x5x5 cube. Digging it big time now!

blocks.fill(AIR, pos(-2, 0, -2), pos(2, 5, 2), FillOperation.REPLACE)

Try a big dig

Go to Minecraft and try moving next to things and then run the program again! GRIEFING ALERT! This mod can mess up your world!

Keep digging and digging

Put the fill operation inside a forever loop to repeat the fill forever. Change the -2 values to -5 and the 2 values to 5 in the positions.

# @highlight
def on_forever():
    blocks.fill(AIR,
        pos(-5, 0, -5),
        pos(5, 5, 5),
        FillOperation.REPLACE)
loops.forever(on_forever)

Try it again

Go back to Minecraft and run the program. Now, as you move you will be an unstoppable force of destruction! GRIEFING ALERT! This mod can mess up your world!

Step 8: Dig under your feet

Edit the from position to dig under the player's feet.


def on_forever():
    blocks.fill(AIR,
        # @highlight
        pos(-5, -5, -5),
        pos(5, 5, 5),
        FillOperation.REPLACE)
loops.forever(on_forever)

Run the program

Go to Minecraft, put your player in flying mode and then run your program. GRIEFING ALERT! This mod can mess up your world!

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.