#help-development

1 messages · Page 864 of 1

sullen marlin
#

no worries

elder harness
#

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 🙂

worldly ingot
#

I mean yeah, Mojang hasn't added an NBT tab for item glints (which they really should...)

ocean hollow
#

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

rotund ravine
#

addItems or smth

#

Nvm addItem*

ocean hollow
#

yes, but you probably can’t set an item to more than 64

rotund ravine
#

🤷🏽‍♂️ Also takes varsargs

sullen marlin
#

Yeah that method sounds like it does exactly what you want

ocean hollow
#

so like this?

rotund ravine
#

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

ocean hollow
#

for some reason it only added 1 item instead of a stack

tender shard
#

do you just want to get the amount of items you couldn't add to an inventory?

ocean hollow
#

although it worked fine before

rotund ravine
#

I think he just wanted to add more than 64 items to an inventory

tender shard
#

and what's the issue? works fine on spigot

rotund ravine
#

Which addItem does fine

ocean hollow
#

Everything is ok now, if you told me correctly, then the problem is solved, thank you

elder harness
#

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.

tender shard
#

just only add the newly applied enchantment?

elder harness
#

And what if I upgrade the enchantment?

rotund ravine
#

Look for the enchant string

tender shard
#

then you know the existing enchantment's line and can replace that

elder harness
#

So looking by string would be my best bet?

rotund ravine
#

Yeah, unless u keep track of the exact line the lore was added on

tender shard
#

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

rotund ravine
#

Not really that unsafe either

elder harness
#

I'll look for it by string. A bit of an ugly approach, but the best one to avoid conflicts with other plugins

ocean hollow
#

how can I avoid such a problem?

ocean hollow
orchid cliff
#

i want to develop a server, can some developer send me a message in my private ?

rotund ravine
undone axleBOT
rotund ravine
#

I can’t give u code right now tvist gnight

orchid cliff
#

thanks @rotund ravine

ocean hollow
valid burrow
#

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

lost matrix
#

Dont let it contain the JDA library 🙂

valid burrow
#

then it wont work

#

:<

#

it kinda needs the jda library to yk

#

work?

lost matrix
#

Let spigot download JDA

valid burrow
#

how can i do that

#

does it do it automatically?

lost matrix
#

Throught the plugin.yml

valid burrow
#

what exactly do i put

lost matrix
valid burrow
#

oh its libraries

#

oki

#

thx

#

i nono wanna

quaint mantle
#

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

chrome beacon
#

💀 That code

quaint mantle
#

dude i thoguht the compiler was doing something

#

cause i didnt think it would do 100k .get in "0" millis

quaint mantle
#

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

sullen marlin
#

Wat

quaint mantle
# sullen marlin Wat

appearently when there's bad hashcodes, the hashmap uses a linked list or something

sullen marlin
#

Yes

eternal night
#

(not that that isn't a problem with class objects)

quaint mantle
#

so it can still happen with a java class

sullen marlin
#

Idk what you're asking

#

Cause your example is silly

quaint mantle
#

so like

#

whats the chance

String.class
Something.class
Minecraft.class

have a bad hashcode and like force a linked list

eternal night
#

"bad hashcode" ?

#

you are talking about collision right ?

sullen marlin
#

Why are you putting these classes in a map

quaint mantle
#

yes

sullen marlin
#

And the chance is very low

eternal night
#

Well, depends on the buckets allocated in the map but yea

quaint mantle
slender elbow
#

i mean even if there are collisions, you are not going to notice

sullen marlin
#

?xy

undone axleBOT
eternal night
#

^

#

its not like your entire hash map just mystically switches to a linked list

quaint mantle
#

well i dont rly have a problem i was just asking

#

but what i was making was like a data container

eternal night
#

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

slender elbow
#

speak for yourself

#

actually no i don't wanna do that either

eternal night
#

Was about to say, you can barely explain how foxes and their tails work so

#

Doubt youd be of much help here

slender elbow
#

i may not be able to explain it

#

but i can show you

eternal night
quaint mantle
#

bruh

young knoll
#

...

#

is scared

vapid grove
#

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?

valid burrow
#

?nocode

undone axleBOT
#

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.

valid burrow
#

i doubt this is related to a plugin you made though right=

vapid grove
#

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

valid burrow
#

this is for developers

valid burrow
#

well

#

you can

#

onPlayerDeath

#

set their spawnlocation

vapid grove
#

Except this is an issue with the end portal

valid burrow
#

you can

#

on playerJoinWorld

#

teleport them where ever you please

#

but

#

its probably easier

#

to just fix your multiverse

vapid grove
#

This is the best example I can show thru someone elses clip

#

Its doing that exact thing

valid burrow
#

well idk

#

ask on the multiverse discord or something

#

if they have one

#

probably do

vapid grove
#

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

tender shard
#

how can I completely get rid of a classloader and all the classes it has loaded?

ivory sleet
#

thats hard

river oracle
#

it'd probably be better to not

ivory sleet
#

but basicallt make sure no strong references to the classloader and the classes

river oracle
#

I mean isn't this why /reload is a mess

ivory sleet
#

its helly fkn hacky

#

^ (y2k)

young knoll
#

PlugMan moment

young knoll
#

I remember it manually called System.GC in an attempt to get windows to release the jar

ivory sleet
#

:,)

#

if only there wasnt a flag to explicitly disable system gc since so many 3rd party libs play w it

young knoll
#

When can we reboot the jvm without the server going offline

#

Don’t question it

eternal night
#

obviously the transfer packet makes that doable NODDERS

young knoll
#

True

#

It’s like bungee without the bungee

eternal night
#

just store the entire world in the player cookies

#

have the server load it

#

profit

young knoll
#

Lol

eternal night
#

use it as ram tbh

#

download more of it by having more users

young knoll
#

Make sure you put your secure values in there

#

Ones that you don’t want the user to change

eternal night
#

Yea, I mean, if you store the DB password and username there

#

you can fetch the user data on any server

#

without configuration

young knoll
#

Exactly

vapid grove
#

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

young knoll
#

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

eternal night
#

if you use gradle you can use the run-task plugin

young knoll
#

That’s not the name of the plugin I know 👀

eternal night
#

oh, the plugin is called run-paper ? kekwhyper I see its published for each run configuration

young knoll
#

Maybe

eternal night
#

I thought it was all under run-task

#

¯_(ツ)_/¯

tender shard
eternal night
#

maintaining a wiki do be rough

tender shard
#

hm not really

eternal night
#

I mean

#

it is a giant project

tender shard
#

if the APi makes sense it's enough to just run javadocs

#

or dokka if one uses a more modern language

eternal night
#

aren't they also like, working on cloud v2

#

I think they are

tender shard
#

yes, v2 has no docs whatsoever

eternal night
#

Well yea

#

it isn't released

tender shard
#

doks for 2.0 = not exist or already dead

rough drift
#

what is cloud

young knoll
#

command framework

rough drift
#

oh

tender shard
#

it's supposed to be a useful command framework

rough drift
#

I wanna make YACF

Yet Another Command Framework

tender shard
#

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)

rough drift
#

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)

tender shard
#

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

ivory sleet
#

well

rough drift
#

smh imagine using a command framework at all

eternal night
#

again, i don't think v2 is released

ivory sleet
#

I think cloud is very solidly coded

#

(incendo)

eternal night
#

there is 0 point in documenting something that is a major release and not finalised

ivory sleet
#

but brigadier does it just fine

rough drift
#

Just hijack brigadier

#

yeah @ivory sleet said it best

tender shard
eternal night
#

you don't use v2 ?

#

v1 should be documented no ?

ivory sleet
#

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

rough drift
#

I just abuse the shit out of brigadier

ivory sleet
#

same

eternal night
#

can't wait for paper to expose dat to the API

rough drift
#

Or

Arrays.stream(args)

eternal night
ivory sleet
#

new emote :o

young knoll
#

He’s running! Get back here

eternal night
rough drift
ivory sleet
#

it would be nice to have the type CommandSender provided instead of CommandSourceStack so a paper W here

eternal night
#

idk, brig is a biiit dangerous

tender shard
#

yeah tbh I am done with them

eternal night
#

now you have a library in the API that is at mojangs whim to be updated

ivory sleet
#

what stops you guys from just writing an abstraction layer on top lynx?

eternal night
#

I mean, 1.9 should not have any breaking changes over 1.8 ?

young knoll
#

Just yeet the one Mojang shades and shade your own version

#

What could go wrong

river oracle
#

I wanna add brig support to spigot

eternal night
ivory sleet
#

fair enough

eternal night
#

which, I don't think a server software wants to do

tender shard
ivory sleet
#

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?

eternal night
#

there

#

idk why 1.9 isn't there tho kekwhyper

#

oh because its also in dev

#

so yea

tender shard
eternal night
#

thats how you find the 1.8 tree ?

tender shard
#

I find it by going to the release??

#

how am I even supposed to know that 1.8 is the correct "latest" version?

rough drift
#

?1.8

undone axleBOT
eternal night
tender shard
#

their spigotmc thread thingy links to the dead link and their core module reradme links to minecraft version 2.0.0-whatever

eternal night
#

like, its not a rolling release

#

¯_(ツ)_/¯

tender shard
#

which page exactly is that? send link pls

eternal night
#

thats my main page ?

rough drift
tender shard
#

yours?

eternal night
#

like

rough drift
#

goddamn

tender shard
#

why yours? are you responbiel for this whole mess?! @eternal night

eternal night
#

what ?

#

no xD

tender shard
#

you said "that's my main page"

eternal night
#

thats just how my normal github page looks for projects ?

#

like in my browser

ivory sleet
#

yea voodoo, its a big commitment to expose brig since mojang maintains it

eternal night
#

thats where my came from

rough drift
ivory sleet
#

mye

rough drift
#

it's really not a big issue to maintain

#

tops one hour after massive changes

eternal night
#

Do you maintain an API that promises backwards compat

young knoll
#

Last I used brigadier all my commands had the minecraft namespace

#

Not ideal

rough drift
#

Yes @eternal night

#

That is the entire point

eternal night
#

oh ?

tender shard
ivory sleet
eternal night
#

Yea you can't

#

which is why I am surprised Ike just accepts it

#

lol

#

unless obviously they wrap brig

ivory sleet
#

pure idealism

eternal night
#

which, sure

#

different thing then

young knoll
#

What would the wrapper be called

#

Brigadierer

ivory sleet
young knoll
#

Expose brigadier, expose direct server internals, add mixins, then yeet the entire Bukkit api and call it a day

ivory sleet
#

papefabrigot

eternal night
#

I will die on the hill that mixins would spell the end for the bukkit based ecosystem

young knoll
#

Because you don’t trust devs?

eternal night
#

Yea

#

it makes any form of support absolutely impossible

#

and I mean, you see what horrible code people shit out with just reflection

tender shard
eternal night
#

giving them the hydrogen bomb of reflective tooling

ivory sleet
#

lynx on a side note, will u put a chicken on ur pfp during easter's eve? :o

tender shard
#

here

#

it says 2.0.0-SNAPSHOT or am I blind

ivory sleet
#

it does say that

eternal night
#

Well yea because that version is also 2.0.0

ivory sleet
#

looks to be in snapshot tho

tender shard
#

yeah sure, it's on sony oss

young knoll
#

POV: spigot

tender shard
#

pretend to be someone who just wants to try out cloud:

#

oh no I died

silent tendon
#

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?

tender shard
eternal night
#

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

ivory sleet
eternal night
#

and then you go off with 1.8.4

tender shard
#

you click on "minecraft" and it tells you to use version 2.0.0

young knoll
#

What if they added it to the default font

eternal night
#

what do you mean, you click on minecraft xD

tender shard
#

aint no purpose in using version 1.8 core

young knoll
#

Also no component api for scoreboards

ivory sleet
#

yeah then im trolling coll :c

tender shard
ivory sleet
#

👀

young knoll
#

Not merged yet

ivory sleet
#

aw

young knoll
#

😩

ivory sleet
#

😭

eternal night
#

you obviously don't start with cloud-minecraft, an adapter for cloud

#

you start with cloud

silent tendon
eternal night
#

.components() when

tender shard
#

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

eternal night
#

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

ivory sleet
#

alex why dont u just screenshare

tender shard
#

I'm looking at their master repo

eternal night
#

Yes

ivory sleet
#

and let lynx tech support help u over vc

eternal night
#

which is 2.0.0-SNAPSHOT

#

which is marked in a giant text at the top of the readme

tender shard
eternal night
#

that is the maven release ?

young knoll
ivory sleet
#

lol

#

yeaa

eternal night
#

idk what else they could do instead of spelling dat one out

ivory sleet
#

all capitals probs

tender shard
silent tendon
#

Maybe it will help if I show how it is in the code and in the texture pack

eternal night
#

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

tender shard
eternal night
#

no but you care about a completed product

tender shard
#

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

eternal night
#

and given that 1.8.4 is the latest release

#

you use that version

tender shard
#

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

tender shard
young knoll
tender shard
#

so how shall I know that what I'm looking at is 2.0.0-whatever?

eternal night
#

on the latest release yes

tender shard
#

not only there.

eternal night
#

the giant banner ?

young knoll
#

Tis why I like to use code points rather than the direct character

tender shard
#

which giang banner?

eternal night
#

the node ?

eternal night
tender shard
#

the note only says that 2 is different?

#

it does not say thast THIS is 2?

eternal night
#

I mean sure, I'll give you that I guess ?

silent tendon
tender shard
#

it literally says "version 1.8.4" above, then later says "version 2 is different"

eternal night
#

quick fix is obviously to PR that to the repo 🙂

river oracle
#

Alex you can calm down and we can use acf :P

eternal night
#

a release is not the master branch tho

#

like idk. I don't go using master branches for projects that have versioning

tender shard
#

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

eternal night
#

ahaaa

#

I mean yea, AFC works too lol

young knoll
tender shard
#

I really don't like ACF and ACF's docs are utter shit

#

but at least it has something

eternal night
#

so does cloud 1.8.4

#

¯_(ツ)_/¯

tender shard
#

okay where are the docs for 1.8.4?

young knoll
#

ACF brigadier support seems a bit dead tho

#

Sadge

tender shard
eternal night
tender shard
#

haha

eternal night
#

1.7.1 docs are compatible+

tender shard
#

yeah that readme is for 1.7.1

eternal night
#

its is not a major release

tender shard
#

how am I supposed to know that as user?!

eternal night
#

you can use those docs

tender shard
#

how am I supposed to know that?

eternal night
#

you have heard of semvar once in your life ?

#

what

eternal night
#

like, you cannot tell me you don't know what semvar is

tender shard
#

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:"

silent tendon
young knoll
#

Hmm then yeah it’s gotta be a resource pack issue

eternal night
#

brev, they all do this for free.

#

If a doc update wasn't neccesary or they forgot, shit happens

young knoll
#

Can’t really help much beyond that, font stuff is magic

eternal night
#

its not a major version bump, so old docs are fine

young knoll
#

And it changed recently

tender shard
#

I mean I can totally understand that sometimes one messes up

eternal night
#

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

tender shard
#

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"

eternal night
#

Yea

tender shard
#

haha

#

yeah ok

eternal night
#

As I suiggested

#

go fucking PR that

#

its open source for a reason

#

you complain and complain and complain

#

instead of fixing it

tender shard
#

i would fix it if I knew how to

eternal night
#

its a bloody PR

silent tendon
eternal night
#

to a readme file

tender shard
#

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

young knoll
#

Are you on the same version the template/video was made for

tender shard
#

the people on their discord also don't know anything

eternal night
#

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

eternal night
#

das a 2 liner

young knoll
#

Because I know Mojang changed fonts a bunch recently

tender shard
#

their artifact isn't even in the repository they mention in their readme 😄

#

yeah no thanks

silent tendon
tender shard
#

🥲

slender elbow
silent tendon
#

I'll test the same version as in the video

tender shard
#

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

slender elbow
#

i suggest you take a chill pill and go to sleep

#

and also consider actually contributing to OSS

tender shard
#

but at least ACF's docs are matching the version

eternal night
#

ACF had its last commit 3 months ago

tender shard
#

do the docs expire after 2.5 months?

eternal night
#

its a mature af project that had had the time to do docs

river oracle
#

Reminds me of when Alex tried gradle

tender shard
#

no,ACF's docs are literally shit too

eternal night
#

cloud is literally currently moving to a new major version

#

even worse then cat_what

#

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

tender shard
# tender shard no,ACF's docs are literally shit too

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

slender elbow
#

2.0.0 is not a release

#

which is why it isn't on central

tender shard
#

then why does the github repo tell you to use 2.0.0

slender elbow
#

idk javadoc.io shows whatever is on central, so, 1.8.4

tender shard
slender elbow
#

yeah

#

which is why there is a separate repo

tender shard
#

(for the bukkit module)

slender elbow
#

the github readme doesn't say that?

eternal night
#

they are looking at cloud-minecraft I think ?

slender elbow
#

it literally says -SNAPSHOT and right there it also shows adding the snapshot repo

tender shard
slender elbow
tender shard
eternal night
#

I too ignore the main api

tender shard
#

don't tell me that it does not say 2.0.0

eternal night
#

and instantly go to the adapter NODDERS

slender elbow
#

why do you think the readme is called readme

#

because you are supposed to read it

eternal night
#

especially as a new user to the project, that is a very smart idea NODDERS

tender shard
# slender elbow because you are supposed to read it

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:

slender elbow
#

the main project readme

#

which you didn't read

eternal night
tender shard
#

the main project does not say ANYTHING about the minecraft repo

#

it talks about "cloud 2" which is "not compatible"

slender elbow
#

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

eternal night
#

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

river oracle
#

My bad guys shoulda said ACF originally

tender shard
#

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

river oracle
#

Either we switch to ACF or just use the snapshots

slender elbow
#

i love the part that says 1.8.4 is the latest

river oracle
#

Idc what we do but we need to stick with sun

eternal night
#

tbf, github releases is a new concept

#

not a lot of people use those

slender elbow
#

haven't they been a thing for years?

tender shard
#

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)

river oracle
eternal night
slender elbow
eternal night
slender elbow
#

could be unstable etc

eternal night
#

you refused and instead have done nothing but shitting on a project people pour their energy into

tender shard
river oracle
eternal night
tender shard
#

even ealier you yourself said "lol that's just the maven central link, 2.0 is latest?"

river oracle
#

I really don't care about the docs I'm a fiddle around and figure it out type of guy

eternal night
#

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

tender shard
eternal night
#

its all the same fucking version

tender shard
#

no it's not

eternal night
#

they all have the same versioning scheme

slender elbow
#

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)

tender shard
#

the only javadocs link I found is from the spigotmc thread

#

but all the links from that are dead anyway

river oracle
#

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

slender elbow
#

which is why forums suck

slender elbow
#

but that's another discussion

eternal night
#

use whatever you want, just, less shitting on peoples work is a nice thing to do

tender shard
#

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

tender shard
#

what's that

eternal night
#

your contribution to a project that you have had issues with for the past 2 years now

#

0 issues about it

tender shard
#

i don't understand what you are talking about

eternal night
#

0 PRs

tender shard
#

oh you mean I should have improved the docs?

eternal night
#

Y'know, what open source kinda lives off of

tender shard
#

most of the time I use ACF i don't even know if'M doing it correctly

eternal night
#

I mean, you have spent 2 years with it. Surely you have some understanding.
Given how "terrible" those docs are, every improvement counts 💪

tender shard
#

also ACFs docs are not nearly as shit as cloud's are - even a total idiot would imediately figure out how to use it

tender shard
eternal night
#

to your standard they seem really shitty

#

at least that is what you said like, a couple messages ago

tender shard
#

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

eternal night
#

So why did you call it "really shitty" ?

#

hm ?

tender shard
#

probably because I have unrealistic expacations

eternal night
#

Sounds like a good thing to start working on 👍

tender shard
#

what ACF does is the bare minimum

#

and what cloud does is an insult, at best

eternal night
#

Truely both projects compare in size and complexity

#

A fair comparison to make, I am sure

slender elbow
tender shard
tender shard
slender elbow
#

i can't read

eternal night
slender elbow
#

just like the readme

#

sorry

eternal night
#

now, you can either use that to shit out small libraries that consist of at best 20 classes

tender shard
#

If you cannot read, then documentation wouldnt help you I guess

#

@slender elbow

eternal night
#

lest say you create that in, hmm 3 days

#

alternatively you use your 4 hours to work on large complex projects

slender elbow
#

and reading the readme surely suits you

tender shard
#

if I write a library in 3 days, I usually spend 2 days of that documenting it

eternal night
#

Okay ?

#

2 days is a valid timeframe

#

documenting cloud is more than a 2 day job

#

a lot longer

paper viper
#

guys chill out 🥶 it aint that deep

tender shard
#

if writing the code takes longer than to describe it, then what's the point of the library?

eternal night
slender elbow
tender shard
#

if people are faster in writing it themselves, there's little point in that library imho

slender elbow
#

that is not what i see in the OSS community

eternal night
#

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

tender shard
#

opinions*

eternal night
#

it is their fucking free time

#

you don't pay them

slender elbow
#

they don't owe you anything

eternal night
#

if you don't manage you to use it, don't

tender shard
#

sure, they can do what they want ,but I am free to say that their docs are shit

eternal night
#

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

tender shard
#

although I want to add that I did state constructive critics instead of just hating it

eternal night
#

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

tender shard
#

where else should I have done it?on their discord? well I mentioned it there too

eternal night
#

a github issue

#

the place where you put issues you have with the project

river oracle
#

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

tender shard
# eternal night go open an issue about it

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

eternal night
#

Yes, you are certainly "allowed" to

#

is it a nice thing to do ?

tender shard
#

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

eternal night
#

like, open source community is already not very forgiving for maintainers

tender shard
eternal night
#

none of them are in the chat here I believe, but like, imagine they would be

tender shard
#

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

river oracle
#

yeah guys even Inventory PR does this smh smh /j

#

speaking of Inventory PR does miles indulge in Command PR next??

eternal night
#

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

tame sedge
river oracle
tame sedge
#

Oh god, how can I change my name

eternal night
#

Have some uni work left 👍

river oracle
#

not looking forward to it

#

on the bright side I have an embedded systems course and we get to work on arduinos

slender elbow
tame sedge
#

I already did

#

Over a year ago

river oracle
#

10 dollars bucko

slender elbow
#

or become white like me

tame sedge
#

done.

#

23 years strong bb

slender elbow
#

lmao

young knoll
#

Ha nerds

eternal night
river oracle
young knoll
#

I graduated last month

eternal night
#

congrats on the masters 💪

river oracle
young knoll
#

Yeah that’s what I have

tame sedge
young knoll
#

I have a PHD in codology

river oracle
#

Can you change names coll

eternal night
#

idk, maybe coll can even do it

young knoll
#

I can

eternal night
#

Easy

young knoll
#

Link me your forums account

tame sedge
eternal night
#

OMFG

#

IT IS FUCKING EVIDENT

#

HAHAHAHA

slender elbow
#

big

tame sedge
#

😭

slender elbow
#

embed

young knoll
#

Someone seems to have a legacy

river oracle
#

Who is evident

young knoll
#

¯_(ツ)_/¯

river oracle
#

I smell papers

slender elbow
#

the best trucker in the midwest

river oracle
#

Oh cool

#

I love the modwaet

#

Midwest

young knoll
#

Modwet

paper viper
#

modwaet

tame sedge
young knoll
#

👍

tender shard
eternal night
#

merci 👍

slender elbow
#

let's go

river oracle
eternal night
#

Oui

slender elbow
#

💀

river oracle
#

Shu I lt

young knoll
#

How much did the dentist give you

keen jackal
#

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

river oracle
tender shard
river oracle
#

This time the dentist payed me

young knoll
#

You’re a boat?

river oracle
young knoll
#

Ah cool

tender shard
#

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

young knoll
#

Pretty sure there is a getDefaultPopulators method

keen jackal
young knoll
#

It’s after vanilla populators

#

So basically right at the end

keen jackal
#

So the steps are, generate chunk -> populate it with all populators

#

Hm ok

#

Is this what you would use to place structures

#

Like villages?

young knoll
#

Yes

keen jackal
#

That sounds like a pain when it comes to multiple chunks

#

Hm

#

😵

young knoll
#

That’s what jigsaws are for

keen jackal
#

Sorry, what's that?

#

As in the block?

paper viper
#

jigsaws help construct large structures like strongholds from smaller components

keen jackal
#

Any examples I can reference?

young knoll
#

Not that I know of

tender shard
young knoll
#

I also don’t know if the api structure place method triggers jigsaws

paper viper
#

honestly it's a bit undocumented too theres not much on the internet

tender shard
keen jackal
#

Can you walk me through how jigsaws work a bit

#

Would appreciate it

scenic merlin
#

anyone know how to get a /sell menu progression? like in DonutSMP where the more you sell the higher your sell multiplier gets?

tender shard
young knoll
#

Don’t cross post to every channel

scenic merlin
#

im not asking abt spigot api specifically

river oracle
tender shard
paper viper
# keen jackal Can you walk me through how jigsaws work a bit

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

▶ Play video
scenic merlin
#

just asking if anyone knows a plugin or a way to do it?

paper viper
#

its a bit outdated

#

but it still gets the idea

river oracle
tender shard
scenic merlin
#

ok

tender shard
#

fr this channel should be renamed

#

help-coding

young knoll
#

You can do structures with just a datapack these days

tender shard
#

or help-enrique-iglesias-who-can-take-my-breath-away-@jagged quail-what??

young knoll
#

Sadly not as configurable or easy to use as a plugin

tender shard
young knoll
#

I dont have that power

river oracle
#

you gotta go straight to the slime

tender shard
#

we need an enrique iglesias emoji

river oracle
#

he's kinda cute

tender shard
#

ikr

#

which one shall i use

#

second one he looks liek a hobo

#

hm

keen jackal
#

@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

paper viper
#

i think SimplexNoiseGenerator is perlin noise?

keen jackal
young knoll
#

One uses perlin noise the other uses octave noise

keen jackal
#

Ahh

#

Thank you

#

Never heard of octave noise before

young knoll
#

Neither have I

keen jackal
#

Mmm, not sure if that's a thing

young knoll
#

Creates simplex noise through unbiased octaves

#

Vs

#

Generates simplex-based noise.

#

¯_(ツ)_/¯

keen jackal
#

🧠

#

I wish I studied more about this

paper viper
#

maybe take a look at the code and see how its different?

keen jackal
#

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

young knoll
#

Is the impl the same?

keen jackal
#

SimplexOctaveGenerator just wraps SimplexNoiseGenerator

#

But has a loop for octaves

#

Which also exists in NoiseGenerator interface

#

So seems like pretty much the same thing?

young knoll
#

No idea

#

That api is ancient

keen jackal
#

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

sterile token
#

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

wintry lynx
#

Is it possible to set an entities data before spawning it or no?

young knoll
#

Yea

#

There is a spawn method that takes a consumer

wintry lynx
#
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.

remote swallow
#

World#spawn(location, entitytype, snowball -> {
snowball.setItem(item);
}

wintry lynx
#

oh dang

wintry lynx
remote swallow
#

read what i typed

#

i use spawn not spawnEntity

#

and you still need to pass a entity type

wintry lynx
dry forum
#

how would i go about moving an armorstand based on where its punched? ex, the lower down the higher it goes

young knoll
wintry lynx
#

I just keep getting Non-Static method error

#

Which makes sense since the object doesnt exist yet

young knoll
#

Show code

wintry lynx
#
  Snowball.setItem(item);
});```
Error at 'setItem' in `Snowball.setItem(item);`
young knoll
#

Your variable is called snowball

#

Snowball is not the same as snowball

#

Also use the entity class rather than entity type

wintry lynx
#

capitalizing it makes it just say not found lol

young knoll
#

Lower case the other one

wintry lynx
#

But yea making it a class fixed it

#

Thanks a ton

young knoll
#

On a normal server it’s 48x48

keen jackal
sullen marlin
#

Call the method, don't hard code

keen jackal
#

Thank you

fallen fable
#

Is there a way to turn on sand duping in spigot and villager exploiting

young knoll
#

Sand duping isn’t patched on spigot

#

The villager discount exploit has been patched by Mojang

fallen fable
#

Actually didnt know mojang patched that

young knoll
#

Believe it was 1.20.3

keen jackal
#

Could probably just remake it, but not sure which sand dupe you’re referring to

young knoll
#

Like I said it isn’t patched on spigot

#

It is however patched on forks of spigot

fallen fable
#

Im using the shulkercraft one and the sand wont stick onto the slime

keen jackal
#

That’s odd

sterile token
keen jackal
#

It’s a fork of bukkit which is a wrapper on nms

#

So just assumed it got pulled in

sterile token
young knoll
#

Villager discount is patched on vanilla and therefor spigot

#

Sand duping isn’t patched on either

keen jackal
#

Ah

sterile token
#

I was reading about it but i thought it was already, so just forget what i h've said

keen jackal
#

I’m dumb lol, oops

fallen fable
#

I got it working someone touched the servers tps

cursive kite
#

How can I remove health bar from NPCs

inner mulch
#

?nocode

undone axleBOT
#

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.

inner mulch
echo basalt
#

Sounds like a TAB issue

#

Or an incompatibility with your scoreboard plugin

near kite
sullen marlin
#

Looks like a config to me

torn shuttle
#

today in sussy usernames asking for support on my discord server:

#

hmm....

smoky anchor
near kite
smoky anchor
#

yep, the inconsistent names

near kite
torn shuttle
#

anyone have any idea if running the spawnentity method on a location loads the chunk

#

god fawe is inconsistent

echo basalt
#

probably

torn shuttle
#

I need to get better a regex

#

or I need to ask chatgpt to generate regex for me more often lol

rotund ravine
torn shuttle
#

de-pa-chagpt-o

lament wadi
#

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

ivory sleet
#

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

keen jackal
eternal night
#

Tbf, if you have to count the bytecode instructions for your util collection you probably have other things to improve first

keen jackal
#

Just make it native at that point

quaint mantle
#

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)

spare prism
#
                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
sullen marlin
#

Where is the player variable coming from

eternal oxide
#

Why call UUID uuid = discordUtilsUser.getOfflinePlayer().getUniqueId(); when you already have a Player?

spare prism
eternal oxide
#

also, are you caching the Player object in DiscordUtilsUsersCacheManager?

spare prism
sullen marlin
#

You need to clear the cache when the player quits

#

You're likely leaking stale player objects

spare prism
plain oxide
#

Please teach me how to create colored BED and INK_SUCK ItemStack

eternal night
#

materials are flattened

#

etc

eternal oxide
#

paper

plain oxide
#

sorry,I forgot to mention that I'm using Spigot 1.12.2
I couldn't do this

eternal night
#

oh sorry

#

ehhh, 1.12 is olddd

#

pre flattening, so you'd use the data byte

#

gl tho

slate mortar
#

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?

eternal night
#

hm ?

#

the sources exist on spigots stash

slate mortar
#

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

eternal night
#

the sources for the api as well as their javadocs are published iirc

#

your IDE can download them

slate mortar
#

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

eternal night
#

you are not even using the api?

slate mortar
#

in the pom at least

eternal night
#

well how does your pom look

slate mortar
#

tried with and without the default repos

eternal night
#

I mean yea, you'd 100% need the spigot repo attached

minor junco
eternal night
#

idk how the spigot server artefact is setup

slate mortar
#

with those 2, it's the exact same

eternal night
#

easy enough to just smack the api dependency in there ?

ivory sleet
#

What about adding both spigot-api and spigot

#

^^

slate mortar
eternal night
#

yea^

minor junco
#

Loo

#

Lol

slate mortar
#

same error with both

minor junco
#

Try spigot API

#

Ok nvm

eternal night
#

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

slate mortar
#

below

eternal night
#

Try above

slate mortar
#

and my ij just crashed from just dragging a file smh

eternal night
#

maven goes top to bottom for resolution

slate mortar
#

still same

eternal night
#

out of ideas then ¯_(ツ)_/¯

#

sorry

slate mortar
#

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?

eternal night
#

the server does not have sources

#

the api has

slate mortar
#

tf

eternal night
#

but if your maven fails to download them from the repo, not much to do

slate mortar
#

is there some way to get them manually into place?

#

like some place to download

eternal night
#

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

slate mortar
#

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

eternal night
#

kekwhyper nah the API is fine

river oracle
#

Yeah the api sources are questionable sometimes tho lol

eternal night
#

as long as you don#t download bungeecord api sources

river oracle
#

I'm totally part if the problem

eternal night
river oracle
#

Lynx I've decided I'm nolonger retiring after inventory pr

slate mortar
#

where does it save those sources?

river oracle
#

I have received my next calling

eternal night
#

what is it xD

river oracle
#

Command API