#dev-general
1 messages · Page 49 of 1
fair
average lifespan is like 60-80, and the brain doesn't fully develop until like 25ish. Idk what to tell you 17 is a kid
oop my bad, scrolling from top 😩
in the uk at 16 you can be trialed as an adult 🤷♂️
same with being able to join the army, drink alcohol, drive (17)
and other stuff
ok
Cool story bro
Does anyone know why this won't spawn an item display sword with custom model data? It just shows a regular sword
/summon minecraft:item_display ~ ~1 ~ {item:{id:"minecraft:iron_sword",Count:1,tag:{CustomModelData:2}}}
1.21?
is Minimessage relaible for hexcolor convertion?
I love minimessage
do you know how to use it? cuz can't figure it out yet
thanks.
Yes 🙂
btw theres also https://webui.advntr.dev/
A web interface for MiniMessage.
so if i import the libary I don't have to do anycoding?
Well if you're using spigot you'll probably have to use the platform dep for it, which is community maintained so latest updates are iffy.
If you use Paper it's much easier
So what is the differnce between spigot plugin and paper plugins. aren't they the same papers performance is better?
Spigot is a little outdated in a few ways, this being one of them. The component system is used in Vanilla, so Adventure kind of represents how it works closer than how spigot does.
Paper also introduces some extra API that makes for nicer development work.
There are also perf tweaks yes.
so if I do a paper plugin a spigot server won't support it ?
I don't believe so, not without extra work on your behalf
wdym
you have to implement minimessage: https://docs.advntr.dev/minimessage/api.html
no
only paperweight (nms/craftbukkit stuff)
Use gradle anyway though :^)
🙃
I used to code for minecraft like 2 years ago, so much changed and I just started learning OOPD in java
Welcome back, all the cool kids use Gradle, Paper, and Kotlin.
2/3 is the way to go for sure, but 3/3 is badass
So close
close?
btw i wouldn't recommend this for now
although ig you can use it if you want
its just that if you run into an issue, less people will know about it
hmm, so the rest is good to go ?
Gradle is love, Gradle is life
make sure to change the Name from untitled 🙃
yea iknow
main class should probably be your group name, but otherwise looks fine
org.example -> me.cozyleprechaun94?
sure
I want to have a server to test the plugin tho:)
gotta toggle the experimental builds
btw idk if this was mentioned already but note that paper has both minimessage and adventure included, so I see that you have it in your pom.xml - you don't need it in the build.gradle(.kts)
can someone send me the link, im blind af
well Im going to use gradle
oh, so I dont have to put the dependency in the build file?
not for adventure and minimessage no
Paper is cool like that
oh alr
also spigot already includes commons-lang3 (I see that you have it in your pom.xml)
W paper
jpenilla run-paper moment
wut?
Gradle plugin to run test server for paper
eey jo that gradle stuff takes long to build
what is build.gradle(.kts)
i only have build.gradle file
You're using groovy Gradle, .kts is Kotlin Gradle
oh does it matter for the jpenilla?
https://paste.helpch.at/uzeguwurif.java this is build.gradle
until you trip on it and it spits on your face
and every thing you try is a nightmare
and then you find a simple solution to the problem
and it's a blessing
why are my files looking like that. i don't know if that is the issue but nothing get autocompleted and the code looks really confusing
it appears IntelliJ hasnt detected it as a "gradle project" and simply a set of files.
If you open the folder in explorer and double click on the build.gradle file, and open with intellij, it should be fixed
also my gradle doesnt transfrom workspace stuff or something
I don't know what that error means
Btw right click build gradle file in intellij and there should be like a link project button or smth
didnt know that
:))
But I also didn't know you could do it like this so
¯_(ツ)_/¯
Low disk space 🪦
Wdym
But I think you should fix this issue first 🥲
Uhhhhhhh
wait is gradle downloaded on the C drive -_-
Wtf
Wait mib
You can probably change it in the gradle properties file in user directory gradle folder or smth
amazing
Sorry I'm on mobile so I can't really go in detail
my gradle properties is empty
47mb C drive, your system will explode if it sneezes
yea , If im correct you can transform some memory right?
Ye that means it uses default options
Idk if there's an option to move loc but there should
If not then symlinks
:))
im going to get a headache
I was wondering why my laptop was so fk slow
my gradle.zip or something is in downloads ....
I can't allocate more memory cuz they ain't on the same DISK bruh
well im using another drive for my IDE's and stuff I had 500gb free space apperantly sitting there.
Is there a way to change ore generation in mc, ive seen some plugins do it, but more looking for maybe a datapack approach or something similiar?
datapacks are the way to go honestly, they make it so much easier to tune things from the vanilla generation, if you're making a plugin basically you have to make generation from scratch
me when minecraft code java private static final float field_32727 = 0.0f; private static final float field_32728 = 0.0f; private static final float field_32729 = 0.04f; private static final float field_32730 = 0.0f; private static final float field_32731 = 0.004f; private static final float field_32732 = 0.0f; private static final float field_32733 = 0.2f; private static final float field_32734 = 0.1f;
thank you game.
not using mojang mappings nauseated_face
I have a client who is experiencing issues where my plugin (which adds text displays on top of entities) having heights of the text displays vary. The varying depends on the models used (like wings on the players back). How does items adder add models like that? Are they passengers?
You can check the host the player is joining through. Then make sure it's the proxy.
Idk about kubernetes but you could look into sub-servers 2 and all it's addons. Makes it easy to spin up servers with templates and control servers from the proxy.
hi guys im using imageonmap plugin but when i get my map i only get one map ?
https://cdn.discordapp.com/attachments/289587909051416579/1256301741041914019/image.png?ex=668045ac&is=667ef42c&hm=d313f7fc80eb45998be635af903263d1473d3afb847c3128b4565d68b451ff32&
are you developing the plugin?
no?
then go to #1007620980627230730
impromptu poll: REST API format preferences
api.example.com/v1
example.com/api/v1
whats a really good plugin for custom currency that works perfectly with DeluxeMenus?
Any
Hi, i run a server with a proxy and lifesteal.
i am facing an issue that whenever a player is going to overworld he is getting instantly disconnecting and on rejoin also gets disconnect.
the player works fine in spawn world but not in overworld.
i even deleted the world but it doesnt works.
any help?
is there an error message in the console when the player is disconnected
and what reason does the client get when they are disconnected
No error
Connection Reset
damn thats weird
Yea ik
Spigot Account Linking
To get support for a premium plugin owned by Clip or Glare you will need to verify your spigot account using /spigot in the #bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command /spigot check.
@autumn vine
@spare shoal you should add Roll
to the gliders
like when you turn have it rotate in the opposite direction
Sounds like a challenging idea 🤔, I will definitely look into this! I think that it would make the glider a bit more challenging and funner, thanks for the suggestion 🙂
Hey i am looking into buying a Ubuntu Server which i can host minecraft servers on what hoster and packet would you reccomend ?
it could just be a visual thing
does deluxmenus support gradiant colors??
you will need to use a gradient generator for that
with the &# format
it supports minimessage for the actions: [minimessage] n [minibroadcast]
it wont work for the display name and lore of an item
Twitch
Everything is built live on twitch
Twitch : https://bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen
Editor
All my videos are edited by Flip. Give him a follow! https://twitter.com/flipmediaprod
Join this channel to get access to perks:
https://www.youtube.com/channel/UC8ENHE5xdFSwx71u3fDH5Xw/join
Links
Linode: https://l...
uhm
you guys are overthinking this
i tried it without anything
worked fine
looking for someone whos good at making 3d models
#1257956028063027243 @crystal sun
oh mb
:3
i should get a doctorate in computer science just for that Dr. prefix
and marry someone with a good last name..
Honorary doctorates tbh
I feel like those are a lil special
I got one
My research into economicals
I made no money. It's the study of frugality, so it's actually helpful that I am poor
don't programmers in economy make a lot of money?
I know a dude who recommended me that field who was making $300k and definitely lived like it
rip
Zodd’s got his lambo outside
Shhhh
damn, I didn't know he was a Laravel developer!
Of course, Zodds got it all covered 🚗
what's that performance analyzer tool i see people using when writing plugins
Spark>
?
like something to see which part of my code is actually taking up the most time?
i thought i saw something like that here but i don't remember
spark
kk
Anyone have knowledge on Hostings and Panels
Please dm me
I need some help
And I don’t know how to fix it
Please be more specific rather than have 20 people DM you the same questions.
just read his mind bro
So basically right when I sign into winscp it times out and I ask my developer who owns the hosting he does not know how to fix it
Sorry :(
What hosting are you with? If the SFTP credentials are invalid, that sounds like an issue on the hosting end.
It’s a newer hosting I could sign in perfectly fine yesterday I don’t really know the problem neither my developer
lol.
its okay sweet cheeks :>
:(
🫀
WinSCP is very nice. 
Heck, I still got PuTTY installed. 
i know it can do more than SCP, but i always cringe when i see it
though iirc openssh recently changed their scp to just be sftp under the hood
but yeah i can't relate honestly, i just use windows terminal + wsl with normal ssh/sftp
Panel having problems using it temporarily
Problem?
just an old program and an old protocol lmao
Okay
Anyone know of any IJ plugins that renders minecraft blocks/entities in a tab view or something like that?
render them from textures?
I was thinking from code, but thinking on it that seems very specific
Textures are optional, I care more about visualizing transformations.
So I guess a website that does that would be just fine, It'd just be nice to pick up configurations from a builder in the IDE.
Yeah I found a couple web ones, those'll do for now, thanks
If you have a web one you could just do an IJ plugin using JCEF (which it supports) and embed the website as a window on IJ :')
Unironically would take you like 30 minutes to do
Considering it, I've been reading over the documentation.
Never used JCEF before, but It looks fairly simple
I did a plugin using it just to learn like years ago, if I can find the source I can send it to you, but I doubt I'll :'))
Oh you're right, I actually got it
Took 6 minutes to load the website, but it works pretty okay
Speaking of such, I’m looking for where I can download the Minecraft textures that are rendered. So instead of the stone texture, I’d like to get the picture of the block like it shows up as in the inventory
Not sure where to go or look
So, item textures are located in assets/minecraft/textures/items but blocks are located in assets/minecraft/textures/block. Those are used for rendering in-game blocks and also inventory items. The models are in assets/minecraft/models/block
don't think that's a picture, think they work similar to how heads work, they render the model and rotate them
There's like 2 or 3 base models that most blocks are rendered based on
minecraft:block/cube_column and minecraft:block/cube_all
yeah
Oh I didn’t know this, thanks I’ll check it out tomorrow. As I want to get the image for each block type
Like stone, iron ore etc
just copy paste the Minecraft code for rendering blocks
or
just write a python script or something to do it
tho that'd be hard with the more complicated block models
Hey guys i want to make a power selector with deluxe menu where you can click and it will give you a classe but i want some class locked and to unlock them you have to paye with a ingame currency and when you pay it its unlocked for life how do i do this ?
and like the unlocked slot is a slot that i can put a custom command when you click
when I was on windows winscp was my tool of choice too tbh, never used it for scp tho
I just preferred its ui to filezilla
on linux now tho.. just drop a sftp://servername into the file path in the file explorer
I did use something that allowed me to sftp in windows file explorer too at some point, can't remember what it was called
wasn't quite as smooth as it is on linux, I just used it to mount my home server as a consistent drive in windows
didn't FileZilla get full of adware at one point or something?
I remember the official installer being very sketchy lol
yes definitely lol
Filezilla just has too many boxes for a new user.
WinSCP is nice and simple.
Although, I'm slowly becoming a criminal with RemoteSSH VSCode extension.
Tbh I wanted to use VSC for sftp while I was making servers, just so I can open the config files directly with it
Why not tbh, config files are no less development from the IDE perspective, and having a secondary text editor for that purpose is bloat
what do you do if you spend hours working on something... then you find out that someone already made another completed version with a ton of features 😭
i feel like software for literally everything exists now
You continue to make it because it feels better to use something you made yourself.
Try it out, see if you like it, if you do use it, if not keep working on yours
What is it that you’ve made?
When I ported KT-Script to Paper only for Matt to Link Bukkript :^)
I still have plans for it, I'll just take a different approach while taking hints from things they do better in other parts.
It's just less on my radar now
im completely unoriginal so i like remaking other peoples stuff but imo better
Hi, anybody has experience with custom item stats in MMOItems?
with autosell do i have to setup a sell region in order for the autosell to work?
Honestly I’d release it, there’s always ways to improve on existing products to make them better
true
tbh I don't want to share yet so sorry I didn't respond with anything before 🥲 but once I finish, I bet there's probably going to be something I can improve on
Is it a plugin or web based thing?
?
I really need help for something, do I have to write an expansion plugin? If so is there anything I should know? Thanks alot
web
Probably
yes
tho ur better off using roblox's toolbox
what u need ill probably have it
considering ive been coding on roblox for probably around 8 ish years
What do you guys think is a good salary for a Minecraft Server Developer?
20$/hour minimum
Hey what do you guys think the best budget friendly advertising method would be?
make your own (short form?) media content and garner an audience
Yeah at least 20$/h
Contrary to popular belief you don’t need to spend tons of money on marketing
Short form content is great, posts on forums and place like Reddit helps, anything organic really. Hiring YouTubers and stuff won’t work organically.
say the most controversial outlandish shit to get attention then make a shitty apology and capitalise on it
literally works every single time
lol
trust me it works
okay I got one
crunchy peanut butter is good
that’ll get me so much publicity 🙏
i mean to each their own
personally i dont even like peanut butter
nah that was definitely controversial
yeah if your like 13 and a band kid
uhhh who said I wasn’t?
😭
ive never tried crunchy peanut butter
personally i wouldnt mainly cause peanut butter tastes bad in my opinion
that’s crazy
and i could be very wrong but i think nut allergies is like the most common allergy
or one of the most
i'm allergic to bovine poop
Peanut butter and apples 💪
thats good
funny how though fruit is the one thing apes are posed to eat
and yet some can still be allergic to it
other apes are mid tho, humans always on top
Really?! How can someone find those who are willing to pay $20/hour xD
LinkedIn is probably a good start, Hypixel was hiring not too long ago, don't think they are anymore but you can find with patience
By the way, asking this to help a friend
Is it necessary for him to be a plugin dev?
Not necessarily plugin, modding is needed by some too, but yes Java/Kotlin programmers is what we are talking about
Oh
what about YAML ones? like who knows how to create a good looking GUIs, tab lists, and setup servers?
Oh that I have no idea, have never seen a big server/team hiring for that
Not sure about range for that, but probably not very high :')
No worries, thanks once again, and have a great day! (;
wait out of curiosity
who does that stuff then?
or do the big servers just custom code it..?
Most big servers do custom stuff, but there are still configurations to do, but that's normally done by different people, for example game designers will configure mechanics, loot, drop rates, etc
Graphic designers will configure menus, and other art related things
But all those are more than "just configurators" configuring things is part of their job but it isn't their job if you know what I mean
ohh I see
I forgot those roles existed
The idea of a "configurator" is pretty odd to me, since that's normally a shared job between other roles and having a single person do it kinda wastes time and makes it more complicated
A configurator is better for like creating setups and things like that
There is your problem, Asia.
Infrastructure sucks unless you pay an arm and a leg.
Mr. @eager fern idk but I was service muted without any reason, it's been approx a month.
Unmute me?
Lmao
You tell me
You will be unmuted 30 days exactly from today
Tell you to unmute them?
Stop interfering
Why do you always join into stuff you aren’t apart of?
Public chat I guess
Same with causing controversial arguments
Causing?
You might have to remind me unless you mean my last timeout
In any case, if you have a personal qualm, DMs are open.
Otherwise it's a public server and I interact with it fairly normally following your rules when you bring them up.
Ended up on special ISP with own routes
90$ a month on network only
POP communication
So eu get 140ms (Netherlands) using JSON method to check
And players from Asia around 50ms
Very good result
Ovh gived a result of 250ms from Netherlands to Singapore
Hetzner 320ms from Singapore
well tbf it is a public chat, if u want privacy go to dms about it
We have rules in place for such stuff.
Bro 💀. What's the reason tho?
if you don't want people joining into conversations in a public channel then you need a recap on how human societies work
anyway, #dev-general is wrong channel for this convo
Wasting peoples time through service requests.
Well you cannot decide that I guess.
Because I got people hired from the requests. And there were people ready for that job in low payouts.
So it means time wasn't wasted
I can and I did
If you want we can discuss this further in dms with showing the proof shown to us
If you did, it was wrong. There is not point discussing it in dms since I already tried appealing multiple times and got no response.
You guys are just gonna listen to bunch of randoms who think that was wrong. But trust me, people found what they were looking for and I found what I was looking for.
I was satisfied with request.
Over that, I didn't break any rule. I only posted one request per month for same thing.
I didn't expect this from the admins atleast.
Other bunch of randoms just keep roaming around all the way here and there whom I don't care about
You requested a service offered pay through our channel when the freelancer approached your DMs you said you aren’t offering pay. Now you tell me what’s wrong with that..
Mr. Adam. I requested paid one. And hired a paid dev. From that request.
After that, he (other dev) approached me so u told him we aren't doing paid anymore.
So it's not wrong right?
I only needed one paid dev which I got from ur request.
It's not compulsory to accept all devs know
Apart from that, he wasn't ready to work on our terms too.
I don't think anything is wrong on my side here
if u found a dev then just delete ur request
tho a 30 day mute for that is extreme....
Lmao
Wasn't this guy muted for extra time specifically because he complained about a small mute?
who, coolallrounder?
There are rules in place for such stuff
Didn't knew it. Sorry
Well. No one told me that I was being muted for short time.
Ikr. And that could've been discussed on tickets or smth. Not just straight mute without telling any reason bruh
fr
wasn't there a program that makes resource pack creation easier
doing it manually is fine and all but i would imagine there's an easier method
how do the placeholders work exactly?
when are they replaced with the actual value?
/minecraft:kill @e [type=cave_spider]
when you call PlaceholderAPI.setPlaceholders
try using google before asking questions
btw discord minimum age is 13 so if you're under that might wanna step off
Chill
Bros never seen a cat before
youre* bro

what if you wanted to
JNI_GetCreatedJavaVMs
but god said:
Creation of multiple VMs in a single process is not supported
fork java
Time to kill god
why do you want to JNI_GetCreatedJavaVMs
to get the created java vms

thoughts and concerns ?
java.io.File in 2024 
use nio smh
Does init always do nothing it looks like?
Because otherwise it's always null on construction
And your extention method uses an arbitrary path that doesn't include the name from the constructor
So basically it's useless
Yeah lmao
lmaooo
wtf is going on in there
can somebody take away Ori's coding license
lol
is that a var in a data class oh the horror why is that even legal
Not just a var in a data class, but a non-component one
How might I make a display entity scale from the center instead of a corner, I can't quite figure it out
They scale from the corner? From what I've seen mine scale centered. what billboard constraint and text alignment are you using?
maybe I'm just wrong it's been a week since I've messed with them
It's a block display, I didn't change the billboard and it doesn't have text alignment, so fixed billboard I guess
Text seems to grow from the bottom by default, but it does look more centered than the block
boing
weirdly item displays scale from the center, text displays scale from the center but are fixed at the bottom, and block displays scale from block's exact world location outwards from the corner (F3+B)
this is utterly cursed
I don't even know how i'd work around that. Teleporting the entity as its scaling to move the "anchor" point?
That's hilarious 
use the translation property of the display entity
time for matrix math! it's probably just a linear offset with the scale though nevermind thought translation was a quaternion, it's a vector3
lemme see if I can get the block centered
setting a translation of -(scale/2) seems to do it for the x y z translation
at least for centering the block display
huh that seems odd, I'm sure it makes sense though
for the block display you can align it to the bottom center by using a translation of
x: -(scale/2)
y: 0
z: -(scale/2)
it should animate from the center then
well, you'll have to apply the update to both the translation and the scale at the same time, but they should both interpolate
Yep perfect
Thanks so much
entity.offer(Keys.TRANSFORM,Transform.of((scale.div(2.0).negate())).scale(scale)) :^)
to center the item display to get it to scale the same way you need to only apply the translation on the y value
is that offer thing a paper api? I've never seen that before
Sponge
I was not expecting sponge
A lot of crossover and more people here, so for general support it's easier to ask here 😛
that does look very much like the sponge api does though so checks out
entity.offer ( Keys.TRANSFORM, Transform.of ( ( scale.div ( 2.0 ) .negate ( ) ) ) .scale ( scale ) )
ified
oh, thank you
entity.offer ( Keys.TRANSFORM, Transform.of ( ( scale.div ( 2.0D ) .negate ( ) ) ) .scale ( scale ) )
Suggestions for the same thing but for rotation? Seems a little more complicated
It looks awful ngl
Ok, well if you have a suggestion for how to rotate a display entity around its center let me know
rotate the translation
didn't you study math
create a translation vector of negative half the size of the entity and rotate it by the rotation matrices
Not this kind of math tbqh
with regular size just make it a -0.5 translation in every direction
and then rotate it, and it works
@rotund egret java transformation.getLeftRotation(); Vector3f v = new Vector3f(0.5f, 0.5f, 0.5f); v.rotate(transformation.getLeftRotation()); v.mul(-1); transformation.getTranslation().set(v); blockDisplay.setTransformation(transformation);
factor in right rotation too
important for anytime you wanna avoid gimbal lock
which is always
I ended up teleporting the entity a half step each block then translating it back a half step so it looks "correct" (This sets the "anchor" to the center)
Then I rotate the entity (not with translations) and translate it from its current (translation) position mul(-1) then subtract the half-step from earlier.
Ends up something like (psuedo)
// Spawn entity and set position
entity.setPosition(pos.add(.5,.5,.5))
entity.transform(Vector3d.ZERO.add(-.5,-.5,-.5))
// Apply rotation
entity.setRotation(0.0,45.0,0.0)
entity.transform(entity.transform.position().mul(-1).sub(.5,.5,.5)
https://i.imgur.com/7iCY1K6.gif
gif for funsies
Just an Armour Stand and making it rotate, or am I being dense?
It's a block display, and the anchor originates in the corner so it defaultly rotates odd
Block Display? Interesting
Display entities come in 3 flavors, block, item, and text. And they're lighter than armour stands
Oooo
This (kinda) shows off all 3 and their anchor points (the blue line)
Yeah I’d normally do stuff with armour stands but I guess that’s what I’m used to doing.
Ah
That was the traditional way, 1.20.x introduced them IIRC
Ohhhh okay
Makes sense why I haven’t really heard of it lol.
Might tinker with this after dinner, seems fun :3
does this even use the left and right rotation matrices
i'm guessing not
if you plan to do any kind of complex rotations this won't be a good solution anymore, but for simple stuff it works ya
Not super sure how Sponge transforms operate in the background tbh
I'll take a look later
quaternions are superior cause they don't have gimbal lock like euler angles and are just straight up faster and more precise than other stuff
That's pretty much what their api says too
Which they do have the ability to use them, I just don't really understand it all that well
i'd recommend watching a few videos on it if you want to understand how the rotations work
though realistically most of the time it doesn't matter
I saved a series somewhere that looked really good, I just need to dedicate the time
if you have the time then i'd recommend taking a real course on linear algebra
quaternions are part of that
if you're doing anything with game development or manipulating positions then it's good to knkow
It's a little late for that :p
never too late!
Also I'm like in the negatives kinda poor, so internet college is my path
lots of online courses for learning that kinda stuff
Here's the series I was gonna push through at some point.
The intractable videos are also convenient
i watched this, honestly it's
it's... okay
but i really would recommend something more rigorous that actually teaches you things properly
3b1b's series won't help you really actually implement solutions for things
If you have better resources I'm all for it.
This is the best (seemingly) I've come across so far
how
https://github.com/KyoriPowered/adventure-platform/issues/182
who else would complain about 1.7.10 if not HIM
I want to work on a small website, mostly static I guess: a config converter tool.
Basically a select for the plugin you want to convert from and to and a set of inputs. For some plugins the amount of inputs will be 1:1 but some could be 1:(2/3). What technologies do you guys recommend for this? I know that can use any web framework, but I'm looking for smth small that can be hosted on vercel or whatever else exists and doesn't require a lot of configuration like a vpn.
Use whatever works that you know best, rather than “what’s best”, as it’s often very opinionated
Nuxt is the go-to if you know Vue, the same way Next.js, Astro, etc are for React
I heard svelte was also pretty good
but I'm no web dev and as charlie said, it's very opinionated 🥲
Oh yeah Svelte is another cool one I’ve heard. But honestly just comes down to preference.
I’d use what I enjoy, rather than what’s the “hottest thing”. The same reason I use PHP, it isn’t new, gets bashed a lot, but it works for me and that’s all that matters :D
Theoretically old PHP gets bashed a lot
it was, well, pretty bad, back in the day
people fail to realize there are frameworks like laravel
although, even without frameworks, PHP has gotten a lot better over the years
Gotta toy with it a bit but I got it closer using quaternions, not quite sure what's happening but I'll give it another go later
https://imgur.com/xNZMBj4
svelte my beloved ❤️
tbf, Svelte's setup and usage is quite simple, ignoring my biased opinion, it sounds like a good fit for what's asked (it being minimal setup and easy usage if I understood correctly)
https://imgur.com/a/QN9gqMQ
Decided to give up trying to rotate block displays (for now) and just using item displays instead, which rotate MUCH easier without any additional translations
To be honest, very true, for me I don't think I'd use PHP without Laravel
I feel like every language get's bashed by certain communities, I mean I see even rust getting bashed quite often even though it's one of the most loved languages
On the topic of web, I rewrote my website and instead of using react like before I just decided to not use any frontend framework and just use htmx with ssr instead and it was one of the best decisions i've ever made
Wow really, see I've always been a Laravel+Vue guy, but things like Framer Motion for animations always catches me to want to use Laravel+React. Always quite hard tbh.
Definitely feel like these days it's all preference, in the end they all achieve the same end goal.
if it works then it works!
Happy it does, makes understanding quaternions a little easier when the axis is centered by default like most example projections 😛
@eager fern ^
someone should report to vercel
thanks! was away from my PC
had to ask a friend in college for help with ts... code to detect if a point is inside a parallelogram in 3d space which it's coplanar with ```java
@Override
public boolean inside(Vector3d point) {
Matrix3d a = new Matrix3d(
pointB.x - origin.x, pointB.y - origin.y, pointB.z - origin.z,
pointC.x - origin.x, pointC.y - origin.y, pointC.z - origin.z,
(pointB.y - origin.y) * (pointC.z - origin.z) - (pointC.y - origin.y) * (pointB.z - origin.z), 1, (pointB.x - origin.x) * (pointC.y - origin.y) - (pointC.x - origin.x) * (pointB.y - origin.y));
a.invert();
Vector3d b = new Vector3d(point).sub(origin);
b.mul(a);
return (0 <= b.x && b.x <= 1 && 0 <= b.y && b.y <= 1);
}
proper hitboxes for block display entities
aka they actually match rotation and scale and translation
Super cool
Most of us are familiar with the Fibonacci sequence. What's the largest Fibonacci number you can compute in 1 second?
I'm not setting any world records, here; I don't own a supercomputer.
You can criticise my code here: https://github.com/GSheaf/Fibsonicci
Timestamps:
00:00 - Introduction
01:06 - Recursion
02:35 - Memoisation
03:39 ...
this man optimized multiplication with fourier transforms
insanity
Guys we had MySQL server
But we also have local database sql
What it’s called ?
SQLite
Hell yeah
H2 is similar
If you want really simple do like express in js
Ktor/Spring serve html, dockerize, use docker-compose, boom, easy to work with, easy to deploy :)
I think that's a bit too simple @ocean quartz
Wdym?
Aren't you joking lol?
Not really, it works pretty well and it's quite simple
I agree with matt
There's no reason to overcomplicate things, especially if you're not really that used with front-end technlogoies.
I will give express a try, thanks fellas ❤️
i mean the helpchat toolbox is in Next.js and hosted for free on Cloudflare iirc
probably better than something like Express, since you're going to want clientside stuff instead of backend stuff
i would honestly recommend looking at the helpchat toolbox code, it does basically what you're saying pretty easily with just typescript types
Thanks Star
Tru
@wintry plinth @cinder flare hey laravel masters, I have a quick question
is it possible to see and access the properties of eloquent model? or do I have to explicitly define them somewhere?
Install either Laravel-ide-helper (it’s a CLI thing) or get “Laravel Data” (it’s a plugin, I use this but it’s paid)
Then it’ll show them :)
From #placeholder-api https://www.decompiler.com/jar/535dd78cb0d0434499492081d2fea073/eventscore (9).jar/org/crayne/eventscore/events/GameEventListener.java - jetbrains annotations now adds runtime checks?
Online decompiler for Java, Android, Python and C#.
Your site or decompiler.com?
its been like that forever pretty much
why isnt it showing the image
Let me know how you get on
fortunately I already had ide helper installed, totally forgot that it generates that stuff for you lol
hahah, yeah it's a good option, I believe Laravel Data uses something similar, but automated. Believe they have a free trial too, but tbh both do such a similar thing 😂
also, I was using Model::query everywhere
wasn't aware about methods such as whereFieldName($value) lol
::query is nice, its a helper laravel added for better auto completion
Model::query()->whereX()->get(); is same as Model::whereX()->get();
Are you dealing with any TypeScript stuff on the frontend?
https://charliej.com/blog/leveraging-laravel-vue-js-and-typescript-for-full-stack-type-safety check this, what i use for Analyse and other projects
A look into how I use Laravel, Inertia, Vue.js, and TypeScript to ensure type safety across my full-stack applications.
it auto creates stuff like this for you
very very handy :D
damn, that is pretty neat
also means frontend completions, since using this i cant go back
I assume you have to define AbcData properties yourself?
the typescript items?
oh ye, ones that you want on frontend
e.g. these are mine
? would be the nullable ones
LOL
Are you using computed props at all?
actually wait
I see the issue, you've only included 2 fields, but the rest aren't there, you've got to either include or label them as optional
well in this case ForumTopicMessageData has all the properties, id .. etc. (all columns in the table)
$messages = ForumTopicMesssage::query()
->where('topic_id', '=', $topicId)
->orderBy('id', 'desc')
->get();
return response()->json([
'messages' => ForumTopicMessageData::from($messages)
]);
this, for some reason, says I provided only two
OH is this multiple?
like multiple messages
Use this for multiple items ForumTopicMessageData::collection($messages)
oh you're prob on the newer version 😂
this analyse codebase has the older ver, which is ::collection, i better update that 😂
Tbh, I am completely rebuilding Analyse anyway, will prob do that on the new version
Ahh you might need spatie enum, I have mine commented out rn
go to typescript-transformer.php
then comment out Spatie\TypeScriptTransformer\Transformers\SpatieEnumTransformer::class,
I use the default enum thing right now, not sure what spaties one does different
Your app doesn’t?
yeah, probably due to being outside js dir
Ahh yes that’s probably why, in typescript transformer you can change the path
kinda weird
it says it generates in resources/js
for me it's in resources
well, I just modified tsconfig to include it
That’s so weird, can always modify it later if needed, it would bother me enough to change it now but that’s ocd 😂
can't really find where to change it lol
maybe that's cuz I already have files there 🤨
yeah, no, no idea lol
I’ll have a look for ya after and see
ah, there it is
Ahhh 😂
just had to generate the config file
Works now?
yeah, seems to be fine for now
Woo, let me know how you get on, DM or @ if you need help. I love LaravelData, such a nice way to get completions
Are you using Vue or react with it
React
one more question
for ex. I have a Topic and it has TopicMessages, for one to many you use DataCollectionOf
what should be used for one to one?
Ah, so it is an ide option
also, something aint right with generation lol
Yeah I use DataCollectionOf but that’s in the older version, let me see what you use now
class AlbumData extends Data
{
public function __construct(
public string $title,
#[DataCollectionOf(SongData::class)]
public array $songs,
) {
}
}
managed to break something, my page doesnt even load now lmao
there aren't that much data for it to hang like that
Oh 😂😂
well I probably made circular reference or smt
Yeah I reckon so, make sure you don’t reference itself
this is very confusing lol, I have no idea why it's throwing an error
nvm I just changed from Carbon to string

haha i did that for now, but i think you'll be fine if you specify the format
this whole stack is pretty nice
though I'm not sure if I'm doing most things right
also just remembered how I managed to delete our entire production database (hobby project, not work) by running tests, because tests were using production connection by default and re-created the whole database from scratch
feel free to ask
hehe
for ex.
this is the way I access data passed from backend
(usePage().props)
and for a lot of other stuff I just axios to fetch, say, logs from the backend
If you pass data from PHP to a React component, e.g.
public function show(User $user) {
return inertia('Users/Show', compact('user'));
}
In React you'd do something like..
export default function ShowUser({ user }: {
user: App.Data.UserData
}) {
// Now do w/e with it
}
is it, technically, the same as usePage().props?
If you setup your usePage() with TS, you won't need to do that props as Blah[]
And kinda
Also set usePage() to a var, otherwise you'll get memory leaks
let page = usePage()
would this be an issue? (as any (ts expert))
I don't store usePage() as a variable anywhere
Yeah anywhere you use usePage, I'd recommend setting it as a variable
Inertia has some weird thing and you can get memory leaks
at least not a lot of refactoring 
oo 😂
god bless backups 🙏
You should only be running tests in a CI or locally or w/e, but you can specify a different database
yeah you shouldn't usePage much
inertia was designed for native props in the framework
Yeah pass as many through the component.
also if you're getting into the inertia stuff a ton, i'd recommend checking out all the Momentum libraries
they really do enhance it dramatically
if you scroll down to the bottom of the README it has all the other ones too
but lock is great for permissions stuff
Whatcha workin on?
staff "control panel" for our server
Oh Coolio
basically a centralized location for all sorts of server logs, staff applications, staff activity, staff/player information
Fair enough
That’s so cool
Eyo nice, working on something similar
Does anyone know if https://oss.sonatype.org/ died? I'm having issues accessing it and am not sure if my PC/Internet is the issue.
Oh, Major outage apparently.
dang 💀
rip
this is why we selfhost (ignore the 12 hours of downtime when i forgor to turn server on after power outage)
idk if u figured it out but there was a major outage
hmmm
Yeah lol.
ARRGHH
👿 💢
can't build my plugin
Rip
offline mode :))
Anyone have experiance with accelerometers and displacement calculations? I cant seem to get my accelerometer to provide accurate enough data to estimate relative displacement
yo @candid bough can you accept my friend request?
for?
to ask about the plugin config cause I'm having issues with the shaping and all that
I'm trying to make shaped recipes
and I can't send a pic of what I have in this chat
@candid bough
what the heck
private AnnotationParser<CommandSender> getAnnotationParser(@UnderInitialization AnnotationParserHandler this)
this is valid java syntax?? i never have seen this formatbefore anywhere lmao
since java 8, yes
what does it do
it's just an explicit receiver parameter, the main reason is to allow annotations on it
in this case, I assume @UnderInitialization is used by some static code analysis tool to warn when reading from instance variables or something like that
Yeah
inner classes can have the enclosing type like that in constructors as well
fun fact: javac allows you to write private AnnotationParser<CommandSender> getAnnotationParser(@UnderInitialization AnnotationParserHandler AnnotationParserHandler.this) although it's not spec-compliant
that's so cursed lmao

How would y'all implement a multi-stage sorting thingamagig for items in an inventory? Basically I want to have multiple stages of sorting and those items that had the same properties in the previos stage will be sorted separately in the next stage. So basically if stage one is A: has permission, then you have lets say 10 items for which the player has the permission, and 10 who the player does not own. Next sorting stage would be by custom model data for example, then only the 10 items will be sorted within them and the other 10 also separately so the items the player has permission for and the items who the player does not have permission to are still split.
sounds like a state machine thingy
What about multiple Comparator#thenComparing calls?
Smth I wrote on mobile to test LOL https://www.programiz.com/online-compiler/7XK4VJtU5Qf0Y
thenComparing is pretty good for chaining like that
@brazen ether with the collisions do you keep tping up if you are not flying?
as in when you are walking on it
https://short.hideoutsmp.net/EMNYyV
peak web design
You can tell I'm good at writing css
it takes more skill to make it that bad, than to make it work properly💀
no
the plugin creates invisible shulker boxes of variable size to approximate any block display/shape
ok so i updated the css for proper resizing and wondered for like a couple hours why it didn't update on my browser but then I remembered I run it through cloudflare proxy and purged my cloudflare cache and it works now 
yes u are sexy
Thanks
I'm not looking for a specific request tho
Looking for someone that's willing to work on a lot of plugins
why you telling me
Idk cause I want to hear myself talk I guess
Lol
but you can use request-paid as just a Hiring Developer
Oh I didn't mean to reply to you, I just realizes, sorry
Ori u didn’t realize
speak for yourself please
because role request isnt a thing anymore
and a total of
2 people regularly start conversations in developer-chat
to make fun of randoms who post here
by two people i actually mean one, andre is literally the only person who starts a conversation there
nononono i've argued with zodd at least 3 times here
give us some credit
not talking about here
Im talking about this channel
😭
ah but Developer role isnt handed out anymore
.
Ori got the role
im cool
sucked up to the mods
Nah they should be recognition
And then u get the role
get on my level
fire
literally 1984
i trash talk kris on an atleast weekly basis surely i get some credit
dkim didnt you get denied a lot
gotta be more consistent with it
real
only one time! 😌
(but there were 10 problems listed lol)
when they send the paste you knew you were cooked 😭
they would deny it just for being annoying
I mean for me I was a 👶 developer
that was 3 and a half years ago...
still a baby developer
👶
get those decades on
me too
kinda crazy like
a good few people here will prolly live 100 years
say u started writing code at 20
most prolly started younger
thas like 40 years until retirement
of developer experience
i'm only 16, started a few years ago :>
i was in a middle school minecraft server dev class
congrats
and everyone was using skript
it only gets worse from here
i decided to just learn java
hopefully not
if scratch.mit.edu counts with like 80% of the projects copied from tutorials then I started at 8
but I had like no idea what I was doing back then
same
ur middle school has a minecraft server dev class??
i think i did some physics simulation stuff in scratch back then
ya
wait thats so cool
most people hated it but it introduced me to java
which is bittersweet
thats NOT a good thing
i was friends with the teacher from a robotics class he did the year before
👴
literally
oldhead
robotics class too
your schools cool
I never even took a look at skript
it was
It’s like python for Minecraft 🤮🫠🤢
i saw the teacher teaching it and i realized like....... nah
my first project was like
Teacher
for the class we made a server
Teaching skript ?
yes
Where the fuck did u study
he was trying his best
Skript isnt that bad
california
people just use it for stuff they shouldn't
Nah Americans are diff
the keyword "minecraft" is literally blocked on our school laptops and you guys play minecraft in school?
i made a battle royale thing with a custom map and like class abilities
yes our yearlong project was literally making a minecraft server
👀
does paper mc on scratch count
i was the only programmer on my team and my other friends built the map
shi was fun ngl
it's not in the url bar so it's allowed
🙃
real
now the only computer science classes i can "take" is like APCSA
have you taken it?
i will in senior year just to have a free period
it should be an ez 5
sorting algos were pretty much the only thing that I had to actually study (but they're easy to learn)
it is incredibly easy
im taking 5 ap's in senior year tho cause i want to
but it's gonna suck
no
anything math related for me is free
I'm taking mech next year but generally e&m I heard was one of the most difficult APs
people just aint using their noggin
🥲
Our advanced physics class sucked
wdym?
how so
Teacher didn't do shit half the time
oh-
We just goofed off, he didn't try and teach most the time
It was fun, but not what I wanted
ya, taking ap's in senior year like i am is a little questionable considering college aps are alreay over by the 2nd semester, but i think it'll be interesting to learn
hopefully senioritis doesnt hit too hard
I took ap physics 1 and our scores depended so much on how much we learned ourselves and how dedicated we were
I got a 5 but I know someone who got a 1 because he didn't care and the teacher gives like 100000 points of extra credit
damn
107% in the class 😎
i'm taking calc bc this year and i'm gonna sleep through the entire period
aboutta ai unblur ur email
noooooooo!!!
get doxxed
ig if it's aps you're interested or somewhat interested in it should be fine
ya it's ap stats, ap physics c, ap gov/econ, ap spanish, apcsa
wait
hopefully ap spanish wont be too bad
isn't that like 7 aps
yes i htink so
it's jsut labeled as this on the course thingy
oh
lol
NITRO
i want nitro

