#help-development

1 messages · Page 807 of 1

rotund ravine
#

That’s a bummer then

storm crystal
#

make them do X shit that they are not naturally supposed to do

rotund ravine
#

That’s a cool question i wonder what they are

storm crystal
#

idk like enemy will not go to melee range with you but will stay in range space and just aim at you

#

when they are aggro'd

#

whats the approach to this shit

rotund ravine
#

Oh ur coding ur own game nice

proud badge
#

whats the difference between BanList.Type.PROFILE and NAME? ChatGPT keeps telling me to use NAME or UUID but both seem to be deparcted

minor junco
#

I mean what you can also do is create your own utility class with static strings for each color, then you can simply concatenate but it's kinda useless BUT at least a workaround 😆

storm crystal
#

dont forget to blame me for wasting ur precious time

glossy venture
#

that could be pretty useful

minor junco
#

It can be but not if you only need that once yk

glossy venture
#

u could standardize some more complex formatting too

#

ig

minor junco
#

I guess

#

If you have a bigger plugin where you have a lot of messages it can be useful

#

I might actually integrate that into a Minigame library of mine lmao

storm crystal
#

how do I play 2 strings of messages in one line ingame

minor junco
#

Wdym

#

Just concatenate them?

storm crystal
#

whats concatenate

glossy venture
minor junco
#

Dusk you're a type of guy that would never consider googling anything but relying on others lmao no front

#

Haha

#

You basically add two strings

storm crystal
#

wouldnt that throw exception

glossy venture
#

no

rotund ravine
glossy venture
#

"a" + "b" = "ab"

rotund ravine
#

They’re guessing

minor junco
glossy venture
#

also string + object = string + Objects.toString(object)

#

"a" + 69 = "a69"

storm crystal
rotund ravine
#

Nice

rotund ravine
minor junco
#

Haha 💀

storm crystal
#

sorry for not being able to come up with the most efficient solution everytime

rotund ravine
#

We’d love that

minor junco
#

It's all good at least it's a bit amusing dont take it too seriously

glossy venture
#

true

proud badge
glossy venture
#

first try to google shit tho and otherwise ask with context

storm crystal
rotund ravine
proud badge
#

ok thanks

storm crystal
#

well then dont expect me to treat you any fair or seriously

glossy venture
#

thats fair

minor junco
#

@storm crystal just preparing you for what comes to you when you go to stackoverflow with the way you're asking

glossy venture
#

fr

#

so is aids tho

minor junco
#

Honestly that environment is much more hostile than we could ever be, were friendly compared to them mate

storm crystal
#

the most ill ever do with programming in my lifetime career is scripts in python

bitter rune
#

id look up hiarachy charts and pseudocode, and project management; it will help put your ideas into actual code

storm crystal
#

or in shell

minor junco
#

Okay

storm crystal
#

I mean you do know that it'd mean I wouldnt have to hold myself back with slurs too

#

so that wouldnt be as bad of environement

rotund ravine
#

Lol

#

Go there then

glossy venture
#

never hold back with slurs is my motto

native gale
#

Hi guys

#

Is there a way to change server-icon.png without rebooting?

rotund ravine
#

Hello I am guys

rotund ravine
young knoll
#

Iirc there is an event

storm crystal
#

how do I add "ColorChat.BOLD + ColorChat.RED" to database so that i could get it back as color into message

native gale
rotund ravine
#

Convert em to string

storm crystal
#

I didnt ask for list of colors

native gale
#

Add §l§c to your database

storm crystal
#

yall told me to NOT use it

native gale
storm crystal
native gale
wet breach
#

It actually can be handy to change it

native gale
storm crystal
#

so whats the example of serialization in spigot

wet breach
native gale
#

Hololive fan server?

wet breach
#

yep

#

I like the welcome it does

#

although my pfp doesn't fit the theme however

lost matrix
# storm crystal so whats the example of serialization in spigot
    // Creating a new component
    BaseComponent component = new TextComponent("Hello World");
    
    // Serializing component to json
    String json = ComponentSerializer.toString(component);
    
    // Deserializing json to component
    BaseComponent[] deserialized = ComponentSerializer.parse(json);
storm crystal
#

or ColorChats w/e I dont remember them

river oracle
wet breach
#

just fyi there is varying types of serializing, but essentially all it is, is just a way to combine the data or object into a representation that makes it easy to either store or move it elsewhere

river oracle
alpine urchin
#

would you rather have 5 millions or cancer?

lost matrix
wet breach
#

cancer

alpine urchin
#

wtf

#

it's pretty basic

#

pov: frostalf alraedy has cancer

storm crystal
#

im not going to rely on someone's external shit

river oracle
lost matrix
wet breach
storm crystal
#

what happens if I dont serialize

wet breach
#

I could also not be alive as well, I would never know

river oracle
glossy venture
torn shuttle
river oracle
#

Instead of a single base Component

glossy venture
#

i know

#

but its not that hard to convert

lost matrix
storm crystal
#

I dont want to save message in db

wet breach
#

should store it as base64 then

river oracle
storm crystal
#

I want to save text with colors and then just reuse it

#

and then put it to message

glossy venture
alpine urchin
#

was talkint bout frostalf

glossy venture
#

cant u serialize it to json

river oracle
#

Then use MineDown minedown is great for parsing strings into styled messages

alpine urchin
#

he took cancer over 5 million dollars

wet breach
#

makes it kind of like safer

glossy venture
#

but since the json serializer is built in

#

might as well

lost matrix
alpine urchin
#

@wet breach if i have 5 million dollars, for 72 years how much can i spend a day

storm crystal
glossy venture
#

i would just recreate that on location

wet breach
#

well you don't to store it as a binary object in a DB typically, but it depends which DB I suppose. MySQL you generally avoid blobs unless it can't be helped

glossy venture
#

store the raw name of the mob as like legacy text and rebuild the name from the variables where u need it

glossy venture
#

uses bson already

#

would be nice

lost matrix
alpine urchin
#

best jobs to be a pervert:
a dentist. if a bad girl came to my office, and got to put to sleep with her mouth wide open, idk mannn

alpine urchin
#

so low

#

damn

torn shuttle
#

wake the fuck up

rotund ravine
alpine urchin
#

tf?

storm crystal
#

I need it because its name of the enemy that I want to store

#

in db

#

SQLite

glossy venture
#

is there a reason you cant reformat the name

#

from the variables

#

when u need it

#

if u just need color id store it as legacy text btw

storm crystal
#

im not going to make separate method to spawn an enemy just to hardcode every color combination

lost matrix
lost matrix
#

You type the name of an "enemy" into a database by hand?

wet breach
#

lol

storm crystal
#

and?

glossy venture
#

if u want a plain answer to ur question:

String name = ChatColor.RED + "enemy bob";

db.save("bob", name);

String formattedName = db.load("bob");
wet breach
glossy venture
#

if ur using components use either like json or serialize to legacy text

storm crystal
#

wow I dont have every single thing in my plugin made by a manager

lost matrix
storm crystal
#

I said I want to save a string, whatever this is, with colors in a single cell of database

lost matrix
# storm crystal and?

You should use a config file for that. Databases are meant to store data. Not configurations.

glossy venture
grand flint
#

would it be easy to implement viaversion into minestom?

glossy venture
storm crystal
lost matrix
# storm crystal data

If you have to manually write it into a database by hand, while the server is offline, then its configuration.

glossy venture
#

or does it not work like that

grand flint
#

well i can if it worked

rotund ravine
grand flint
#

yet nobody fucking helps in via support

glossy venture
#

rip

grand flint
storm crystal
grand flint
#

one fucking response and it was a "yes."

storm crystal
#

but thats so hard besides point

glossy venture
lost matrix
glossy venture
#

i cant imagine converting packets to be that hard logically

#

but just a lot of mappings to type out

#

ig

grand flint
#

well would it be easier if im only using like 3 versions?

glossy venture
#

yes

grand flint
#

1.20, 1.20.1, 1.20.2

#

and such

wet breach
storm crystal
#

I was asking how do I parse it so that I could have it lying in database and take it so that it would produce a colored string when put into message for player

grand flint
#

just latest version and its subs

rotund ravine
torn shuttle
#

I miss going to the gym

glossy venture
lost matrix
glossy venture
#

and u want to support n client versions

grand flint
#

wait

glossy venture
#

and n is like 2

grand flint
#

if my server is 1.20.2

glossy venture
#

its n ot that hard

grand flint
#

can 1.20 join?

#

without viaversion

glossy venture
storm crystal
#

I am not asking for that bro I dont care by a ton what I should or should not store in a database, it is as it is for now that's overseas besides the point

glossy venture
#

seems like the protocol is slightly different

grand flint
#

rn servers on 1.20.1

#

via doesnt work

#

1.20 can join

#

whats 1.20's protocol

wet breach
#

as you can see the protocol versions are different. Therefore 1.20.1 can't join 1.20.2

glossy venture
#

chat colors are just strings when u use them

#

theyre remembered

#

using the section sign unicode char

lost matrix
glossy venture
#

no special shit going on

storm crystal
glossy venture
#

its data so format doesnt matter

grand flint
#

ok so i only need to make it work for like 3 protocols

#

should be easy no?

glossy venture
lost matrix
glossy venture
storm crystal
glossy venture
#

== ChatColor.translateColorCodes('&', "&chi")

storm crystal
#

I am not going to rewrite it entirely just so you'd be pleased that I used it in a correct way

#

it works? it works

glossy venture
#

so just store the string

#

ok

#

store the string

lost matrix
glossy venture
#

wait is it translateAlternateColorCodes?

young knoll
#

Yes

storm crystal
#

I didnt ask to be scolded or trashed

#

I asked for help

glossy venture
#

ive been using my own method for so long

storm crystal
#

do you help your relative by saying that they suck?

torn shuttle
rotund ravine
#

I would be honest to my relatives so maybe

torn shuttle
#

sometimes I'll even say it when it isn't helpful

storm crystal
#

retirement home speedrun any%

torn shuttle
#

just two days ago I did the fortnite L dance on my sister

lost matrix
young knoll
#

I don’t think my relatives are going to put me in a retirement home when I’m old

#

Unless they are that one character from SpongeBob

torn shuttle
#

retirement home? they'll take you out back with a shotgun so you can go live in a farm upstate

young knoll
#

Nah we don’t have guns here

glossy venture
#

not legally

torn shuttle
#

you can make shotguns with material from any hardware store, it's not a problem

glossy venture
#

^

torn shuttle
#

shoutout to the us army improvised field weaponry or whatever that manual was called that shows you how to make a shotgun for $3 worth of materials

young knoll
#

I also don’t have a backyard

#

Checkmate

torn shuttle
quiet ice
#

oh we have summoned frostalf

glossy venture
#

the jezus of the spigot discord

lost matrix
wet breach
rotund ravine
#

Same

torn shuttle
young knoll
#

Stump remover?

#

We just grab some beavers for that

torn shuttle
#

not to mention even countries without guns frequently still allow you to just buy guns for hunting

lost matrix
torn shuttle
#

there's no second ammendment here but there is a boar problem

#

and you are free to go hunting for a solution

wet breach
#

just call them boars

torn shuttle
#

Beleaguered Old Almost Retired Seniors

wet breach
#

lol

torn shuttle
#

last will hunting

torn shuttle
#

I do wonder how many countries exist where you can't get guns even in the context of hunting

#

I'm sure they're out there

#

look at that

rotund ravine
#

Fun

torn shuttle
#

I'm surprised you can't go hunting in vatican city

rotund ravine
#

Chin people wilding

torn shuttle
#

how is monaco not in there lol

#

or andorra

lost matrix
torn shuttle
#

I wonder in NK how hard it is to get your hands on a gun considering everyone is a part of the military

#

also considering the things I've seen from somalia I feel like they might've failed to enforce that one

lost matrix
#

What would you need a gun for in the first place when living there?

torn shuttle
#

in NK?

lost matrix
#

y

torn shuttle
#

no reason whatsoever, that place is a utopia in a dystopic world

#

everyone is so happy no one goes in and no one goes out

lost matrix
torn shuttle
#

fewer exceptions with each passing decade as it would seem

lost matrix
#

I dont have enough knowledge about the geopolitical development over tha last few decades to make a statement about that tbh
(For Africa that is)

wet breach
torn shuttle
wet breach
#

at one point they did have one

torn shuttle
#

at least last I checked that thing was devolving into a bunch of semi-independent states

wet breach
#

but then it like died

torn shuttle
#

the country just hasn't been the same since people started watching pirates of the caribbean

wet breach
#

lmao

bitter rune
#

as long a speople get along why does it need to be one united government?

torn shuttle
#

they are killing each other

bitter rune
#

that isnt getting along

torn shuttle
#

yeah, shame there isn't some kind of government to sort that one out

clever musk
#

Is there a method to spawn fake mobs?

young knoll
#

No

#

But you can spawn a real one and only let certain players see it

clever musk
#

How so?

kind hatch
#

Player#showEntity()

#

Pair it with #hideEntity()

young knoll
#

And setVisibleByDefault

torn shuttle
#

finally

#

the plugin is ready for release

brazen tartan
#

so I have known java for a while now and told my friend I'd make him a plugin having never made one before and I'm trying to code a cooldown for an item that has a coded effect when paired with shift+[RMB] I tried many iterations of both the runTaskLater and scheduleSyncDelayedTask methods (before realizing that scheduleSyncDelayedTask was deprecated) I've been running them inside a for loop and don't know how to properly initialize them for my purpose or if there's a different method I should be using.

torn shuttle
#

it's done boys

wet breach
chrome beacon
#

Also uh just use a timestamp

brisk jetty
#

Heyyy, so i often come in here with very simple problems that i just cant figure out cause im tired and i assume this is another one of those cases

I am currently getting a string from a yaml file and putting that into the page of a book and giving it to a player. Except no matter what i do i cant seem to get \n to actually create a new line and not just put the literal "\n" in the text of the book

brazen tartan
grand flint
brazen tartan
#

and I dont know the library as i said

chrome beacon
#

?scheduling

undone axleBOT
wet breach
#

?jd-s

undone axleBOT
clever musk
#

Is there a method to get the book item in a particular slot in the chiseled bookshelf?

#

I'm not seeing one

brazen tartan
#

        BukkitRunnable task = new BukkitRunnable() { @Override public void run() {}};
        int id = task.getTaskId();

        cooldown2.addPlayer(player);

        for(double o = 0; o < 180; o++) {
            task.runTaskLater(new _1_20_2(), 20L);
            cooldown2.setProgress(o / 180);
            Bukkit.getScheduler().cancelTask(id);
        }

        cooldown2.removePlayer(player);
        onCooldown1 = false;
    }```
young knoll
#

Cast it to ChiseledBookshelf

kind hatch
brisk jetty
#

Bookmeta.addpage

kind hatch
#

What does your config look like?

brisk jetty
#
  PlayerName: woahh text in a file \n woah new line```

```Players:
  PlayerName: woahh text in a file 
              woah new line```

i mean ive tried both of those if thats what you mean
kind hatch
#

Surround your text in double quotes.

#

You need the quotes if you are using escape sequences

brisk jetty
#

yeah that worked
Ty 😅

kind hatch
#

You can also make a list and use that instead if you wanted to just import it that way. Wouldn’t have to worry about \n characters.

dry hazel
#

you can also use yaml's multi line strings to make it a bit more visually pleasing

clever musk
#

I found a bug

#

Trying to get the slot of a chiseled bookshelf using hit vector, it's only returning the top row

storm crystal
#

is there any tutorial on how to structurize plugin correctly

young knoll
#

?jira

undone axleBOT
storm crystal
wet breach
#

there really isn't an appropriate structure other then needing the appropriate methods for you main class

#

its up to you to design your stuff how you see fit

#

but, the conventions and some other rules are basically what governs the overall things of a java program

#

you separate logic to their appropriate places as needed etc

storm crystal
#

Well apparently my entire plugin doesnt meet standards

wet breach
#

which standards?

#

I probably wouldn't be too worried about standards for you right now

#

I mean sure you could try following a standard if you want, but you are still learning and right now standards shouldn't be on the top of prority list

storm crystal
subtle folio
#

trying to achieve hex colors in chat, why isn't this displaying properly? ```java
public static String translateHexColorCodes(String startTag, String message) {
startTag = startTag.replaceAll("#", "");

    final String prefix = COLOR_CHAR + "x"
            + COLOR_CHAR + startTag.charAt(0) + COLOR_CHAR + startTag.charAt(1)
            + COLOR_CHAR + startTag.charAt(2) + COLOR_CHAR + startTag.charAt(3)
            + COLOR_CHAR + startTag.charAt(4) + COLOR_CHAR + startTag.charAt(5);

    return net.md_5.bungee.api.ChatColor.translateAlternateColorCodes(COLOR_CHAR, startTag + message);```
#

my input is #deb440

sullen marlin
#

you never use the prefix variable?

subtle folio
#

is ChatColor.COLOR_CHAR not it?

remote swallow
#

ntdi

#

you have final String prefix

#

you do not use it

subtle folio
#

oh my god

#

2 am coding be like

worldly ingot
#

Also, if COLOR_CHAR is a section symbol then you don't need to use translateAlternateColorCodes() at all because it's already using section symbols

#

If it's a & then really there's no point in giving it a constant because you're just making your code longer :p

subtle folio
#

eagouenajge you're so right

young knoll
#

Pretty sure it’s §

subtle folio
#

no its actually §

slender elbow
#

i love it when i'm casually writing my daily java code when i just eagouenajge

remote swallow
#

public static void eagouenajge(String[] eagouenajge)

torn shuttle
#

I am not having a fun time managing maven repos

#

oh shit!

#

thanks md5, based

#

finally I look like the gamer I know I always was

remote swallow
#

who is \^.^

#

i only know magma

torn shuttle
#

magma? he sounds like a gigachad

#

a true gamer and a G

remote swallow
#

he had this massive beard untill he shaved it

torn shuttle
#

man I actually grew it back for xmas but the doc shaved it for my surgery while I was out

#

truly you could only get rid of this powerful beard while I was out

slender elbow
#

i am SORRY

worldly ingot
#

Absolutely unacceptable

#

THINK OF THE CHILDREN

slender elbow
#

xqc got his youtube channel DISINTEGRATED

torn shuttle
#

choco

#

do you have multi-module projects with maven repos?

worldly ingot
#

Uhhhh, I think VeinMiner does?

remote swallow
#

no

#

thats gradle

torn shuttle
#

hm?

worldly ingot
#

Well, yeah, it's Gradle, but it's hosted on a Maven repo

remote swallow
#

maven and gradle publishing is different

worldly ingot
#

I'm gonna publish your face into my fist >:(

remote swallow
#

CHILD ABUSE

torn shuttle
#

it doesn't matter for my question

#

I have both anyhow

worldly ingot
#

Yes I have four separate artifacts,

torn shuttle
#

when you're updating the multimodule project do you ever run into issues where the managing repo fails to install / update because the children depend on the parent, and the parent can't install if the children don't install causing circular dependencies that can't update?

#

or do you not have a managing module

#

doesn't look like you do

worldly ingot
#

I don't, no

#

common
-> server
-> bukkit
-> fabric

torn shuttle
#

this really annoys me because my only solution is to unlink the managing module's project from everything else so it can be installed when empty and then readding everything

#

and this is so dumb there surely is a way to do this that isn't like this

remote swallow
#

look at jefflib

torn shuttle
#

also one of these days I will press the wrong button on the intellij prompt after unlinking and actually delete the entire f-ing thing

remote swallow
#

you need a dist module

torn shuttle
#

I do have a dist module

remote swallow
#

make it work then

torn shuttle
#

I think it works

#

I mean, it distributes just fine

#

but it itself has the manager for a parent

#

man I can't get over how good it feels to have my old nick back

#

@sterile axle hello fellow purple

remote swallow
#

do you have nickname perms now

torn shuttle
#

no, my bribe donation message went out with some specific requests

remote swallow
#

kek

wet breach
torn shuttle
#

yep

#

hey frost got an answer for my multimodule question for a bit ago?

wet breach
#

try to not lose it again 🙂

torn shuttle
#

tbf I never did anything to lose it, much like happiness it seems to be something that one can't just hold on to with intentionality

wet breach
torn shuttle
#

so like a profile for building the parent exclusively?

wet breach
#

or build from the parent

torn shuttle
#

I am building from the parent but the way the modules work it will not install if the children fail

wet breach
#

well, you could just have the parent ignore build failures of the children

#

if the parent actually doesn't need the children

torn shuttle
#

hmm

#

that sounds like a fun way to waste time 2 years from now when I forget you need to double install

wet breach
#

lol, shouldn't need to double install, just need to change things around is all

torn shuttle
#

this issue is fundamentally stupid

wet breach
#

typically, the children should rely on the parent, not the parent relying on the children

torn shuttle
#

I would agree

#

I wish that's how it worked

#

further when I install it I wish it installed from the top down

#

but I guess it wants a final jar

wet breach
#

but, you could use one of the maven plugins to drop to a script too though if this is a weird setup where you could make sure stuff is prepared like it needs to be

sterile axle
torn shuttle
#

we are so back

#

what a great day for me and, therefore, humanity

young knoll
#

I hate to say it

#

But purple kinda better than orange

remote swallow
#

resign and donate 100$ to md

#

boosh

torn shuttle
#

bet it's set up such that helpers have higher color priority

wet breach
#

hmmm

#

debating between the pink or the purple

torn shuttle
#

I've never really looked behind the curtain too much, does spigot frequently access and modify fields that are private/protected in the source code?

sullen marlin
#

sometimes

torn shuttle
#

would a contribution that allows modification of boundingbox be potentially accepted? It's a private field in Entity

young knoll
#

You’d have to provide proper api for it

#

But it won’t be client synced so it’d be kinda jank

torn shuttle
#

yeah... hm

#

maybe not worth it considering since post-1.19.4 we have special entities that let you bypass this issue

young knoll
#

Well you could always pr a time machine first

torn shuttle
#

shame the client doesn't sync hitboxes though, that's very exploity

torn shuttle
#

uh was there a way to get a plugin's version from the spigot api?

#

I'm pretty sure there was right

#

found it

quaint mantle
#

how do i increase the font size of only the code editor in intellij?

river oracle
#

bro I am like a googling fucking machine holy shit @quaint mantle

#

legit ctrl+c ctrl+v am I great

#

wait If I don't use google do I call it duckduckgoing xD

torn shuttle
#

and I broke intellij again

#

I managed to make it forget a class exists

#

how does this even happen

river oracle
torn shuttle
#

what is this intellij

river oracle
#

my guy just make the class 🧠

#

😂

torn shuttle
#

I don't even know how to fix this

#

guess I'll try to rebuild the indices

river oracle
#

the greatest thread of all time holy

slender elbow
#

have you tried, like, importing it?

torn shuttle
#

yes

slender elbow
#

god forbid manually importing classes

torn shuttle
#

I did that

quaint mantle
#

its different for every like tab

#

nvm

#

i need to save

torn shuttle
#

it's very funny because it will autocomplete a suggestion for the class name when manually importing but then say "yo that don't exist"

river oracle
#

:P

#

Classic Intellij shaninegans

quaint mantle
#

what editor calls the zoom

#

font size

#

😭

torn shuttle
#

that's because it's not literally zooming in, it's changing the font size

#

you're the one who's wrong

river oracle
#

I think i'm going to give MD $10 for christmas this year

torn shuttle
#

oh hey

#

the fix IDE button actually worked

#

I'm actually surprised

river oracle
#

xD

#

only on IntelliJ

torn shuttle
#

?paste

undone axleBOT
torn shuttle
river oracle
#

I still like them

#

I don't like the lack of curly braces but Ill live

quaint mantle
#

WTF

#

is it just me but stacking parentheses is super ugly

#

like the max amount of parentheses I'll have together is two

river oracle
#

ugly but unavoidable unfortunately

quaint mantle
#

wdym un avoidable

river oracle
#

plus its better on the single line statements than making all of those multiline

quaint mantle
#

I just make a variable

river oracle
#

why put stuff into memory if you don't need too

#

its a waste

torn shuttle
#

yeah what I really want it to create 10,000 variables every time anything gets hit

#

that's super cool and lit and very clever

quaint mantle
#

Ok well I doubt that's going to have much impact

torn shuttle
#

no joke it's one of the biggest issues with my main plugin right now, FMM is the first one where I've started actively optimizing declarations

torn shuttle
river oracle
#

It does matter especially as your project scales

#

memory optimizations are needed

quaint mantle
#

ok idk how you guys are doing it

#

but there's no way a local variable is keeping an object alive if you do it properly

young knoll
#

Local variables go on the stack

river oracle
#

^

quaint mantle
#

yeah but doesn't the jvm clean it

river oracle
#

GC is slow

#

compared to C/C++

young knoll
#

It’s on the stack

#

It doesn’t need to be GCed

torn shuttle
#

this is the size of this plugin alone, and this does not include the fact that I am shading a plugin for NMS-constrained code and now using a different plugin to animate models exported from Blockbench

river oracle
#

damn frank sinatra is hitting different

#

on that 1999 remaster

torn shuttle
#

1999 was al ong time ago

#

we are closer today to world war 3 than to 1999

river oracle
#

I'm moving to switzerland before WW3 for that sweet sweet nutrality

torn shuttle
#

I think switzerland felt like it missed out on ww2 considering it broke its neutrality to sanction russia

#

personally I'm going to madagascar instead, no one cares about madagascar

river oracle
torn shuttle
#

$200? my nigerian relative was asking for $2000

river oracle
#

he had it in his will that I pay no more than that

quaint mantle
river oracle
torn shuttle
#

ah mine was the king and needed help moving stacks of gold bars

river oracle
#

it can be beneficial to use them

river oracle
torn shuttle
#

it depends on what you're doing

quaint mantle
#

I feel like the jvm inlines them anyway when you create a local variable like how I explained

torn shuttle
#

if you're calling something on a player move event and you have 100 different fields declared every time you're going to have a bad time

#

java scopes it to be gc'd but there are as far as I know no special routines for clearing memory differently based on scope

river oracle
#

there are also cases like

        final GeneratorItem genItem = Registries.generatorItem().getOrNull(genItemKey);

Where obviously its better here to save this item in memory rather than use my registry every time

torn shuttle
#

I mean such an example is in the snippet from earlier

#

I cached a get from my map

#

I do wish there was a cleaner way to negate instanceof though

river oracle
#

notinstanceof keyword when???

torn shuttle
#

!instanceof

#

man I really want to go the gym

river oracle
#

I wish I could still work out like I used to :*)

#

I feel like I'm 90 when saying shit like that

torn shuttle
#

are you even older than me

river oracle
#

I'm 18

torn shuttle
#

what happened then, did you lose both legs

river oracle
quaint mantle
#

what did bro do

torn shuttle
#

doesn't sound like you're going to have to wait for very long then

river oracle
quaint mantle
#

What sports

torn shuttle
#

clever

river oracle
#

which really isn't smart

river oracle
torn shuttle
#

golf's def the one that did the trick

river oracle
#

fr

#

that did me in

quaint mantle
#

I got injured too

#

esports

river oracle
#

mental injuries from getting shit talked too hard

torn shuttle
#

hypertension due to high salt intakes

quaint mantle
#

have any of you guys took Adderall

river oracle
#

No I pretty much abstain from any drugs/medication unless absolutely necessary

torn shuttle
#

yeah I only take something if things are truly dire

wet breach
quaint mantle
#

do yall know what adderall is

river oracle
torn shuttle
#

I'd be surprised if anyone doesn't know at this point

river oracle
#

doing the stretches and stuff they gave me only can do so much and I pretty much have to live with the pain until a later date Ig

torn shuttle
#

when I was growing up I had growing pains so bad at one point that I ended up wheelchair-bound for over a month, it was insane

river oracle
#

luckily it seems I've avoided the worst of it

#

besides the leg fuckary

#

but I can still walk and stuff

torn shuttle
#

aspirin ended up doing the trick though, took a month to find out

wet breach
river oracle
wet breach
#

well yeah no one said it wouldn't be painful 🙂

#

mind over matter on that though

#

just don't care about it

river oracle
#

yep

river oracle
wet breach
#

as long as you can truly convince yourself that you don't care, it shouldn't be an issue

#

well it will be after the end of the day

#

but who cares about that, take some pain killers and zonk out XD

river oracle
#

I don't take pain killers

wet breach
#

I live in pain 24x7 🙂

river oracle
#

I won't take them unless I get surgery done mostly because I realized its prob smart to listen to my body especially since its not giving my false signals

wet breach
#

but what is awesome about that fact though is that it heightens your pain tolerance to insane levels 😄

wet breach
torn shuttle
#

man I am not even sure if I want to keep supporting modelengine but whatever

wet breach
#

that is how it is with me. I have painkillers but I rarely take them

#

there are days however, where it is nice to have a break from all the pain XD

river oracle
#

prolly only have to take like 1 then I'll be fine

#

though last time I got teeth pulled I didn't even need pain meds so we'll see

wet breach
#

also high pain tolerance is super handy in fights too 🙂

#

if you want to make people think your crazy and scare them too XD

torn shuttle
#

frost is living out his fantasy of being a superhero vigilante

wet breach
#

well I do have a pair of short swords

river oracle
wet breach
#

you just need to be smarter

torn shuttle
#

he's pain man, and his skill is to make his enemies faint by making them feel a fraction of the pain he always feels

river oracle
#

😂

torn shuttle
#

his catchphrase is "I'm here to deliver the hurt"

wet breach
#

literally

torn shuttle
#

his suit is made out of bottles of painkillers

wet breach
torn shuttle
#

frostalf teaching kids how to fight so they can get shot .2 seconds into an encounter

wet breach
#

if you need to hit them, use elbows and knees, they are one of the toughest spots on your body considering you don't have much nerves there anyways so you can hurt them a lot without you feeling anything as well

river oracle
torn shuttle
#

🔫 let's see your judo throw

river oracle
wet breach
wet breach
torn shuttle
#

that's why you start shouting you feel threatened when they're still at 100ft

wet breach
#

do know though, that if its 9mm, you have about 30-60 minutes before you are going to feel any pain especially if they hit a limb

#

so if for whatever reason it came to that, use that time wisely 😄

torn shuttle
#

I heard if it's a clean headshot you might even never feel the pain

wet breach
#

unless its the rare moment you come across someone that knows how to handle a handgun, no one is getting a head shot on a moving target

#

unless you stand still and give them time to aim

river oracle
#

just hope they aren't an exmilitary marksman

wet breach
#

even most ex military guys suck at weapon control

#

the ones that are actually decent are ones who had to train extensively with weapons, this isn't everyone in the military. So those who get attached to special operations for example typically receive more training or advanced training. Also, the longer you don't go to a shooting range the more you will suck at using a weapon in certain scenarios because your reaction time just wouldn't be there anymore

torn shuttle
#

so says painman, deliverer of pain

#

he's out there all night every night dodging headshots

wet breach
#

well for me, I just only need to think about if it hurts more then being blown up 🙂

torn shuttle
#

some say he even slaps the bullets right out of the air

wet breach
#

if it isn't going to hurt anymore then that, then I will live XD

river oracle
wet breach
#

lol

river oracle
#

frost what is your pfp from

wet breach
#

it is from the club I help found, I created it

#

club from way back in highschool

river oracle
#

pain club

wet breach
#

So, this picture was drawn lets see. I think in 2005-2006

river oracle
#

nah what club was it tho

river oracle
wet breach
#

the name of the club was called Legion Tech Club

#

club became so great and popular it basically controlled the events going on around the school. It was great and it received all kinds of donations to do cool stuff too 🙂

#

and then I left it, and it died after like 3-4 years when I left

wet breach
#

I still ran all the website stuff even after I left, but now all I have left of it is this pfp

river oracle
#

neat story

wet breach
#

the background in my profile

#

I also created too

#

I created that background I would say around 2008

river oracle
#

so you are an artist too I see xD

#

my art is on par with a kindergartner

wet breach
#

lol

river oracle
#

I will say I'm decent at painting though

wet breach
#

while many have given me good praises on my art, I dislike doing computer graphics ironically

river oracle
#

like this is my one and only painting I display in my room

wet breach
river oracle
wet breach
#

oh interesting

#

I made an owl in pottery and painted it as well

#

maybe I can get you a picture of it at some point

river oracle
#

I am only good at doing art of scenery and stuff

#

because its the only thing I ever draw

#

I remember in 8th grade I was forced to do art so every one of my projects was of the same scene just in different styles

#

I always did 2 hills and a tree with a backdrop of the sun setting

wet breach
#

what material is your painting drawn on though?

river oracle
#

I bought a couple for like $20

#

and painted on them

wet breach
#

I never used acrylic on canvas before, only when doing pottery

river oracle
#

I have a sun painting too, ironcially displayed right next to my moon its a package deal ig

#

the sun isn't as good though

#

I'm nowhere near as proud of it

wet breach
#

lol

#

should always be proud of your drawings 🙂

river oracle
wet breach
#

I suck at doing oil painting, not really my forte I suppose

wet breach
river oracle
wet breach
#

so should never really care if yours doesn't compare to theirs

river oracle
wet breach
#

I bet you would do really good in abstracts

river oracle
#

maybe its the fact that I actually am somewhat decent so I'm much more cognisant of the heights I can't reach

wet breach
#

and it wouldn't surprise me if your brother actually struggles with that

river oracle
wet breach
#

nailed it, so you are probably good with abstracts then

river oracle
#

I'm also pretty good with scenery if I spend my time on it

#

because I love nature so much

wet breach
#

mmm, its probably because you have a better eye for the details

river oracle
#

I need to start playing piano again that was a great emotional outlet for me :P

wet breach
#

nice

#

do you make your own music?

river oracle
#

I used to compose my own pieces yes not so much anymore, I do enjoy to just get lost in what others put together

#

for example behtoven is very moving to me

wet breach
#

which piece?

river oracle
#

Moonlight Sonata specifically

wet breach
#

Ah, that is a very good one especially if you put your own spin on it 🙂

river oracle
#

I learned the entire piece front to back to perfection when I was 8

#

its beautiful

wet breach
#

Waltz of the Flowers is one of my favorites

river oracle
#

even if its "generic"

wet breach
#

I am a fan of believing you should make it your own if you are going to truely play it 🙂

#

can't really understand a piece if you can't do that or see its beauty, at least in my opinion

river oracle
#

it was quite great on piano

wet breach
#

it is one of the more difficult pieces to play too lol

river oracle
#

the song itself is beautiful say what you will about most of queens songs but I truly believe that song is beautiful

river oracle
#

I quit piano after playing it

wet breach
#

why?

river oracle
#

oh also Fur Elise is one of my favorites from Beethoven

river oracle
#

the ultimate dilemma. I felt like I wasn't doing it for fun anymore

wet breach
#

interesting

#

you could always just switch to a new instrument 🙂

#

should give the violin a try 😉

river oracle
#

I do love the piano I love how it sounds the pieces I played, I think I just need to stop doing it for my parents and instead do it for myself

#

I like to do everything I do out of the spotlight of people. I think that is when my playing is most meaningful to me

wet breach
river oracle
wet breach
#

don't worry I have to remind myself as well

#

ultimately, it just doesn't matter what others think especially if you were never seeking their approval or opinion to begin with

#

me and my older brother have danced around in a mall in pink tutu's

river oracle
wet breach
#

so don't observe them

river oracle
#

fair point I suppose that'd be a best mindset

#

I feel like for most that is easier said than done :P luckily I've reached the point where I'm in more control than my Anxiety

wet breach
#

Well you could always play the piano upside down and give them a reason to observe

river oracle
#

I love Fur Elise too this piece is truly amazing I think its my all time most played piece

wet breach
#

they would be in awe that you are upside down, playing a piano and that just isn't normal

river oracle
#

I wonder if I can find a nice flac file for these pieces

#

the compression of spotify kills the beauty of it

wet breach
#

I have premium so I don't have that issue

river oracle
#

compared to hearing it when I played on a grand piano in person

river oracle
wet breach
river oracle
#

I don't know what brand it was though

wet breach
#

well there is different kinds of grand piano's

#

and they all require different ways to play and sound different

#

some are more forgiving while others are not lol

river oracle
#

it was like this

wet breach
#

ah the common one that can be found in places like a church

river oracle
#

yeah

#

where do you usually get your music from frost

#

just spotify

wet breach
#

Steinway & Sons

wet breach
river oracle
#

I use soulseek for flac files

#

its really nice

wet breach
#

if you ever get the opportunity

#

you should play on a bosendorfer

river oracle
#

why

wet breach
#

its different and has a unique sound and something tells me it would be a good fit for you

#

I could be wrong, but still be a nice experience all the same

river oracle
#

ahhh hopefully one day

wet breach
#

it also has an additional half or full octave of keys too

river oracle
#

oohhhh

#

that's nice

wet breach
#

buts only on the lower side that it does

river oracle
#

I remember the first time I heard the song I was listening to right now I legit cried I thought it was so beautiful

#

lol

wet breach
#

its wonderful when a musical piece speaks to you

river oracle
#

the music itself is from an anime, but the music itself is so great. Its wonderfully composed

#

and the piano sounds beautiful

wet breach
# river oracle the music itself is from an anime, but the music itself is so great. Its wonderf...

Bösendorfer - der Klang, der berührt

The Bösendorfer piano company in Vienna, Austria, is exemplary of the art of Viennese piano making and sound culture traditions. Since 1828, Bösendorfer has produced grand and upright pianos with the unique Bösendorfer sound for concert stages, educational institutions, pianists and music lovers worldwide.

...

▶ Play video
river oracle
#

ohhhh that sounds great

wet breach
#

it is not as forgiving as a steinway in that if you miss a key or hit the wrong note it will most definitely be heard

#

on a steinway you can get away at times of hitting a wrong note and it not be heard or noticed lol

river oracle
wet breach
#

Most likely lol, but I do love the sound of a bosendorfer

river oracle
#

it def sounds different, but in a good way

#

that's a beautiful piece too

wet breach
#

indeed it is

torn shuttle
#

heyo

#

alright my custom models plugin is working, integration with elitemobs is working

#

I just need to tweak a thing about folder hierarchy and how it relates to model ids and then I'm ready for the release

river oracle
#
    public Set<Chunk> getAllIntersectingChunks() {
        final Set<Chunk> chunks = new HashSet<>();
        final World world = worldOrThrow();
        final Iterator<BlockVector> iterator = iterator();
        BlockVector next;
        while (iterator.hasNext()) {
            next = iterator.next();
            chunks.add(world.getChunkAt(next.getBlockX() >> 4, next.getBlockZ() >> 4));
        }
        return chunks;
    }
``` is there really any better way to do this
#

I'm pretty sure I just have to do an O(n) loop

#

wait I can ignore Y values

#

so this can be slightly optimized

#
    public Set<Chunk> getAllIntersectingChunks() {
        final Set<Chunk> chunks = new HashSet<>();
        final World world = worldOrThrow();
        for (int x = (int) minX; x < (int) maxX; x++) {
            for (int z = (int) minZ; z < (int) maxZ; z++) {
                chunks.add(world.getChunkAt(x, z));
            }
        }
        return chunks;
    }```
Now I wonder if there is a better way to do this
#

wait I can get the four corners than just loop through and add the chunks between them

#

I keep answering my own question lmao

#
        final Set<Chunk> chunks = new HashSet<>();
        final World world = worldOrThrow();
        final int minChunkX = ((int) minX) >> 4;
        final int minChunkZ = ((int) minZ) >> 4;
        final int maxChunkX = ((int) maxX) >> 4;
        final int maxChunkZ = ((int) maxZ) >> 4;
        for (int chunkX = minChunkX; chunkX < maxChunkX; chunkX++) {
            for (int chunkZ = minChunkZ; chunkZ < maxChunkZ; chunkZ++) {
                chunks.add(world.getChunkAt(chunkX, chunkZ));
            }
        }
        return chunks;
``` ahh much better :P
proud badge
#

does banPlayer also kick them if theyre online or do I need to do that myself?

river oracle
#

it'll kick them

proud badge
river oracle
#
    /**
     * Gets all intersecting chunks within this region
     *
     * @return the intersecting chunks of this region
     */
    public Set<Chunk> getAllIntersectingChunks() {
        final Set<Chunk> chunks = new HashSet<>();
        final World world = worldOrThrow();
        final int minChunkX = ((int) minX) >> 4;
        final int minChunkZ = ((int) minZ) >> 4;
        final int maxChunkX = ((int) maxX) >> 4;
        final int maxChunkZ = ((int) maxZ) >> 4;
        for (int chunkX = minChunkX; chunkX < maxChunkX; chunkX++) {
            for (int chunkZ = minChunkZ; chunkZ < maxChunkZ; chunkZ++) {
                chunks.add(world.getChunkAt(chunkX, chunkZ));
            }
        }
        return chunks;
    }```
torn shuttle
#

feels good to work on something where I don't get stuck on a single feature for a week

proud badge
#

Whats the method to unban a player? cant find it anywhere

torn shuttle
#

real quick does anyone know off the top of their heads what the highest value for the ids is for resource packs?

#

hm there's a precision loss above 16 million

#

that should give me some leeway lol

#

guess I'll start at 50k

proud badge
#

How come its always not null? Wont it be null if the player does not exist?

drowsy helm
#
This will return an object even if the player does not exist. To this method, all players will exist.```
proud badge
#

Interesting how could I check if the player exists or not then?

#

hasPlayedBefore?

drowsy helm
#

use getOfflinePlayers();

#

oh yeah or hasPlayedBEfore

upper hazel
#

who know what packet name use for block break sound ? in protocolLib

#

server-> player

rotund ravine
#

Packetplayoutsound probably or smth

upper hazel
vestal hill
#

I would like to copy a world named "gameworld" with the name "playing", including buildings and other data.
I would also appreciate if you could tell me how to delete the copied world.

slim elbow
#

Should I do pub in jedis asynchronously or not?

#

I'm not sure if there any point in this

subtle folio
#

whats the max amt of lines a scoreboard can have?

eternal oxide
#

16

#

plus title

#

I think

heavy mural
#

Hello,
I noticed "onPlayerMove" gets triggered before "onPlayerJoin" tasks are finished. How would I code a way to fix that?

subtle folio
subtle folio
subtle folio
rotund ravine
#

@slim elbow

hardy cairn
#

can someone help me make a simple sphere around a player of particles, i dont know the complex maths behind it

sullen marlin
#

Google parametric equation of a sphere

upper hazel
hardy cairn
rotund ravine
rotund ravine
swift tapir
#

a

upper hazel
#

Block/Entity-explore event

hardy cairn
upper hazel
#

what do EntityChangeBlockEvent ? i dont undestand plugin detect player blockBreak or not when this event work

subtle tapir
#

Called when any Entity changes a block and a more specific event is not available.

#

If a player breaks a block the EntityChangeBlockEvent is not fired.

upper hazel
#

if enderman do this event will detect?

hardy cairn
#

Can anyone help me generate a sphere of particles around player

hardy cairn
#

Uh that's why Im asking someone to make a simple example so I can play around and learn with it

hardy cairn
#

Thanks bro 🙏

grim hound
#

Why won't some color codes work in the console?

#

but some do

eternal oxide
eternal oxide
#

it will be on the surface of a sphere, but random positions

grim hound
eternal oxide
#

ah ok

grim hound
grim hound
upper hazel
#

BlockFertilizeEvent need for wheat, carrots, potatoes, etc.?

hardy cairn
eternal oxide
#

use the example given

#

if you want a full sphere you would have to adjust it to place in a pattern instead of random

hardy cairn
#

well yea i got that i need to change the math.random but i dont know that much math

remote swallow
upper hazel
hardy cairn
#

yo thanks

upper hazel
#

oh no this

alpine otter
#

hello! i'm trying to create a plugin that uses javalin as an api. on local machine it works fine but on pterodactyl (docker) it says sh class org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory can not implement org.eclipse.jetty.websocket.api.WebSocketPolicy, because it is not an interface (org.eclipse.jetty.websocket.api.WebSocketPolicy is in unnamed module of loader cpw.mod

shy wolf
#

hello there, im trying to make a plugin that menages the punishments of the staff, now i have 7 servers and i want to be able to target any player on the proxy(velocity)
all i need to know right now is how to get all of the players that are connected to the proxy, does someone know how to do it, or give me a direction?

rotund ravine
alpine otter
hazy parrot
#

Are you shading jetty separatly?

hazy parrot
alpine otter
#
 
shadowJar {
    relocate 'io.javalin:javalin:5.6.3', 'shadow.io.javalin'
    relocate 'org.slf4j:slf4j-simple:2.0.7', 'shadow.org.slf4j'
    relocate 'com.fasterxml.jackson.core:jackson-databind:2.13.2', 'shadow.com.fasterxml.jackson.core'
}``` seems it isn't
#

what version should i shade?

neat wolf
#

Hi i was wondering if players can "change" the IP address recognized by bungeecord in player.getAddress().getAddress().getHostAddress()? like a kind of "IP Spoofing"

#

If a player can for example put anyone's IP

hazy parrot
#

Not really afaik, they can use vpn tho

neat wolf
#

Ok so plugins like IP whitelists cannot be bypassed?

glossy venture
#

not unless u use a vpn ig

neat wolf
#

Ok thank !

inner mulch
#

does somebody know how i can open multiple windows of intellij with different plugins?

rotund ravine
#

When u open a new project

#

It will ask

#

New window or this window

inner mulch
#

i misclicked and clicked on not ask again :(

#

i dont knwo how i can reverse the change

rotund ravine
#

Idk guess u gotta find it in settings

river oracle
inner mulch
#

thanks

river oracle
#

To open a separate window

sacred mountain
#

finally got it to work

#

lets go

#

eval conversion in 1030 moves

grim hound
#

is there

#

any decent api

#

for morphing into players?

#

(nick and skin set)

quaint mantle
#

NMS """API"""

flint rune
#

I want to forge and falsify all packets in the process of getting the UUID of the player. I am responsible for any conflicts between plugins that will occur on this. How can I handle this using NMS?

chrome beacon
#

Why use NMS?

#

Also why packets

rough drift
#

Inject a ChannelDuplexHandler in the player's netty pipeline @flint rune

glossy venture
#

or use packetevents/protocollib

flint rune
#

how to do witeout nms?

rough drift
#

you don't

glossy venture
#

using packetevents/protocollib

slender elbow
#

How can I handle this using NMS?
how to do without nms?
🤔

flint rune
#

can i do this with only ProtocolLib?

glossy venture
#

yeah ithink

quaint mantle
remote swallow
#

you could probably do it with either of thethree, nms, packet events and protocol lib

flint rune
#

i find the task with many times but i couldnt find it

quaint mantle
#

Because no one does that

flint rune
#

can i make it without change craftbukkit sourcecode and do only plugins?

quaint mantle
#

No custom craftbukkit

alpine urchin
#

paper luckily made this really easy to do, something i suggested to spigot years ago

#

but they didnt listen

#

so due to spigot we need to keep the over hundred line injector to listen to packets

#

paper its like a 5 liner injector

remote swallow
#

did you make a jira ticket about it

alpine urchin
#

@rough drift since you mentioned injector

flint rune
#

do you know how to do it?

quaint mantle
#

Uuid handled by mojang api?

river oracle
#

is it difference in variable scope

alpine urchin
#

so 🤷‍♂️

remote swallow
#

makes sense for spigot

alpine urchin
#

yeah, but people are gonna do it anyway and it fixes incompatibilities

rough drift
flint rune
rough drift
#

do you want me to implement it or smt

alpine urchin
#

there’s no point of paper’s improvements when i want my plugin to run on soigot too

remote swallow
#

have a paper and spigot release then

alpine urchin
rough drift
#

I don't understand what you mean though

#

do you mean something like

alpine urchin
#

i want you to hear my wisdom

rough drift
#
player.listenForPackets(packet -> {

});
quaint mantle
#

Bros want to change uuid system

alpine urchin
#

@rough drift that’s too much into the API

quaint mantle
#

Bros have to modify api(s)

river oracle
alpine urchin
#

Paper has it similar to that

rough drift
alpine urchin
#

but its not part of a bukkit object