#dev-general

1 messages · Page 49 of 1

safe crescent
#

hm lets see, oh yeah he talked about porn on a train

brazen ether
#

fair

rotund egret
#

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 😩

safe crescent
#

same with being able to join the army, drink alcohol, drive (17)

#

and other stuff

crude cloud
#

ok

sterile frigate
#

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}}}

remote goblet
#

1.21?

normal talon
#

is Minimessage relaible for hexcolor convertion?

rotund egret
#

I love minimessage

normal talon
#

do you know how to use it? cuz can't figure it out yet

rotund egret
normal talon
#

thanks.

rotund egret
#

Yes 🙂

half harness
normal talon
#

so if i import the libary I don't have to do anycoding?

rotund egret
#

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

normal talon
#

So what is the differnce between spigot plugin and paper plugins. aren't they the same papers performance is better?

rotund egret
#

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.

normal talon
#

so if I do a paper plugin a spigot server won't support it ?

rotund egret
#

I don't believe so, not without extra work on your behalf

normal talon
#

alr I going to use paper 🙂

#

bruh paper only on gradle?

half harness
half harness
#

only paperweight (nms/craftbukkit stuff)

rotund egret
#

Use gradle anyway though :^)

half harness
#

🙃

normal talon
#

I used to code for minecraft like 2 years ago, so much changed and I just started learning OOPD in java

rotund egret
#

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

normal talon
#

well Im learning java in school

#

maybe next year transiton into Kotlin

rotund egret
#

So close

normal talon
#

close?

half harness
#

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

normal talon
#

hmm, so the rest is good to go ?

ocean quartz
#

Gradle is love, Gradle is life

half harness
normal talon
#

yea iknow

rotund egret
#

main class should probably be your group name, but otherwise looks fine

normal talon
#

org.example -> me.cozyleprechaun94?

rotund egret
#

sure

half harness
#

waaaaaait

#

if you already have the plugin

normal talon
half harness
#

why are you making another

#

oh is it to get the template

#

fair

#

👍

normal talon
#

🙂

#

looks good the last picture?

#

Alr haha

#

Bruh paper doesnt have 1.21 yet

half harness
#

🤨

#

it doesn't?

normal talon
#

Get Paper 1.20.6

#

latest build

half harness
#

theres experimental builds

#

for 1.21

#

wait you shouldn't be downloading the jar

normal talon
#

I want to have a server to test the plugin tho:)

half harness
#

ohhhhhh

#

lol

#

ignore me then

rotund egret
#

gotta toggle the experimental builds

half harness
#

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)

normal talon
#

can someone send me the link, im blind af

rotund egret
normal talon
#

well Im going to use gradle

#

oh, so I dont have to put the dependency in the build file?

half harness
rotund egret
#

Paper is cool like that

normal talon
#

oh alr

half harness
#

also spigot already includes commons-lang3 (I see that you have it in your pom.xml)

normal talon
#

W paper

ocean quartz
normal talon
#

wut?

rotund egret
#

Gradle plugin to run test server for paper

ocean quartz
normal talon
#

uuh what is dis

#

oh so I dont need to have a server

normal talon
#

eey jo that gradle stuff takes long to build

#

what is build.gradle(.kts)

#

i only have build.gradle file

ocean quartz
#

You're using groovy Gradle, .kts is Kotlin Gradle

normal talon
#

oh does it matter for the jpenilla?

crude cloud
#

and every thing you try is a nightmare

#

and then you find a simple solution to the problem

#

and it's a blessing

normal talon
#

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

long dagger
#

If you open the folder in explorer and double click on the build.gradle file, and open with intellij, it should be fixed

normal talon
#

also my gradle doesnt transfrom workspace stuff or something

#

I don't know what that error means

half harness
long dagger
#

didnt know that

half harness
#

:))

half harness
#

¯_(ツ)_/¯

normal talon
#

I tried still didn't find the paper documents

#

bruh what?

half harness
half harness
normal talon
half harness
#

Uhhhhhhh

normal talon
#

wait is gradle downloaded on the C drive -_-

ocean quartz
half harness
#

Wait mib

normal talon
#

yea its on the fk C drive 😦

half harness
#

You can probably change it in the gradle properties file in user directory gradle folder or smth

normal talon
#

amazing

half harness
#

Sorry I'm on mobile so I can't really go in detail

normal talon
#

my gradle properties is empty

ocean quartz
#

47mb C drive, your system will explode if it sneezes

normal talon
#

yea , If im correct you can transform some memory right?

half harness
#

Idk if there's an option to move loc but there should

#

If not then symlinks

#

:))

normal talon
#

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

normal talon
#

well im using another drive for my IDE's and stuff I had 500gb free space apperantly sitting there.

cold prawn
#

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?

crude cloud
#

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

brazen ether
#

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.

crude cloud
#

not using mojang mappings nauseated_face

brazen ether
#

u are right

#

i'm using yarn mappings

long dagger
#

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?

inner umbra
#

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.

brazen ether
#

no?

oblique heath
#

impromptu poll: REST API format preferences
TeamGreen api.example.com/v1
TeamBlue example.com/api/v1

solid lodge
#

whats a really good plugin for custom currency that works perfectly with DeluxeMenus?

distant sun
#

Any

tawdry monolith
#

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?

brazen ether
#

and what reason does the client get when they are disconnected

tawdry monolith
brazen ether
tawdry monolith
autumn vine
compact perchBOT
#
FAQ Answer:

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.

distant sun
#

@autumn vine

brazen ether
#

@spare shoal you should add Roll

#

to the gliders

#

like when you turn have it rotate in the opposite direction

spare shoal
crisp briar
#

Hey i am looking into buying a Ubuntu Server which i can host minecraft servers on what hoster and packet would you reccomend ?

brazen ether
heady goblet
#

does deluxmenus support gradiant colors??

flint crow
#

with the &# format

#

it supports minimessage for the actions: [minimessage] n [minibroadcast]

#

it wont work for the display name and lore of an item

distant sun
heady goblet
#

you guys are overthinking this

#

i tried it without anything

#

worked fine

crystal sun
#

looking for someone whos good at making 3d models

distant sun
crystal sun
#

oh mb

distant sun
brazen ether
#

:3

safe crescent
#

i just bought an raspberyy pi

#

gonna try get into hardware coding

brazen ether
#

i should get a doctorate in computer science just for that Dr. prefix

#

and marry someone with a good last name..

rotund egret
#

Honorary doctorates tbh

brazen ether
rotund egret
#

I got one

brazen ether
#

really?

#

as an award for what?

rotund egret
#

My research into economicals

brazen ether
#

that sounds miserable

#

though probably good money

rotund egret
#

I made no money. It's the study of frugality, so it's actually helpful that I am poor

brazen ether
#

I know a dude who recommended me that field who was making $300k and definitely lived like it

rotund egret
#

Nice

#

I'm a hobby programmer

#

Which also makes no money

#

Pairs nice

brazen ether
#

rip

wintry plinth
#

Zodd’s got his lambo outside

rotund egret
#

Shhhh

cinder flare
wintry plinth
brazen ether
#

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

wind patio
#

spark

brazen ether
#

kk

scarlet geyser
#

Anyone have knowledge on Hostings and Panels

#

Please dm me

#

I need some help

#

And I don’t know how to fix it

lavish notch
brazen ether
#

just read his mind bro

scarlet geyser
scarlet geyser
lavish notch
scarlet geyser
lavish notch
#

Only your 'developer' can help and if they're clueless, you're a bit screwed.

brazen ether
scarlet geyser
brazen ether
#

🫀

cinder flare
#

winscp, in the year 2024

#

amazing

lavish notch
#

Heck, I still got PuTTY installed. kek

cinder flare
#

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

scarlet geyser
#

Problem?

cinder flare
#

just an old program and an old protocol lmao

scarlet geyser
rotund egret
#

Anyone know of any IJ plugins that renders minecraft blocks/entities in a tab view or something like that?

rotund egret
#

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

ocean quartz
#

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

rotund egret
#

Considering it, I've been reading over the documentation.
Never used JCEF before, but It looks fairly simple

ocean quartz
#

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 :'))

rotund egret
#

Oh you're right, I actually got it
Took 6 minutes to load the website, but it works pretty okay

wintry plinth
#

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

static zealot
pastel imp
static zealot
#

There's like 2 or 3 base models that most blocks are rendered based on

#

minecraft:block/cube_column and minecraft:block/cube_all

wintry plinth
#

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

brazen ether
#

or

#

just write a python script or something to do it

#

tho that'd be hard with the more complicated block models

kind pike
#

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

quiet depot
#

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

crude cloud
#

didn't FileZilla get full of adware at one point or something?

#

I remember the official installer being very sketchy lol

cinder flare
#

yes definitely lol

wind patio
#

winscp my best choice, filezilla is kinda ass

#

on ubuntu I use Krusader

lavish notch
#

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.

wind patio
#

VSCode as sftp client 💀

#

that IS crimical

distant sun
#

Tbh I wanted to use VSC for sftp while I was making servers, just so I can open the config files directly with it

rotund egret
#

Why not tbh, config files are no less development from the IDE perspective, and having a secondary text editor for that purpose is bloat

half harness
#

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

inner umbra
#

You continue to make it because it feels better to use something you made yourself.

ocean quartz
#

Try it out, see if you like it, if you do use it, if not keep working on yours

wintry plinth
rotund egret
#

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

remote goblet
#

im completely unoriginal so i like remaking other peoples stuff but imo better

placid rose
#

Hi, anybody has experience with custom item stats in MMOItems?

modest bramble
#

with autosell do i have to setup a sell region in order for the autosell to work?

wintry plinth
half harness
wintry plinth
placid rose
#

I really need help for something, do I have to write an expansion plugin? If so is there anything I should know? Thanks alot

half harness
rotund egret
#

Probably

safe crescent
#

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

jagged berry
#

What do you guys think is a good salary for a Minecraft Server Developer?

sly sonnet
#

20$/hour minimum

elder smelt
#

Hey what do you guys think the best budget friendly advertising method would be?

oblique heath
#

make your own (short form?) media content and garner an audience

hazy egret
#

Hiring minecraft paid server developers

#

Urgently needed

#

@everyone

ocean quartz
#

Yeah at least 20$/h

dry harbor
#

Short form content is great, posts on forums and place like Reddit helps, anything organic really. Hiring YouTubers and stuff won’t work organically.

safe crescent
#

literally works every single time

safe crescent
#

trust me it works

dry harbor
#

crunchy peanut butter is good

#

that’ll get me so much publicity 🙏

safe crescent
#

personally i dont even like peanut butter

dry harbor
#

nah that was definitely controversial

safe crescent
#

yeah if your like 13 and a band kid

dry harbor
#

uhhh who said I wasn’t?

safe crescent
#

😭

oblique heath
#

ive never tried crunchy peanut butter

safe crescent
#

personally i wouldnt mainly cause peanut butter tastes bad in my opinion

dry harbor
#

that’s crazy

safe crescent
#

and i could be very wrong but i think nut allergies is like the most common allergy

#

or one of the most

oblique heath
#

i'm allergic to bovine poop

dry harbor
#

Peanut butter and apples 💪

safe crescent
#

im allergic to nothing

#

im very lucky

dry harbor
#

I’m allergic to fruit

#

well

#

Over ripe fruit

safe crescent
#

what one though

#

ok

dry harbor
#

most of them

#

Overripe apples, watermelon, pears

#

Pineapple

safe crescent
#

the one thing apes are literally made to eat

#

and u cant eat it

dry harbor
#

Makes my throat itch a lot

#

I was lactose intolerant too but I grew out of that

safe crescent
#

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

jagged berry
ocean quartz
#

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

jagged berry
#

By the way, asking this to help a friend

#

Is it necessary for him to be a plugin dev?

ocean quartz
#

Not necessarily plugin, modding is needed by some too, but yes Java/Kotlin programmers is what we are talking about

jagged berry
#

Oh

#

what about YAML ones? like who knows how to create a good looking GUIs, tab lists, and setup servers?

ocean quartz
#

Oh that I have no idea, have never seen a big server/team hiring for that

jagged berry
#

Any expected range? (:

#

And thank you for your assistance!!

ocean quartz
#

Not sure about range for that, but probably not very high :')

jagged berry
#

No worries, thanks once again, and have a great day! (;

half harness
#

or do the big servers just custom code it..?

ocean quartz
# half harness wait out of curiosity who does that stuff then?

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

half harness
#

ohh I see
I forgot those roles existed

ocean quartz
#

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

slate elk
#

Good hosts Asia

#

Ovh are scammers and assholes

#

Other suggestions 😛😋

lavish notch
#

Infrastructure sucks unless you pay an arm and a leg.

safe crescent
#
  • its asia
#

such a mid continent

harsh ivy
#

Mr. @eager fern idk but I was service muted without any reason, it's been approx a month.
Unmute me?

pastel imp
#

Lmao

eager fern
#

You will be unmuted 30 days exactly from today

rotund egret
eager fern
rotund egret
#

Interfering is an interesting word

#

Didn't realize they didn't have a scroll wheel

eager fern
#

Why do you always join into stuff you aren’t apart of?

rotund egret
#

Public chat I guess

eager fern
#

Same with causing controversial arguments

rotund egret
#

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.

pastel imp
#

I assume you speaking with zodd or grandpa guy

#

Lol

slate elk
#

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

brazen ether
eager fern
harsh ivy
brazen ether
eager fern
harsh ivy
#

So it means time wasn't wasted

eager fern
#

If you want we can discuss this further in dms with showing the proof shown to us

harsh ivy
# eager fern I can and I did

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

eager fern
harsh ivy
#

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

crude cloud
safe crescent
safe crescent
pastel imp
#

Lmao

#

Wasn't this guy muted for extra time specifically because he complained about a small mute?

safe crescent
#

who, coolallrounder?

rotund egret
harsh ivy
harsh ivy
harsh ivy
safe crescent
#

fr

hoary lake
#

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

thorn crescent
#

how do the placeholders work exactly?

#

when are they replaced with the actual value?

inner umbra
#

/minecraft:kill @e [type=cave_spider]

crude cloud
brazen ether
#

try using google before asking questions

brazen ether
#

btw discord minimum age is 13 so if you're under that might wanna step off

prisma wave
#

Chill

rotund egret
#

Bros never seen a cat before

quiet lichen
#

lol

#

L that dude for being rude

cerulean ibex
#

youre* bro

quiet lichen
crude cloud
#

what if you wanted to
JNI_GetCreatedJavaVMs
but god said:

Creation of multiple VMs in a single process is not supported

cerulean ibex
#

fork java

potent nest
crude cloud
#

to get the created java vms

potent nest
remote goblet
#

thoughts and concerns ?

potent nest
#

java.io.File in 2024 despairge

brazen ether
#

use nio smh

rotund egret
#

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

ocean quartz
#

Yeah lmao

remote goblet
#

lmaooo

static zealot
#

wtf is going on in there

tranquil crane
#

can somebody take away Ori's coding license

pastel imp
#

lol

tranquil crane
#

is that a var in a data class oh the horror why is that even legal

ocean quartz
#

Not just a var in a data class, but a non-component one

rotund egret
#

How might I make a display entity scale from the center instead of a corner, I can't quite figure it out

tranquil crane
#

maybe I'm just wrong it's been a week since I've messed with them

rotund egret
#

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

ocean quartz
#

boing

tranquil crane
# rotund egret https://i.imgur.com/ZexypdA.gif

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

rotund egret
#

I don't even know how i'd work around that. Teleporting the entity as its scaling to move the "anchor" point?

tranquil crane
#

why can't they be consistent

ocean quartz
#

That's hilarious omega_lul

tranquil crane
#

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

rotund egret
#

huh that seems odd, I'm sure it makes sense though

tranquil crane
#

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

rotund egret
#

Yep perfect

#

Thanks so much

#

entity.offer(Keys.TRANSFORM,Transform.of((scale.div(2.0).negate())).scale(scale)) :^)

tranquil crane
#

to center the item display to get it to scale the same way you need to only apply the translation on the y value

tranquil crane
rotund egret
#

Sponge

tranquil crane
#

I was not expecting sponge

rotund egret
#

A lot of crossover and more people here, so for general support it's easier to ask here 😛

tranquil crane
#

that does look very much like the sponge api does though so checks out

crude cloud
#

entity.offer ( Keys.TRANSFORM, Transform.of ( ( scale.div ( 2.0 ) .negate ( ) ) ) .scale ( scale ) )

#

md_5ified

tranquil crane
#

no thanks

#

you're missing a D or F on that number

crude cloud
#

oh, thank you

crude cloud
rotund egret
#

Suggestions for the same thing but for rotation? Seems a little more complicated

rotund egret
#

Ok, well if you have a suggestion for how to rotate a display entity around its center let me know

brazen ether
#

didn't you study math

brazen ether
rotund egret
#

Not this kind of math tbqh

brazen ether
#

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

rotund egret
#

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)
surreal garnet
rotund egret
#

It's a block display, and the anchor originates in the corner so it defaultly rotates odd

surreal garnet
#

Block Display? Interesting

rotund egret
#

Display entities come in 3 flavors, block, item, and text. And they're lighter than armour stands

surreal garnet
#

Oooo

rotund egret
surreal garnet
#

Yeah I’d normally do stuff with armour stands but I guess that’s what I’m used to doing.

#

Ah

rotund egret
#

That was the traditional way, 1.20.x introduced them IIRC

surreal garnet
#

Ohhhh okay

#

Makes sense why I haven’t really heard of it lol.

#

Might tinker with this after dinner, seems fun :3

brazen ether
#

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

rotund egret
#

Not super sure how Sponge transforms operate in the background tbh

#

I'll take a look later

brazen ether
#

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

rotund egret
#

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

brazen ether
#

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

rotund egret
#

I saved a series somewhere that looked really good, I just need to dedicate the time

brazen ether
#

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

rotund egret
#

It's a little late for that :p

brazen ether
#

never too late!

rotund egret
#

Also I'm like in the negatives kinda poor, so internet college is my path

brazen ether
#

lots of online courses for learning that kinda stuff

rotund egret
brazen ether
#

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

rotund egret
#

If you have better resources I'm all for it.
This is the best (seemingly) I've come across so far

crimson cloak
#

how

distant sun
distant sun
#

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.

wintry plinth
#

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

half harness
#

I heard svelte was also pretty good
but I'm no web dev and as charlie said, it's very opinionated 🥲

wintry plinth
#

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

wind patio
#

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

rotund egret
pastel imp
#

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)

rotund egret
wintry plinth
ocean quartz
#

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

wintry plinth
rotund egret
#

Happy it does, makes understanding quaternions a little easier when the axis is centered by default like most example projections 😛

wintry plinth
#

@eager fern ^

cerulean ibex
#

someone should report to vercel

eager fern
brazen ether
#

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

rotund egret
#

Super cool

brazen ether
#

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 ...

▶ Play video
#

this man optimized multiplication with fourier transforms

#

insanity

slate elk
#

Guys we had MySQL server

#

But we also have local database sql

#

What it’s called ?

#

SQLite

#

Hell yeah

rotund egret
#

H2 is similar

long dagger
ocean quartz
distant sun
#

I think that's a bit too simple @ocean quartz

distant sun
#

Aren't you joking lol?

ocean quartz
#

Not really, it works pretty well and it's quite simple

static zealot
#

I agree with matt

#

There's no reason to overcomplicate things, especially if you're not really that used with front-end technlogoies.

distant sun
#

I will give express a try, thanks fellas ❤️

cinder flare
#

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

distant sun
#

Thanks Star

brazen ether
#

argh

#

hard stuff is hard

rotund egret
#

Tru

wind patio
#

@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?

wintry plinth
#

Then it’ll show them :)

wind patio
#

sad stuf

#

thank god for ide helper

distant sun
wind patio
#

BAD GATEWAY!!!

distant sun
wind patio
#

decompiler

#

nvm its fixed

#

im not disabling my adblocker

#

👿

cerulean ibex
#

why isnt it showing the image

rotund egret
wintry plinth
wind patio
wintry plinth
wind patio
#

also, I was using Model::query everywhere

#

wasn't aware about methods such as whereFieldName($value) lol

wintry plinth
#

::query is nice, its a helper laravel added for better auto completion

#

Model::query()->whereX()->get(); is same as Model::whereX()->get();

wind patio
#

yeah, not sure which one I like more tho

wintry plinth
#

Are you dealing with any TypeScript stuff on the frontend?

wind patio
#

yeah, trying to, at least

#

when I'm not lazy to create an interface

wintry plinth
#

it auto creates stuff like this for you

#

very very handy :D

wind patio
#

damn, that is pretty neat

wintry plinth
#

also means frontend completions, since using this i cant go back

wind patio
#

I assume you have to define AbcData properties yourself?

wintry plinth
wind patio
wintry plinth
#

oh ye, ones that you want on frontend

#

e.g. these are mine

#

? would be the nullable ones

wind patio
#

yeah time to re-do half of my codebase

#

lets get it

wintry plinth
#

LOL

wind patio
#

thats's weird

wintry plinth
#

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

wind patio
#

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

wintry plinth
#

OH is this multiple?

#

like multiple messages

#

Use this for multiple items ForumTopicMessageData::collection($messages)

wind patio
#

yeah, probably, I assume I have to map each one?

#

oh, lol

#

ok

#

::collect() btw 😄

wintry plinth
#

oh you're prob on the newer version 😂

wind patio
#

or different version

#

yeah

wintry plinth
#

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

wind patio
#

something aint right

#

I assume I need another lib lol

wintry plinth
#

Ahh you might need spatie enum, I have mine commented out rn

wind patio
#

yeah

#

all good

wintry plinth
#

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

wind patio
#

yeah, I can see it generated the type

#

small issue, it doesn't seem to recognize it

wintry plinth
#

Your app doesn’t?

wind patio
#

yeah, probably due to being outside js dir

wintry plinth
#

Ahh yes that’s probably why, in typescript transformer you can change the path

wind patio
#

kinda weird

#

it says it generates in resources/js

#

for me it's in resources

#

well, I just modified tsconfig to include it

wintry plinth
#

That’s so weird, can always modify it later if needed, it would bother me enough to change it now but that’s ocd 😂

wind patio
#

can't really find where to change it lol

#

maybe that's cuz I already have files there 🤨

#

yeah, no, no idea lol

wintry plinth
#

I’ll have a look for ya after and see

wind patio
#

ah, there it is

wintry plinth
#

Ahhh 😂

wind patio
#

just had to generate the config file

wintry plinth
wind patio
#

yeah, seems to be fine for now

wintry plinth
#

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

wind patio
#

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?

distant sun
wind patio
#

also, something aint right with generation lol

wintry plinth
#

class AlbumData extends Data
{
    public function __construct(
        public string $title,
        #[DataCollectionOf(SongData::class)]
        public array $songs,
    ) {
    }
}
wind patio
#

managed to break something, my page doesnt even load now lmao

#

there aren't that much data for it to hang like that

wintry plinth
#

Oh 😂😂

wind patio
#

well I probably made circular reference or smt

wintry plinth
#

Yeah I reckon so, make sure you don’t reference itself

wind patio
#

oof

wind patio
#

this is very confusing lol, I have no idea why it's throwing an error

#

nvm I just changed from Carbon to string

wintry plinth
#

haha i did that for now, but i think you'll be fine if you specify the format

wind patio
#

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

wintry plinth
wintry plinth
wind patio
#

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

wintry plinth
#

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
}
wind patio
#

is it, technically, the same as usePage().props?

wintry plinth
#

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()

wind patio
#

would this be an issue? (as any (ts expert))

#

I don't store usePage() as a variable anywhere

wintry plinth
#

Yeah anywhere you use usePage, I'd recommend setting it as a variable

#

Inertia has some weird thing and you can get memory leaks

wind patio
#

at least not a lot of refactoring fingerguns

wintry plinth
#

oo 😂

wind patio
wintry plinth
cinder flare
#

yeah you shouldn't usePage much

#

inertia was designed for native props in the framework

wintry plinth
#

Yeah pass as many through the component.

wind patio
cinder flare
#

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

surreal garnet
wind patio
surreal garnet
#

Oh Coolio

wind patio
#

basically a centralized location for all sorts of server logs, staff applications, staff activity, staff/player information

surreal garnet
#

Fair enough

wintry plinth
pastel imp
lavish notch
#

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.

crude cloud
#

dang 💀

oblique heath
#

rip

#

this is why we selfhost (ignore the 12 hours of downtime when i forgor to turn server on after power outage)

cerulean ibex
rotund egret
#

hmmm

lavish notch
wind patio
#

ARRGHH

#

👿 💢

#

can't build my plugin

distant sun
#

Rip

half harness
long dagger
#

Anyone have experiance with accelerometers and displacement calculations? I cant seem to get my accelerometer to provide accurate enough data to estimate relative displacement

frozen compass
#

yo @candid bough can you accept my friend request?

candid bough
#

for?

frozen compass
# candid bough for?

to ask about the plugin config cause I'm having issues with the shaping and all that

candid bough
#

th shaped recipes dont work yet

#

the*

#

shapeless*

frozen compass
#

I'm trying to make shaped recipes

#

and I can't send a pic of what I have in this chat

#

@candid bough

forest pecan
#

what the heck
private AnnotationParser<CommandSender> getAnnotationParser(@UnderInitialization AnnotationParserHandler this)

this is valid java syntax?? i never have seen this formatbefore anywhere lmao

potent nest
#

since java 8, yes

forest pecan
#

what does it do

potent nest
#

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

forest pecan
#

Yeah

potent nest
#

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

forest pecan
#

that's so cursed lmao

distant sun
agile galleon
#

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.

crude cloud
#

sounds like a state machine thingy

distant sun
#

What about multiple Comparator#thenComparing calls?

crude cloud
#

oh sorting items in an inventory lol

#

yeah comparator thenComparing chains then

agile galleon
#

just did one comparator

#

its a teeny bit cursed but eh

crude cloud
#

thenComparing is pretty good for chaining like that

cobalt marlin
#

@brazen ether with the collisions do you keep tping up if you are not flying?

#

as in when you are walking on it

snow jackal
#

You can tell I'm good at writing css

wind patio
#

it takes more skill to make it that bad, than to make it work properly💀

brazen ether
#

the plugin creates invisible shulker boxes of variable size to approximate any block display/shape

snow jackal
#

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 ytSelenDeadInside

remote goblet
#

im so funny

brazen ether
remote goblet
#

omg stop i'm gonna cry

#

ilysm

distant sun
primal kestrel
#

Thanks

primal kestrel
#

Looking for someone that's willing to work on a lot of plugins

remote goblet
#

why you telling me

primal kestrel
#

Idk cause I want to hear myself talk I guess

distant sun
#

Lol

remote goblet
#

but you can use request-paid as just a Hiring Developer

primal kestrel
#

Oh I didn't mean to reply to you, I just realizes, sorry

slate elk
remote goblet
#

what do you want

#

why are you speaking to me

slate elk
#

We r coding slaves

#

For free

#

Why is this chat is even open for non devs

remote goblet
#

speak for yourself please

#

because role request isnt a thing anymore

#

and a total of

#

2 people regularly start conversations in developer-chat

brazen ether
remote goblet
#

by two people i actually mean one, andre is literally the only person who starts a conversation there

brazen ether
#

give us some credit

remote goblet
#

not talking about here

slate elk
#

Nah there was a thing when people who post gpt code

#

And ask for help

remote goblet
#

Im talking about this channel

slate elk
#

😭

brazen ether
remote goblet
slate elk
#

Ori got the role

remote goblet
#

im cool

slate elk
#

🥴definitely

#

🥳

brazen ether
#

sucked up to the mods

remote goblet
#

yeah sure

#

im annoying and rude no one will listen to me if i do that

slate elk
#

And then u get the role

brazen ether
remote goblet
#

fire

brazen ether
#

literally 1984

remote goblet
#

i trash talk kris on an atleast weekly basis surely i get some credit

half harness
#

lol

#

🥲

remote goblet
#

dkim didnt you get denied a lot

brazen ether
remote goblet
#

real

half harness
#

only one time! 😌
(but there were 10 problems listed lol)

brazen ether
#

just write in malbolge

#

they can't critique it then

remote goblet
#

when they send the paste you knew you were cooked 😭

#

they would deny it just for being annoying

half harness
#

that was 3 and a half years ago...

brazen ether
#

still a baby developer

half harness
#

👶

brazen ether
#

get those decades on

remote goblet
#

me too

brazen ether
#

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

remote goblet
#

i started it at 15

#

or was it 16

#

i dont remember anymore

brazen ether
#

i'm only 16, started a few years ago :>

#

i was in a middle school minecraft server dev class

remote goblet
#

congrats

brazen ether
#

and everyone was using skript

remote goblet
#

it only gets worse from here

brazen ether
#

i decided to just learn java

brazen ether
half harness
#

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

brazen ether
#

same

remote goblet
#

i learnt discordjs at 14 then java at 15

#

im now 20

half harness
brazen ether
half harness
brazen ether
#

which is bittersweet

remote goblet
#

thats NOT a good thing

brazen ether
#

i was friends with the teacher from a robotics class he did the year before

half harness
remote goblet
#

literally

brazen ether
half harness
#

your schools cool

slate elk
brazen ether
slate elk
#

It’s like python for Minecraft 🤮🫠🤢

brazen ether
#

my first project was like

slate elk
#

Teacher

brazen ether
#

for the class we made a server

slate elk
#

Teaching skript ?

brazen ether
#

yes

slate elk
#

Where the fuck did u study

brazen ether
#

he was trying his best

remote goblet
#

Skript isnt that bad

brazen ether
remote goblet
#

people just use it for stuff they shouldn't

slate elk
#

Nah Americans are diff

half harness
brazen ether
brazen ether
half harness
#

👀

remote goblet
brazen ether
#

i was the only programmer on my team and my other friends built the map

#

shi was fun ngl

half harness
#

🙃

remote goblet
#

real

half harness
#

I remember playing that tho

#

pretty impressive

brazen ether
#

now the only computer science classes i can "take" is like APCSA

half harness
brazen ether
half harness
#

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)

brazen ether
#

it is incredibly easy

#

im taking 5 ap's in senior year tho cause i want to

#

but it's gonna suck

half harness
#

5 wow

#

ap csa should help in balancing tho

brazen ether
#

yea

#

ap physics C and ap stats are free as well

half harness
#

have you taken csp?

#

physics c is free?!

brazen ether
#

no

brazen ether
half harness
#

I'm taking mech next year but generally e&m I heard was one of the most difficult APs

brazen ether
#

people just aint using their noggin

half harness
#

🥲

brazen ether
#

u gotta use the calc

#

slang for calculator btw

rotund egret
#

Our advanced physics class sucked

half harness
#

wdym?

brazen ether
#

how so

rotund egret
#

Teacher didn't do shit half the time

half harness
#

oh-

rotund egret
#

We just goofed off, he didn't try and teach most the time

#

It was fun, but not what I wanted

brazen ether
#

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

half harness
brazen ether
#

damn

half harness
#

107% in the class 😎

brazen ether
#

i'm taking calc bc this year and i'm gonna sleep through the entire period

brazen ether
half harness
#

noooooooo!!!

brazen ether
#

get doxxed

half harness
brazen ether
half harness
#

wait

brazen ether
#

hopefully ap spanish wont be too bad

half harness
#

isn't that like 7 aps

brazen ether
#

it's 5

#

ap gov/econ is 1

half harness
#

huh

#

AP United States Government and Politics?

brazen ether
#

yes i htink so

brazen ether
half harness
#

oh

brazen ether
#

:Ohh:

#

bruh

half harness
#

lol

brazen ether
#

NITRO

half harness
#

rip nitro?

#

💀

brazen ether
#

i want nitro