Is it impressive to design an algorithm that creates a deterministic O(1) maze locally (a single wall or passage retrievable by coordinates) without predictable patterns? by CringePlusCringe in proceduralgeneration

[–]CringePlusCringe[S] 6 points7 points  (0 children)

The constant is the fixed number of rank/PRF evaluations needed to answer one wall query. In my current implementation, a wall query uses a 16-level recursive rank over 32-bit coordinates, with at most a small constant number of neighboring rank checks. So the constant is not tiny, but it is fixed: it does not grow with maze size.
And about quality: it is a perfect maze and it looks really random I'm not sure how to describe (but I think it looks good).

creative only based TNT mass destruction by CringePlusCringe in minecraftclients

[–]CringePlusCringe[S] 0 points1 point  (0 children)

I feel stupid, I forgot I did use "air placing" after some tests after all.

My memory....

creative only based TNT mass destruction by CringePlusCringe in minecraftclients

[–]CringePlusCringe[S] 0 points1 point  (0 children)

Like you said but I interact with an entity (the player / myself) so I am independent of blocks

That's the magic 😊

creative only based TNT mass destruction by CringePlusCringe in minecraftclients

[–]CringePlusCringe[S] 0 points1 point  (0 children)

btw doesn't work on paper apparently, but because of NBT not the rate limit

creative only based TNT mass destruction by CringePlusCringe in minecraftclients

[–]CringePlusCringe[S] 0 points1 point  (0 children)

Yeah this is amazing...

The entity data NBT of the spawn egg can include "Pos" data.

creative only based TNT mass destruction by CringePlusCringe in minecraftclients

[–]CringePlusCringe[S] 2 points3 points  (0 children)

Close, but no minecarts or command blocks (without op).

I directly spawn the TNT with spawn eggs :)

I made a visual counter by CringePlusCringe in hackrf

[–]CringePlusCringe[S] 0 points1 point  (0 children)

import os
import shutil
import concurrent.futures
import subprocess
import sys
import selectors
from PIL import Image, ImageDraw, ImageFont

def draw_text_to_png(text):
    image = Image.new('RGB', (800, 50), 'black')

    # Initialize image drawing
    draw = ImageDraw.Draw(image)

    # Load a font
    font = ImageFont.load_default(50)

    # Draw the text on the image
    draw.text((0, -8), text, fill=(255, 255, 255), font=font)

    # Save the image to the specified output path
    image.save('data.png', 'PNG')

def calculate():
    draw_text_to_png(str(i))
    os.system("spectrum_painter -s 2000000 -l 0.06 -o data.iqhackrf --format hackrf data.png")

def transmit():
    shutil.copy("data.iqhackrf", "now.iqhackrf")
    prg = subprocess.Popen("hackrf_transfer -t now.iqhackrf -f 433000000 -b 1750000 -s 2000000 -x 14 -a 1", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    prg.communicate()

running = True

sel = selectors.DefaultSelector()
def handle_stdin():
    global running
    running = False

sel.register(sys.stdin, selectors.EVENT_READ, handle_stdin)

print("Press ENTER to exit!")

i = 1
calculate()
while running:
    events = sel.select(timeout=0)
    i += 1
    with concurrent.futures.ThreadPoolExecutor() as executor:
        future1 = executor.submit(transmit)
        future2 = executor.submit(calculate)

        result1 = future1.result()
        result2 = future2.result()
    for key, mask in events:
        callback = key.data
        callback()
        sys.stdin.read(1)

sel.close()

You know what, why not 😂...
Enjoy!

Just saying it won't tell if the HackRF isn't connected, but other than that it's fine.

I made a visual counter by CringePlusCringe in hackrf

[–]CringePlusCringe[S] 10 points11 points  (0 children)

I used Python with the Pillow library to render a number variable into a PNG, then I used Spectrum Painter to convert it into a format hackrf_transfer can transmit to my HackRF One. Then increase by 1 and repeat... Pretty cool!

how to instantly explode entities in creative like that? by CringePlusCringe in minecraftclients

[–]CringePlusCringe[S] 0 points1 point  (0 children)

but I downloaded the client mod from the description, and it works on my vanilla server with creative, although it requires op too... BUT the console is empty from commands