npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mct1

v1.0.3

Published

Repo for mct1

Downloads

79

Readme

MC-T1

MC-T1 is a plugin, made using Magikcraft, for Minecraft that simulates Type 1 Diabetes to educate children about their or their friend's Diabetes.

What is Type 1 Diabetes?

Type 1 Diabetes occurs when the body’s immune system attacks its own pancreas and is irreversible. This attack is known as autoimmune disease. Because of the pancreas being attacked Insulin production is halted. Insulin is the hormone that serves as a key to open your cells to allow the glucose to enter and allow the use of glucose for energy. Without Insulin the glucose stays and builds up in the blood and this starves the cells.

Type 1 diabetes is distinct from Type 2 Diabetes. Unlike Type 2 Diabetes, Type 1 Diabetes is not a life style disease and is irreversible.

How to run MC-T1

Supported Minecraft versions

MC-T1 is a server-side mod. It uses a modified version of the Spigot Minecraft Server. At the moment, the only clients that can connect to this server are the Mac and PC Java client.

MC-T1 can run with:

  • PC version
  • Mac version

MC-T1 does not run with:

  • Xbox version
  • PS4 version
  • IOS version
  • Android version
  • Windows 10 version, you get off the windows store

Getting help - the #mct1 channel on Slack

You can find MC-T1 developers in the #mct1 channel of the School of Magik Slack. Slack is an online messenging platform. Go to slack.magikcraft.io to join the School of Magikcraft slack team.

Before you start

Before you start using MC-T1 you will need a few things set up:

  • You need a Minecraft account from Microsoft. You can get this from www.minecraft.net. If you have an Australian credit card you might not be able to pay for an account. You can use PayPal or buy a gift card from your local supermarket or 7/11.

  • You need a Minecraft client. You can use either the Minecraft.net client and our own Magikcraft.io client. If you use the Minecraft.net client you need to create a profile with the correct version of Minecraft and enter the MC-T1 server details. The Magikcraft client comes preconfigured with the servers for MC-T1 and is automatically set to the correct version. You can download the Magikcraft client from client.magikcraft.io.

  • You need a GitHub account. Open a GitHub account for free at www.github.com and make sure that you verify your email by clicking on the link that GitHub sends to you.

Set up MC-T1

  • Use your GitHub account to login to the Magikcraft Spellbook at play.magikcraft.io. This is where you will set up the code for MC-T1.

Enable MC-T1

  • Put your mouse over your user profile picture and click on "Manage Plugins" in the menu that pops up. You will get a screen that says "Enabled plugin: package.json".

  • In the dependencies section add the mct1 package. That section should look like this:

"dependencies": {
      "mct1": "https://github.com/mc-t1/mct1.git"
},
  • Click "Save Spell". This loads MC-T1 for you.

Create a spell to start MC-T1

  • Click on "Spells" on the top menu.

  • Click on "New Spell".

  • Paste the following code into the spell, replacing the existing text:

function call(module, spell = '_default') {
    let char;
    [':', '.'].forEach(_char => {
        if (module.indexOf(_char) != -1) {
            const _args = module.split(char);
            module = _args[0];
            spell = _args[1];
        }
    });
    require(module).spells[spell]();
}

Connect to a Magikcraft server

You can use one of the following servers to run MC-T1:

  • magikcraft.io

If you have the Magikcraft client, click on "Connect to other servers". If you do not see an entry for "magikcraft.io", then follow the instructions below for the Minecraft.net client.

If you are using the Minecraft.net client, then click on Add Server, and enter magikcraft.io into the name and server address fields.

Connect to the server. When you appear in the Minecraft world, type /spellbook. You get a link in your console. Press 'T' to activate chat, then click on the link. Open the link in your web browser. This will connect your spellbook with your Minecraft account and allow you to run MC-T1.

Start MC-T1

OK, now you're ready to run MC-T1!

Press the 'T' key on your keyboard, then type in:

/cast call mct1

This will start MC-T1.

How to develop MC-T1

To develop MC-T1, fork the MC-T1 repository.

Branch from develop.

To run your own version of the code, change your package.json in the "Manage Plugins" section of your spellbook to point to your repository. Use a URL hash to specify the branch you want to use. For example:

"dependencies": {
      "mct1": "https://github.com/Purpsta/mct1.git#develop"
},

Building

Run npm run build

Tests

Run npm test