#dev-general
1 messages Β· Page 393 of 1
vanilla block state = direction
bukkit block state = furnace data stuff
vanilla data = furnace data stuff
bukkit data = direction
then when 1.13 came out, vanilla had block states, but Bukkit already had a class named BlockState so md5 had the greatest idea of his own
name it BlockData
because
MaterialData -> BlockData I guess?
yes
when craftbukkit got DMCA'd on github (1.7.10) everyone just kinda left it die
oh
md5 moved the whole git history to some git server in romania I think
and he took over
at this day bukkit = spigot basically, they both release the same date and pretty much everything that isn't related to bungee components just goes straight into bukkit
oh yeah and he only "adds" the things he deems absolutely necessary
if it doesn't have to be there, then it won't be there
yeah md5 rough guy
md5 is something else
fair point
ffs I just spent like the last half an hour just copying Glowstone because I literally have 0 better ideas
copying Glowstone letter for letter just doesn't feel right though
just reinforces the point that I'm a shit developer and that I can't do this myself
all developers steal code from each other
most programs have some functions from the unix source hehe
Bardy, gonna buy a plane ticket and come smack your ass
nah I've actually had enough of this now
I'm done
there is just no good way I can do chunk data
(I basically need to redo it all to make me able to change the data)
maybe this just isn't meant to be, maybe Krypton's block data will stay unchangeable forever
you already did so much, you can't give up π«
well unless someone has a way of doing chunk data that works in the project and doesn't suck, idk what else to do
because I'm all out of both ideas and patience
but I can't give up on this project anyway, it's all I have
and when I say all I have, I mean this is literally it, I have nothing else in my life to do other than this
right, here we go
basically, chunk data in Minecraft is stored as a long array of variable sized numbers (sometimes with multiple values packed into a single long), each containing an ID that points to a state ID in the palette
I have the tools to write those indices, what I need to be able to do is take a block state and write that into some form of storage
and then be able to retrieve that block state later
that is a terrible explanation, let me get you some vanilla code
actually, can you hop back into room 1? might be easier to show you and explain at the same time than share pastes backwards and forwards
ffs what have I done this time

1.17 cave update?
oh yeah. best cave update
underwater caves.
underwater cactus as well
that's just an underwater desert
waterlogged desert
ik why
registry lookups are failing
all the IDs return -1 because NamespacedKey(value = "some_value") != NamespacedKey(value = "some_value") due to me choosing to copy Minecraft and use an IdentityHashMap lol
or at least, I think
yep, that did it
So, I've been playing around with ideas for how to have multiple config files easily and I came up with this:
What do you guys think? Does it sound confusing to use?
Allows easy to create and get values from
There is already a config lib
This is my core
no
initialize is harder to type
disagree 120% lol
do onInit()
lol
whats the difference?
that was a Krypton circlejerk lol
since Krypton's function that's called when the plugin is starting up is called initialize
soonβ’οΈ
I'm working on it rn
rust-lang dot org
Oh have you un-given up?
I came to the conclusion that I should just directly update values in StateIndexHolder rather than doing things I don't need
like making BlockState and Palette stuff
I can't wait for Krypton
imma develop a gamemode in it
because I give up with spigot for some things
its litterally useless
even the paper API is just a pig in a bowtie
ladies and gentlemen...
now, there are some limits
the blocks you can place is currently only limited to the blocks already in the palette
I mean the section's palette, not the global palette
:o
no clue
apparently you can't add new blocks to new layers
If a new type of block is added do you just have to update the pallette?
yeah
but that's not that easy
ah
since I may have to resize the palette
why'd you tag that guy lol
Peaches is the creator of Iridium Skyblock lol
ahhhh thats where i recognized him from
anyone wanna see some cursed Krypton stuff btw?
yes
I thought you might
how cursed is cursed
like inventory items turning into others with pure https://tenor.com/view/magic-shia-labeouf-snl-skit-fingers-gif-4860090
block placing kinda working and kinda not
oh my
it seems to have broken now for whatever reason
and placing blocks in chunks outside of a certain range will disconnect you
1.16.5
Advertising!!
join xD
Someone ban this man advertising his server!

iridiumskyblock bad
At the moment at least
lol
We'll see how 3.0 turns out
well with peaches at the helm, it's already a sinking ship
I mean, Singleton > DI wtf
Poor Peaches
dasSkyblock is happening but it won't be better π
Just scarier
lol
britster miten skyblock coming 2022
u sure about that?
maybe
Oooh can't wait to use it in 2024
hehehehe
Also coming in 2024 π₯²
Hell yeah
hello
DONALD
Hello brister |> mitten
am I glad to see you
π
DONALD
late
Ah the man, the legend, the asshole, the troll has returned
who's account was this? PulseBeat?
hello unidentifiable bird
fuck
Who are you calling an ass hole !!!
You're talking to the greatest president of all time
π
pulsebeat on drugs man
he should get banned from discord tho
Mf
id never be on drugs
donny owns discord
I own you all
bill gates? never heard of him
yes please π©
bill nye and gates
donald mind clicking this link please?: notanipgrabber.com
Click it Donald!
the FBI has decided to take an investigation and has found that the link is faulty, and not cool enough to be embed in discord
it was random link
Unidentifiable bird clicked it?
doesn't go anywhere
the truth is that you're not cool enough donald!
such a great gentleman
This man Blitz makes felony
Kaliber if you got so much free time why did you make me add rgb support? smh
Hey. We are all American when I'm here
i dont have free time π
Don't bully
then why u here?
good point
ew america
sucks to suck
only has 2 parties
and both are on the right?
like wut
thats mad bro
you what
every day I wait for ranked choice voting
got a problem?
I don't know what your definition of right has to be to call both parties on the right
you should look up the Welsh senedd's election system, its mad
Republicans are very far right, democrats are centre right
bernie and AOC are solid centre left
the Democrats still sell arms and shit
mad
Libertarian party π₯²
doesn't exist
It's got like 2 members
Poor guys
does america have any independents?
lolbertarians
the UK has a few
A few I think
Bernie is an independent technically i think
Oh I thought he was democratic
No he just uses their platform or something
he literally tried to run for president as a democrat lol
there's only 2 parties in 'murica
Yeah but he's still officially independent in the senate isn't he?
I don't think so
lemme check
he's literally in the democratic leadership of the senate lol
oh shit I guess he is technically considered an independant?
bernie and aoc should make a party called the 'less racist than the others party'
that's literally the appeal of team blue
the "we didn't have donald trump" party lol
but... they racist also
over le pond all of America just seems racist to me ngl
Ah he became a member in 2019
i mean generalizing 300 million people is pretty rough
pfffft y'all generalise all 1 billion indians
and all 1 billion chinese
and all africans
what, about losing it?
ofc
First america, then africa, now india?
who can we exploit now
guess the Scots
/s on all that ofc
The Welsh hopefully
What I'd give to send the cavalry into that despicable hovel
free
hah
y'all wanna add ambiance to custom biomes
funny how theres people that ask for that for free, and others are like $1k
maybe a few new blocks
I love that of the servers I'm active in, this one is the most politically charged, for some reason
we weren't even arguing policies just talking about parties and shit lol
this server is so diverse it's kinda awesome
Birthday becaues extended family isnt there ;|
but christmas is such a nice vibe!
christmas is too overtly religious for me sadge
But Christmas only happens once a year
Christmas is so much pressure
how many birthdays do you have!??!
Christmas is too joyfully depressing
also i can't attend any birthdays cause i know ill miss somebody's birthday
bro what christmas stuff are you going to? I literally live in the land of Mormons and Christmas is hardly religious
Itβs not about how many you have, itβs how many you say you have
Christmas is literally a pagan holiday lol
interesting
Everyone knows when Christmas is
Yule
i said religious, i didn't specify which religion
I really don't think it's that religious, especially if you're not hanging around with religious people
my family just vibes, we go to a christmas eve party and even then it's not too bad
Atheists that are scared of anything slightly religious are just as bad as evangelicals imo
hehe
i just live my life not giving a shit
I mean ya, but honestly after i was like 12 there was nothing i really wanted
money
Lol we dont really do that
omfg when people ask me what i wanted for christmas when i was a kid i was just like 'idfk jeez i don't need anything'
ikr
I don't see what's wrong with money
might have been repressed but i dunno
I mean ya, but that kinda ruins the spirit
Not really?
well in that case what makes birthdays any better o.o
As you said yourself, you don't really want anything
Might as well invest in your future or something
As i said lol, no extended family
hmm alright
aka buy some random shit off argos
i don't even know what argos is, but yeah!
man argos was the best place as a child
i guess catalogue stores only exist in the UK, where we just have no space
Personally, I dont really like giving/getting money because it feels too transactional but i can totally understand it
huh I mean I guess
I've literally like wanted something and spent my christmas gift in advance lol
everything is a transaction in life
like in October or something
i give you flowers, you give me hiv
people should live their lives by the ferengi rules of acquisition π
transaction complete
ez sql
I mean Christmas Day isn't really that important to me I don't think
it's more about the vibe of december and being all festive
gifts haven't mattered since i was like 10
I had more fun like decorating stuff for my school clubs than I had actually on the day of christmas
Ive never really done that
I'd rather drink to sleep
though i wasnt in alot of school clubs
idk, either beer or whiskey
^
proper vodka tho
vodka is for pussies
Punch is way better
by the end russian should be just as comprehensable as your native language
if you're at a generic party I guess?
I dont remember what it was exactly but My grandmother used to make this really good punch thing at the chrismas party
oh we didn't have punch at christmas
that's like, a halloween thing
or maybe prom
I wouldnt know lol
i mean yeah lol, it's pretty good
no
school dances slapped
i hated it
sweethearts was my favorite though
i think by the fact that i just knew the ferengi rules of acquisition shows that i was not the greatest at social interaction
big shooker
lmao
I love "shookers"
did you guys have school dances?
thankfully no
so idk what they were like
In middle school lol, it was so cringe
oh wtf
ikr
they were a central part of high school I loved them
There were also movies so thats what i did
get to hang out with your friends and stuff
You didnt have them in the womb?
wtf going before them sounds really weird
That was a blast
they started in high school
when you were old enough to start having crushes and stuff
thats irrelevant
omfg I'm actually the literal definition of stupid
wait you guys didn't have crushes until high school?
I've just spent ages trying to figure out something and just reminded myself that chunk caching is probably my issue lol
idk when high school is 'cause its different everywhere
can we all just start using like... age?
that would simplify things
15-18
wh
5-9
the first time I had a crush was last calendar year
January/February 2020
and I'm 16
so u mean the end of high school and all of sixth form college
i distinctly remember crushing as early as I think 3rd grade
was it on Krypton and chunk caching
hehe
man
nah mate just high school
uni starts at 18ish
high school here is 12-16
oh that's middle school mate
no
I'm autistic though remember, so it took me a while to come out
wait actually?
come out as what?
Highschool for me is 20-30 i cant wait
blows people's minds every god damn time
come out as not-gay
I struggled with very high levels of social anxiety for years
and I still do
social anxiety is fun
that's why he spends his time perfecting his minecraft coding skils
Seems normal
no that's because it's spring break and I'm a sad loner
also star just suggested that people would go to high school dances with crushes
nah though 15-18 dances were fun because you got to ask a cute girl or something (my experience as a guy) and have an excuse to dress up, go bowling or lazer tag or something, and then go hang out with the rest of your friends in a big ballroom!
There's worse things you can spend your time on
that is incomprehensable
I went with mostly my crushes
all relationships in my school were arranged
then my best friend (female) and I went to the last few before 'rona
"arranged" lol
i think that is a reasonable word for it
imagine having crushes actually like you back
imagine not having to deal with rejection for over half a year
I don't think they did that much, they just didn't mind hanging out lol
as in parents went around interviewing each other's kids like "hey what's your GPA? oh you'll be a great fit for my daughter"?
not gpa, hotness
imagine not having to suffer through the pain of finally believing like you're worth something, only to prove yourself wrong yet again
but p much yeah
wow
Tf
oh yeah no I'm definitely there rn
my thoughts exactly yugi
though I did have my first kiss right before 'rona started
if you don't shoot ya can't miss
my family has used that philosophy for generations
if you don't shoot, you'll never make it
meh
Someone should clip this chat honestly
#relationships-general
hehe
haha
you know pretty much no messages ever get deleted here right?
yeah
yeah unless dkim's around
Sir please delete that message.
You already are one
oop

π
haha
Deffo
wait why are u on discord then? u seem like an outlier here :kekw:
I second this
I'm 16 and I haven't even gotten close to going on a date before lol
go back to xbox voice chat with all the chads
Thats sad
well I was 17
welcome to autism Yugi
this sounds like the better thing to do
Dont go blaming everything on autism now
fair
You dont seem to be doing well
yikes that's scarily accurate
im almost 18, dw π
You're a fetus
imagine doing anything other than work for your entire childhood π₯²
Same here, minus the autism
did you have school dances?
lets go katsu
also yeah he's right Bardy you got plenty of time bro
i got an idea
Nope
why dont we all just turn gay for each other
wdym by a fetus though?
School dances are only a thing in america right?
young
I don't know whether that's a reference or what
it's hyperbole
much like most things, the UK stole it badly from america yugi
I don't like being young either
"prom"
yeah prom is kinda overrated ill give you that
but child to adult just goes from bad to worse
Pretty much, like prom and things like that, we don't have that either
but the other dances were pretty good
nah we have them over here
i think prom sucked
we only have prom afaik
well, prom at least
Ah
though I guess it helped that I did ballroom dance so I knew how to dance at them lol
but i never went
We have none of that hereπ₯²
but not in secondary
this ^
oh true actually
The community hates putting guys and girls together
Though Bardy, you're young, dw too much about that, I had my first girlfriend when I was 19
fair
are you... all LGBTQIA+?
matt giving us all hope
Sounds like a plan
Nah man
lets go katsu
I mean, I don't really worry about it, just kinda makes me sad thinking about these things
π³
Arranged relationships are encouraged
Mhm
no
dkim stfu
fuck you
no this is development
we are developing relationships here
Psycological development
I ain't moving until someone with actual authority tells me to
yeah this is character development for my boy bardy
in a AbstractRelationshipFactoryFactoryProvider
wat
IAbstractLifeBuilderFactoryProviderBean
Ok bb π
I gotta mute this chat i cant work on anything rn lol
on a serious note though, every time I think about myself, I mostly get upset
you have notifications on?
Lol, I have the entire discord muted
Well not on but I notice it
I have discord itself muted
Prom.xml
no thank you, prom.toml
prom.kt
Even if prom's on I'm not going to it, fuck that
porm.die
build.prom
porm
prom.conf π
Learn what a DIE file is, how to open a DIE file or how to convert a DIE file to another file format. Learn from the File Experts at file.org.
git prom
git stash prom
alright that'll do
were all failures, ur not alone 
rm -r /prom
π₯²
I'd be way too awkward to go to a prom
actually no scrap that, were not failures, were different
so sad that's relatable
Same
i just don't really like well idk
Unless im on a few shots
me
idk how to explain it
i mean guys you really don't do too much at prom
I believe that's a thing a lot of us in here share
you just hang out with your established friend group while being dressed fancy
Prom is pointless anyway but eh
boring
i can do that in a park while playing football or smth
you get to dance too!
jesus i wouldn't do it if i drank russia's daily vodka intake
Friends π₯²
helpchat prom
soonβ’οΈ
"dance" π€£
yeah dance?
friends are great
is that weird?
if you get the right ones
dancing?
I literally do ballroom dance
dancing is a foreign concept to most in this discord
You all need to get over yourselves lol
no johnny
how can i get over... myself?
join us π₯²
i am myself
Johnny you need to accept the fact that we're all sad loners who have nothing better to do with our lives than talk in this Discord channel for ages on end
^
we can talk about what were doing wrong in life but cant act on these facts π₯²
and if anyone says speak for yourself you're talking out your ass
i didn't really become active on discord until covid
saying and doing are two very different things Kaliber
yus
i use discord at my desk
hey man I'm trying. I went to Casino Night last week and it was kinda fun!
i use discord in brussels
"How can you solve your problems if your problems are yourself"
why is that relatable
It's okay! HelpChat Prom Soonβ’οΈ
Eh
pulse no
nein
halt
lol
lol
don't answer that Star
Dibs on kali
I think i know
Dibs on Blitz
Each take the time to get the stage on the stage channel to dance with the pair
Yes
as someone immediately joins the stage
BM is dancing with haskell
I mean... valid, I guess? But don't back into corners you set up yourself
awe motivational johnny!
I don't have permissions π₯²
And I mean how old are you? Everybody has a personality crisis some time in their teenage years
Did you know .DIC is a file
π
Have you watched A Quiet Place?
thats a good one pulse
Already went through that pulse
Yeah
do you like scary movies?
the death of stalin π
Damn
Id prefer not a horror movie at 1 am
frozen then
awee
put on some anime
boku no pico
am i the only nerd who dislikes anime?
no
Yea no
fuck anime
I mean, I don't really watch anime, but it's not that bad
Oh wtf, A Quiet Place is considered horror 
I found nothing of horror in the movie
my mates made me watch No Name, bruh
are you shy?
i mean ghibli is cool ig
yugi is shy!
Oh
Lemme check
Not movies but Line Of Duty or Bodyguard are good
Anime?
but not bodyguard
No
i mean if you're looking for a cartoon π
bodyguard was their worst work yet imo
Series?
if u want a british police drama then Line of Duty, sure
yeah
but that new northern irish one was good
Line Of Duty is sick, Bulletproof and Bodyguard are other decent series
Yugi, watch The Imitation Game
if anyones watched Money Heist before, theres a new season coming out this summer
if u want a TV show, watch travel man
Aight
the comedy is an acquired taste
vouch
Oh the alan turing story
man, I still remember one of my favourite film quotes I've ever heard from that
Yeah
Is it any good?
wanna hear it?
I liked it
Alright I guess thats a better choice then
If you want a movie I've heard gay porn is quite good
"It's often the people that no one imagines anything of that do the things that no one can imagine"
i mean
π»
depends on your taste
^
why does this look like charlies spoof logo if u remember that
like an exact replica
Charlie Chaplin?
It probably is lmao
chazza
Chazza what?
hmm u mustn't have been around when charlie was then
chazza urmumgae
Probably not ig
unfortunate
Dude that used to be here and got banned from Discord
He was selling a spoof plugin for $150 π₯²
What a chad
π₯²
mc player spoof lol
Nah he was banned for another reason
Oh ok
Then he changed his plugin's price to $250 a year
lol
What a chad
wow the seriousness of this chat went from 100 back down to 0
hehe i love that clip
hes a good guy, but we ignore the pricing π
π
here she was complaining about another election in the UK
reasonable
there were like 3 in 5 years
Haha he deleted the video
#showcase message
the conservatives kept trying to get a good majority
took their major opposition to be antisemetic to give them that hehe
Can anyone modify this to say "Callum Seabrook". Bardy is confirmed a nonce
confirmed
bri ish politics π
who the hell is callum southgate anyway, at first i thought it was the english football manager, but thats gareth southgate π₯²
Hes bard from an alternate reality
oh I'm actually triggered rn
rugby π
why is every problem in programming always solveable with a single line of code
rugby is much better than football tho
the ONLY thing the welsh are good at
right, so you know how Krypton caches chunks?
oop
actually tell a lie, u guys let us use all ur land for farming π
Falseπ₯²
true in haskell
Solve sodoku win a million dollars
guess what yo boy forgot to do when he was changing around the chunk loading
add chunk loading back?
save the chunks
if (chunkCache.getIfPresent(position) != null) return chunkCache.getIfPresent(position)!!
hehe
I wasn't loading from the cache
nice
Why not use an elvis there
which is why block placing wasn't working
yeah elvis operator?
π
not really possible, since I need to return there and continue executing the rest of the code if that fails
y'all are too kotlin for me my head
Not enough parenthesis!
the next line of code after that if (after the empty line) is the code that loads chunk NBT data
elvis operator is basically a null check
You could use a let block or something, or simply move the loading logic to a separate method
precisely
Speaking of Kotlin look who I found on Github
https://github.com/abreslav
ew
that piece of shit
Call Simon!!!
Also found this guy, dude is pretty cool
https://github.com/elizarov
Throw monads at that evil kotlin creator
OOF
the guy responsible for Kotlin not having tuples, array/collection literals, bitwise operators, and more
imagine kotlin but its haskell
Yes!
just an exact replica
jvm haskell
Imagine kotlin being immutable
Soon
Using an operator fun with something like
operator fun `<<`()
Would need to be typed with the ` right?
That cant be an operator function matt
An example
We want haskell symbols here
$$$$
that's a face
oh my god
Its an app kal
Yeah, operator fun only allow things like get and set which is super sad
Can you imagine the potential of that?
Wombo
π©
combo

what are you talking about? lol
there are way, way more
those are just a few is what hes saying lol
but yeah, proper bitwise operators would actually be useful
like get and set
Implies there are more, my guy
($&&) a b = a + b * 2 * (a + b)
fun getAndSet(index: Int, value: Int): Int {
require(index in 0 until size) { "Index must be between 0 and $size, was $index" }
require(value in 0..mask) { "Value must be between 0 and $mask, was $value" }
val cellIndex = cellIndex(index)
val cell = data[cellIndex]
val magic = (index - (cellIndex * valuesPerLong)) * bits
val result = ((cell shr magic) and mask).toInt()
data[cellIndex] = (cell and (mask shl magic).inv()) or ((value.toLong() and mask) shl magic)
return result
}
Haskell >>>
Try elm iwan
good point
my specific needs require .net shit
Its haskell but much more usable, ofc not as general as haskell tho
uwu
Its only for web apps
Imagine
But its amazing at it
F#
Elm π€€ π€€ π π
Just think it'd be a super cool feature if you cold do something like:
operator fun String.`>>`(string: String): String {
return this + string
}
"Hello" >> "there"
Oh didnt see that
if only
HelpChat kotlin fork time?
π³
Hell yeah!
π π
Actually i wonder how hard it'd be to add something like that on a fork 
Bro just (>>) = (++)
No idea
π
Kotlin Lisp
That is what we need
Kotlisp
Lislin
clojure v2
yee
Aka c#
π₯²
Oii
how
wtf
But ...
kotlisp
Thats
i hate it
C#
.NET ecosystem is kinda hot
why use C# when F# exists!!!
But C# isn't Kotlin π
π₯²
Kunity
They share almost every major feature tho
K#
Does C# have function extensions?
Yes
Oh shit really?
Does C# have referential transparency?
π₯²
Yea
If not I'm not interested sorry
Also nullable types from 7
Use rider
Have you looked into Golang
π΄
is it good?
oh god
i know nothing about it besides the discord thing
Apart from being IMPERATIVE and IMPURE, yes
Do you want to die
in Rider? I definitely might look into that
Functional go could exist but apparently very costly in terms of performance
no in go i think
functional go π₯²
What?
cursed
I meant Go
oh
nice
Go wont compile with allman
yeah it wont compile if u dont π₯²
can you enforce OTB in Rider?
Havent tried, i just stick to the c# conventions there
or like, have it as a layer of conversion or something
so it always shows it in OTB even if it's really in allman
Probably ig since ij ussually provides a setting for everything
okay cool
func map(fun func(interface{}) interface{}, coll []interface{}) {
new := make([]interface{}, len(coll))
for i, elem := range coll {
new[i] = func(elem)
}
return new
}
functional go π
thinking of going back to k&r tbh
you should be put to death