#help-development
1 messages · Page 864 of 1
Seems like it is impossible to just add a glow effect to an item without hiding it from the item's lore when not using the HIDE_ENCHANTS flag
I have been trying it for 2 days now. Tried everything from NMS, NBT, packets, extending both from CraftEnchantment and Enchantment, and accessing the enchantments registry directly
IF anyone ever has a solution to it, let me know 🙂
I mean yeah, Mojang hasn't added an NBT tab for item glints (which they really should...)
Maybe someone has a ready-made method in which items are added to the inventory? For example, I enter inventory, item and quantity (270) as an argument, and it distributes depending on the stack size.
I edited this code from ChatGPT and it doesn't work correctly
private static void addItems(Inventory inventory, ItemStack item, int amount){
int stacks = amount / item.getMaxStackSize();
int remainder = amount % item.getMaxStackSize();
for (int i = 0; i < stacks; i++) {
ItemStack itemStack = item.clone();
item.setAmount(item.getMaxStackSize());
inventory.addItem(itemStack);
}
if (remainder > 0) {
ItemStack itemStack = item.clone();
item.setAmount(remainder);
inventory.addItem(itemStack);
}
}
yes, but you probably can’t set an item to more than 64
Yeah that method sounds like it does exactly what you want
so like this?
Might wanna clone it first to not mutate it but sure?
Might also wanna do smth with the return value
Since it might not fit
what's the issue with that?
for some reason it only added 1 item instead of a stack
do you just want to get the amount of items you couldn't add to an inventory?
although it worked fine before
I think he just wanted to add more than 64 items to an inventory
and what's the issue? works fine on spigot
Which addItem does fine
Everything is ok now, if you told me correctly, then the problem is solved, thank you
Ok, so I want to add my custom enchantments to an item's lore. My idea of doing this is to update the lore everytime an enchantment is added. Now the issue is, if I take the current lore and add the enchantments to it, obviously the lore will contain duplicate entries. How would I go about this? Looking for lines that match an enchantments name and it's level to remove the line first would seem unsafe and ugly.
just only add the newly applied enchantment?
And what if I upgrade the enchantment?
Look for the enchant string
then you know the existing enchantment's line and can replace that
So looking by string would be my best bet?
Yeah, unless u keep track of the exact line the lore was added on
the only other way would be to just use a placeholder like %customenchants% in the server lore and intercept packets sent ot the client and change them there
Not really that unsafe either
That would have been my approach, but then I basically have to completely take over an item's lore, meaning other plugins can't change it
I'll look for it by string. A bit of an ugly approach, but the best one to avoid conflicts with other plugins
how can I avoid such a problem?
i want to develop a server, can some developer send me a message in my private ?
Funny
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
I can’t give u code right now tvist gnight
thanks @rotund ravine
could you send me the code when you can?
how do i decrease the size of my plugin:
the problem is it contains the JDA library which is kinda large
so
im not sure what to do to make it smaller
Dont let it contain the JDA library 🙂
Let spigot download JDA
Throught the plugin.yml
what exactly do i put
wtf
hashmaps are fast fast
NooniePit.map.put(String.class, new Object());
Bukkit.getPluginManager().registerEvents(new Listener() {
@EventHandler public void onMove(PlayerMoveEvent event) {
long start = System.currentTimeMillis();
int integer = 0;
for (int i = 0; i < 1000000; i++) {
Object someObj = NooniePit.map.get(String.class);
if (someObj != null) {
i++;
}
}
System.out.println(System.currentTimeMillis() - start + " " + integer);
}
}, this);
I can sprint around and this will run in 1ms
maybe its cause I only have 1 element
but if I have a hashmap that is Class, Object i dont think size matters is that true
💀 That code
LMFAO
dude i thoguht the compiler was doing something
cause i didnt think it would do 100k .get in "0" millis
indeed
Is this true tho:
I dont have to worry about bad hashcodes if my Key in a Map is Class
yeah no problem with casting either
Wat
appearently when there's bad hashcodes, the hashmap uses a linked list or something
Yes
(not that that isn't a problem with class objects)
so it can still happen with a java class
so like
whats the chance
String.class
Something.class
Minecraft.class
have a bad hashcode and like force a linked list
Why are you putting these classes in a map
yes
And the chance is very low
Well, depends on the buckets allocated in the map but yea
why not
i mean even if there are collisions, you are not going to notice
?xy
well i dont rly have a problem i was just asking
but what i was making was like a data container
Basically, until you are actually running into lags there, don't care about it
if you want to, there are a lot of resources out there on the internet for you to read up
they'll certainly do a better job than us on discord
Was about to say, you can barely explain how foxes and their tails work so
Doubt youd be of much help here

bruh
I found a massive oversight in my MC server, and I need help.
If a user doesnt have a bed/spawn setup, if they enter the end portal they get tped back to the end,
How would I fix this?
?nocode
It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.
i doubt this is related to a plugin you made though right=
It is not
This is something I discovered thru playtesting the server
And, i have a feeling, but it could be due to multiverses perhaps?
I was gunna ask how I could fix this inside a minecraft plugin
ahhh
well
you can
onPlayerDeath
set their spawnlocation
Except this is an issue with the end portal
you can
on playerJoinWorld
teleport them where ever you please
but
its probably easier
to just fix your multiverse
This is the best example I can show thru someone elses clip
Its doing that exact thing
well idk
ask on the multiverse discord or something
if they have one
probably do
Thing is I dont know if it is due to multiverses because this is the portal itself we a talking about
I dont think multiverses would cause this issue that is a speculatin thoughj
how can I completely get rid of a classloader and all the classes it has loaded?
thats hard
it'd probably be better to not
but basicallt make sure no strong references to the classloader and the classes
I mean isn't this why /reload is a mess
PlugMan moment
I remember it manually called System.GC in an attempt to get windows to release the jar
:,)
if only there wasnt a flag to explicitly disable system gc since so many 3rd party libs play w it
obviously the transfer packet makes that doable 
just store the entire world in the player cookies
have the server load it
profit
Lol
Make sure you put your secure values in there
Ones that you don’t want the user to change
Yea, I mean, if you store the DB password and username there
you can fetch the user data on any server
without configuration
Exactly
Is there a way for me to remotely test a plugin locally quickly, thru configuration build settings (in intellij for example)
kinda like for minecraft mods where you can launch a test minecraft launcher to test the mod
quickly without having to manually load the file n such
Yes
You can set up maven or gradle to export it to a certain folder
There’s also a gradle plugin to run a server
But I normally just export to the plugin dir
if you use gradle you can use the run-task plugin
That’s not the name of the plugin I know 👀
oh, the plugin is called run-paper ?
I see its published for each run configuration
Maybe
kek
maintaining a wiki do be rough
hm not really
if the APi makes sense it's enough to just run javadocs
or dokka if one uses a more modern language
yes, v2 has no docs whatsoever
doks for 2.0 = not exist or already dead
https://cloud.incendo.org/en/latest/minecraft/bukkit/ here's their bukkit docs
https://cloud.incendo.org/en/latest/minecraft/paper/ paper docs are similar "crowded"
what is cloud
command framework
oh
it's a headache
it's supposed to be a useful command framework
I wanna make YACF
Yet Another Command Framework
in 6 years I#ve been doing java stuff, ACF is the only framework I saw that simply works and doesn't require people to search for hours to find ouit how it works
hence my opinion: ACF >> everything else >> cloud (which has a ton of different docs pages but most are empty or 404 or NXDOMAIN or refer to a version that's not available on central)
Because apparently every few years someone makes a "Yet..." mod for something
"Yet Another Config Library"
"Yet Another Calculator"
"Yet Another Cobblestone Generator"
"Yet Another World Protector"
etc etc (source: modrinth)
no hate against cloud but tbh it seems to be only usable if yuo already know how it works and then you don't need it anymore anyway
well
smh imagine using a command framework at all
again, i don't think v2 is released
there is 0 point in documenting something that is a major release and not finalised
but brigadier does it just fine
Nobody which is their current version as all their docs sites are dead? how am I supposed to even know which is their officially released version?
yeah im also not a fan of these annot cmd libs since they make it cumbersome if u wna abstract away code or write anything beyond a simple annotated method with annotated args
I just abuse the shit out of brigadier
same
Or
Arrays.stream(args)

He’s running! Get back here

Just use it anyways
it would be nice to have the type CommandSender provided instead of CommandSourceStack so a paper W here
idk, brig is a biiit dangerous
yeah tbh I am done with them
now you have a library in the API that is at mojangs whim to be updated
what stops you guys from just writing an abstraction layer on top lynx?
I mean, 1.9 should not have any breaking changes over 1.8 ?
I wanna add brig support to spigot
Well, then you are at the "designing a command framework" moment
fair enough
which, I don't think a server software wants to do
Please tell me how you would have found the 1.9 or 1.8 repo. Or the docs regarding them, if you wouldnt ask on their discord
tho couldnt u technically call PluginCommand + CommandExecutor a command framework altho a very banal and underwhelming one
or well, let me rephrase, where does one draw the line?
?
thats how you find the 1.8 tree ?
I find it by going to the release??
how am I even supposed to know that 1.8 is the correct "latest" version?
?1.8
Too old! (Click the link to get the exact time)
their spigotmc thread thingy links to the dead link and their core module reradme links to minecraft version 2.0.0-whatever
how did you even find this page?
which page exactly is that? send link pls
thats my main page ?
Wait paper still hasn't done it
yours?
goddamn
why yours? are you responbiel for this whole mess?! @eternal night
you said "that's my main page"
yea voodoo, its a big commitment to expose brig since mojang maintains it
thats where my came from
Oh, we just have it at work
mye
Do you maintain an API that promises backwards compat
oh ?
well but the readme says that "cloud 2 is here" and hence kinda suggests that one should use version 2
¯_(ツ)_/¯
ideally, but practically may not be a reasonable course of action
Yea you can't
which is why I am surprised Ike just accepts it
lol
unless obviously they wrap brig
pure idealism
where does it say that o.O
lol yes
Expose brigadier, expose direct server internals, add mixins, then yeet the entire Bukkit api and call it a day
papefabrigot
I will die on the hill that mixins would spell the end for the bukkit based ecosystem
Because you don’t trust devs?
Yea
it makes any form of support absolutely impossible
and I mean, you see what horrible code people shit out with just reflection
on their github?!
giving them the hydrogen bomb of reflective tooling
lynx on a side note, will u put a chicken on ur pfp during easter's eve? :o
https://github.com/incendo/cloud-minecraft literally directly in the readme @eternal night
here
it says 2.0.0-SNAPSHOT or am I blind
it does say that
Well yea because that version is also 2.0.0
looks to be in snapshot tho
yeah sure, it's on sony oss
POV: spigot
I have a question, I would like an image to be displayed in the scoreboard, I also programmed the plugin myself. Now I have finished a texture pack, but it doesn't work. Does anyone know a solution?
yeah that's how it works
like idk, you start out from incendo/cloud.
you see that they have a warning v2 breaks al ot of shit. You see 1.8.4 is their latest release
u need to se tthe font if u didnt do that
and then you go off with 1.8.4
no. you missed a step already
you click on "minecraft" and it tells you to use version 2.0.0
What if they added it to the default font
what do you mean, you click on minecraft xD
aint no purpose in using version 1.8 core
Also no component api for scoreboards
yeah then im trolling coll :c
???
Not merged yet
aw
😩
😭
you obviously don't start with cloud-minecraft, an adapter for cloud
you start with cloud
I entered what should be replaced in the texture pack and entered the wsa to be replaced in the plugin and inserted the image.
.components() when
I meanm this
I have the weird feeling that you're just looking at their incomplete docs without actually trying to use it
if you actually try to use it, you will understand my struggle
for the love of god
you are STILL looking at the 2.0.0 repo
of cloud
the 1.8.4 tree does not have such a link
alex why dont u just screenshare
I'm looking at their master repo
Yes
and let lynx tech support help u over vc
then why does it say 1.8.4 in their LITERAL README?
that is the maven release ?
Lynx tech tips
all capitals probs
Please explain to me the workflow you suggest using this dependency
Maybe it will help if I show how it is in the code and in the texture pack
I go to incendo/cloud. I see "oh no, cloud 2 is major update, backwards breaking. oh no no".
I see oh, 1.8.4 is last release as shown in previous. I click. I see, ah, its tagged. I open. There are docs in the repo. I happy
I don't care about backwrads compat, I wanted to start using it yesterday
I see oh, 1.8.4 is last release as shown in previous. I click. I see, ah, its tagged. I open. There are docs in the repo. I happy
dan you're really very gracious
if I see a repo, I want it to work exactly as stated in their readme, without spending 2 hours to figure everything out, including dead links and other discrepancies
how am I even supposed to know that? I go on the repo and it says it's 1.8.4
Check that encoding isn’t messing up your resource pack or plugin code
so how shall I know that what I'm looking at is 2.0.0-whatever?
on the latest release yes
not only there.
the giant banner ?
Tis why I like to use code points rather than the direct character
which giang banner?
the node ?
,
I mean sure, I'll give you that I guess ?
It shouldn't actually, I did the whole thing according to the tutorial.
it literally says "version 1.8.4" above, then later says "version 2 is different"
quick fix is obviously to PR that to the repo 🙂
Alex you can calm down and we can use acf :P
a release is not the master branch tho
like idk. I don't go using master branches for projects that have versioning
I will not pull request anything to this huge mess, after I figured out how to pull request there I guess merkel has been elected again for the 6th time
Try pasting the character in chat
I really don't like ACF and ACF's docs are utter shit
but at least it has something
okay where are the docs for 1.8.4?
that's for 1.7.1
haha
1.7.1 docs are compatible+
yeah that readme is for 1.7.1
its is not a major release
how am I supposed to know that as user?!
you can use those docs
how am I supposed to know that?
:(
like, you cannot tell me you don't know what semvar is
no, you know, maybe it's just me, but - when I release something called "1.2.3" I release docs for the exact "1.2.3" version - i I do not say "versyion 2 is different, this is version 1.3 and here are the 1.9 docs:"
Doesn't work there either
Hmm then yeah it’s gotta be a resource pack issue
brev, they all do this for free.
If a doc update wasn't neccesary or they forgot, shit happens
Can’t really help much beyond that, font stuff is magic
its not a major version bump, so old docs are fine
And it changed recently
dude why are you defending people obviously being too stupid to release proper docs? Why don't you just say "yeah okay obviously their obds are pretty shit, I totally understand that"
I mean I can totally understand that sometimes one messes up
you are shitting on a giant project that has docs a single minor version behind
for literally 0 reason beyond the fact that you had an unpleasant experience finding their docs
but there's literally no valid reason to say "haha yeah so here's a comment about version 2 but you'Äre looking at the 1.8 repo anyway right? so yeah check this link to an example plugin for bukkit oooooh 404 well nvm just click random other links until you find javadocs? ah here are some for 1.7, maybe the'll work? who knows what has changed since then? just try it out, good luck kek"
Yea
As I suiggested
go fucking PR that
its open source for a reason
you complain and complain and complain
instead of fixing it
i would fix it if I knew how to
its a bloody PR
I had taken a template that was on the SpigotMC site, it said you just have to insert the image (logo). I watched the same thing on a video that used the same thing and did the same thing
to a readme file
but I still have no idea which is now the official correct version
or which even is is theirt website
it's offline for 3 days now
Are you on the same version the template/video was made for
the people on their discord also don't know anything
you literally just PR to their README.md, into the note that the current branch is the 2.0.0 development branch and isn't stable
like
I DONT KNOW
das a 2 liner
Because I know Mojang changed fonts a bunch recently
their artifact isn't even in the repository they mention in their readme 😄
yeah no thanks
Not quite, in the video the 1.19 is used, I use the 1.20
🥲
Release builds of Cloud are available through the Maven central repository
I'll test the same version as in the video
and where are the docs for that version?
the github repo is only talking aobut 2.0.0
well partly
anyone who pretends "lol mfnalex is just too stupid to properly" I give you a challenge: Why don't you people just to try to use it yourself for a simple plugin, using only the information the docs give you, and then we can talk again tomorrow?
I really don't cmoplan about shitty docs, after all I've been using ACF for years, these docs are hoffible too
i suggest you take a chill pill and go to sleep
and also consider actually contributing to OSS
but at least ACF's docs are matching the version
ACF had its last commit 3 months ago
and?
do the docs expire after 2.5 months?
its a mature af project that had had the time to do docs
Reminds me of when Alex tried gradle
no,ACF's docs are literally shit too
cloud is literally currently moving to a new major version
even worse then 
The easy fix for all of this is to just warn more in the note they have in their README so that everyone understands the state of the current master branch
but at least ACF gives you the docs of its current version, and doesnt say "haha this is repo 2.0.0 and here's version 1.8.4 on central but if you wanna look at the docs, here's javadocs for 1.7 but watch out, the repo for 1.8 tells you that 2.0 is different, so better check out the xample plugin here, which does not exist: ..."
then why does the github repo tell you to use 2.0.0
idk javadoc.io shows whatever is on central, so, 1.8.4
the only reason why it's not on central is because they don't allow uploading -SNAPSHOTs
yeah well the github readme tells you to use 2.0.0-SNAPSHOT "from maven central" even though it's obviously not there
(for the bukkit module)
the github readme doesn't say that?
they are looking at cloud-minecraft I think ?
it literally says -SNAPSHOT and right there it also shows adding the snapshot repo
it does
^ @slender elbow
I too ignore the main api
don't tell me that it does not say 2.0.0
and instantly go to the adapter 
especially as a new user to the project, that is a very smart idea 
This directory hosts Minecraft specific implementations of cloud. Their features are summarized in the table below:
...
cloud-bukkit
Bukkit mappings for cloud. If commodore is present on the classpath and the server is running at least version 1.13+, Brigadier mappings will be available.dependency
maven:
the main project does not say ANYTHING about the minecraft repo
it talks about "cloud 2" which is "not compatible"
because cloud is not specific to miencraft
it talks about how to add the project as a dependency
and it talks about the snapshot repo
To use cloud you will first need to add it as a dependency to your project.
Release builds of Cloud are available through the Maven central repository. Snapshot builds of Cloud are available through the Sonatype OSS Snapshot repository.
will this apply to the cloud specific minecraft adapter

My bad guys shoulda said ACF originally
okay so they expect me to read "ah this is cloud. cloud 2 is the latest. cloud 2 is not compatible with version 1. Hre's the minecraft module. Version 2 is latst. Guess I#ll use 1.8.4?"
no clue why you people are defending this obvious horrid documentation
it is obviously extremely confusing, outdated, and simply wront at certain parts
Nah cuz it's gonna be unsupported once 2 drops no point especially when I figured out how to use it already
Either we switch to ACF or just use the snapshots
i love the part that says 1.8.4 is the latest
Idc what we do but we need to stick with sun
haven't they been a thing for years?
although mb, lynx also said it's wrong and I should pull request to fix it. emily however, you are simply pretending that the docs are perfectly fine and everyone should easily be able to know which version to use, even though the javadocs are 1.7, the repo is 2.0-SNAPSHOT, the latest on maven central is 1.8 and the people on their discord themsces don't know which version to use, or and not to mention that the sites in the spigot thread are all dead (which are 4 different domains, btw)
Sure latest for now but why use a version that's just going to have a bunch of changes on an already completely satisfactory release atleast imo
yes
why use a version that is in development and could have anything changed by next week
I did not say its wrong. I said you can improve it to make it more clear
could be unstable etc
you refused and instead have done nothing but shitting on a project people pour their energy into
yeah except that they dont
Because at the end of the day no large codebase port is going to be fun rather take the punches as they come

even ealier you yourself said "lol that's just the maven central link, 2.0 is latest?"
I really don't care about the docs I'm a fiddle around and figure it out type of guy
2.0.0 is the latest snapshot
which is not latest
the concept of a snapshot outside of spigots rolling release means this is not ready for production
it is a snapshot because it might change
then please tell me - where do they say which versio nis "latest" for cloud-bukkit?
its all the same fucking version
no it's not
they all have the same versioning scheme
what javadoc link are you even seeing on 1.7? the only javadoc link i saw was to javadoc.io and it points to maven central (so, latest release, 1.8.4)
I cannot find it anymore
the only javadocs link I found is from the spigotmc thread
but all the links from that are dead anyway
Can we stop this pointless argument yeah their docs aren't great 2.0.0 just doesn't even have docs as was said in their own discord mind you 2.0.0 is an in development undocumented version if you don't like it we can switch
which is why forums suck
probably a good idea xD
but that's another discussion
use whatever you want, just, less shitting on peoples work is a nice thing to do
yeah let's just agree that one can spend 3 hours talking about how shitty cloud's docs etc are when one would have been able to just use acf instead, which docs are also shitty, but by far not that shitty
and ACF's docs are really shitty, I have been complaining about them for 2 years now
but cloud`? lol that's a holw new level. as if cmarco wrote them to piss off people on purpose
damn yea
I can see that 
your contribution to a project that you have had issues with for the past 2 years now
0 issues about it
i don't understand what you are talking about
0 PRs
oh you mean I should have improved the docs?
Y'know, what open source kinda lives off of
most of the time I use ACF i don't even know if'M doing it correctly
I mean, you have spent 2 years with it. Surely you have some understanding.
Given how "terrible" those docs are, every improvement counts 💪
also ACFs docs are not nearly as shit as cloud's are - even a total idiot would imediately figure out how to use it
oh well compared to cloud, the docs are great
to your standard they seem really shitty
at least that is what you said like, a couple messages ago
you just create a commandmanager, then register any class with a CommandAlias annotation, and the rest is nasically self explaining
cloud fails to even tell you which dependency to use
while ACF - believe it or not - mentions that
it is btw 0.5.1-SNAPSHOT
you can find that in their readme
probably because I have unrealistic expacations
Sounds like a good thing to start working on 👍
https://hub.jeff-media.com/javadocs/morepersistentdatatypes/ I guess this is what I consider "proper docs"
package index
what ACF does is the bare minimum
and what cloud does is an insult, at best
Truely both projects compare in size and complexity
A fair comparison to make, I am sure
and what you do isn't?
I don't understand that. when you write more code, you can also write more docs at the same time?
can you clarify what you mean pls? are there any questions left you have after reading the above mentioned ajvadocs?
i can't read
okay, so lets say you have 4 hours in a day
now, you can either use that to shit out small libraries that consist of at best 20 classes
lest say you create that in, hmm 3 days
alternatively you use your 4 hours to work on large complex projects
and reading the readme surely suits you
if I write a library in 3 days, I usually spend 2 days of that documenting it
Okay ?
2 days is a valid timeframe
documenting cloud is more than a 2 day job
a lot longer
guys chill out 🥶 it aint that deep
if writing the code takes longer than to describe it, then what's the point of the library?

and what i meant exactly is shitting on someone else's free time's work without slightly considering contributing to it or even suggesting something in good faith
if people are faster in writing it themselves, there's little point in that library imho
that is not what i see in the OSS community
I mean, your library exists for more persistent data types and everyone with half a brain cell can whip those up in a matter of half a minute
whats the point in reading your documentation
maybe we just have different options about what a library should offer
opinions*
they don't owe you anything
if you don't manage you to use it, don't
sure, they can do what they want ,but I am free to say that their docs are shit
no
no you are not
you can shut up about it and move on
going around and critiquing others work for 0 gain is just an asshole move
yes, that's a brilliant idea
although I want to add that I did state constructive critics instead of just hating it
to ME
to a random help-development channel
As I said, I can 100% see that the note might need more info
it isn't 100% clear
go open an issue about it
if you don#t care to PR
where else should I have done it?on their discord? well I mentioned it there too
guh I'ma get a headache. I couldn't answer questions cuz I was high as fuck this morning if you have any questions about it alex lmk otherwise switch
Lol well
yes, that would usually be the correct way. However I have experienced issues with that in the past. People are totally fine with taking critics about the project itself but once you mention that their docs are shit, people say things like "lmao wtf it's obvious" or "well why do you use it if you don't like it" and stuff. Don't wanna say that this would have happened for this specific project, but I did make bad experiences with this in the past
and it's imho totally fine to express my opinion about why I don't like a specific thing. It is neither my job to fix it, nor am I not allowed to mentio nwhat I don't like
on the other hand, others are fine to ignore my staatements and or, like you, tell me "well then fix it" or "do it better yourself". Of course, you're right with that
like, open source community is already not very forgiving for maintainers
if whoever runs or owns that project would care about "what is nice", they would pretend to be someone who knows nothing about it, and THEN write the docs
I really cannot comprehend how people are able to write complex libraries but then lack the skills to provide basic information like... what's the website, which version is latest, and similar
yeah guys even Inventory PR does this smh smh /j
speaking of Inventory PR does miles indulge in Command PR next??
Welp, given I tried for a minute to answer that and every single iteration was insulting, I'll just leave the convo 👍 would love to see an issue on cloud if you care to open one, beyond that, have a good night, I have some work left to do
Because docs aren’t just “this does this”. It has to be worded in a way that people understand it, or that’s another things that will be complained about.
are you investigating those UBs
Oh god, how can I change my name
Have some uni work left 👍
my uni starts next week
not looking forward to it
on the bright side I have an embedded systems course and we get to work on arduinos
pay up
10 dollars bucko
or become white like me
lmao
Ha nerds
if you changed your forum name i think you just ping a mod here to change it to that
Can't even send images smh
I graduated last month
congrats on the masters 💪
1 month graduated still 0 applicable jobs
Yeah that’s what I have
my knowledge of public places tells me this is a trap. People don’t normally like being pinged.
I have a PHD in codology
Can you change names coll
idk, maybe coll can even do it
I can
Easy
Link me your forums account
big
😭
embed
Someone seems to have a legacy
Who is evident
¯_(ツ)_/¯
I smell papers
the best trucker in the midwest
Modwet
modwaet
Thank you.
👍
merci 👍
let's go
Is that frenxh
Oui
💀
Shu I lt
How much did the dentist give you
Does anyone know the purpose of BlockPopulator?
Like how does it get utilized and what not, not sure how to reference it in a ChunkGenerator
1
usually insurance pays the dentist
This time the dentist payed me
You’re a boat?
Yeah
Ah cool
Does anyone know the purpose of Dentist?
Like how does it get utilize and what not, not sure how to reference it in a IHateMyDentistSubReddit
scnr
Pretty sure there is a getDefaultPopulators method
What calls it exactly, at what step in the chunk generation process
So the steps are, generate chunk -> populate it with all populators
Hm ok
Is this what you would use to place structures
Like villages?
Yes
That sounds like a pain when it comes to multiple chunks
Hm
😵
That’s what jigsaws are for
jigsaws help construct large structures like strongholds from smaller components
Any examples I can reference?
Not that I know of
I still think it should be fucking common sense for every maintainer of anything to pretend to be a "new user" and adjust the docs accordingly......
I also don’t know if the api structure place method triggers jigsaws
honestly it's a bit undocumented too theres not much on the internet
and if they don't, they don't care about anyone using it, and then why did they share it in the first place?
anyone know how to get a /sell menu progression? like in DonutSMP where the more you sell the higher your sell multiplier gets?
the spigot API does not have a method to get a "sell menu progression", whatever that is supposed to be?
Don’t cross post to every channel
im not asking abt spigot api specifically
no, but what I do know is that you are not simply entitled, instead you should post in the proper channel to post this question in every channel
?
here's a video about village generation specifically and how it uses jigsaws https://youtu.be/b6eBndQ_jK0?si=bqIsEtByqicvawDL
The Village & Pillage update for Minecraft has been released - with an entirely new system for generating villages. This video shows how the system works, and showcases all the main structure pieces that make up the Villages. #minecraftemployee
slicedlime works as a Tech Lead for Minecraft at Mojang, but the YouTube and Twitch channels are pers...
just asking if anyone knows a plugin or a way to do it?
Thank you!
you ask in #help-server for plugin help
wrong channel
ok
You can do structures with just a datapack these days
or help-enrique-iglesias-who-can-take-my-breath-away-@jagged quail-what??
Sadly not as configurable or easy to use as a plugin
@young knoll rename channel when
I dont have that power
you gotta go straight to the slime
we need an enrique iglesias emoji
he's kinda cute
@paper viper@young knoll Since you both seem quite knowledgeable in chunk generation, was wondering if you knew the difference between SimplexNoiseGenerator and SimplexOctaveGenerator
And when you would use which
i think SimplexNoiseGenerator is perlin noise?
Yep, but so is SimplexOctave right?
One uses perlin noise the other uses octave noise
Neither have I
Mmm, not sure if that's a thing
Creates simplex noise through unbiased octaves
Vs
Generates simplex-based noise.
¯_(ツ)_/¯
maybe take a look at the code and see how its different?
It looks the same just with an octave loop
Which also exists in NoiseGenerator
Which both inherit
So not sure the diff
Oh
One inherits OctaveGenerator
But the only diff is that they inherit different interfaces then
Is the impl the same?
SimplexOctaveGenerator just wraps SimplexNoiseGenerator
But has a loop for octaves
Which also exists in NoiseGenerator interface
So seems like pretty much the same thing?
Rip
Oh interesting
Looks like it handles octaves by making a bunch of SimplexNoiseGenerator's
With the same random instance
But wouldn't that just be the same as having a single SimplexNoiseGenerator
😵
I'ma just chalk it up as basically the same thing, with SimplexNoiseGenerator having less overhead
Hii, i know is not realted to the channel for many of us. But what is github octocat in their enviroment? I cant find any information about it but if you read about their api developer docs they use it for the api
Is it possible to set an entities data before spawning it or no?
Would you be willing to show me this method, or tell me what it is so i can try it out
proj.setItem(item);```
I pretty much want this like:
Snowball proj = (Snowball) projectile.getWorld().spawnEntity(projectile.getLocation(), EntityType.SNOWBALL);```
But one cannot access an entity that doesnt exist this way.
World#spawn(location, entitytype, snowball -> {
snowball.setItem(item);
}
oh dang
Ive never done this and I cant get it to work. ;-;
read what i typed
i use spawn not spawnEntity
and you still need to pass a entity type
Oh. Im stupid
how would i go about moving an armorstand based on where its punched? ex, the lower down the higher it goes
I believe you need to use the class in order to use a consumer
I just keep getting Non-Static method error
Which makes sense since the object doesnt exist yet
Show code
Snowball.setItem(item);
});```
Error at 'setItem' in `Snowball.setItem(item);`
Your variable is called snowball
Snowball is not the same as snowball
Also use the entity class rather than entity type
capitalizing it makes it just say not found lol
Lower case the other one
declaration: package: org.bukkit.generator, class: BlockPopulator
How big is a limitedregion?
On a normal server it’s 48x48
Is there a source you got that from? Or just testing
declaration: package: org.bukkit.generator, interface: LimitedRegion
Call the method, don't hard code
Thank you
Is there a way to turn on sand duping in spigot and villager exploiting
Sand duping isn’t patched on spigot
The villager discount exploit has been patched by Mojang
Actually didnt know mojang patched that
Believe it was 1.20.3
Could probably just remake it, but not sure which sand dupe you’re referring to
Im using the shulkercraft one and the sand wont stick onto the slime
Oh, assumed it was since mojang patched it?
That’s odd
Remember that spigot is not part of Mojang, spigot is done over minecraft server
yeah exactly
Villager discount is patched on vanilla and therefor spigot
Sand duping isn’t patched on either
Ah
vanilla yes, they patched at Mojang. Havent they?
I was reading about it but i thought it was already, so just forget what i h've said
I’m dumb lol, oops
I got it working someone touched the servers tps
How can I remove health bar from NPCs
?nocode
It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.
Did you add your npc to a Team with a objective that displays below name?
what do you guys think of this custom config https://paste.gg/p/anonymous/825ea61de42b45abaf92c830269e911a
for custom items lol this is a example config with all the toggles i plan to add on
Looks like a config to me
effectAttack
effects_after_eating
I hope you see the problem there
effect attack stands for when you hit someone what effect is applied on the person and after eating is for what effect is applied for after eating if your talking about how its named Yes i will fix it lmao
yep, the inconsistent names
it was a quick concept while i did some research on how im going to work with custom furniture
anyone have any idea if running the spawnentity method on a location loads the chunk
god fawe is inconsistent
probably
I need to get better a regex
or I need to ask chatgpt to generate regex for me more often lol
Ai 💪🏻
small child
Hey I got qustion
if I am accessing my method which would be more efficient for performance or would be the same
Main.getInstance().getUtils().getPrefix() or static way because this class only has on instance Utils.getPrefix()
My Utils has generals stuff math calculations checking if player has free slots etc..
utils dont need to be singletoned
it can be just static methods
and to answer u
the static Utils.getPrefix() is faster
since its just an invokestatic bytecode instruction
whereas getInstance().getUtils().getPrefix() involves invokevirtual which involves to a virtual lookup table more or less and that makes it somewhat slower
myea internally stateless or internally pure is good
Wait what?
Tbf, if you have to count the bytecode instructions for your util collection you probably have other things to improve first
yea
How to set visual items in opened chest inventory for player with ProtocolLib?
Player will see some decoration glasses and 2's for information. 1 slot is free for item and player will put his item in it (for example slime ball) (at middle)
Server will read chest's content and will see only player's item (slime ball)
try {
if(event.getComponentId().equals("decline")) {
System.out.println("decline");
bot.getSecondFactorPlayers().remove(uuid);
Bukkit.getScheduler().runTask(plugin, () -> {
System.out.println("kick");
player.kickPlayer(Message.SECONDFACTOR_REJECTED.getText());
botSettings.COMMANDS_AFTER_SECOND_FACTOR_DECLINING.forEach(cmd -> Bukkit.dispatchCommand(Bukkit.getConsoleSender(), cmd.replace("%player%", discordUtilsUser.getOfflinePlayer().getName())));
});
}
} catch (Exception e) {
e.printStackTrace();
}
player gets kicked only when the code is executed for the first time, next times it just doesn't kick player for some reason, why?
[13:18:47 INFO]: UUID of player SunwooHan is bbd52114-084c-3233-b6b7-2b8bd636b063
[13:18:49 INFO]: [Server] Hello, SunwooHan!
[13:18:49 INFO]: SunwooHan joined the game
[13:18:49 INFO]: SunwooHan[/127.0.0.1:53159] logged in with entity id 43 at ([world]-92.85437229560084, 80.0, -187.5220528299057)
[13:18:52 INFO]: [DiscordUtils] decline
[13:18:52 INFO]: [DiscordUtils] kick
[13:18:52 INFO]: SunwooHan lost connection: Владелец аккаунта отклонил авторизацию аккаунта.
[13:18:52 INFO]: SunwooHan left the game
[13:18:52 INFO]: [Server] command after declining
[13:18:57 INFO]: UUID of player SunwooHan is bbd52114-084c-3233-b6b7-2b8bd636b063
[13:18:57 INFO]: [Server] Hello, SunwooHan!
[13:18:57 INFO]: SunwooHan joined the game
[13:18:57 INFO]: SunwooHan[/127.0.0.1:53166] logged in with entity id 312 at ([world]-92.83484090820896, 80.0, -187.5204161397051)
[13:19:01 INFO]: [DiscordUtils] decline
[13:19:01 INFO]: [DiscordUtils] kick
[13:19:01 INFO]: [Server] command after declining
[13:20:38 INFO]: SunwooHan issued server command: /gmc
Where is the player variable coming from
Why call UUID uuid = discordUtilsUser.getOfflinePlayer().getUniqueId(); when you already have a Player?
actually yes, its unnecessary, i will refactor it
also, are you caching the Player object in DiscordUtilsUsersCacheManager?
im caching DiscordUtilsUser objects, which contain OfflinePlayer objects
You need to clear the cache when the player quits
You're likely leaking stale player objects
yes, that was the reason, thank you, it works now
Please teach me how to create colored BED and INK_SUCK ItemStack
materials are flattened
declaration: package: org.bukkit, enum: Material
declaration: package: org.bukkit, enum: Material
etc
paper
sorry,I forgot to mention that I'm using Spigot 1.12.2
I couldn't do this
oh sorry
ehhh, 1.12 is olddd
pre flattening, so you'd use the data byte
gl tho
i know that for spigot-api, apparently there are no sources available for bukkit stuff...
but would it be possible to get some amount of sources from the decompiled "spigot" package with buildtools, useable in intellij?
i'm aware of that, but it's more than tedious having to always visit a page, searching for a specific class (with a search function that is totally broken for me for some reason), and look which one of 2 float-arguments is which one now
this for example, i am having a lot of times where i have to visit the javadocs, and browse smt for various minutes, just to find out which argument is which one
the sources for the api as well as their javadocs are published iirc
your IDE can download them
well, seems liek it can't
it alwasy complains with "cannot download sources for spigot-api" and probably just fails
even tho i am not even using the api
.
you are not even using the api?
in the pom at least
well how does your pom look
I mean yea, you'd 100% need the spigot repo attached
In IntelliJ if you open up a class from Bukkit you'll be able to download the source directly including the Java docs by just clicking at the top
idk how the spigot server artefact is setup
with those 2, it's the exact same
easy enough to just smack the api dependency in there ?
yea, that produces the error i sent above
yea^
same error with both
the nms artefact does define spigot-api as a dep, it does not define the spigot repo for it tho ¯_(ツ)_/¯
idk, maven might just not like it.
Did you add the api above or below the server impl as a dep block
below
Try above
and my ij just crashed from just dragging a file smh
maven goes top to bottom for resolution
still same
there don't even seem to be any sources to choose from in the first place
is there some specific bt command you have to use to get those?
tf
but if your maven fails to download them from the repo, not much to do
Well, for the API you can just download them yea
mvn dependency:sources and ehhh
mvn dependency:resolve -Dclassifier=javadoc
for the server artifact, again, no sources are published because well
there are not really any sources that make sense to publish
that downloads a bunch of stuff, might look good
i mean, i always thought the api has no sources, because of all that dmca drama or smt
nah the API is fine
Yeah the api sources are questionable sometimes tho lol
as long as you don#t download bungeecord api sources
I'm totally part if the problem

Lynx I've decided I'm nolonger retiring after inventory pr
where does it save those sources?
I have received my next calling
what is it xD
Command API


