Recent posts

Pages 1 ... 8 9 10
91
Forum Discussion / why did my account get locked?
Last post by pjals_but_noisy - Jul 10, 2021, 11:18 am
i tried to login to my T79/pjals account and it complained it didnt exist, i tried reregistering but it said the account existed?
92
General / Base ComputerCraft Printer and...
Last post by MerithTK - Jul 03, 2021, 05:04 pm
I am hoping there is a program somewhere that I can feed it a text document, and it will automatically print and craft a book?
93
APIs and Utilities / Block Vein API
Last post by rjburgerr1 - Jun 29, 2021, 04:09 am
Welcome to the Block Vein API

Why do I need this API?
- If you require the functionality of having a turtle mine a continuous, unbroken vein of blocks.

Potential uses of this API:
- In your mining programs
- To farm trees
- To harvest any naturally generated blocks (sand, dirt, etc...)

What does this API effectively do?
- Compares blocks around a turtle against a given list of blocks to mine. If the blocks scanned matches the list of blocks to mine, the turtle will mine the blocks. Afterwards, the turtle will move into the space left by the mined blocks and check for more. After exhausting all mined paths, the turtle will return to place it started at.

How can I take control of this API?
- The core function call to make:
  - .scanAdjBlocks(fuelCheck, inventoryCheck)
    - This function call includes two optional parameters.
    - fuelCheck takes a function that the user creates for their own specific program. This will run everytime
      the turtle moves.
    - inventoryCheck takes a function that the user creates for their own specific program. This will run
      everytime the turtle mines a block.
- Other useful functions:
  - .setBlocksToMine(blockMetadata, metadataTableIndex)
    - Function to set blockTagsToMine or blockNamesToMine table
      Required for people using this API. Call this function to set the blocks the turtle should mine.
      Arguments:
        blockMetadata - the tags/names/subnames of blocks to mine.
Usage: Input a table or string containing block metadata.
Accepted Metadata = "minecraft:logs" or {"minecraft:logs"} or "log, leaves" or "dirt" or "spruce" or {"spru", "log", "sand"} or etc...
        metadataTableIndex - The type of metadata you've used to input your blocks to mine.
      -Usage: Input the type of metadata you're setting.
        - Accepted Indexes = 1, 2
        - Metadata Index Definition: 1 - Name metadata
                                    - 2 - Tag metadata
  - Users also have access to the .backIntoVein() and backOutOfVein(checkVeinBlocks) functions
      - Calling these functions are optional. They are for use in a user's own programs,
      - usually for when the turtle needs to refuel or when the turtle's inventory is full.
      - checkVeinBlocks is a boolean that should likely be false in a user's program

How do I use this API?
In a turtle terminal run this command
Code Select
pastebin get bxsJUwq1 blockVeinIn a user program:
Code Select
os.loadAPI("blockVein")- From here you use the blockVein functions inside your program.
E.g.
Code Select
blockVein.scanAdjBlocks(usersFuelCheckingFunction, usersFuelCheckingFunction)
Code on Pastebin - https://pastebin.com/bxsJUwq1
94
Servers / [1.16.5] [Survival] AlexDevs' ...
Last post by CaptRanger - Jun 28, 2021, 07:22 pm
Quote from: Alex on Jun 24, 2021, 06:33 am
Quote from: CaptRanger on Jun 14, 2021, 10:17 amNo Linux support.. no good
What do you mean no Linux support? It's java

What I meant to say was.. Let me in.

Ok I had a moment ..
95
Operating Systems / PhileOS - A Simple Multitaskin...
Last post by sponge - Jun 27, 2021, 09:20 am
gitlab*

sure, i'm into that
96
Operating Systems / PhileOS - A Simple Multitaskin...
Last post by QuickMuffin8782 - Jun 27, 2021, 01:00 am
Quote from: sponge on Jun 26, 2021, 07:22 pmbro, ccwindows? damn i remember using it back in the day

In the future, I'll start making a browser that'll support CCWindows servers, or even real worid urls only specified by the program/MineOS Kidz application.

Hope your intrested. Email me at [email protected] if you are. MineOS Kidz is located at Gitlab.
97
Operating Systems / PhileOS - A Simple Multitaskin...
Last post by sponge - Jun 26, 2021, 07:22 pm
bro, ccwindows? damn i remember using it back in the day
98
APIs and Utilities / Yet Another Command Line Argum...
Last post by QuickMuffin8782 - Jun 24, 2021, 10:55 pm
After looking at your documentation on GitHub, you've managed to pull off a successful release of your latest API/Module for ComputerCraft. Later on, I'll think about importing this API/Module (or utility) for COSC.
99
Servers / [1.16.5] [Survival] AlexDevs' ...
Last post by Alex - Jun 24, 2021, 06:33 am
Quote from: CaptRanger on Jun 14, 2021, 10:17 amNo Linux support.. no good
What do you mean no Linux support? It's java
100
APIs and Utilities / Yet Another Command Line Argum...
Last post by Noire - Jun 24, 2021, 01:26 am
Alternative title: The Worst Mistake of my Life

Yet Another Command Line Argument Module
..or maybe it's the first.

Made for ComputerCraft - specifically CC:Tweaked.
This was initially supposed to be a helper module for my Computercraft IRC program that emulates guilded.gg Discord but worse, but I then decided it would be cool to release this thing into the public.

Please note that if there are any errors, I don't care. But I'll fix them eventually.
No, I am not this pretentious.

Hacked together in about fifteen hours, this thing does everything you can dream of within the realm of sanity. Not-so-auto-autocomplete that can be updated and executed at any time via cla.setupAutoComplete(shell).  One-hyphen and double-hyphen flags. My hopes and dreams that were once present when working in CC:Tweaked. All of it in one package.

It also has some crude humour in the documentation - so if you don't like that, maybe this module isn't exactly right for you. I also use British spelling for some words. If you don't like that, Twitter has something to say to you.

If you do use this godforsaken module comprised of hot glue and duct tape, please mention me somewhere - preferably in a little easter egg within your code. That would be funny.

Here's the source: https://github.com/Nowaaru/yet-another-command-line-argument-module
Don't read it though, it sucks. I stopped caring about good coding practice at around the fourteen-hour mark.

Upon writing this, I also realized that I forgot to remove the pcall within the shell.setCompletionFunction. Oh well. I called it.

---
If you have any questions, concerns, comments, or problems, let me know. I'll probably try and assist you.
..or I won't.

Maybe I will.
I don't know.
Pages 1 ... 8 9 10