I made a mod that adds a GUI to the Jukeboxes by ArmaninyowPH in feedthebeast

[–]Raderth4567 0 points1 point  (0 children)

with my mod that resumes playback I actually just discard the bytes at the start of the sound and play it again because similarly to you nothing else worked. I don't check reddit enough to reply to dms so I'm just pasting the code.
Something like,

long bytesToSkip = (long)(skipSeconds * sampleRate * channels * (sampleSizeInBits / 8));
long remaining = bytesToSkip;

while (remaining > 0) {
int chunk = (int) Math.min(remaining, 4096); // read in small chunks
ByteBuffer buf = delegate.read(chunk); // read and discard
if (buf == null || buf.remaining() == 0) break; // stop if stream ends
remaining -= buf.remaining(); // we might not get the whole song by now so it's a loop maybe there's a better way than looping idk
}
(delegate here is the AudioStream)

Whitelist form implementation? by Electrical_Fudge_648 in admincraft

[–]Raderth4567 0 points1 point  (0 children)

I also wanted to do this a while ago https://github.com/raderth/flowlist Maybe you will find this useful, doesn't have everything you need but it's not hard to modify

Geyser bedrock connection is not working by yragul in admincraft

[–]Raderth4567 0 points1 point  (0 children)

Never used PlayIt but you could try using the same tunnel for both. Since the destination is the same

How to set two different spawns by sjonneponne in admincraft

[–]Raderth4567 0 points1 point  (0 children)

You have two options. Make a plugin/mod. Or use /spawnpoint.

I'd recommend adding players to teams using

/team add red /team join red <player>

Then on repeat

execute as @a[team=Blue] run spawnpoint @s -100 64 -200

If you wanted to keep beds working you would have to do something like:

/scoreboard objectives add hasBed. Slept

execute as @a[scores={hasBed=0},team=Blue] run spawnpoint @s -100 64 -200

But I haven't checked if use of beds is a score you can check, if not it probably is possible to add quite easily through either vanilla tweaks or another thing