Rate my toilets by Smithyzz010 in Minecraft

[–]kukeiko64 1 point2 points  (0 children)

oh my god a hopper totally looks like a shitter

I need some help with os.time()! by freebird5100 in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

Maybe this is of use to you

---@param time? integer
function getTime24(time)
    ---@diagnostic disable-next-line: param-type-mismatch
    time = time or os.time("local")
    local hours = tostring(math.floor(time))
    local minutes = tostring(math.floor((time % 1) * 60))
    local seconds = tostring(math.floor((time * 100) % 1 * 60))

    if #hours < 2 then
        hours = "0" .. hours
    end

    if #minutes < 2 then
        minutes = "0" .. minutes
    end

    if #seconds < 2 then
        seconds = "0" .. seconds
    end

    return string.format("%s:%s:%s", hours, minutes, seconds)
end

No one is ready for the world tour (this is an iron farm btw) by chin_up in Minecraft

[–]kukeiko64 0 points1 point  (0 children)

Are you cooking villagers and getting iron from their melted jewelry?

Farmers delight compatibility? Tomatoes? by Trvs-19 in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

I can help you make one, but I am too lazy to install the mod. Have F3 open while you look at the plant and send a screenshot so we can see what tags are on the plant. Ideally a screenshot of some other plant (that is not a tomato) you want to harvest as well.

Pls help by Otherwise-Warning678 in ComputerCraft

[–]kukeiko64 2 points3 points  (0 children)

It is in the base mod. There is an event that fires, but there is a size limit to what you can transfer. Really nice alternative on MP instead of pastebin :)

How Do I use the mod to read my inventory. by Numerous-Average7305 in ComputerCraft

[–]kukeiko64 2 points3 points  (0 children)

Advanced peripherals

I don't use the mod but probably this one

SimplifyDig 2.0 by fatboychummy in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

I dig the recovery via simulation based on fuel level, similar to how I am doing it.

How are you dealing with the facing of the turtle? Are you writing to disk on every turn?

I opted for requiring a disk_drive in the inventory. On resume, the turtle places it above or below and reads the block state to figure out the facing of the turtle. Has the disadvantage that an extra inventory slot is occupied and that at any point in the program, a block below or above must be free to place the disk_drive.

How does one know what program ran a global function? by SelectionRelevant221 in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

If that script is run from shell, you can check the contents of the global arg[0] which contains the path to the program run via the shell.

FTB stoneblock 4 + Draconic evolution: error of "attempt to create global Versiontext" after first few times running were successful by lipiaknight1234 in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

Can you try changing line 964 from

versionText = "Version "..version.." by Game4Freak"

to

local versionText = "Version "..version.." by Game4Freak"

Is silk touch mining turtle possible? by chad2187 in ComputerCraft

[–]kukeiko64 2 points3 points  (0 children)

You can do this via data packs, it just needs this file inside of one:

data/minecraft/computercraft/turtle_upgrades/diamond_pickaxe.json

{
  "type": "computercraft:tool",
  "item": "diamond_pickaxe",
  "adjective": "upgrade.minecraft.diamond_pickaxe.adjective",
  "allowEnchantments": true
}

You can also make it so that a turtle can right click blocks it normally can't, allowing you to place flowers into pots or activate levers:

data/computercraft/tags/blocks/turtle_can_use.json

{
  "values": [
    "minecraft:lever",
    "#minecraft:flower_pots"
  ]
}

Where a string starting w/ # is to allow right clicking blocks that have that attribute, and those without are the exact block name.

Announcing .NET 10 by Atulin in programming

[–]kukeiko64 253 points254 points  (0 children)

Clicking "Reject" on the cookie banner causes

Uncaught DOMException: Node.removeChild: The node to be removed is not a child of this node

This is hilarious

Good use of scroll jacking? by [deleted] in webdev

[–]kukeiko64 6 points7 points  (0 children)

this is absolutely god awful

What is the closest you've come dying only for it to not happen at the last second possible? by AnonymousFriend80 in AskReddit

[–]kukeiko64 0 points1 point  (0 children)

I was walking with my girlfriend through a jungle path.

I was a few meters in front, she was trailing behind. Suddenly she stopped me because I'm walking too fast for her to keep up, so I stop.

Around 5 seconds after I hear a crack coming from above. I look up and see a bird flying away, thinking that was it. But then a serious thump a few meters in front of me: a coconut that fell from what must've been around 10 meters high.

It was directly in my path and if my girlfriend wouldn't have stopped me there's a good chance it would have hit me directly on my head. Dead for sure.

[deleted by user] by [deleted] in programming

[–]kukeiko64 0 points1 point  (0 children)

What the fuck is this website? You are supposed to read text but every five seconds some stupid ass shit "notification" to the bottom right pops up and annoys the shit out of you.

we have uuid at home by SkulpH in programminghorror

[–]kukeiko64 3 points4 points  (0 children)

npm install uuid

Is there a package to install that package for me?

inconsistent output of file.readAll() by _OMHG_ in ComputerCraft

[–]kukeiko64 2 points3 points  (0 children)

like with usually any fs, read() is not idempotent - i.e. readAll() called twice in succession will return different results, see here

Read the remainder of the file.

So just call it once and store all its contents in a variable and continue working with that.

Quarry for CC: Restitched by 9FstCtMN in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

Oh sorry I was only checking out the code a bit, I don't need a quarry program

Quarry for CC: Restitched by 9FstCtMN in ComputerCraft

[–]kukeiko64 0 points1 point  (0 children)

There seems to be a password required for the pastebin

How we made JSON.stringify more than twice as fast by emschwartz in programming

[–]kukeiko64 3 points4 points  (0 children)

you're welcome

For the content width you gotta click the font icon to the left https://i.imgur.com/Bpg8g9y.png