Giter VIP home page Giter VIP logo

minecraft-zoobuilder's Introduction

Sample extension for pxt-minecraft

This repo provides a sample extension for the Microsoft MakeCode Minecraft Education Edition editor.

For helpful tips on defining blocks, see creating blocks.

Getting started

Microsoft MakeCode can only be used with Minecraft Education Edition. You can download Minecraft Education Edition here:

https://education.minecraft.net/en-us/get-started/download

Once installed, you can access the MakeCode editor by following these steps:

  1. Log in using your Employee or Educational institution credentials
  2. Create a new world. Leave all of the default options for the world as-is (or see the "world options" section below for some helpful tips)
  3. Once the world has loaded, press "c" on your keyboard and select "MakeCode" from the list of options to open the editor

Extension dev loop

The easiest way to develop an extension is to first write your code from within the MakeCode editor inside of Minecraft Education Edition. The extension development process looks something like this:

  1. Write your code inside MakeCode Education Edition and test it.
  2. Once your code is in a good state, navigate to https://minecraft.makecode.com/?github=1 in a browser
  3. Create a new project and turn it into a GitHub repo by pressing the GitHub button in the bottom bar
  4. Switch to the JavaScript editor and copy over your code from Minecraft Education Edition and define your blocks

For helpful tips on defining blocks, see creating blocks.

Helpful tips

World Options

There are a few useful options you can check when creating a world:

  1. Set the default game mode to "Creative". This will allow you to fly and prevent you from dying. You can change the game mode at any time by opening the chat and typing /gamemode s for survival or /gamemode c for creative
  2. Make sure the difficulty is higher than peaceful. Peaceful will prevent any monster mobs from spawning.
  3. If you are going to be collaborating with someone else inside this world, change the "Permission level for players who join your world" setting to "Operator" so that they can also run code
  4. Under "World Options", toggle "Show Coordinates" to on

Performance options

If you are running another performance intensive app (e.g. Microsoft Teams) at the same time as Minecraft, it can be useful to change your graphics settings to improve perf. To access the video settings:

  1. While inside a world, press esc to open the pause menu
  2. Click "Settings"
  3. Click "Video" in the left-hand bar

The following settings can drastically improve performance:

  1. Turn off "Fancy Leaves", "Beautiful Skies", "Smooth Lighting", and "Fancy Graphics"
  2. Set the "Render Distance" to the minimum value
  3. Set "Anti-Aliasing" to 1

Additionally, disconnecting any external monitors will also improve performance by quite a bit.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

minecraft-zoobuilder's People

Contributors

abchatra avatar microsoftopensource avatar riknoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.