GithubHelp home page GithubHelp logo

vytdev / debug-stick Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 37 KB

Working Debug Stick for Minecraft Bedrock 1.20+

Home Page: https://mcpedl.com/debug-stick

License: MIT License

Python 8.34% TypeScript 91.66%
addon bedrock debug-stick gametest minecraft scripting

debug-stick's Introduction

Hi there 👋

  • My real name is Vincent Yanzee J. Tan
  • 14 years old
  • He/Him
  • 3rd-year high school student
  • Love playing Minecraft
  • My website (made from scratch!) https://vytdev.github.io

Profile Views

📦 I use and I do

  • C (my fav)
  • C++ (though it's challenging!)
  • x86 Assembly (I prefer nasm syntax!)
  • JavaScript
  • TypeScript
  • Python
  • Java (rarely...)
  • Rust
  • Lua
  • Node.js
  • Web development
  • GLSL (I enjoy playing with fragment shaders!)
  • Android dev (still figuring it out haha)

📌 My interests

  • Artificial intelligence (ML/DL)
  • Understanding neural networks
  • System-level programming
  • Making random C projects
  • Implement algorithms on my own
  • Making a custom programming language
  • Creating my own Bedrock server software
  • I like math and science!

📊 Activity Graphs

Show/Hide

GitHub Profile Trophy

Top Languages

GitHub Stats

GitHub Streak Stats

📫 Let's connect!

If you have any questions, concerns, or just wanna say hello, feel free to reach out:

Thanks for stopping by!

debug-stick's People

Contributors

assassin1065 avatar vytdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

debug-stick's Issues

Not working

Not working. I used it in a working world and the value is not changing.

Realms issue

Addon is great working in worlds, but when I try to instal it into realms Minecraft says there some problems.
I tried add into existing world in realms and also import to realm world with addon installed, but none of that worked.

Issues to resolve (and make the addon use Stable APIs)

  1. edit Manifest.json and use :
    { "module_name": "@minecraft/server-ui", "version": "1.1.0" }, { "module_name": "@minecraft/server", "version": "1.13.0" }
  2. Add the component "minecraft:hand_equipped": true, to the debug stick item.
  3. Edit the displayBlockInfo function.
function displayBlockInfo(player, block) {
    let info = "§l§b" + block.typeId + "§r";
    info += "\n§4" + block.x + " §a" + block.y + " §9" + block.z;
    info += "\n§7matter state§8: §e";
    if (block.isLiquid) info += "liquid";
    else if (block.isAir) info += "gas";
    else info += "solid";
    info += "\n§7hard block§8: " + (block.isSolid ? "§ayes" : "§cno");
    // Retrieve and display the block states/properties
    Object.entries(block.permutation.getAllStates()).forEach(([k, v]) => {
        info += "\n§o§7" + k + "§r§8: ";
        if (typeof v == "string") info += "§e";
        if (typeof v == "number") info += "§3";
        if (typeof v == "boolean") info += "§6";
        info += v;
    });
    // Check if the block type can be waterlogged and display the status
    if (block.type.canBeWaterlogged) info += "\n§o§7waterlogged§r§8: §6" + block.isWaterlogged;
    // Display block tags if available
    if (block.tags) {
        block.tags.forEach(tag => info += "\n§d#" + tag);
    }
    // Show the message to the player
    message(info, player);
}```

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.