#help-development
1 messages · Page 1151 of 1
I think, if I'm remembering correctly, it fired a PlayerPickupItemEvent
The PlayerPickupArrowEvent was my first PR 9 years ago lol
to spigot or hypixel fork
sorry didn’t mean to ping
Spigot
Is there any way how to apply custom shaders for players? I remember when making mod there was option to load custom shaders. It used the already in game shaders with custom values
I used something like that in mcreator to create trippy effects: https://mcreator.net/plugin/99849/shaders-utils
you could load custom .json files and in it include what shaders from minecraft do you want and what values
like this: https://pastebin.com/VNhUG8ad
I know there are some ways to apply custom shaders in vanilla.
For this I'd probably direct you to the Minecraft Commands discord server, they will most likely be more equipped to help.
Erm this is spigot server
Yes
Resource packs have integrated shaders for a while now
And no this is wrong
You'll most likely want shaderLABS
Ye seems better, wasn't aware of this server.
But I do remember seeing a resource for exactly this in the #resources of MCC
Throw me the link to it
I've never actually found a proper place to find help with resource packs and I'm banned from the official mc server
Thanks
Oh you meant the server itself
Ofc
Hi everyone
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
Does anyone know how to put special characters in minecraft?
Oh yes i was just typing
What "special characters"
If you mean font, then probably ask here.
Or if you don't know how to use fonts with spigot just us ComponentBuilder
You can send them with CommandSender#spigot#sendMessage
Oh no i mean like a sword or a pickaxe
Custom model data
But like uhmm vanilla theres no way?
Yeah wait nvm that's fonts
i am in shader labs, I want to know for exmple if I can toggle shaders without changing resource pack
You can compare by game time but that's all you can do afaik
you would type /testshader and the shader would turn on instantly
Then you'd need to set the gametime to a specific number
For what
and check for that in your shader, if not, do vanilla behaviour
There's a GameTime float uniform you can include
{ "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] },
post processing shaders
Is there a way to display player head as font?
please don't as it can cause major performance issues, since you have to render 16x16 small characters in one message. and if you have too much of that, you can get hugeee fps drops
consider using something like noxesium
@blazing ocean are you good at physics
no
Darn D:
I hate resource packs
why?
Tedious, very tedious
yeah but im doing it with itemsadder i think so it is easier
If itemsadder is able to make displays like that I don’t think it should be called itemsadder lol
ok i got the plugin from another server
That's very illegal
Don't pirate plugins please
oh not like that
i got the plugin name from another discord server
As I know, some plugins like Magic Avatar support that function, is it also bad for the server performance?
can you send a link to that
Because I've seen one that just adds the heads manually to a rseource pack lol
also the symbols used for avatars can cause lag to the client
So they're just spamming pixels as well
getting the name of a plugin from a discord server?
i would never pirate
always a bad idea
yup
i didnt do anything illegal bro
last time I spammed pixels I got banned from the server (it was a swastika)
what
Oh I thought you kept saying you downloaded it from discord
nah bro
It'd be easier with ItemsAdder but then that's their territory
So they'd know best about that stuff
hungarian
understandable
how did you know LOL
cursed
it just looks like that
Raydan is from south Dakota he speaks fluent Hungarian
ok i didnt know pepole even really knew about Hungary lol
I speak fluent proto-slavic but not much more than that
What is proto Slavic
sorry, but what do you mean by spamming pixels?
Yeah we all learn about it in geography
the one big language from which all slavic languages derived, kinda like latin for romance languages
ok that is nice
Reminds me of when I tried to do pixle by pixel inventory renders it brought my computer to it's knees
Ahhh I see
Sending 256 tiny characters offsetted vertically and using negative spaces for horizontal offset
yeah
If you want to have more than like 5 or so you'll already get framedrops
that poor font renderer lol
Exactly
that shit is looping like my socks in a washing machine
I see. It may cause a lot of problems 😦
i was thinking the language tho
nice qr code you got there
real
I need a qr code to a game physics class
where can i find the anvilgui library .jar download?
don't ping random people
no
I'll be nice
yes but there is no jar to put in the project structure
raydan kat wanna watch me fuck glsl
use maven or gradle
gradle
I wann watch you learn some physics so you can help me kek
nah i'm good
that wasn't a question
yes but
not that hard ngl
Cannot resolve symbol 'AnvilGUI'
Cannot resolve symbol 'AnvilGUI'
'set(java.lang.String, java.lang.Object)' in 'org.bukkit.configuration.MemorySection' cannot be applied to '(java.lang.String, <lambda parameter>)'
'set(java.lang.String, java.lang.Object)' in 'org.bukkit.configuration.MemorySection' cannot be applied to '(java.lang.String, <lambda parameter>)'
Cannot resolve symbol 'AnvilGUI'
!create
code?
we aren't magicians, and black magic is forbidden anyways
?paste your pom
so?
Any physics nerds out there?
Having an issue with trajectory calculation, based on the initial direction the player is looking there are discrepancies when it comes to the flight path... https://paste.md-5.net/regusofegu.java
This is what I am currently working with, the video shows what I mean when it comes to the discrepancy
@blazing ocean sorry for the ping
event.getView().getTitle().equals("IMPOSTA GENERE")
I mean I want to download the jar to put in project structure
just add it in maven
i use gradle
This is what maven and gradle do for you automatically. You just need to add the dependency.
or in gradle
where download
ngl I feel like ?learnjava
Check the dependency's github page for usage instructions. If they don't have instructions for your tool, then you're kinda out of luck.
Maven and gradle are kinda compatible, but you'd have to convert maven syntax to gradle syntax or vice versa. And even then, it's not guaranteed to work.
??
Dawg
You need to learn about the tooling that you are using. There is no direct download for what you want. (At least not known to me)
The whole point of using these tools is to not have to manually download binaries and import them to your project. The tool does all the heavy lifting for you and automatically imports it to your project.
where do i find this tool
You already said that you are using it....
.
yes but I want to put this addiction how do I do I'm not understanding
Use a translator or something cuz he's said it 3 times
you need a version
where and which one should I put
Do you have eyes?
doesn't look like it
The version you need is the same one that is listed in the maven version tag.
I was sending you an example
Did you just make that?
yes
did you click sync gradle changes
Did you reload gradle?
i love the part where the readme says to add that one repo and you don't add that one repo
i love the part where the README is not read
How?
💀
It's a fucking rabbit hole at this point
where.
Bruh
when.
Right side of the IntelliJ IDE
What version are you on
instructions unclear using netbeans
yeah idk where you got that you have to use that repository syntax
miles not glazing menutype challenge (impossible)
It's honestly api worth glazing
Once I get the view builder merged you won't hear me shut up
It's honestly something I've wanted for ages
I've had a version of it in my personal api for years
bump
I love waiting 40 minutes for a map to generate
that's real neat
but you know what's even better
waiting 3 hours
but you know what's even better
waiting for 13.5 hours
anyways
how skilled is an average dev that has made at least one plugin
the average is very low
The YouTube tutorial copy first plugin or like your own that you published?
youtube tutorial copy first plugin
alr
I feel like that should answer your question
I thought most of stupid people were filtered out by installing an ide part
Minecraft plugin allows too many idiots access
I thought that only applied to skript
plugin for InteliJ
lol
okay and like active people in this server
how high are they in percentage
bad wording
thats
no good
you just say the average is very low
and most above average?
😭
yes most devs do not hang here
there are a LOT of terrible devs out there dragging teh average down
yes but like
if average is very low
doesnt that make above average not too great either
I fyou have 100 devs and only 5 are excellent and 10 and good. The rest being crap, the average is crap
no way, there are that many shit devs??
not really a spigot question, but what would I have to use if I want others to be able to add my plugin's API to their java project by including a URL in their build.gradle/pom.xml?
more
😭
you add a dependency not a url
you need Your api accessible in a maven repository
or at least on GitHub
If you have the package published on Github they can use jitpack to use it
How useful are fancy time efficient algorithms in plugin coding
like dfs and bfs
and dsu
and like
hm
interval tree?
I don't often read/use others algorithms
do they even have use cases though
im trying to think of a usecase for bfs or dfs in mc plugins
world generation or something?
probably, I'd have to read them to know though
no, never used them
how much have you been a dev for?
holy
ikwym
well
that kind of answers my question
💀
I swear there's something wrong with my brain
I've been doing some really productive work since getting back to the gym for several hours, get up, go to the kitchen and think to myself that I need to get some work done like I've just been fortnite default dancing all day long instead of working
how old are you
he's 4 years old, he's a 10x dev
I think that's what we call a workaholic kek
damn
put me in your will grandpa
I intend to outlive you 😉
that's because you've not yet spotted the banana peel I put under your walker old man
lol
I can't tell if spark is giving me a bad heap dump or if eclipse memory manager is just bad in general and can't open it
both 🤔
bump 😄
Wait what
Sexy man, I can relate
I do home calesthenics instead tho
You are adding and subtracting with FP math. you are likely to have minor variances
Edgar, you're 60?
Not quite, but yes
I no longer work. Havn't worked since I was 30
How did you retire so early?
I was around for Y2K so did OK with rewriting cobol programs to handle the date wrap around
Uhhh
So that’s the secret
Y2k?
Now where did I put my Time Machine
Oh you sweet summer child
Y2K was when everyone thought computers were going to explode when the year changed from 1999 to 2000
Many programmer never considered that using a two digit date to record the year would break 30 years later
How old are you, coll?
Much money was made in accounting and banking rewriting many systems to not go back to 1970
Oh
You were alive back then as well?
You were 2
Technically not even 2 yet but yeah
Hi, i'm trying to get the playerrank from my playerdatabase class running asynchronously but it won't work because i think lambada doesn't accept changing on variables only accepting final or a variable that doesn't change i've been trying to figure it out for 3 hours nothing clicked in my mind that worked please can anyone help and explain i'll appreiciate it alot thx <3 this is the code for anyone interested:
https://pastes.dev/1JeLi8LeuN
Yeah you can’t do that
The return statement run immediately, while the async task takes an unknown amount of time
Use a CompletableFuture
And a cache
ok i'll try it out
any thoughts of how I can do a biome system that has hard, sort of rounded but not exactly round borders, works in 3d and is relatively fast to calculate
just simplex/perlin noise doesn't really do the kind of hard insular borders I want
maybe I could randomly drop some spheres and have them compete for a sphere of influence
private CompletableFuture<String> fetchRank(Player player) {
return CompletableFuture.supplyAsync(() -> {
try {
return Main.getInstance().getPlayerDatabase().getPlayerRank(player);
} catch (Exception e) {
//log it or something
return null;
}
});
}```
if your PlayerDatabase#getPlayerRank() queries your db though it's gonna be a problem
so as theguy above said u wanna cache it
I guess like a pseudo-3d-voronoi-noise or something
What on earth are you making now
I mean
a pseudo-3d-voronoi-noise or something, I guess
I can already tell it will be sort of annoying to optimize
maybe I just shouldn't care that much
guess I'll see how many spheres I end up with
I need biomes for the variants to make sense
plus for general eligibility
soft borders wouldn't be terrible either and it would help with the generation but... hm...
also come to think of it it would make more sense to make it a flattened sphere of influence which the math of that is going to be fun to figure out for sure
Sure but the trajectory calcs are basically swapped, in that clip depending on the initial direction the player is facing this isn’t the “deviation” I’m looking for, the disc should fly the same way. Some more context being the technique of the throw (backhand tends to make the disc fly leftward at the end of the flight which relates to the fade of the disc)
oh yeah I keep forgetting I need a resource staff
any lurkers
a guy is trying to help me update my resource post and his message in the discussion forums got held up for moderation
I need him to be able to post it so I can copy it without losing all the formatting
o.o
I’m wondering if my best solution isn’t to add some param for direction and add/subtract based on that… feels a bit inconvenient and more of a hassle than need be, perhaps a better way? I’m not sure
it depends which had you throw with. If you use your right hand with a back hand throw, it should be easier to make it curve to the right since its more natural to throw it more left. And the opposite is true of the other side. With a forward throw its the opposite with right hand making it easier to curve to the left. The main difference between the two throwing types is that a back hand throw the hang time happens sooner with less power where as the forward hand throw you can give a lot of power but it won't start its hang time until later allowing it to go farther. I guess an easy way to think about it is, its equivalent to a putter vs driver in golf lol
Well I was going to incorporate right / left hand mechanics, in that clip the algo used for trajectory calculation is the same for both directions causing north facing throws to veer right and south left, this is incorrect as my goal is to keep the throws consistent when it comes to the way it flies irl right? So just in the fact that the player is now looking another direction the way the disc flies is the same technically, but on a right handed backhand throw the disc should always end veering to the left unless it’s a very unstable disc (current disc is 9,5,-1,2) based on these numbers and the technique I mentioned, the disc should start out relatively straight with a small rightward turn and then fade back down to the left at the end of the throw
I’m not sure if I’m explaining this well kek
Let me stop driving and I’ll ping ya
guys idk if i'll be able to publish my paper about AI
by then I might be heading to work 😛
can we see the code?
you can still publish even though you have to give credit
without his permission?
credit your gardener too
yes because giving credit just means you acknowledge that they played a role. It doesn't mean they were the ones that wrote the book nor does it mean they are owed any royalties
?learnjava
For Beginners:
Codecademy - Learn Java: Interactive Java programming course from basics to more advanced concepts. Perfect for absolute beginners.
https://www.codecademy.com/learn/learn-java
JetBrains Academy - Java Developer Track: Learn by doing with projects and challenges. It covers Java fundamentals to advanced topics.
https://www.jetbrains.com/academy/
Udemy - Java Programming Masterclass for Software Developers: Updated courses that cover Java 8 to Java 17 features. Suitable for those who prefer structured learning.
https://www.udemy.com/course/java-the-complete-java-developer-course/
For Intermediate to Advanced Learners:
Oracle Java Tutorials: The official guides by Oracle for Java programming—great for understanding the depth of Java.
https://docs.oracle.com/javase/tutorial/
Baeldung - Learn Java and Spring: Focus on Spring Framework and modern Java technologies. Best for intermediate learners aiming to expand their knowledge.
https://www.baeldung.com/
Practice and Hands-on Learning:
Exercism - Java Track: Solve exercises and get feedback from mentors. Great for practicing coding skills.
https://exercism.io/tracks/java
LeetCode: Practice your coding skills and prepare for technical interviews with Java.
https://leetcode.com/
Free Resources and Documentation:
Java Programming and Documentation: A comprehensive collection of Java programming guides, tutorials, and API documentation.
https://docs.oracle.com/en/java/
Community and Support:
Stack Overflow: A vast community of developers. Great for getting help with specific problems or understanding concepts.
https://stackoverflow.com/questions/tagged/java
r/learnjava on Reddit: Join the community of Java learners and get advice, share resources, and discuss projects.
https://www.reddit.com/r/learnjava/
Remember: Learning to program takes practice and patience. Don't hesitate to experiment with code and participate in community discussions. Happy coding! 🎉
wouldn't know, I am not a very big fan of publishers
Sorry for interrupt guys didnt see it
well, saying that cambridge university press published my paper would be pretty cool, no?
i wonder if a paper earns any royalties when published by these publishers
or only if books do?
what will happen if i do PersistentDataContainer.remove() if it doesn't have the key?
if they did, that would be a nice thing to brag about 😛
WHY are you still doign this? Its been months and you kepe randomly calling this link for no reason
Elgar you talking with bot?
i wonder if they would deny me, and if so why
i found out that you don't need to be at their uni, or at a uni to publish with them
but if you are writing a non fiction work, it's better to have some qualification
it is a safe operation so nothing will happen.
yeah wrong quote. Stop doing this shit, its annoying as hell
okay thank you
newspapers or news related stuff generally falls into the realms of fair use typically. The author of such places typically give up their rights to such pieces to the organization and thus they are the ones that are owed any royalties if you copy it
👍
as for so called publishing portion by contract they could be owed royalties
I told you dude i didnt do it on purpose i didnt see you chatting i generally do it while chat is inactive 👍
it depends on whatever you negotiated with them lol
what would i gain if i let cambridge press publish it, under open access
for example?
you gain notoriety and gain reputation
ah, i remembered rn, thing with open access is someone has to pay for it to be open access
as these are coorperations trying to make money
so you might have some sponsorship or you pay thousands
for it to be free for others to consume
it's pretty unfortunate
@ivory sleet can we get a warning for this? He's abusing the bot every day for no reason (breaks the rules). it's been months and its becoming really annoying.
i guess it would be smart to submit to all these presses
and see if any accepts it,right?
sometimes
why sometimes?
I apologized but its clear that you are against me thanks
#bot-commands
^
you have already been warned for it a month or more back. YET you still do it.
I dont carry this
-# *☠️ *
why sometimes
depends on your goals really
this guy actually does it every day..
Is there a method to get all PDC on an ItemStack with the PDC Type? I saw the getKeys, but you can't use that to get the values from them as you still need the type for the get method
frostalf, my school only requires that they can display my paper in their school, you think this is gonna intefere with some publisher publishing it?
probably not, right?
Yep, he's been doign it for many months. Just look at his post history
if a paper is already published by one entity, this generally prevents another entity from also publishing it
al his messages are ?learnjava and he answering to ppl saying to stop it
^
I said i dont carry this on but this guys are still talking about me
does hosting the physical paper in the school count as publishing?
-# 💀
just ban for bot abuse and move on I say
you could of learned java in the amount of time you have been saying this 😭
-# # 💀
fr bro
maybe? Typically what counts as publishing is that some other entity is footing the costs to distribute your work
the stupid thing is i have to pay for the printing of the paper
its not distributed anywhere
online
lol
its just presented physically
in the school
but i can talk to these presses, and explain the situation right
they're job to figure it out, right?
or am i implicated?
why not ask the school
perhaps i won't get the chance to even publish it, making the question redundant
it's like saying, ask your teacher about studying how you would study at harvard, before getting approved at harvard
what do you mean by that
i'll ask when it happens
it's more powerful to come and say, X wants to publish my paper, how do we negotiate this?
Than, hey... can i publish this paper?
pwease
@wet breach
There's this: The submission of a VWA to a competition must be done by the student him/herself, who is also responsible for the publication of his/her own work. A pre-scientific paper is an examination paper and is not published as such. Non-compliance with copyright regulations (e.g. missing, inadequate or incorrect indication of the author of an image) can be taken into account in the assessment of the VWA, but there are no legal consequences. This changes as soon as a student or another person submits the examination paper to competitions etc. and it is subsequently published in printed form or on the Internet. It is then considered a publication. In this case, permission must be obtained for the use of third-party images. Please note, therefore, that submitting a VWA to a competition may result in publication within the meaning of Austrian copyright law. To avoid copyright infringements, no unauthorized third-party images (photos, pictures, graphics, etc.) should be used in the submitted work (see Plagiarism and image rights).
Sounds like I'm able to publish it then right @wet breach
up to you
that was a direct-translation of the guidelines
but when i look at the original german, it says pretty much the same
ignoring some weirdly translated words
extended essay sounds weird, i would call it a paper
pre-scientific paper is a direct translation, and rather not great of a translation
what do you guys call it in america
would this be equivalent to preliminary?
Is there MatrixStack/PoseStack in spigot
idk what you guys call it
it's essentially an extended essay, on a given topic, with proper citation
and an abstract
possibly a preface
a preliminary paper basically means its not a finished version and nothing in it has been proofed(others in the field haven't verified anything beyond what you have found)
ohh
well
my teacher is an engineer
but idk if that counts as him proving it
in the field of AI
so probably not
@wet breach do you think these presses would accept such a paper?
i think they usually get someone to proof it tho
proofing means another party conducted the same experiment with same conditions and either got the same result or a different result
some professor at their uni
if the paper is scientific in nature of course
it's ont an experiment
well, it's me talking about the future of AI, philosophical questions, talking about how certain tech works
for all other topics, it just means its not a final version but not a rough draft either
with citations
does it need proof if all is cited?
but thanks i learned something new frost
i need my mother to proof my preface
The server doesn't render anything
if anything
i wonder if you can get in trouble for lying
in your preface
lmfao
Author Notes
but they are fake
yes and no it depends
but i see tho, man having a paper published
would be so sick
my dream would be to be a commentator
Idk, published papers can be as ass as archive ones xD
Having a paper published is a flex to the non academic people I guess 
@wet breach would they still publish it even if it has many citations
or do they see it as me relying too much on others to build my idea
the paper could be about serious spigot programming
shush
retro doesn't write about "serious" stuff
ofc i do
Why would that be a negative?
i don't think so, but i'm asking to be sure
i've got no qualification, so it would probably be a positive
As long as it is no plagiarism
Well your idea should be something new
dont worry geol
if it is based on previous work, thats great
yee
i like commenting on previous work also
giving new idea to previous work
or contrasting two points
two previous works
and comparing them
you get me right
Well contrasting two points I haven't heard off as a scientific goal
whats the scientific goal?
Well, more like scientific method
well, my teacher told me that i have no qualification
so
i should put little from me
lmfao
Block and item display entity
Well you can write a very nice paper that shows the sides of two arguments etc
thats what i meant
But idk how scientific that is
paper mentioned. banning
its more like, great journalism?
ITS about spigot programming
i swear
i do hint at it in the preface maybe
😉
oh
that kind of paper
(they have been talking about it for 30+ minutes)
have the bot mute people when they say paper @worldly ingot
same way when you type out OF

did you fix the OF stuff
I started one
just typing out the word mutes you for an hour at least
Choco starts typign
Choco muted
guys where did he go
i would love to use personal pronouns, but it would be informal
i'm pretty constrained here
but it's fine
i can use big words
Sure. Sometimes it is necessary to have someone summarize the topics in ways people understand. Thus, you yourself are not really adding anything yourself rather taking what is already out there and conveying it in a manner for others to know and understand.
eyyyy
W
i agree
i'm pretty constrained with it being formal
and no personal pronouns
but i think i can do that
Thing is, work like that is very annoying
like you are basically doing literature review
why?
It doesn't render them
which is ✨ a fucking hastle ✨
olivo doing god's work lol
Rendering is done by the client
someone has to do it
Not the server
Yes but how’s it rotation translation scale work
server tells client what to render
oversimplified
very oversimplified
client actually renders it
.
I can't understand you lowercasebtw
I can only assume what you mean
is this a
?xy
Rotate y 45
Translate 0 x 1.2 y 0 z
Scale 0.4 0.4 0.4
User wants to do X.
User doesn't know how to do X, but thinks they can fumble their way to a solution if they can just manage to do Y.
User doesn't know how to do Y either.
User asks for help with Y.
Others try to help user with Y, but are confused because Y seems like a strange problem to want to solve.
After much interaction and wasted time, it finally becomes clear that the user really wants help with X, and that Y wasn't even a suitable solution for X
Server sends that data to the client as a Matrix4f
Stupid response
No
Yea, but doing it properly is terrible
I don’t even need spigot for what I’m trying to do, I just need a way to get outputted values after modifying a matrix
I wanted to do one in my master thesis, looked at the first like 4 definitions, its all ass xD Like, a full literature review is gonna be more pages than I have 🙃
And I saw Minecraft allows you to see the matrix data on block/item display entities
.
You seem like you're a very nice person
Thanks for the out of context messages
What values
The translation, rotation, and scale values
I don't understand what the problem is
They're floating point values
So 1.0 + 1.0 would be 2.0
I need it for a Minecraft resource pack model
The translation, rotation and scale can be represented as vectors
But also as a single matrix
it's mainly a math question it seems, or looking around in mc's code to see how they deal with it
I have the differences in code for a 1.8 model to work in 1.9+ but I have not been able to figure out how to apply the differences
Perhaps look for where the 1.9 Minecraft code interacts with these matrices, and infer from that.
We all do it, or you can understand the math and the functions in the math library MC uses
or MC probably implements it themselves
what about rotation?
I have gotten 1.8 models to work in 1.9+ via mod but I’m trying to apply it to the model directly to not need the mod
So this has nothing to do with item/block display transforms
This is why we xy
?xy
Read the XY
I had asked previously if they used the same system and no answer
seems its your lucky day in that you were correct
You can check it.
We don't necessarily remember the intricacies of the differences between 1.8 and 1.9
They're also pretty outdated
I do
Minecraft wiki most likely has them documented
Well, then you don't need help.
I just need outputted values of a matrix stack
I'd hope it's not pure luck frostalf, but thank you.
It doesn’t
No one does
I’ve have looked all over the internet
You seem to be confused
Why do you need a matrix stack to begin with
You're not rendering anything
To get the final results of running the same code that’s run ingame to get the outputted model values after the modification
@obtuse hedge you know what it is?
So you're trying rendering on your own?
it's an xy again, based on that recent statement
I guess technically minus the rendering
okay
You're not making much sense
Tell us exactly what you're doing and why
When a matrix stack apply a scale or translate, it modifies the other values to it seems
no
But idk how
No plugin
whats it called, overview what are you making
he's talking about 1.8-1.9
There’s no plug-in
What is there then?
And the same stuff applies to 1.8 -> 1.21
What are you making
if a server owner asked you what are you making for me
what would you say
A script to convert 1.8 models to 1.9+
Ok
then it's much more clear, because you are assuming that your current attempt is the proper way to do it
which might not always be the case, causing confusion
I isolated the part in code using fabric to find the part of the code handling the matrix modification when rendering
Those parts are missing in 1.9+
The difference
No
Ok?
They never help
We make plugins here.
Well, here you'll only find someone to help by coincidence. There, that is the community for helping in that regard.
There's also Forge.
Maybe neoforge is more friendly
1.8, till now, things changed drastically
Idk
code wise
dude, as a library dev
catching someone lying
about the version
is goofy and annyoing
im not dumb
lmfao
Sometimes people have to make with, with what they have
And if lying allows them to further their code, then they do
well, you're not supposed to use outdated software they say, understandably.
I mean you have access to 1.21
if you made a project, and someone uses a 10 year old version of it
Presumably
Which 1.8 models dont work in
1.8 models for what
The final goal is to integrate whatever math into the resource pack converter I help work on
Mobs? Items? Blocks?
Item/blocks
Probably mainly items
They both use the same held positions logic
And if I solve this, it might help me also solve another thing I would like too
I’ve figured out the scale and rotation parts
It’s mainly translation math I need
That’s almost certainly documented on the wiki
Models are three-dimensional shapes used in Minecraft that are used to display objects encountered in the game.
The models pertaining to the vast majority of blocks and items can be configured, as well as those of a small selection of entities. Models are stored as JSON files in a resource pack in the assets/<namespace>/models folder.
See the history section
I’ve looked at this many times and just did now
There’s nothing about translation still in 1.9 section
Then perhaps it didn’t change
It did, the code is gone and the same model in 1.9 has different translation values than the one in 1.8
You should show a side by side comparison image as well as the model json files
The same vanilla model is visually the same ingame
Just different values in 1.8 and 1.9, which don’t work when swapped
What
Side by side diamond sword is visually same ingame
But when looking in the model file for it
The values are different
But let’s say I copy the 1.8 model to 1.9, it won’t be the same visually anymore
Do you have said model files to look at
I’m not at my computer right now, but they are in the vanilla jar
handheld.json in 1.9+ (1.21), diamond_sword.json in 1.8
are you sure order isn't what changed?
handheld.json?
Last I checked there’s still individual model files for each item
Granted it might just be empty with handheld as a parent, idk
There is
But diamond_sword just calls to parent handheld for its positions, with a added texture
Yea
Seems like John Hypixel has the conversion down
They don’t convert item positions
The pack converter I help work on derives from that repo
I mean
I’m fairly sure they use custom item models so…
@worldly ingot may have more insight
They do but the code is not in that repo if they do have it
It only fixes the textures name path
That pack converter is extremely specific to our needs tbh. It doesn't fix everything
Surely you have item models to convert though
Warlords had custom weapons and whatnot
Smash heroes or whatever
?
You still have to convert them tho in some capacity
They won’t work out of the box copy n pasting
Tho I haven’t check a side by side comparison on hypixel, they could be different in different versions
That’s the one I help work on
I see
It has a conversion for it but the current calculations are wrong
It only works on some items
And no third person calculations
Make any texture pack work for every version!
Maybe that site works properly, and hopefully uses JavaScript :p
That’s a texture pack converter, I doubt it handles models and or 1.8 anything
I’ll try it
But I still doubt it handles models
it didnt even touch the model
so it didnt work/doesn't have it
I see
I mean, how are you running jmh?
with the green dorito button
it indeed is
gradle?
ye
smack that in, move the benchmarks to the src/jmh folder and then just
gradle jmh
Note, that is not how you'd tell jmh to pass a byte buffer
is that supposed to auto-create?
no
you'd create that yourself
https://www.baeldung.com/java-microbenchmark-harness read through that (beyond the maven setup)
also, this little thing pops up
it's something I removed like a year ago
and can't find
where tf it is
Whats the reason it failed? xD

but intellij insists on compiling it
xd
uhhh
Adding module dependency doesn't help
it just
doesn't see it
in the import
Tf are these class names :p
Holy shit Sex2 has been invented
i didnt even get to play the first game 😭
Don't worry I'm sure sex2 is new an improved.
is it possible to teleport to an offline players last pos?
their last position is in teh data, but not accessible via the api
i belive you can do some janky stuff with world data but its prob best to cache logout location
(to uuid)
otherwise you keep the player initialized (i think)
Checkmate
:P
when was that added?
I bet Col just added it to make us look like fools
fr
WHAT
do you know in what version this was added?
1.16 prob
1.21 it looks like
has anyone done jmh benchmarks before?
its about time to be fair
I remember it being there for a while but apparently it’s new
Maybe I did just add it and I don’t even remember
There’s no way
Told ya, its Coll making us look foolish 🙂
?
Okay good my memory hasn’t gotten that bad yet
on a side note, whats the most efficient way to have a boss do a custom attack randomly, obviously running a bukkit runnable every tick and creating a new random chance isn't correct.
You could generate a number of ticks to wait until the next attack randomly
And then have a delayed runnable for that many ticks that executes the attack and generates the next number
and then i would regenerate that every attack?
thats what i was mostly thinking thank you 👍
You having issues with it?
How do I add a dependency to be included with my jar in Maven?
maven-shade-plugin
how the fuck do shadowJar relocations work are they like black magic or some shit
for some reason the pattern sh.miles.pineapple.* won't relocate but sh.miles.pineapple does, however sh.miles.pineapple captures all packages that include sh.miles.pineapple at all including something like sh.miles.pineappleenvoys, which is annoying as hell. This pattern matching seemingly doesn't allow regex? I've tried multiple valid regex for capturing and still nothing I'm beyond confused
Continuation from earlier:
https://imgur.com/a/zTXkL2h
heres a side by side, with 1.8 and 1.9+ (1.21)
so far I have the +45 on the y rotation, and scale by 0.4 on xyz
its just the translation which is the hardest part
funnily enough, I found the equation to get the values to be the same as they were in the first 2 snapshots of 1.9, but then mojang fixed their mistake
meaning theres either 2 or 1 more missing steps I don't have
I can share my current python script if anyone wants to see it
how do i put the economyshopgui plugin in my singleplayer?
Single-player doesn't support plugins
should I avoid lots of bukkitrunnables? ie. using Bukkit.getScheduler().scheduleSyncRepeatingTask instead of making a bukkitrunnable that runs every so so ticks
or is there a better practice?
Depends on how you use it. I've never found a good reason to have it
say for example updating a gui
whilst a players in it
obviously making a bukkit runnable for every open inventory that can be updated mid opening is a waste of resources.
Oh damn, When a new time is added to the previous time, I try to stop the countdown of the old time, but it doesn't work, it's ridiculous
Are you talking about the time statistic?
or just world time
or tasks
?? @slate siren context pls
Consider a command, I give a gift to a player and an extra time is started, after this time is over another command is run
So far everything is correct, but when I add extra time before the current time is over, the old countdown is not cancelled
I'm so confused
why create a new countdown when you add extra time?
I calculate the new time with the old time and save it in the timer.yml section, but I could not start the countdown according to the new time
Have you considered having some sort of central tracking system?
With kotlin it's quite easy to just have a Map<UUID, Job> and use coroutines
With java you either have a central task that runs every tick, or manage tasks yourself
Hmm
I need to write a proper scheduling lib that lets you schedule stuff accurately at XYZ time of the day, stack task times etc
Mhm
But yeah you can use some sort of "central" task that uses some sort of priority queue that sorts by expiry time
And it just peeks and polls whatever until it reaches a task that's not meant to be executed in this tick
Pretty sure smile has a guide on this but it uses a paper method
damn
@echo basalthttps://paste.md-5.net/ixemehetuw.cpp
I cancel and start a new countdown but it doesn't start
I feel like it's time you make the distinction between "in memory data" and "saved data"
Less static abuse, better code
It's outdated
is it
I wrote it
I rewrote the liskov substitution principle example to be a bit less confusing
they look the same to me i may be special though, it is definitely a good post to read though.
i appreciate you writing it 🙏
How does one get 3 vec3f's from a Matrix4f, (rotation, translation, scale)
what are you trying to do?
If it is for display entities, you can get the Transformation object out of them which contains the transformation elements
Not displat entities
trying to get back the final translation/rotation/scale values as if when passed in & calculated
I mean, if this is a JOML Matrix4f, it has utility methods to get each of these values out of the matrix
yes
Yeah
.
How can I solve the chat verification problem in 1.20.4? I want to send data packets so that only the player can see the content.
Hm?
What are you running now? Again, the main method is completely useless for jmh
I think you'll have better chances in #help-server
Isn't this the development channel?
Are you planning to make it yourself in a plugin?
Yes, I want to develop my own plug-in, but I found that there will be genuine verification problems when sending player chat packages
Ah alright I see then, what appears to be the problem
Although the content I sent shows the player's name, the following content prompts me that the chat verification error occurred. I don't know how to solve this problem.
do you have chat verification disabled on the server?
The ClientboundPlayerChatPacket package is used
Do you mean enforce-secure-profile?
question, why use packets at all for this?
Because I want it to be displayed only to this player, not to all players.
messages are per-player, unless you broadcast it
Player#sendMessage (or the bungee chat component equivalent) will only send a message to that player
No, if you mean Player#sendMessage, then I'm sorry, it can indeed send only to the player, but I need a complete message, that is, including the json sent out
If you want to send a component message use sendMessage from player.spigot()
||-# though for this I would use Paper since Spigot has no support for components in chat events as far I am aware||
Instead of sending components to players, it captures the information sent by players and resends it to that player.

