#help-development

1 messages · Page 1224 of 1

slate surge
#

[14:19:22 INFO]: Player718 lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Packet play/serverbound/minecraft:accept_teleportation (ServerboundAcceptTeleportationPacket) was larger than I expected, found 36 bytes extra whilst reading packet serverbound/minecraft:accept_teleportation

#

how

#

tf

#

a plugin message

#

is causing this shit

#

while

#

on the bungee

#

i got what i want

blazing ocean
#

why are people incapable of writing a single message

#

and

#

have to

#

type

#

like

#

this

slate surge
#

we like to smack the enter

#

key

broken flume
#

Hey, I'm facing an issue where the remap task overwrites the shadow JAR. Instead of overwriting it, I want to merge the remapped JAR with the shadow JAR. Is there a way to do this?

eternal oxide
#

Its a legacy from PKers trying to smack talk in chat while fighting, before voice coms.

broken flume
#

my brain is not braining rn

eternal night
#

usually you shadow first and then remap the entire thing

broken flume
#
    shadowJar {
        archiveBaseName.set(project.name)
        archiveVersion.set(project.version)
        from 'LICENSE'

        archiveClassifier.set("")
    }

    remap {
        dependsOn shadowJar
        version.set("1.21.1")
    }

😭

eternal night
#

What remap plugin is that

blazing ocean
#

you may wanna set shadow as remap's input but ^

eternal night
#

yea

broken flume
#

io.github.patrick.remapper

slate surge
#

btw what tf does version.noLessThan(ProtocolVersion.MINECRAFT_1_13)) do?

broken flume
blazing ocean
#

from(shadowJar)

slender elbow
#

dependsOn simply tells it "run the given task before this task"

eternal night
#

rad, stop lying

slender elbow
#

you need to tell the remap task to take the input jar from the shadow jar

blazing ocean
#

right that's what I said

eternal night
#

but you don't use from do you

blazing ocean
#

do you not

eternal night
#

no, its not a copy task or like an archive task I don't think

#

see the docs I linked

#

it has an inputTask property

blazing ocean
#

well i can't read so /shrug

broken flume
#

Could not find method from() for arguments [task ':shadowJar'] on task ':remap' of type io.github.patrick.gradle.remapper.RemapTask.

eternal night
#

hard cringe, it doesn't use conventions

#

SEE WHAT YOU DID RAD

#

they can't read either and now you caused this

blazing ocean
#

world burning rn 😔

eternal night
broken flume
#

// Use this option to explicitly set the input task.
// Defaults to jar task.
inputTask.set(jar)

blazing ocean
#

Right so now try putting one and two together

slender elbow
#

a third

broken flume
#

inputTask.set(shadowJar)

Like this ig?

eternal night
blazing ocean
#

10 points for hufflepuff

slate surge
#

how

#

tf

#

is

#

paper

#

reading

#

payload as teleport

#

[14:32:45 INFO]: Player718 lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Packet play/serverbound/minecraft:accept_teleportation (ServerboundAcceptTeleportationPacket) was larger than I expected, found 36 bytes extra whilst reading packet serverbound/minecraft:accept_teleportation

blazing ocean
#

use one message for gods sake

eternal night
#

Explosion

blazing ocean
#

?whereami

eternal oxide
#

?fork

undone axleBOT
#

SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.

slate surge
#

spigot

#

same thing

#

oh wait

#

why tf

broken flume
slate surge
#

is my nickname milkthedev

blazing ocean
slate surge
#

how to reset nickname

eternal night
#

pay money

blazing ocean
#

?changename

undone axleBOT
#

Name changes on the forums are granted to those who have donated to the project. Donations are processed manually and generally take up to 24 hours. The donation widget can be found on the home page of SpigotMC at: https://www.spigotmc.org/.

broken flume
slate surge
blazing ocean
#

My spigot username is radstevee but ???

slate surge
#

i dont remmeber which username i used on spigotmc

#

well

#

atleast

#

i can show yall which exploit i am talking about

eternal night
slate surge
#

which

#

actually works

blazing ocean
#

that is not how exploit reporting works

slate surge
#

i was justgetting there

#

ok

#

should a plugin message event be fired for bungeecord:main

#

when src is a client?

eternal night
#

obviously

slate surge
#

no it shoulded

broken flume
#

java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_21_R1/CraftServer

it isn't remappign now what;-;

eternal night
slate surge
#

my fucking exploit

#

can bypass that

eternal night
#

woah

slate surge
#

and when the message

#

reaches spigot

#

itll be translated back to BungeeCord

#

died?

#

xd

eternal night
#

died?

slate surge
#

nah

#

nothing

#

didn't saw a message from u

dry hazel
#

died

slate surge
#

for

eternal night
#

Welp, thats nice xD Go and report it to bungee

slate surge
#

imma try more

#

to see what we can do

broken flume
#

It doesn't seem to work. Can someone help me set the input file as the ShadowJar output?

#
 remap {
        dependsOn shadowJar
        version.set("1.21.1")

        inputTask.set(shadowJar)
    }
jagged thicket
#

i still don't understand packets 💀

limber marten
#

What is the "trending" lib for NPCs? I want to do ML with Minecraft but don't want to bother with NMS and the endless pain that comes with it. I tried to use NPC-lib but it's very limited in terms of control over the NPCs.

chrome beacon
#

Citizens

worthy yarrow
chrome beacon
#

Citizens has a quite capable API

limber marten
#

Maybe i'm old but didn't Citizens used to be meh?

worthy yarrow
#

From what I’ve seen, it’s the goto for npc stuff

chrome beacon
#

yeah it's been to goto for a long time

glossy laurel
#

Is there any place to freeze a player while they are gliding and while they are in spectator?

limber marten
#

Okay, thanks for the advice 👍

worthy yarrow
worthy yarrow
#

The spectator thing doesn’t really matter I suppose… if the point is to freeze them anyway then you could always set their gamemode to something else temporarily

worthy yarrow
glossy laurel
limber marten
#

Smoothest freeze is to set the gamemode to spectator and force them into an invisible entity (armor stand)

worthy yarrow
#

Yeah try putting them as a passenger on something

#

Sounds like a lot less work than grounding them as I put it

glossy laurel
#

Ic

#

Can they look around when theyre in an armor stand?

worthy yarrow
#

As a passenger, yes I think so

limber marten
#

If you teleport them in the entity no they can't

worthy yarrow
#

I think if you still cancel the move event though, that should prevent it

#

Inside the entity huh

limber marten
#

When you right click an entity in spectator, you're locked to the entity's YAW

worthy yarrow
#

I figure this might not work in more modern versions considering the hit box meshing mechanic if you know what I’m talking about

#

The pushing kinda thing when two entities intersect

jovial mason
#

is there an event to cancel double chests?

#

so it stays like 2 single chests

quasi gulch
shadow spire
#

Use ChatColor

proven kite
#

is there any doc about world creation or making a copy of a world? I need it for making arenas

quaint mantle
#

Like what is this for? Hardened.adventure().player(player)

eternal night
#

that yields the bukkit audiences type

sly flint
#

?paste

#

?Paste

eternal night
#

ded

dry hazel
#

ded

sly flint
#

i have problem in JDA

#

API

#

maybe anyone know

quaint mantle
#

I have a problem in my nuclear reactor can anyone help?

undone axleBOT
sly flint
dry hazel
#

.queue() on the sendMessageEmbeds

worthy yarrow
#

What in christs name am I looking at

#

Is this a custom server impl?

dry hazel
#

JDA is a discord api library

worthy yarrow
#

Oh that’s right

#

I was like why tf are we embedding everything lol

smoky oak
glossy laurel
#

Does Location#getDirection return a normalized vector?

slender elbow
#

Gets a unit-vector pointing in the direction that this Location is facing

sly flint
#

the error

#

Thread JDA MainWS-ReadThread failed main thread check: command dispatch
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[paper-1.19.4.jar:git-Paper-550]
at org.bukkit.craftbukkit.v1_19_R3.CraftServer.dispatchCommand(CraftServer.java:905) ~[paper-1.19.4.jar:git-Paper-550]
at Discord.Chat.onMessageReceived(Chat.java:50) ~[ExcellentServerManager-2.3.jar:?]
at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:456) ~[ExcellentServerManager-2.3.jar:?]

slate surge
#

uh hell naw

#

i found another exploit

#

maybe i can try crash

#

xddd

#

32k iterations

#

per packet

sly flint
#

?

#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
__**Admin:**__

selfrole Add or remove a selfrole from yourself.

__**Cleanup:**__

cleanup Base command for deleting messages.

__**Core:**__

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

__**Downloader:**__

findcog Find which cog a command comes from.

__**Mod:**__

names Show previous usernames, global display names, and server...
userinfo Show information about a member.

__**ModLog:**__

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

__**Permissions:**__

permissions Command permission management tools.

jovial mason
#

what is setglowing for textdisplay?

#

its not glowing at all if is true

dry hazel
sage perch
#

So i dont know the basics of java spigot coding, could someone help me or get me like some videos to help?

undone axleBOT
#

For Beginners:

Codecademy - Learn Java: Interactive Java programming course from basics to more advanced concepts. Perfect for absolute beginners.
https://www.codecademy.com/learn/learn-java
JetBrains Academy - Java Developer Track: Learn by doing with projects and challenges. It covers Java fundamentals to advanced topics.
https://www.jetbrains.com/academy/
Udemy - Java Programming Masterclass for Software Developers: Updated courses that cover Java 8 to Java 17 features. Suitable for those who prefer structured learning.
https://www.udemy.com/course/java-the-complete-java-developer-course/

For Intermediate to Advanced Learners:

Oracle Java Tutorials: The official guides by Oracle for Java programming—great for understanding the depth of Java.
https://docs.oracle.com/javase/tutorial/
Baeldung - Learn Java and Spring: Focus on Spring Framework and modern Java technologies. Best for intermediate learners aiming to expand their knowledge.
https://www.baeldung.com/

Practice and Hands-on Learning:

Exercism - Java Track: Solve exercises and get feedback from mentors. Great for practicing coding skills.
https://exercism.io/tracks/java
LeetCode: Practice your coding skills and prepare for technical interviews with Java.
https://leetcode.com/

Free Resources and Documentation:

Java Programming and Documentation: A comprehensive collection of Java programming guides, tutorials, and API documentation.
https://docs.oracle.com/en/java/

Community and Support:

Stack Overflow: A vast community of developers. Great for getting help with specific problems or understanding concepts.
https://stackoverflow.com/questions/tagged/java
r/learnjava on Reddit: Join the community of Java learners and get advice, share resources, and discuss projects.
https://www.reddit.com/r/learnjava/

Remember: Learning to program takes practice and patience. Don't hesitate to experiment with code and participate in community discussions. Happy coding! 🎉

sage perch
idle condor
#

yo hello guys i wanna make a plugin for a bungee cord server of mine but i have no experience what so ever with bungeecord and what i want to create is basically a plugin that stops every bungee command from being executed on a player in the Auth server can anyone help me with this

river oracle
#

wooo offline mode

dry hazel
#

at Discord.Chat.onMessageReceived(Chat.java:50) ~[ExcellentServerManager-2.3.jar:?]

broken flume
#
java.lang.NoClassDefFoundError: net/minecraft/network/NetworkManager```

I know NetworkManager was changed to Connection, and I'm using Connection, but why am I still getting this error?  Is there a way to fix it?
river oracle
#

Remap

broken flume
#

already did

#

remap {
dependsOn shadowJar
version.set("1.21.1")

    inputTask.set(shadowJar)

    archiveName.set("${project.name}-${project.version}-remapped.jar")
}
river oracle
#

Are you using the remapped jar

#

Me thinks no

broken flume
#

yeah im using remapped one

river oracle
#

No you're not 👍

#

Show your full build.gradlw

#

?paste

undone axleBOT
broken flume
#

okay

remote swallow
#

paper dev bundle and spigot?!

blazing ocean
#

if you're using paperweight you don't need any of the remapping stuff

remote swallow
#

pick one or the other

blazing ocean
#

and yea ^

remote swallow
#

if you use paper for everything else, use the dev bundle

broken flume
#

my brain is not braining rn

#

?

remote swallow
#

you have to do that anyway

broken flume
#

uhm

#

okay

blazing ocean
#

no

broken flume
#

alright

slate surge
#

happy now? @eternal night sorry for ping

neat mesa
#

ur not sorry

quaint mantle
mortal vortex
eternal night
#

idk? I am not on the org

slender elbow
#

i know what it is this is so silly

eternal night
#

are you a bungee maintainer emily?

slender elbow
#

no, i'm a psychic

eternal night
#

woaaah

slender elbow
#

my crystal ball is a bungeecord maintainer

eternal night
#

thats magic

mortal vortex
# eternal night idk? I am not on the org

No no I didn’t expect you to be. I just know that you were in the chat like 6 hours ago when this guy first talked about it before his nap, and I did see him here talking to you.

So I figured at some point he may have spilled the beans on what the zero day actually is.

twilit knot
#

uh

#

i remember there was an site where different spigot api to download separately

chrome beacon
#

api or the spigot jar?

twilit knot
#

api

chrome beacon
#

You can grab it from the maven repo manually

blazing ocean
#

Nexus?

slender elbow
chrome beacon
#

but you should be using maven or gradle in your project

twilit knot
#

i am using eclipse mainly

eternal oxide
#

Eclipse supports Maven projects, Just use it

#

?maven

undone axleBOT
lost ruin
#

Can I ask you a question about Minecraft commands?

glossy laurel
#

is there a built in raycasting function to check if a ray collides with a bounding box?

mortal vortex
glossy laurel
#

?asktoask

#

?dontasktoask

slender elbow
#

?ask

glossy laurel
#

?ask2ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

glossy laurel
#

damn

quasi gulch
#

I use Adventure API and try to add a ClickEvent to a Component but when i send it it doenst give me any error. It just sends the right message but when i click nothing happens

lost ruin
#

/give @p iron_sword{Unbreakable:1b,CanDestroy:["minecraft:oak_planks"]} 1

I want to set the damage for this item to 4, attack speed to 1.4, but I can't figure out how. Can anyone help?

mortal vortex
#

What version are you on?

lost ruin
#

The version is 1.20.1

smoky anchor
#

I don't remember if 20.2 is same as 20.1
Mojank is now doing big breaking changes in the dot updates and it's annoying to remember what changed when

lost ruin
#

Thank you for your help, and I'll give it a try.

twilit knot
glossy laurel
#

is there some kind of way to detect when a player touches a block?

#

some kind of a collision event or smth?

proven kite
#

pls?

#

and if not doc can someone just help me with that?

blazing ocean
#

WorldCreator?

#

Just copy the world directory

glossy laurel
#

if you want your server to be playable, you probably shouldn't do that...

smoky oak
#

doesnt that brick on spawn if its loaded

glossy laurel
#

you can try out SlimeWorlds hto

bronze wren
#

does anyone know how to rotate a armour stand left /right (a and d) , and move yaw of the armour stand based on (w and s) while having it mounted.

wet breach
young knoll
#

You can copy a world just fine

remote swallow
#

jish

young knoll
#

Just gotta remove the uuid file

remote swallow
#

do you need ur non xmas pfp

blazing ocean
#

ebic do you still have yours wearing the hat

#

can't see it

remote swallow
#

i dont think i do

young knoll
#

I think I have my normal one

#

Somewhere

remote swallow
#

i do

wet breach
#

lol, ironic that he has your non xmas pfp ready to go

proven kite
#

pretty sure

smoky oak
#

personally i dont believe in changing profile pictures

proven kite
#

or I didnt see the message if anyone helped

glossy laurel
remote swallow
smoky oak
#

i just have a png file from 2013 on my images folder

smoky oak
wet breach
smoky oak
#

fair enough

remote swallow
#

gonna need to find some easter hats and eggs

blazing ocean
#

oh yeah do that

smoky oak
young knoll
#

I can’t remove my cat ears for a different decoration

#

Smh

wet breach
#

oh yeah, forgot about that holiday

remote swallow
#

why remove cat ears

young knoll
#

Exactly

glossy laurel
young knoll
#

That’s why I have to edit the picture itself

misty ingot
#

is there a way to check if a player is currently TOUCHING a mob? in physical space?

remote swallow
#

bounding boxes might collide

bleak solar
#

Hey, is there anyone who can help me with a plugin?

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

bleak solar
#

Im clueless

misty ingot
#

but arent the bounding boxes not always exactly the shape of the mob?

bleak solar
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

glossy laurel
misty ingot
#

with creating a plugin, or setting up one thats already available? @bleak solar

young knoll
#

Bounding boxes are the best you’ll get

#

But yes they aren’t super accurate for some mobs

misty ingot
#

hmm i was looking for more like, actually touching ykwim

bleak solar
#

its a plugin already made but its supposed to be compatible with 1.18.2 but its not

smoky oak
# glossy laurel and do what with it? ray cast?

well you cant be colliding if youre moving
so if your velocity in none of those directions isnt near zero you dont need to do any other checks

and raycast can be a tad unreliable, it might be better to compare the blocks around the player against the bounding box

bleak solar
#

im soo frustrated with it

misty ingot
#

i hope i dont have to check collision with ender dragon then
its box is basically a huge rectangle

smoky oak
#

i looked at that in like 2021 i think? cant remember if i did anything with it

nova notch
misty ingot
#

i can disregard stuff like that

young knoll
#

The dragon has a bunch of boxes

nova notch
#

Still, desync

misty ingot
#

not an issue

smoky oak
#

well, the bounding boxes can just spit out the coordinates they start and end at

#

so you might get mileage from that

misty ingot
#

basically i just want the most accurate way to check if a player is currently touching the physical model of a mob
however close to that i can get

young knoll
#

Well the server doesn’t have the models

misty ingot
#

no worries about any other factors almost

misty ingot
young knoll
#

You’d have to get those yourself

wet breach
thorn hearth
#
package net.lodia.lobbysystem.listener;

import io.papermc.paper.event.player.AsyncChatEvent;
import net.kyori.adventure.text.Component;
import net.luckperms.api.LuckPermsProvider;
import net.luckperms.api.model.user.User;
import net.luckperms.api.cacheddata.CachedMetaData;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

public class ChatListener implements Listener {

    @EventHandler
    public void onChat(AsyncChatEvent e) {

        e.setCancelled(true);
        Player player = e.getPlayer();
        User user = LuckPermsProvider.get().getUserManager().getUser(player.getUniqueId());

        if (user != null) {
            CachedMetaData metaData = user.getCachedData().getMetaData();
            String prefix = metaData.getPrefix();

            if (prefix != null) {
                prefix = prefix.replace("&", "§");
                Bukkit.broadcast(Component.text(prefix + player.getName() + " §8• §7" + e.message()));
            }
        }
    }

}```
Why does it send me sutch bunch of things into the chat? -> e.message())
misty ingot
undone axleBOT
#

SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.

wet breach
#

only reason I could think that might be true is if they have a resource pack that changes the models? But in that case how is that the responsibility of the server? I would probably go with the model idea and then possibly see about supporting resourcepacks later on

misty ingot
#

dont have to support resourcepacks

thorn hearth
misty ingot
#

as i said, super private plugin
only like 2 people will be playing on the server

thorn hearth
#

oh okay sorry

wet breach
misty ingot
#

?whereami

misty ingot
#

@thorn hearth

thorn hearth
#

nice community

misty ingot
thorn hearth
#

trolled

misty ingot
#

🙂

smoky oak
#

ah yes

#

discord as functional as ever

young knoll
#

That just happens when you don’t share a server

#

Or any friends

misty ingot
#

ye

wet breach
# misty ingot 🙂

good news, the api allows for getting all the parts of the entity in a set easily 🙂

misty ingot
#

he left

wet breach
#

enderdragon has it, and its part of complexentity api

misty ingot
#

this was supposed to be a simple plugin

#

i think what im going to do

#

is give up
and use rectangle geometry and bounding boxes

wet breach
#

lol

smoky oak
#

just bonemeal the end portals

misty ingot
#

spigot: like... a trillion by now?
me: 0

smoky oak
#

no portal no problem

misty ingot
#

well its a plugin for a youtuber's challenge video :p

#

itll be him and his mate playing

smoky oak
#

ah

#

well, whats it supposed to do exactly?

misty ingot
#

well its like every some time a color becomes barred and if he touches it he dies

but not only blocks, he also wants to include items and mobs of that color

#

if he holds an item of that color then he dies

#

touches a mob of that color

#

you get the point

smoky oak
#

hm

#

you can get away with a lot of nonsense if its only like 3 people in a world

#

read, computer intensive shit

misty ingot
#

he told me to do items and mobs if possible
items are possible, easily but mobs is what im wondering about

young knoll
#

See I can tell you how YouTubers normally do this

#

They just have someone watching with a /kill command ready

misty ingot
#

well he wants to do it legit

echo basalt
#

mobs are somewhat easy

misty ingot
#

ive made a few other plugins for him too

echo basalt
#

the whole concept's somewhat easy

misty ingot
#

somewhat isnt reassuring

echo basalt
#

we just assign colors to stuff and we use color distance algos

misty ingot
#

HMM

echo basalt
#

Let's say I ban green

misty ingot
#

now you are talkin

echo basalt
#

I can go over every texture in the game and pick a couple colors from it

echo basalt
#

Like the 3 most prevalent colors or whatever

#

and make a whole table or whatevers

misty ingot
#

reminds me of K means clustering for no reason

echo basalt
#

so that potato is mostly yellow with a lil brown

#

if I ban yellow how close are potatoes to that yellow

misty ingot
#

nonoononono

fervent gale
misty ingot
#

ion have to do the deciding on what item gets banned

echo basalt
misty ingot
#

he will give me a list of
color : [items, mobs, blocks]

#

what i actually realistically have to deal with is the
touch -> die

echo basalt
#

So you can calculate the width of each line

#

Get the max width and center everything relative to that

misty ingot
#

i have a very very inefficient idea

fervent gale
smoky oak
#

alternateively, use monospace font and numbers

fervent gale
#

i genually like the looks of default font

misty ingot
#

in a 50 block space around the place i go over every single item and entity, and make it a point in vector space (and update this every tick)
and if the player gets to within a specific distance of that point then he dies

the distance could be diff for diff stuff

so for blocks its 1 meter
for mobs itd be like roughly the size of the mob
for items its just checking when they hold it

#

but then touching a block diagonally wont work because thats sqrt(2) meters not 1

#

holy shit i hate this

echo basalt
#

that's a lot heavier than just checking the blocks around the player

misty ingot
#

but then id get a block thats next to the player but what if the models arent actually touching

smoky oak
misty ingot
#

yeah i think ill have to stick to the bounding box idea

echo basalt
#
int[] offsets = {-1, 1}; // Learned this pattern from minikloon lmao

for (int x : offsets) {
  for (int z : offsets) {
    ...
  }
}
misty ingot
#

some sacrifices have to be made

echo basalt
#

or you can just grab the player's hitbox, expand it by like 0.2 and see what blocks it intersects

smoky oak
#

oh tru

#

you can also filter entities with that no?

misty ingot
#

yeahh ill just be doin that

echo basalt
#

yeah you can

misty ingot
#

if i can filter entities

smoky oak
#

so problem solved lol

misty ingot
#

yay!

#

ok that should work

smoky oak
#

have fun with the colors :V

misty ingot
#

ok ok ok now all i have to do is muster up the courage and will power to open IntelliJ

echo basalt
#

weekly sacrifice

misty ingot
#

truly the most daunting task

echo basalt
#

dunno if I've been burnt out or just distracted but I haven't been coding much this week

misty ingot
#

sammmeee

#

compared to last week i did like 1/3rd of the time this week

smoky oak
young knoll
#

You mean steal it

smoky oak
#

no, then you have to pay for it

#

im saying to drain the social interaction the owner wants from the cat into yourself

remote swallow
#

i can steal without paying

misty ingot
#

get a rubber ducky

#

or your version of a rubber ducky

#

my rubber ducky is an infinity cube

smoky oak
#

my rubber duck is throwing money at the cafe at the street corner and drinking unhealthy amounts of cocoa

misty ingot
#

my backup rubber ducky is one of those yellow foam balls with a smiley on it, i just throw it against the wall and tire myself out and voila i found the solution to world hunger

echo basalt
#

not struggling for solutions tbf just struggling for discipline

smoky oak
#

meirl

#

i can code but i dont have imagination for shit

misty ingot
#

that was back when i was doin competitive programming

#

i too wish for true discipline

#

CP has taught me a lot of good programming techniques but it failed to teach me to pay attention and stuff

misty ingot
#

if it works it works

blazing ocean
misty ingot
#

lets say i wanted to rip off hypixel skyblock pets

worthy yarrow
nova notch
#

it has a helmet with a propeller on it

#

and it was only like 100 yen at daiso

blazing ocean
#

how much is that in freedom dolleroos

misty ingot
#

i should probably get an actual rubber ducky for good measure too

misty ingot
nova notch
#

like less than a dollar with the exchange rate when i was there

blazing ocean
#

that's a good price

misty ingot
#

66 cents

#

what in the
why is that 50 bucks

orchid furnace
#

Anyone know how I can remove specific characters from a string?

blazing ocean
#

String#replace?

orchid furnace
#

thanks!

vagrant charm
#

what is the most optimal way to connect my plugin with an external payment api

chrome beacon
#

Depends on the usecase

#

What are you doing

echo basalt
#

bought a rubber duck for my homie for 3 bucks the other day

#

they're cheap

rough drift
#

I have 12 rubber duckies, some bigger and some smaller, it's a lil family of rubber duckies

worthy yarrow
#

Simply doesn’t beat my bag ‘o ducks

orchid furnace
#

Is there any like API or something that anyone suggests for Plugin -> Discord Web Hook?

glossy venture
#

jda works for bots, prob has support for webhooks asw

#

might be a little bloated for a simple webhook but its p easy to use

mortal vortex
orchid furnace
#

oooo

glossy venture
#

oh yeah

#

nvm

#

i forgot u dont need auth

orchid furnace
#

thank you! been searching for ages and couldn't find anything 😭

glossy venture
#

but jda still works prob

orchid furnace
#

appreciate it! thanks for your help ^^

obtuse jackal
#

Anyone know of some good PacketEvents API tutorials/resources? Other than one video on YT and the getting started page I cant find much.

echo basalt
#

packetevents is nun special

#

it just wraps hella stuff

drowsy helm
broken flume
#

?nms

gray saddle
#
public static void changeSkin(Player player, Property property) {
    GameProfile p = ((CraftPlayer) player).getHandle().getGameProfile();

    sendPacket(player, new ClientboundPlayerInfoRemovePacket(List.of(player.getUniqueId())));

    p.getProperties().removeAll("textures");
    p.getProperties().put("textures", property);

    sendPacket(ap, new ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER, ((CraftPlayer) player).getHandle() ));
}

guys when i change my player skin it works just fine but i don't see myself in the tablist, but others do... help plz

drowsy helm
#

You can pretty easily spoof it with a fake tablist player with a random uuid

upper hazel
#

i not use NBT but maven need this

plain hinge
#

Any idea on how to check if a DamageEvent came from a mace smash vs a regular mace hit?

mortal vortex
sage perch
mortal vortex
# sage perch Nope as in i have no idea

okay then why feel the need to reply? There are 1600 other people online right now, should every single person respond "nope"? Makes sense if you were the recipient of the message but you werent.

sage perch
#

I thought freedom existed

mortal vortex
#

yeah its just not helpful.

sage perch
eternal night
#

whats the difference between a "regular" anda smash attack?

sage perch
#

They asked a question, i answeared

mortal vortex
# eternal night whats the difference between a "regular" anda smash attack?

In code, I don't think there is a semantic difference between a regular and a smash attack. A regular attack would just be a single swing, such as with any item, and a smash attack would be an attack initiated after falling.

I don't think the API exposes this, and I don't think there is even a difference in internal code.

#

For this you could just get player velocity before impact.

eternal night
#
    public static boolean canSmashAttack(LivingEntity entity) {
        return entity.fallDistance > 1.5F && !entity.isFallFlying();
    }
#

I'd just replicate that in code

#

API should have all of those values exposed

mortal vortex
#

Yeah looks good. Just meant I don't think the API exposes it's own method to check

eternal night
#

Does not make much sense to do so yea

sage perch
#

@mortal vortex ^

misty ingot
#

its called a codeblock

sage perch
mortal vortex
#

What do you mean "where"?

misty ingot
#

why exactly are you in this channel @sage perch

sage perch
misty ingot
#

an IDE?

sage perch
eternal night
#

troll?

misty ingot
#

you arent asking for help, you arent helping people, this happens to be a help channel

misty ingot
#

ok, what do you need help with?

sage perch
misty ingot
#

we use our keyboards to type code on our computers

mortal vortex
#

What exaclty is your understanding of what this channel is?

sage perch
misty ingot
#

an IDE

white anchor
#

ide

misty ingot
#

and then we compile it

sage perch
white anchor
sage perch
misty ingot
#

ok

mortal vortex
sage perch
eternal night
#

have yon considered using google

misty ingot
#

i have the perfect link for you
it will solve all your problems

white anchor
#

?learn java

sage perch
misty ingot
#

@sage perch pay close attention to my next message

#
#

there

misty ingot
#

its an amazing place

sage perch
#

;-;

misty ingot
#

search "what is an IDE"

#

absolutely amazing technology

#

good luck!

white anchor
undone axleBOT
#

For Beginners:

Codecademy - Learn Java: Interactive Java programming course from basics to more advanced concepts. Perfect for absolute beginners.
https://www.codecademy.com/learn/learn-java
JetBrains Academy - Java Developer Track: Learn by doing with projects and challenges. It covers Java fundamentals to advanced topics.
https://www.jetbrains.com/academy/
Udemy - Java Programming Masterclass for Software Developers: Updated courses that cover Java 8 to Java 17 features. Suitable for those who prefer structured learning.
https://www.udemy.com/course/java-the-complete-java-developer-course/

For Intermediate to Advanced Learners:

Oracle Java Tutorials: The official guides by Oracle for Java programming—great for understanding the depth of Java.
https://docs.oracle.com/javase/tutorial/
Baeldung - Learn Java and Spring: Focus on Spring Framework and modern Java technologies. Best for intermediate learners aiming to expand their knowledge.
https://www.baeldung.com/

Practice and Hands-on Learning:

Exercism - Java Track: Solve exercises and get feedback from mentors. Great for practicing coding skills.
https://exercism.io/tracks/java
LeetCode: Practice your coding skills and prepare for technical interviews with Java.
https://leetcode.com/

Free Resources and Documentation:

Java Programming and Documentation: A comprehensive collection of Java programming guides, tutorials, and API documentation.
https://docs.oracle.com/en/java/

Community and Support:

Stack Overflow: A vast community of developers. Great for getting help with specific problems or understanding concepts.
https://stackoverflow.com/questions/tagged/java
r/learnjava on Reddit: Join the community of Java learners and get advice, share resources, and discuss projects.
https://www.reddit.com/r/learnjava/

Remember: Learning to program takes practice and patience. Don't hesitate to experiment with code and participate in community discussions. Happy coding! 🎉

mortal vortex
misty ingot
sage perch
#

I thought this was a "help channel" and not a "here is a google link" channel

#

But ok

mortal vortex
#

Help implies you have some fundamental knowledge first.

white anchor
mortal vortex
#

This isn't "we teach you java"

echo basalt
#

We help under the premise you know what you want and have a rough idea where to start

sage perch
sage perch
echo basalt
#

Coding is a big world and there are a lot of ways to approach it

echo basalt
#

You first pick a language that suits what you have in mind (for plugins it's usually java)

mortal vortex
misty ingot
#

@sage perch you want to learn java
we gave you the exact links that will help you learn java

this may be a help channel but this also understand the context, this is help related to SPIGOT development
and we expect you to have prior knowledge

sage perch
mortal vortex
chrome beacon
echo basalt
#

And then based on that you write code in that language in your IDE

#

Some tools work better for some languages

#

Some languages are compiled and in that case you'd really be better off using an IDE opposed to a text editor, for example

sage perch
misty ingot
#

i am calm

echo basalt
#

Hella ppl crashing out over a naive moment

misty ingot
#

you wish to learn the basics, however we are not here to teach anyone java

sage perch
echo basalt
#

Let him learn what he needs to know first

misty ingot
sage perch
echo basalt
#

That's not gonna teach him about setup

misty ingot
#

alright alright

#

were you able to find an answer to that question from the messages above or would you like us to explain further

echo basalt
#

Anyways, assuming you want to make a plugin in Java, it's time to pick your tools

#

For your IDE I'd recommend IntellIJ IDEA

sage perch
misty ingot
#

alright

sage perch
rough drift
#

enjoy!

echo basalt
#

Java projects will need a "build system" that manages your dependencies as well, usually the main argument there is maven vs gradle, with gradle being the preferred one lately

echo basalt
pseudo hazel
#

its an ide

sage perch
mortal vortex
# sage perch I dont know what that is

IntelliJ is an IDE for writing Java code. The free version of IntelliJ literally has no caveats and is perfect for Spigot development. No real reason to pay anything.

Once you have IntelliJ you might want to look for the extension "Minecraft Development" which kind of streamlines your setup.

echo basalt
#

Once you've got your project set up feel free to look up setup instructions and we've got plenty of guides for writing pretty much anything

#

The Minecraft development extension is alright but ramps up your ram usage by a lot iirc

#

I use it, meh

misty ingot
#

to start writing spigot plugins you first need to learn java ?learnjava command and for writing spigot plugins you can ask for help here and watch tutorials on youtube

echo basalt
#

Ideally in a perfect world you'd begin by learning at least the basics of java so you can have a rough idea of what's going on before writing plugins

mortal vortex
# sage perch I see

But you will also need to understand code. Code, as the name implies, is a strict set of instructions for a computer to follow. You can't just write anything. The way in which a program is written is called syntax and varies per Language. Just as with spoken and written languages, you will want to understand the rules of the language you're working with.

echo basalt
#

Just so you aren't limited by your syntax and having to learn two different things at once

#

And also to have to ask for help less times

misty ingot
#

i assume this is the first time you would be programming anything so its probably a good idea to take it slow and also learn good coding practices

echo basalt
#

As it's something a lot more broad with a lot more info out there

#

Good coding practices up on pins if you need em

misty ingot
#

(read em after learning java)

sage perch
echo basalt
#

And just take it slow, we've all been at it for years and my code 10 years ago was a lot worse than it is now

misty ingot
#

why do you have under a month to learn the basics of java spigot

echo basalt
#

If it's self-imposed then whatever

sage perch
#

I just need to learn it

sage perch
echo basalt
#

It's when you define it yourself vs having a gun pointed at your head

mortal vortex
#

But why one month? it's kinda important? Are you working for someone and they have imposed a deadline, or if you've set a goal for urself? it probably wont be done in a month.

echo basalt
#

I've brought ppl to the industry in less than 2 weeks it'll be fine

#

Spend the first week setting up and learning java basics

misty ingot
# sage perch Not important

well it is actually because learning takes time unless you are some kind of prodigy
and learning your first ever language, that too java, and for spigot development will take a while

echo basalt
#

Then look up a challenges list and do it all

misty ingot
#

or interacting with this stuff

echo basalt
#

That's an assumption

pseudo hazel
misty ingot
echo basalt
#

Still an assumption

misty ingot
#

well either way, good luck to that guy

echo basalt
#

Not my problem

mortal vortex
# echo basalt That's an assumption

Not exaclty. I understand not knowing an IDE, some people just use notepad. but simply not knowing what code is, or where you enter it for things to go beep boop, kind of gives off vibes of having no exposure to programming.

echo basalt
#

GLHF

misty ingot
sage perch
echo basalt
#

Doesn't make it factual

mortal vortex
pseudo hazel
#

why is your time limited to one month

misty ingot
sage perch
misty ingot
#

as to why you have a deadline of 1 month is anyones guess

mortal vortex
misty ingot
#

my first guess too

young knoll
#

Me when I get a job I’m not qualified for

mortal vortex
misty ingot
#

but i cant be some big position if he has 0 experience to show

sage perch
mortal vortex
misty ingot
#

also, "need"?

#

if you are hoping to get a real job in this market with a month of experience then i have some bad news

#

you would genuinely be better off working at a mcdonalds, they'd pay more

#

that is if you want a job asap because money

mortal vortex
misty ingot
#

im alright with some random dude giving me 6.50/hr because im a student with free time, think its fun to code and am fortunate enough to not actually need the money

mortal vortex
#

I don’t think SiliQon is trying to discourage you either.

It’s still definitely a fun hobby to learn, and once you practice it, you definitely can go places, both in the Minecraft scene but in real life if you are able to apply your Java experience hands on. But doing it purely thinking you’re going to get a paid development position is probably going to give you a bad reality check.

misty ingot
#

yeah i dont mean to discourage him

#

just the cold hard truth

sage perch
sage perch
rough drift
#

it's simple, just start replacing your life with 24/7 development and you'll be in a psych ward by the end of the month, no more need for money

rough drift
sage perch
torn shuttle
#

hey @echo basalt where are we watching the mc movie

misty ingot
#

its an interesting position that you are in

sage perch
torn shuttle
#

if it's a hobby and you're not getting paid then you shouldn't be in a time crunch and you should take your time learning things methodically

misty ingot
#

+1

young knoll
#

Me when I speedrun hobbies

mortal vortex
#

But if it’s a hobby why are you targeting a server specifically? Like actually trying to become a staff member? When you could just do it for yourself.

young knoll
torn shuttle
#

java any%

sage perch
misty ingot
#

spigot pr any%

sage perch
misty ingot
young knoll
#

How often does hypixel open applications

torn shuttle
#

I wouldn't want to join any place that would take someone with literally less than one month of programming experience if you can call someone still actively learning java as having programming experience from just learning the language

echo basalt
rough drift
torn shuttle
#

not when

echo basalt
#

Oh shit

#

Dunno up to you

sullen canyon
#

usually

torn shuttle
#

that shit better have a midnight showing wherever it is we go watch it

rough drift
sage perch
misty ingot
#

yeah hypixel does have some open rn

echo basalt
#

??

rough drift
#

I like to clarify on what I say

echo basalt
#

?? We're talking about mc movie

misty ingot
#

these are the tech ones open rn

rough drift
#

my bad g

mortal vortex
misty ingot
#

hypixel job any% time

young knoll
#

Sadly that’s a long speedrun

#

Thanks to the 37 interviews

echo basalt
sullen canyon
misty ingot
#

am i required to have a college degree to apply for hypixel or the only "base" requirement being 18

torn shuttle
misty ingot
torn shuttle
#

I would literally rather rent the entire room

echo basalt
#

Or y'know just wait a week

torn shuttle
#

it's still going to have kids one week in

misty ingot
#

whens the mc movie comin out

mortal vortex
#

just sit at home and desperately wait for it to be added to 1337x instead?

echo basalt
#

Baller move to rent out a room tho

torn shuttle
#

midnight showing would be the play

echo basalt
#

We can try

torn shuttle
#

let me see how much it is to rent the entire thing

misty ingot
#

literally go to any night showing

rough drift
echo basalt
#

Pull some strings and have a private show

rough drift
#

someone will do it

misty ingot
young knoll
#

Don’t worry guys my dad is friends with Jack black

sage perch
rough drift
echo basalt
#

I don't have contacts in the movie biz

mortal vortex
rough drift
torn shuttle
sage perch
torn shuttle
#

nos cinemas has a rental system for rooms for just this

echo basalt
#

Oo

rough drift
#

moderation experience is irrelevant as a dev lol

torn shuttle
#

yeah

echo basalt
#

How much

torn shuttle
#

that's what I'm trying to figure out

echo basalt
#

I'm used to dogshit cinemas

#

Closest nos is like 50km away

sage perch
torn shuttle
#

and it's usually vacant

#

I figure it can't cost that much

#

that would be so baller to just get a room lol

eternal night
torn shuttle
#

I bet we could get a dirt cheap room at midnight tbh

mortal vortex
#

What server is it @sage perch I’m actually curious. Even dm me if u want.

echo basalt
#

I can rent out a room here but I gotta send an email to their marketing dept

torn shuttle
#

same here

#

I figure the cost is probably dependent on the theater

#

when is the movie coming out?

echo basalt
#

Prolly gonna be 3-4 figures

mortal vortex
echo basalt
#

Early april, no?

torn shuttle
#

hmmmmmmmm

#

I don't think it's that much my dude

#

they do this for kids' birthday parties

echo basalt
#

Doubt it's fiddy bucks

torn shuttle
#

not fiddy but like

#

200-300?

echo basalt
#

X to doubt

#

But sure

torn shuttle
#

at midnight?

#

in an always empty theater

#

I think it should be legit

echo basalt
#

Depends on the theater tbf

torn shuttle
#

yeah for sure

echo basalt
#

The one at your shopping center was full

torn shuttle
#

I know my local one is usually empty

#

what, alma?

echo basalt
#

Tbh we did go see a horror movie at like 1am

torn shuttle
#

or forum

echo basalt
#

Forum

torn shuttle
#

ah yeah

#

forum gets more traffic

#

alma is usually emptier

#

I swear that would be so hilariously baller to get a room for this

echo basalt
#

We might just for the memes

torn shuttle
#

minecraft high rollers only club

#

tbh if it's less than 300 I might

echo basalt
#

Hotbox the room if you dare

torn shuttle
#

implying I would ever do something as plebian as get high

#

what am I, a peasant?

echo basalt
#

The true high roller experience

torn shuttle
#

let me call my local theater to see lol

#

what date is the movie?

#

like april 4th?

echo basalt
#

3rd but 4th is the safe bet

mortal vortex
torn shuttle
#

well it just has to be post release, they're not going to give us an early screening

#

we're not that high of high rollers lol.

echo basalt
#

It's gonna cost a few hundo for me to pull up and stay overnight anyways

echo basalt
mortal vortex
#

OH. I thought it’s when you fart in a car or sum

echo basalt
#

Specifically the funny plant

torn shuttle
#

BROTHER

#

IT'S ONLY 200

#

WE DOING THIS

echo basalt
#

Yoo

torn shuttle
#

it has to be in the morning though, that's the only bummer

echo basalt
#

That's ok

torn shuttle
#

yeah it's whatever

echo basalt
#

I can pull up the day before, get some cheap airbnb

torn shuttle
#

told you it was going to be cheap

misty ingot
#

wait a second the minecraft movie is coming on april 4

echo basalt
#

Was expecting a bit more because cleaning and not selling 200 seats

misty ingot
#

i didnt know they had a release date

torn shuttle
#

oh they said it's up to 20 people

#

more would cost more

#

but uh

#

it might be like

#

what

#

2-3?

echo basalt
#

Close enough

#

Might bring my homie if he has time

#

We'd need something else to do on top

torn shuttle
#

so like up to 4 people I guess

echo basalt
#

I'm thinking date night where we cook a batch of 20kg of chicken

torn shuttle
#

tf are you going to do with 20kg of chicken

echo basalt
#

Uh

#

Stock up my fridge

#

Opinion on bowling / darts?

torn shuttle
#

at least I think it did

#

you know what

#

I might go to it in full suit and tie too

#

either that or I have to get a blue t-shirt to cosplay steve

misty ingot
#

i think ive heard of it

sage perch
echo basalt
#

or yeah a full three piece suit

#

(which I'd have to buy)

fossil fiber
#

does PAPI javascript expansion even allow formatting with

the symbol :

%javascript_example:(input)%

misty ingot
#

(he means PAPI expansion)

pseudo hazel
#

there is no javascript in minecraft afaik

#

but, papi does allow arguments, which just have to be parsed by the plugin that made the placeholder

#

the placeholder is just a string of text and a plugin can read that however it wants

cedar kite
#

Hey ! How to edit name above player head ?

proven kite
#

can someone help me with that?

#

basically the "/duel <player>" command was working the entire time

#

I changed something in listener class and it just broke itself

eternal night
#

scroll down to the "Caused by" part

proven kite
cedar kite
eternal night
#

that is the actual error

smoky oak
proven kite
#

oh

cedar kite
smoky oak
#

its related to one of the name things maybe all

#

idk for sure

proven kite
#

you mean smth like that?

#

p is my player variable

#

put this into your onJoin eventlistener

#

String customName = "<your custom name>";

player.setCustomName(customName);
player.setCustomNameVisible(true);
cedar kite
#

i want to edit the name above player head

cedar kite
#

yes but i don't want to edit the nickname

proven kite
#

wdym?

proven kite
cedar kite
#

my nickname and name above player head it's not the same

proven kite
#

dude

#

I dont understand you

#

what is the difference between name and nickname 🤣

#

you wanna do ranks or something?

cedar kite
#

wait what is the dif between

player.setDisplayName(nickname);
player.setCustomName(nickname);
proven kite
#

idk didnt test

#

maybe one is on tab or chat

#

and the other might be above head

#

maybe test around first?

#

try displayname first then if it doesnt do what you want

#

use the setcustonname if this also doesnt work... chatgpt igf

sullen canyon
cedar kite
#

thx

smoky oak
#

given a list<location> a direction stored in a normalized vector and a sphere denoted by a location and a radius, how do i calculate where the projected location list impacts the sphere?

#

im assuming it involves vector or matrix math (linear algebra; shortest distance to center from a line?) but tbh i have no clue

#

i really dont want to do an iterative projection

misty ingot
#

so like

#

you have a line and a sphere?

#

and you wanna know where that line intersects the sphere in 3d space?

smoky oak
#

i guess?

#

location plus vector is a line lol

misty ingot
#

something like this?

smoky oak
#

ye

misty ingot
#

you could make use of the perpendicular distance formula to get the x,y,z coordinates of where the line impacts the sphere and then if you know the center of the sphere and the radius you can get the point on the spheres outside where its impacting it

#

but for this we must assume that A is tangent to the circle O

smoky oak
#

define tangent?

#

like touches in one spot exactly?

misty ingot
#

the line touches the circle O at exactly one point and the angle created by the radius and the line is 90 degrees

smoky oak
#

yea this is meant for projecting a 2d shape onto the surface of a sphere

misty ingot
#

could you give an example illustration of what you are trying to do

pseudo hazel
#

sounds like decals

smoky oak
#

linear projection onto a sphere

misty ingot
#

ah i see what you wanna do

pseudo hazel
#

so you have the shape in the form of points

misty ingot
#

^

pseudo hazel
#

and then a direction of how it hits the sphere?

smoky oak
#

well, ideally i would project the splines but im not smart enough for that

#

so i generate the 2d shape and project that

misty ingot
#

you basically send a bunch of lines toward the sphere and want the coordinates of where the line intersects with the surface of the sphere

pseudo hazel
#

and then you wanna calculate where each point lands on the sphere based on that?

smoky oak
#

yep

misty ingot
#

hmmm

#

perhaps this might help

#

you definitely will need to use some heavy math for this

smoky oak
#

ill look into it

#

ah

#

wheres the tutorial on using openGL again

misty ingot
#

if it helps it helps

smoky oak
#

does this exist for java too? 😅

#

eh, ill figure out where to find it later

#

math first

eternal night
#

Are you just doing ray sphere intersections?

smoky oak
#

yea and i just realized the stackoverflow thing wont help

#

bc i want to project along a vector, and not towards the spheres centre

eternal night
#

just google ray sphere insersection omegaroll

#

a pretty solved issue

pseudo hazel
#

yeah like I said i think its the same logic as decals use in games

smoky oak
#

ah fuck no license

#

aka all rights reserverd

misty ingot
#

what if you just

#

borrowed it

#

and changed the code slightly

#

and then kept it indefinitely

eternal oxide
#

or read it, understand it and write your own

misty ingot
#

if you dont hate maths then yeah you can do that too

smoky oak
#

well i dont im just stupid

misty ingot
#

maths starts being fun the moment it clicks

#

same with physics

#

chemistry can go fuck itself

pseudo hazel
#

everything ever be like

rough drift
#

I know jackshit

#

but I love it

smoky oak
#

all i know is that they build supercomputers to simulate proteins

misty ingot
#

thats biologists

#

we hate biology enough to not even bother mentioning it

smoky oak
#

biology is just chemistry in a trenchcoat

surreal wadi
#

can u tell me how to do when ever the player join the server/world he will spawn at the same location always

chrome beacon
#

Use the PlayerSpawnLocationEvent

surreal wadi
#

ok

#

but is that a plugin

remote swallow
#

its an event you use to code a plugin

surreal wadi
#

oo we have use it in skript ?

remote swallow
#

we are not skript so cannot say

surreal wadi
#

then

hushed pawn
remote swallow
#

ask pandaspigot

hushed pawn
remote swallow
#

they are the best place to go as they are a designed 1.8.8 fork, 99% of peolpe here wont provide support for it

slender elbow
#

pandaspigot is in active development even so if you're using that you should 100% report the issue to them

fervent gale
#

/give devan_mysterio minecraft:netherite_helmet[minecraft:item_model="flashartifacts:satanic_helmet",minecraft:equippable={asset_id:'flashartifacts:satanic_armor', slot:"head"}] 1

I'm trying to convert this to item meta how do I do that persay? I'm looking through the itemmeta and can't find anything for assest id for equippable stuff

eternal night
#

Item meta calls that the model

#

(the asset_id)

fervent gale
#

don't mind this mess but


   fun satanicLeggings(plugin: FlashFun): ItemStack {
        val name = "† Satanic Leggings †"
        val lore = // TODO

        return ItemBuilder(Material.NETHERITE_LEGGINGS)
            .amount(1)
            .meta { meta ->
                meta.displayName(
                    Component.text()
                        .append(Component.text(name))
                        .color(NamedTextColor.DARK_RED)
                        .decoration(TextDecoration.ITALIC, false)
                        .build()
                )

                meta.lore(lore)
                meta.itemModel = NamespacedKey("flashartifacts", "satanic_leggings")
                meta.setMaxStackSize(1)
                meta.isFireResistant = true

                meta.persistentDataContainer.set(
                    NamespacedKey(plugin, "satanic_leggings"),
                    PersistentDataType.BYTE,
                    1
                )

                // Equippable component
                meta.equippable.apply {
                    slot = EquipmentSlot.LEGS
                    model = NamespacedKey("flashartifacts", "satanic_armor")
                    setEquipSound(Sound.ITEM_ARMOR_EQUIP_NETHERITE)
                    isDispensable = false
                    isSwappable = true
                    isDamageOnHurt = false
                }
            }
            .build()
    }