#help-development

1 messages · Page 1143 of 1

wet breach
#

elaborate?

glossy laurel
wet breach
#

I am not sure of the limitations of pdc, last I recalled its a bunch of strings which I think is all that is necessary. But it is technically possible to save objects or code to load later just not sure if pdc would hold that much to allow it.

#

however, the amount of additional code to make this possible might defeat the purpose in why you want this

hazy parrot
#

Why would he need that much of a code ?

#

You can serialize lambda afaik

glossy laurel
hazy parrot
#

But I think it's a bad design to keep consumers in pdc

quaint mantle
#

No just no

wet breach
glossy laurel
#

How to parse string as java code 🤓

wet breach
#

I guess now you have something new to learn and research

shadow night
glossy laurel
hazy parrot
#

There is beanshell

#

I think version two is maintained by google

#

But I would argue against it

quaint mantle
#

Why you want save runnable into PDC 🤔

glossy laurel
#

Javascript better

hazy parrot
#

Cap

glossy laurel
#

Im switching my plugin to javascript fr

wet breach
#

it won't run better then the native language of the program

shadow night
#

serializing functional interfaces is a very bad idea imo

wet breach
#

you will have to contend with context switching

glossy laurel
#

What the hell are you talking about

wet breach
#

obviously you have much to learn 🙂

#

so you should go research and learn some more given your horizon earlier has been broaden, even if it might have been in jest lol

upper hazel
#

Have you ever had that feeling when you make an api and you realize that it can be extended, but on the other hand you realize that with 90% probability you don't need it.?

#

I don't know what to do.

blazing ocean
#

what the actual fuck are you trying to do

#

You should never get into a situation where you have to serialise a fucking consumer into the PDC

upper hazel
#

I mean what to do if you want to add new functions to the api that probably won’t be needed

glossy laurel
blazing ocean
#

glossy laurel
upper hazel
glossy laurel
upper hazel
#

I'm just making an API for a narrow circle of people

blazing ocean
#

I mean if it maeks sense to add to your API, even if it's a utility, add it if you want

upper hazel
#

hm

#

ok thenks

rough drift
#

how the fuck do you serialize a lambda

#

YOU CAN SERIALIZE LAMBDAS????

#

WHAT IS THIS

#

HUH

#
@FunctionalInterface
interface SerializableFunction<T, R> extends Serializable {
    R apply(T t);
}

public static void main(String[] args) {
    try {
        // Create a lambda expression that is serializable
        SerializableFunction<String, String> lambda = (String s) -> "Hello " + s;

        // Serialize the lambda
        FileOutputStream fileOut = new FileOutputStream("lambda.ser");
        ObjectOutputStream out = new ObjectOutputStream(fileOut);
        out.writeObject(lambda);
        out.close();
        fileOut.close();
        System.out.println("Lambda serialized");

        // Deserialize the lambda
        FileInputStream fileIn = new FileInputStream("lambda.ser");
        ObjectInputStream in = new ObjectInputStream(fileIn);
        SerializableFunction<String, String> deserializedLambda =
                (SerializableFunction<String, String>) in.readObject();
        in.close();
        fileIn.close();

        // Test the deserialized lambda
        System.out.println(deserializedLambda.apply("World"));
    } catch (IOException | ClassNotFoundException e) {
        e.printStackTrace();
    }
}
#

What the fuck???

quaint mantle
#

Probably links to compiled lambda class and calls the constructor

rough drift
#

Probably I think?? I have no fucking clue

#

yep it does that

#

that's wild

upper hazel
#

omg

#

it's strange but possible

#

I didn't know this was possible but it seems logical

rough drift
#

Also

#

better way to do it

#

is to have a registry of name -> lambda

#

then just store the name in the item

#

and get the lambda from the registry

#

it's much cheaper this way :P

upper hazel
#

fr

rough drift
#

fr

upper hazel
#

but anyway this is funny

rugged fern
#

Why is the skin not updating for the player itself? (Its only get changed for other players) ```java
public static void refreshPlayer(Player player) {
Location location = player.getLocation();
CraftPlayer craftPlayer = (CraftPlayer) player;
ServerPlayer serverPlayer = craftPlayer.getHandle();

    DedicatedPlayerList dedicatedPlayerList = ((CraftServer) Bukkit.getServer()).getHandle();
    CommonPlayerSpawnInfo spawnInfo = new CommonPlayerSpawnInfo(
            serverPlayer.serverLevel().dimensionTypeRegistration(),
            serverPlayer.serverLevel().dimension(),
            0L,
            serverPlayer.gameMode.getGameModeForPlayer(),
            serverPlayer.gameMode.getGameModeForPlayer(),
            false, false,
            Optional.empty(),
            0
    );

    ClientboundRespawnPacket respawnPacket = new ClientboundRespawnPacket(spawnInfo, (byte) 0x02);
    ClientboundPlayerPositionPacket positionPacket = new ClientboundPlayerPositionPacket(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch(), Collections.emptySet(), 0);
    serverPlayer.connection.send(respawnPacket);
    serverPlayer.connection.send(positionPacket);
    dedicatedPlayerList.sendLevelInfo(serverPlayer, serverPlayer.serverLevel());
    dedicatedPlayerList.sendAllPlayerInfo(serverPlayer);
}```
wet breach
glossy laurel
#

Guys if you cancel a runTaskTimer task, does the code after that line finish running?

eternal oxide
#

yes

lone light
#

does someone know how i can use essentials api?

glossy laurel
#

I got the code

#
    public static Chat getChat(){
        return chat;
    }
    public static String getPrefix(Player player){
        return Vault.getChat().getPlayerPrefix(player).replaceAll("&", "§");
    }
    public static String getSuffix(Player player){
        return Vault.getChat().getPlayerSuffix(player).replaceAll("&", "§");
    }```
#
        RegisteredServiceProvider<Chat> rsp = plugin.getServer().getServicesManager().getRegistration(Chat.class);
        if (rsp == null) {
            return false;
        }
        chat = rsp.getProvider();
        return true;
    }```
#

chat setup

#

on plugin start

eternal oxide
#

onLoad? onEnable?

glossy laurel
lone light
eternal oxide
#

and your plugin.yml had a depend/softdepend on vault?

glossy laurel
glossy laurel
#

am I supposed to do that?

#

I was thinking about doing that

eternal oxide
#

yes

#

ensures your plugin loads after vault

lone light
# glossy laurel did you add the dependency?

yeah ```<repositories>
<repository>
<id>papermc-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>paper-repo</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
<repository>
<id>ess-repo</id>
<url>http://repo.ess3.net/content/groups/essentials</url>
</repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>io.papermc.paper</groupId>
        <artifactId>paper-api</artifactId>
        <version>1.21.1-R0.1-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>net.ess3</groupId>
        <artifactId>Essentials</artifactId>
        <version>2.13.1</version>
    </dependency>
</dependencies>```
glossy laurel
glossy laurel
eternal oxide
#

if you softdepend it will load after vault, IF vault is there

lone light
glossy laurel
#

now I can make my own error when theres no vault :D

#

but thing is

#

it doesnt even error

#

so I dont think its that

#

(I made it to error if it fails to load chat)

#

oh and also

#

my chat doesnt contain prefixes

#

I assumed it cuz I dont have a chat plugin?

#

could it be that?

eternal oxide
#

your actual in game chat will only have a prefix if you have a plugin to modify the chat

glossy laurel
#

welp

#

worked

#

wait no

#

not neccessarily yet

#

okay so...

#

uhm

#

it worked but not rly

#

so uhm

#

the thing is

#

hm

#

prolly some char limit

#

yeah its definitely a char limit

glossy laurel
#

how does tab set player name above head with packets

#

without the 16 char limit

#

cuz seems like changing game profile is not the way

peak depot
#

prefix name suffix

#

i think

#

oh wait with packets

glossy laurel
#

wdym

#

aint that vault

peak depot
#

players preifx 16chars main name 16 chars and suffix 16chars

#

nah thats with teams iirc

glossy laurel
#

I have a prefix that has 5 differently colored letters

#

and theyre all colored in hex

#

so thats like

#

8 chars each

#

so like 45 total

#

prefix

blazing ocean
#

What's wrong with teams??

glossy laurel
blazing ocean
#

???

glossy laurel
blazing ocean
#

sir have you had the brilliant idea of searching for "Team" in PEs files

glossy laurel
#

💀

blazing ocean
#

...

#

It's quite hard to publish a jar artifact for something closed source without people just publishing the entire source

torn shuttle
#

ah damn

#

thisis over 3 billion chunks

#

I can't just use memory

#

sadge

#

imagine making your own generation system that requires also implementing a storage solution because of how many chunks it spawns

quaint mantle
#

Lol

torn shuttle
#

ok hear me out

#

I'm actually really lazy

#

ah nah

#

yeah there's no way around this one

#

unless... I kinda just... yolo it

#

wait no I can't do that due to postprocessing

#

actually how am I even going to postprocess something I can't load into memory

#

hm no I can totally do this I just need to get a bit sweaty

glossy laurel
#

how do I tell a player that another player has a prefix from a team

#

fr

chrome beacon
#

Get the team that the player is in

#

Then get the prefix

clever anvil
#

hey✌🏼 i need a developer for simple coding verry easy

eternal oxide
#

?services

undone axleBOT
glossy laurel
#

sick

#

time to sell my soul to strangers online

#

Can I report someone for DM advertisement?

eternal oxide
#

yes

glossy laurel
#

where and how

eternal oxide
#

was it a discord DM on this server?

glossy laurel
wet breach
#

report the message to discord

#

as spam

coarse linden
#

does anyone know how do i remove the invincibility you get after respawning

#

its really annoying

blazing ocean
eternal oxide
#

I never get DM's. No one loves me. In reality I have them all blocked

blazing ocean
#

just turn off dms

wet breach
#

I just forget about them

blazing ocean
#

and only allow friend requests from friends

coarse linden
#

this channel is for helping

wet breach
#

I have like 33 messages/invites or whatever they are right now pending

coarse linden
#

not chatting

brittle geyser
#

omg

blazing ocean
#

i meant with mutuals

brittle geyser
#

ok

blazing ocean
#

my English didn't english

glossy laurel
brittle geyser
#

my english not englishing

eternal oxide
#

Spigot has no invincability after respawn, that I know of

coarse linden
#

okay better question sorry

wet breach
coarse linden
#

when citizen bots respawn they have a 3 second invincibility window

#

i've tried nodamagetick

blazing ocean
coarse linden
blazing ocean
#

oxymoron is a connection of words

glossy laurel
#

sounds like citizens issue

coarse linden
#

its fixable

eternal oxide
#

then you should be asking in server help not plugin dev

coarse linden
#

well you can fix it with spigot

wet breach
echo basalt
blazing ocean
#

no

glossy laurel
blazing ocean
#

combining words

blazing ocean
glossy laurel
#

nah what the hell

#

who are you a native speaker or swomething

wet breach
#

Living dead

#

is an example

glossy laurel
fading drift
#

whats the best way to dispose of a world

blazing ocean
glossy laurel
wet breach
eternal oxide
blazing ocean
wet breach
#

yes

glossy laurel
#

well I was at least

wet breach
fading drift
#

my world

#

just force delete the directory?

eternal oxide
#

unload and delete it

#

you can't delete it if its loaded

glossy laurel
wet breach
#

also can't delete it if its the primary world either

glossy laurel
#

tho

wet breach
#

without stopping the server that is

wet breach
#

typically the spawn chunks and the sorts

glossy laurel
#

fair

#

cropped world moment

wet breach
#

also to note it wouldn't stop the chunks being regenerated either

#

so there is also that

fading drift
#

is Bukkit.unloadworld the same as Server.unloadworld

chrome beacon
#

yes

eternal oxide
#

yes

glossy laurel
#

docs

#

fr

fading drift
#

ty

#

im on the docs

glossy laurel
#

damn

blazing ocean
glossy laurel
#

nvm then

fading drift
#

sorry I don't understand

#

if I remove an object from a list that will correctly dispose of the object correct?

#

as there should no longer be a reference to it

eternal oxide
#

if that is the only reference, yes

echo basalt
#

If there are no other refererences to it

#

It will eventually get garbage collected

fading drift
#
    public void removeMatch(BridgeMatch match) {
        File directory = new File(match.getWorld().getWorldFolder().getPath());
        Bukkit.unloadWorld(match.getWorld(), false);

        try {
            FileUtils.deleteDirectory(directory);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

        matches.remove(match.getId());
    }```
#

anything more I should do?

#

I don't want a memory leak aha

#

considering there could be unlimited matches objects being generated between server stop/start

quaint mantle
#

"It doesn\u0027t do anything... yet!"
\u0027 what is this?

#

I am hard assuming its ' but how do u convert it back?

chrome beacon
#

That's a unicode character

quaint mantle
#

dawg who tf makes description that way

chrome beacon
#

and yes it's '

quaint mantle
#

anyway to convert it back?

silent slate
#

Hey, I'm having trouble building my plugin

https://pastecode.io/s/5fr7ns9p

I have just updated my 3 plugins to 1.21 and one of the three depends on the other plugin and therefore i added it as a dependency in the project structure but somehow after the update it doesnt build anymore

wet breach
#

and thus using that gets around that issue

#

otherwise the program displays the character as something else or mistakes it for something else

slender elbow
undone flame
#

does the PluginDisableEvent handle before the JavaPlugin.onDisable() method call?

eternal oxide
#

It should as its a notification to tidy up any handles you have to the plugin (but test it, don't take my word for it).

torn shuttle
#

I wonder if it's worth it optimizing this to be able to do a world size higher than 3200x3200

#

at 4gb of ram

#

I feel like a 3200x3200 maze is probably plenty big

kindred sentinel
#

I want to make something like 3 lifes hardcore. What's better to use to save their lifes? SQLite or just .yml config api?

torn shuttle
#

?pdc

kindred sentinel
torn shuttle
#

yes

kindred sentinel
#

oh maybe you're right

#

but there is entity pdc???

rugged fern
torn shuttle
#

I wouldn't suggest it if entities didn't have a pdc

glossy laurel
#

java.lang.RuntimeException: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

#

What is this??

eternal oxide
#

if you showed more of the error you'd likely see the connection was refused or not found

kindred sentinel
torn shuttle
#

it was like that years ago

paper cosmos
#

((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet);

#

Can anyone tell me how to fix this line? I heard about a and b functions but I don't understand how to use them. And I don't know where to read about them

eternal oxide
#

?nms

paper cosmos
#

oh

kindred sentinel
#

Is EntityResurrectEvent runs only when entity is being revived by totem on undying?

torn shuttle
#

is there an easy api method to get tps or mspt?

warm musk
#

guys how to save any data on plugin folder

i cant find any video about data saving on youtube

eternal oxide
#

?configs

undone axleBOT
warm musk
#

thanks

mellow edge
#

can the 2. thread provided by spigot's async method (runTaskAsynchronously) be used for write/read operations for databases or does it have specific usages?

quaint mantle
#

Yes

#

Only thing you can't do async is to use bukkit/spigot apis

mellow edge
#

Ok, I don't need those calls so I'm fine. Thanks

torn shuttle
#

pasting over 100 million blocks

#

I wish it could be a bit faster

ivory sleet
mellow edge
#

yeah that is my plan B, I have to think.

ivory sleet
#

well cached thread pool is pre configured, which for the average user will suffice

#

and thats what the bukkit scheduler is using iirc

mellow edge
#

well yeah so I actually wanted to see how bukkit does it and then questioned myself, wouldn't it be better of implementing my own thread pool?

ivory sleet
#

what kind of io ru doing?

mellow edge
#

well two kinds, depends on the mode, but basically I have local file storing and then JDBC

ivory sleet
#

ah

#

ru able to utilize virtual threads?

mellow edge
#

isn't that like java 21 thing?

ivory sleet
#

yea

#

in the case of a no, u may wna stick w a cached thread pool

#

just so slightly configured to match ur needs

mellow edge
#

no I can't... well I can but only on mc versions 1.21+ my plugin is complatible all the way back to spigot 1.8

ivory sleet
#

ah alr alr fair enough

#

in any case, its always interesting to look if u can optimize ur save strategy as well, for example optimistic writing/reading, having upgrade modes etc

mellow edge
#

yes it is indeed

pure dagger
#

when plugin is on i change parameters in config
when plugin is shutted down i change something in config (in code) and use saveConfig();. but the saveConfig(); method overrides my changes while plugin was working

#

i mean thats what i think is happening i have so not much time

#

if someone can answer FAST

#

reloadConifg? maybe this

#

thats it i think

#

thanks for help ❤️

young knoll
#

You’re welcome!

blazing ocean
#

thanks coll!

trail dock
#

hello, does any one know how can i move a horse in a specified Direction with a speed? i want the player to be sitting (optionally on an Armorstand) and be able to control this horse and move it like its a vehicle.
why i am asking this is because using velocity when the horse has no AI doesnt seem to work, i tried making sure the physics and gravity of the horse is on but velocity doesnt seem to work without the AI
i tried using NMS but to no avail.

sly topaz
trail dock
# sly topaz what are you trying to do with all of this

i wanted to create a mini-kart minigame, so i used Armostands, but realized they dont go up blocks and such so im trying to manipulate horses movement(i saw someone called Howzieky do it) to go up blocks and its movement looked smooth

young knoll
#

You could just handle the upwards movement with a bit of code

sly topaz
#

if this was 1.21.2 you wouldn't have to do much with the player input stuff they're introducing Sadge

young knoll
#

I mean

#

You can already detect input when the player is riding something

sturdy sand
#

Hi one question

#

I'm new in the creation of Java plugins

#

And I wanted to know, if the creation of plugins for spigot is related to those of bungee?

#

That is, in coding

young knoll
#

They’re both java

#

And the apis are somewhat similar

nova notch
sly topaz
nova notch
young knoll
trail dock
royal vale
#

Is it possible to add backwards compatibility so that it also checks if the block is an instance of HangingSign, while supporting lower versions like 1.16?
https://github.com/WiIIiam278/ClopLib/blob/master/bukkit/src/main/java/net/william278/cloplib/listener/BukkitInteractListener.java#L76

So:
block.getBlockData() instanceof Sign || block.getBlockData() instanceof WallSign

To:
block.getBlockData() instanceof Sign || block.getBlockData() instanceof WallSign || block.getBlockData() instanceof HangingSign

pure dagger
#

i need to make local chat, so when player sends a message, only players in 30 blocks distance will see it, but there are other plugins that change the format of chat message, for example luck perms, it adds prefix, how do i do it?

sullen marlin
royal vale
sullen marlin
#

Hence the try catch

royal vale
# sullen marlin Hence the try catch

Of course, although just the import org.bukkit.block.data.type.HangingSign; statement itself would break in any server version < 1.20 to my knowledge, right?

young knoll
#

No

#

Imports are just a developer thing, the compiled code always uses the fully qualified class name

royal vale
mortal vortex
#

is it possible to show strictly clientside effects to an individual? For instance, a beacon beam

mortal vortex
#

Alrighty, I'll take a look

timber eagle
#

Hey guys why is it when I am setting the no damage tick when the entity spawns it doesn't work?

#
PitRemake.info(((LivingEntity)super.getNpc().getEntity()).getNoDamageTicks() + " tick");
        ((LivingEntity)super.getNpc().getEntity()).setNoDamageTicks(0);
        PitRemake.info(((LivingEntity)super.getNpc().getEntity()).getNoDamageTicks() + " change tick");
#

lets say its 30 then it wont change to 0 but stay at 30?

#

once the timer is gone for the respawn invincibility i can change it and it will work

#

why is this?

#

i am new

nova notch
#

naturally spawning mobs? that probably isnt possible right

young knoll
#

Not unless you rewrite the spawning system

nova notch
#

how would that even work using just events tho?

#

like how would you even know its attempting to spawn a mob on a mob proof block

young knoll
#

You don’t

#

Hence why you need to rewrite it

nova notch
#

...you can do that in plugins?

young knoll
#

Sure

#

Just disable natural mob spawning and do all the math and calculations yourself

nova notch
#

oh ok i thought you meant something else, like a serverside mod

#

but yeah no one is doing that so it might as well be not possible

echo basalt
#

uh

#

bytebuddy

#

:)

quaint mantle
#

Does XMaterial support item IDs?

nova notch
#

looks like yes

cunning solstice
#

guys i've been wondering wich one of the flags is better - "aikar's, hillty's, obydux's and etil's" anyone can tell me if you're using any of this? Or just making the startup yourself (well i mean i can do it)?

Obydux ones ran only on linuix so it's not my style (im windows user)

candid galleon
#

i think these are all red flags

cunning solstice
#

but like i feel like using and configuring etil's coz it's just nice

#

and im just asking for your opinion

cunning solstice
#

honestly im not using any of this rn and im using default ones (a bit edited tho)

upper hazel
#

is there any significant harm in creating a “common process” for all plugins in the api ?

#

for example common container

#

or class

blazing ocean
#

Have a common submodule or api submodule and then the implementations

torn shuttle
#

fun question

#

not a great idea to thread sleep even an async task right

#

or would it kinda be fine

#

hm

#

I'll try it out

hazy parrot
#

You block thread for no reason

eternal oxide
#

sleeping an async (Your own pool) is fine. It just yields all cycles until triggered

torn shuttle
#

it's just a very big operation and java doesn't like it

eternal oxide
#

Sleeping a Bukkit scheduled Thread, unknown as I've not looked at its implementation

torn shuttle
#

fawe doesn't actually place blocks in async right

#

pretty sure that's not possible?

eternal oxide
#

fawe uses a job queue which it pulls from to process

torn shuttle
#

k so basically what I'm already doing

#

damn

eternal oxide
#

limit how many jobs you do at a time

torn shuttle
#

yeah I don't think there's any tricks I can pull to make this paste over 100mil blocks faster

eternal oxide
#

no

torn shuttle
#

but I can optimize which ones get pasted first which I guess is a good first workaround

#

doesn't matter that it takes 20 min to paste if players will take 100h to reach the edge

eternal oxide
#

yep, closest first

torn shuttle
#

center out will do just fine here

#

probably

quaint mantle
#

for check concrete powder change to concrete am i use blockphysics event?

torn shuttle
#

weird

#

java isn't freeing the memory even though I am pretty sure I am not holding any references to it

#

the heck java

eternal oxide
#

depending on the gc it may nto free until it runs out

torn shuttle
#

it is running out

#

and not freeing

eternal oxide
#

then you have a sneaky reference hiding somewhere

torn shuttle
#

hmm

#

also I do wonder if worldedit has a mem leak

#

mem usage consistently goes up

#

with each paste

#

and it never lets go

eternal oxide
#

I'd not be suprised

#

we has an undo so it may be holding references for that

torn shuttle
#

I hm

quaint mantle
#
    @EventHandler
    public void onBlockForm(BlockFormEvent event) {
        if (event.getBlock().getType() == Material.WHITE_CONCRETE_POWDER &&
                event.getNewState().getType() == Material.WHITE_CONCRETE) {
            event.setCancelled(true);
            System.out.println("test");
        }
    }```
#

this not worked

torn shuttle
#

that's a good point

#

I wonder if it still does that even if I am using the api

#

because at the scale of 100m+ blocks this is kind of not acceptable

quaint mantle
#

debug not worked too btw

eternal oxide
#

you didn;t register the listener

quaint mantle
#

i did

#
    public void onEnable() {
        getServer().getPluginManager().registerEvents(new me.vasir.untitled2.Test(), this);

    }```
#

will change code 1m

torn shuttle
#

oh I wonder if these are working hand in hand

#

I am holding a reference to a clipboard

#

I wonder if that's where the paste history is

#

doesn't seem like that would be the case though

quaint mantle
#

okey this fine for me

velvet prawn
#

Hello, i try to use the Teams API instead of Packets, but if i use the Teams API, i dont know how to merge it with other plugins, like I have another Scoreboard Plugin, and the Teams doesnt work anymore, when i have installed this Plugin, or the Scoreboard doesnt work when i have installed the Teams Plugin. Does somebody knows a fix for it?

pseudo hazel
hushed scaffold
#

is there any good particle library for shapes , animations like for example spirals etc? ive tried effectlib but its hard to work with , cannot get stuff like pitch to work at all

young knoll
#

Worldedit 100% has a leak when reloaded

#

Idk about mem leaks outside of reloading tho

noble hedge
#

Hello can anyone tell me how can i put this plugin in my server ?

#

Its made in kotlin

velvet prawn
#

Hello, i try to use the Teams API instead of Packets, but if i use the Teams API, i dont know how to merge it with other plugins, like I have another Scoreboard Plugin, and the Teams doesnt work anymore, when i have installed this Plugin, or the Scoreboard doesnt work when i have installed the Teams Plugin. Does somebody knows a fix for it?

worthy yarrow
#

This is your own plugin?

torn shuttle
#

yknow I just realized that as much as I am bemoaning how slow I am pasting 100 million blocks I don't actually know how quickly minecraft actually generates chunks

worthy yarrow
#

The process is a bit different isn’t it?

#

Pasting / chunk gen I mean

torn shuttle
#

of course it is

worthy yarrow
#

Chuck gen would be way more random as it were right?

torn shuttle
#

the opposite

#

due to what it is that I am pasting

#

mine is way more varied

worthy yarrow
#

Oh that’s right I forgot you’re doing the big maze thing

torn shuttle
#

yeah benchmarking 200 radius chunks right now

worthy yarrow
#

Effen a cotton

torn shuttle
#

I actually finally woke up and realized why I was getting a stack overflow so I just changed to put the creation logic in a while loop

worthy yarrow
#

I find it quite weird how a lot of answers can be figured out just by a good nights sleep

torn shuttle
#

well it wasn't a focus to start with, I was dealing with more pressing things yesterday

worthy yarrow
#

I assumed so, how is your wife now by the way?

#

Or was that simple

torn shuttle
#

wow racist

#

you think all purple people are the same I see

worthy yarrow
#

I have no differentiation between the two of you and I really don’t know why lmao

torn shuttle
#

well I'm sure simple is going through a very rough time right now

#

mostly because he's playing albion

#

so it's at least that bad

worthy yarrow
#

Albion wow

#

New lows for real lol

#

Anyway time for todays disc golf round

torn shuttle
#

hm

#

again this slows down

#

when reaching about a million chunks

#

not a fan of that

mellow edge
#

hello, what do I do if I want to fix a "gimbal lock", I have a vector that is pointing up, a vector that is an actual direction, and I calculate the orthogonal vector and if the direction and the up vector are the same, the resulting vector is NaN. Is there a "workaround"? Code:

Location explosive = e.getEntity().getLocation().getBlock().getLocation().add(0.5D, 0.0D, 0.5D);
        Vector explosiveVec = explosive.toVector();
                Vector glassVec = b.getLocation().add(0.5D, 0.0D, 0.5F).toVector();
                Vector dirVec = glassVec.subtract(explosiveVec).normalize();
                Vector up = new Vector(0.0D, 1.0D, 0.0D);
                Vector orthoRight = up.crossProduct(dirVec).normalize();
                b.getLocation().add(dirVec.multiply(3)).getBlock().setType(Material.HARD_CLAY);
                b.getLocation().add(orthoRight.multiply(3)).getBlock().setType(Material.GOLD_BLOCK);
                Bukkit.broadcastMessage(orthoRight.toString());
                Bukkit.broadcastMessage(dirVec.toString());
        }

I know this is kind off off-topic but it is directly related to minecraft.

torn shuttle
#

use quaternions

mellow edge
#

:(

blazing ocean
#

real

torn shuttle
#

you can skip the hard part and just use joml

#

probably the easier way of converting it around

mellow edge
#

thanks goodness I already used it

#

for non-mc stuff

kindred sentinel
#

How to change time shown of Player.spigot().sendMessate(ChatMessageType.ACTION_BAR)?

#

and how frequently I should use BukkitSheduler.runTastTimer(...) to show actionbar constantly?

chrome beacon
kindred sentinel
#

something like 10-20 ticks?

chrome beacon
#

yes

torn shuttle
#

lmao

#

I just made the generation time go from 1:08:45 to 0:06:37

#

I'm really out here busting out the gamer moves

eternal oxide
#

You skipped block changes? 🙂

torn shuttle
#

no I'm using a buckets system instead of just a list of ungenerated chunks and a distance cache

#

buckets are great

#

also I think I accidentally dumped distance based checks but that's probably fine?

#

hm

#

hmm

eternal oxide
#

lol

torn shuttle
#

I mean

#

I guess it sort of matters if I ever move this out of memory only

cedar flume
#

Hey,
any way to hide the Disk name from the meta of a disk ItemStack?

torn shuttle
#

wait no I'm dumb

#

it's a priority queue and yeah it's distance based

#

all good

cedar flume
chrome beacon
#

It's probably the hide potion effects

#

It's a bad name for hiding item specific lore

#

but that's what it was only used for when it was added to the api

cedar flume
chrome beacon
#

oh did they finally rename and fix it

#

nice

chrome beacon
cedar flume
#

tried with:

itemMeta.addItemFlags(
        ItemFlag.HIDE_ENCHANTS,
        ItemFlag.HIDE_DYE,
        ItemFlag.HIDE_DESTROYS,
        ItemFlag.HIDE_ARMOR_TRIM,
        ItemFlag.HIDE_PLACED_ON,
        ItemFlag.HIDE_UNBREAKABLE,
        ItemFlag.HIDE_ATTRIBUTES,
        ItemFlag.HIDE_ADDITIONAL_TOOLTIP
);

None seem to hide it 😛

river oracle
#

ItemMeta is just so cursed post component switch

#

See if there's some component thing to hide it

spare hazel
#

Hey, i want to make an API for interacting with the server through http requests and im wondering... how can i embed a spring boot application into a minecraft plugin

chrome beacon
#

so there might not be a suitable replacement for that specific lore

cedar flume
#

any pointers on where I start with the component system? not sure iv ever used that before

chrome beacon
#

It's just the new way Mojang has implemented nbt tags

#

You can read about it on the Minecraft wiki and in the 1.21 release notes

#

oh 1.20.5 release notes*

#
Minecraft Wiki

Data components, or simply components, are structured data used to define and store various properties. They are used on items, where they are referred as item components or item stack components, and block entities, partially replacing NBT format.
Data components are used in various places, including the player's inventory, container block enti...

chrome beacon
#

Sadly I think the API is missing methods for it

#

oh nvm it has it

#

Use this component and set the song and show in tooltip to false

#

Do note you must specify a song for it to play or it will complain

cedar flume
#

so get components from meta,
cast to JukeboxPlayableComponent and set the ShowInTooltip

chrome beacon
#

I'm not entierly sure how the new api works

#

I haven't made a plugin in over a year

cedar flume
#

Im just returning from about the same time and updating some of mine 😄

#

appreciate the help none the less

chrome beacon
noble hedge
#

Or should i make it into .jar

chrome beacon
#

Plugins are jar files

#

You need to compile that plugin from the source code using the instructions in the project

noble hedge
#

But its a file

#

What tool should i use to compile it?

chrome beacon
#

gradle

#

as stated in the instructions

cedar flume
river oracle
noble hedge
#

I think i figured it out thx

cedar flume
#

OH, I see aha,
itemMeta.getJukeboxPlayable() lol

I was blind looking for something that returns a components object or similar

river oracle
#

because I feel like its somewhat unintuitive you'd need to use the get method if its not set

chrome beacon
#

getComponent(class) would be easier to find

#

also would also save a whole bunch of getters from the code?

cedar flume
#

I was expecting something along the lines of:

ItemComponents components = itemMeta.getComponents()
if(components instanceof JukeboxPlayable jukebox){
jukebox.setWhatever()
}

chrome beacon
#

so idk if would be possible to add

pure dagger
#

how to check if player moved but not pitch

#

and yaw

echo basalt
#

If you're using paper you have event.hasChangedPosition

#

Otherwise just compare xyz values

#

By, for example, subtracting to and from and checking the length against a known epsilon

pure dagger
#

umm can i check if fromX == toX && fromY = toY && fromZ == toZ?

cedar flume
#
//Set the vanilla component to hide the disc text
        JukeboxPlayableComponent jukeboxComponent = itemMeta.getJukeboxPlayable();
        if(jukeboxComponent != null){
            jukeboxComponent.setShowInTooltip(false);

            itemMeta.setJukeboxPlayable(jukeboxComponent);
        }

Seems to work for what I need 🙂
thank you for the help there, @chrome beacon @river oracle

river oracle
#

Hot take but I think itemMeta.setJukeboxPlayable((component) -> component.setShowInTooltip(false)); would be heat

chrome beacon
#
itemMeta.setComponent(JukeboxPlayableComponent.class, (component) -> component.setShowInTooltip(false));
nova quail
#

Hello! How to block all ways to fly with elytra. I tried to check if players is flying and gliding but player can stll fly.
My code:

public class PlayerGlidingListener implements Listener {

    @EventHandler
    public void onGliding(PlayerToggleFlightEvent e) {
        Player player = e.getPlayer();

        if (player.isFlying()) {
            ItemStack chestplate = player.getInventory().getChestplate();
            if (chestplate != null && chestplate.getType() == Material.ELYTRA) {
                ChatUtil.sendConfigMessage(player, "error.no_elytra");
                e.setCancelled(true);
            }
        }
    }
}
remote swallow
#

The player toggle flight event isn't for using an elytra is for if someone toggles flight given by a /fly plugin or creative

nova quail
#

Tried to find another event but found only this. Is there any better event?

worldly ingot
#

There's a toggle glide event

#

Players can still sort of glide a little bit even if it's cancelled, but that's just a client thing that you can't really prevent

nova quail
#

Found, thanks.

torn shuttle
#

highway to the dangerzone

eternal oxide
#

download more ram

torn shuttle
#

I mean

#

I'm just trying to figure out some basic benchmarks for what 8gb can do

acoustic pendant
#

Does someone know why this timer isn't being exact? (It is to show how long a player needs to fish)

        if (e.getState() == PlayerFishEvent.State.FISHING) {
            //Player cast the rod
            plugin.getFishingUtils().fastRod(e, itemStack);

            FishHook hook = e.getHook();
            hook.setCustomNameVisible(true);

            int totalTimeMs = hook.getMinWaitTime() * 50;

            new BukkitRunnable() {
                int time = totalTimeMs;

                public void run() {

                    if (time <= 0 || hook.isDead()) {
                        hook.setCustomName(ChatColor.translateAlternateColorCodes('&', "&a0.000"));
                        this.cancel();
                        return;
                    }

                    int seconds = time / 1000;
                    int milliseconds = time % 1000;

                    String newTimeDisplay = ChatColor.translateAlternateColorCodes('&', "&a" + seconds + "." + String
                            .format("%03d", milliseconds));
                    hook.setCustomName(newTimeDisplay);
                    
                    time -= 50;

                    if (hook.isDead() || hook.getLocation() == null)
                        this.cancel();
                }
            }.runTaskTimer(plugin, 0L, 1L);

        }```
torn shuttle
#

danger zone intensifies

#

at least it's very fast

#

relatively speaking

torn shuttle
#

notch pls

#

ok well this is not going to work

quaint mantle
#

Is this without any plugins? 💀

torn shuttle
#

it's running a pretty intense modular generation system

#

I'm figuring out benchmarks for what are safe sizes for different amounts of ram

#

oh right

#

I just realized I think this might be entirely uncancellable

#

let's try with 50gb

tepid jewel
#

guys i want to make it so that it checks that the right item is in a custom gui slot and that it has the right stack size how do i do that

#

i want it to check for 8 iron ingots in the first item

tepid jewel
frail pilot
#

Assuming you already have the inventory you want to check

ItemStack stack = inventory.getItem(0);
if (stack.getAmount() == 8 && stack.getType() == Material.IRON_BARS) {
  // do something 
}
tepid jewel
#

thank youu

frail pilot
acoustic pendant
hybrid spoke
#

getMinWaitTime

#

you are getting the minimum

#

ofc you can take longer

torn shuttle
#

gotta say initializing 96k data points and running very basic math on them is turning out to be absolutely glacially slow

#

oh hell yeah we're cooking

#

wait my math must be wrong this isn't 96k

#

ah yeah

acoustic pendant
torn shuttle
#

it's 96 million data points

acoustic pendant
#

I set the min and máx time as the same

torn shuttle
#

yeah that makes more sense

acoustic pendant
#

The method fastRod does set min and max time as the same

frail pilot
acoustic pendant
#

Which was strange for me

frail pilot
acoustic pendant
#

Oh

frail pilot
#

Probably because you catch a fish on some ticks randomly

#

And the duration is not determined when you start fishing

acoustic pendant
#

Should I set it myself or how would it be

frail pilot
#

You can code a little listener to count how many ticks you have between when you start fishing and when you catch the fish

#

For debugging purposes

#

Then you can check if the fish time is correctly set

#

If it is, then just use the duration you specify as parameter inside your runnable instead of getting it directly from the hook

acoustic pendant
#

I found some guy who did it using reflection

#

Should I use nms for that?

frail pilot
#

🤷

#

Up to you

#

If you find a workaround using the bukkit API, then go for it

acoustic pendant
#

I tried but didn't work

frail pilot
#

You are sure the duration is correctly set ?

acoustic pendant
#

Let me send it

frail pilot
#

And the end of the method is correctly reached?

acoustic pendant
#

It is

frail pilot
#

I mean, does the first checks pass ?

#

Ok

acoustic pendant
#

Yes

frail pilot
#

Maybe this duration refer to the amount of ticks you have to wait before the fishing animation start

acoustic pendant
#

It doesn't

frail pilot
#

Well something does not work

acoustic pendant
#

Yeah

frail pilot
#

Regardless of the timer

acoustic pendant
#

I think the timer is every time the same

#
  1. Something ms if using fast Rod
  2. Something if don't
frail pilot
acoustic pendant
frail pilot
acoustic pendant
#

But it doesn't change

frail pilot
#

Well, the second one symply can't work

#

As you will have a random offset on top of the min duration

#

If you use fast rod, you don't have always the same offset between the end of the timer and the moment you catch the fish, do you ?

acoustic pendant
#

I think I'll just use nms

hybrid spoke
#

nvm on that, has no effect in newer minecraft versions

acoustic pendant
#

I'm using 1.20.4

hybrid spoke
#

are you taking the lure time into account?

acoustic pendant
#

Nope i'm not

#

However rod doesn't have lure

hybrid spoke
#

there seems to be a little time span, between the wait time (a fish appearing) and luring (the fish biting the hook)

acoustic pendant
#

oh

hybrid spoke
#

thats probably where your time difference is coming from

acoustic pendant
#

My bad sorry

#

Let me check

#

Should I just sum lure and minTime?

hybrid spoke
#

also instead of checking if the hook is dead, rather check the hookstate first

hybrid spoke
acoustic pendant
#

Okay thanks

hybrid spoke
#

but dont forget the max lure time

acoustic pendant
#

Yeah, going to set it as the min

#

Something like this

hybrid spoke
#

you could just set it to 0, and everything would time up perfectly, but that removes the fish approaching the hook

acoustic pendant
#

I prefer the approach ig

hybrid spoke
#

give it a shot

acoustic pendant
#

Yeah, 1s need to set up java version 💀

acoustic pendant
hybrid spoke
#

nice

acoustic pendant
#

However, do you know if it would be possible to get the exact wait time?

#

If the player doesn't have the fast rod enchant I want a random ms

hybrid spoke
#

max - min 🤔

acoustic pendant
#

hmm

#

You sure?

hybrid spoke
#

i mean, what do you understand under "exact"? with min and max being the same the fish will always appear at the same time i suppose

acoustic pendant
#

Which is vanilla minecraft

hybrid spoke
#

you could check the server code and see how the time, when the fish is biting, is determined

acoustic pendant
#

Isn't it a random tick?

hybrid spoke
#

a random moment between the min and max yeah

#

but somewhere in the code the "activation time" has to be determined

#

basically randomly chosen

#

but you could also just take the vanilla min and max and choose the random point urself, then setting the min and max to that

#

by that you know the exact time and its still random

acoustic pendant
#

uh

#

I guess i'll do that

#

thanks

#

I'll just add a random number

hybrid spoke
#

👍

warm musk
#

https://sourceb.in/EvpuVjovJS

guys i want to make translate message with colors if player have permission creusa.yetkili.sohbet.color but i cant do

#

how can i do?

hybrid spoke
#

i would suggest to first learn java, then abuse ai as your coding slave

warm musk
#

no

hybrid spoke
#

okay

warm musk
atomic niche
#

basically, there are four options

#
  1. Learn a scripting language such as methodscript, and do it there.
  2. Find an out of the box plugin solution you can configure to do that.
  3. Learn java and make a plugin to do it.
  4. Pay someone to do one of the three above.
#

Something like permission based coloured translation requires at least some basic level of coding knowledge

#

Not much, but it is the type of question people will usually avoid answering since it is fundamental enough to likely start a spoon feeding chain

hybrid spoke
#

^

#

his problem is not, that its not working. its, that he doesn't understand, what someone else did for him

atomic niche
#

In this case, I think 1 would probably be the best solution

#

since it simplifies a lot of the problems and since this is a fairly simple request

hybrid spoke
#

funny how people think they can just feed ai with their idea and they will get the perfect solution in return

#

coding is luckily way more than that

atomic niche
#

or just use some chat plugin's colour perms

atomic niche
#

I think the main restriction on that atm is hardware

hybrid spoke
#

oh dont get me wrong, AI is great as a co-dev. but only if you know what you and your co-dev is doing

atomic niche
#

when we can train stuff a few hundred times deeper, it can probably handle most coding tasks

#

the only thing that stops "make a factions style plugin" from being a viable prompt, especially given that the entirety of gh is a training dataset, is probably just computation limitations

hybrid spoke
atomic niche
#

I imagine that will be the state in a couple of decades

hybrid spoke
#

sadly

eternal oxide
#

sooner

hybrid spoke
#

i'll give it 1-2 years

#

the jump from model 3 to 4 was already huge

eternal oxide
#

Yep, I'd say under 10, but very soon

atomic niche
#

Probably at least 20 years away from "build a spawn for my minecraft factions server"

hybrid spoke
atomic niche
#

not well

hybrid spoke
#

very well

atomic niche
#

or "find and fix the memory leak in the server implementation found at this ip, this username, with this key"

hybrid spoke
#

just make your own model, feed it everything minecraft related, a few maps and give it guidelines like "make it an entry hall" or "symmetric"

atomic niche
#

it is not currently anywhere close to the level of professional builders

#

the game is just too finicky for current models to handle

hybrid spoke
#

ofc not, since the maschines dont have the creativity yet

#

same for problem solving

#

its basically a checklist

pure dagger
#

how to make nicknsmes invisible

silent slate
#

Hey, im still having problems compiling my plugin? Any helphttps://pastecode.io/s/5fr7ns9p

kind hatch
#

?paste your pom

undone axleBOT
sly topaz
#

it is just that nobody cares to collect a dataset and make a model specifically for that

atomic niche
#

the main issue is the size of data dataset required

#

if we take everything ever uploaded to planetminecraft, and use labels added on planetminecraft, I doubt that it would be enough for current hardware to train

sly topaz
#

eh, I think the data in planetminecraft would be plenty, but I can see your point

#

still, that's only if we're thinking of training a model from the start, it would require way less data to train (or rather, fine-tune) a multimodal to achieve it reliably

atomic niche
#

I think the best thing would be to make a reCAPTCHA type thing

#

get every world ever

#

identify objects in the worlds

#

feed it to users to identify what is in the photo

#

would probably hold off bots for a few months as well

#

same way we trained most image recognition algorithms

#

use like minerender or something

paper viper
#

A lot of stuff on planet Minecraft is very low effort tho

#

Idk if that would help the model

sly topaz
#

that might matter for the little details, but it'd still help constructing the weights for the overall concept of a "minecraft structure"

atomic niche
#

that basically already exists

#

you can get claude to build shit in minecraft by giving it a basic api

sly topaz
#

I mean, yeah. But not a whole spawn

#

it should be able to work at a big scale to be of any use at all

atomic niche
#

if you ask claude to build a floating castle, it spits out this

sly topaz
#

that isn't too bad actually

atomic niche
#

I think we are at the stage where captcha training would be viable

#

could also do "which wall is better"

#

"which island is better"\

#

stuff like that until the components are done

#

then "which of the following are picnic tables"

hybrid spoke
noble hedge
hybrid spoke
kindred sentinel
noble hedge
#

lol

kindred sentinel
#

Idk, i don't use kotlin

#

I mean, you should have some jar

noble hedge
#

no one uses it thats the problem

chrome beacon
#

The classpath is not Kotlin specific

kindred sentinel
#

I know, but I don't know what's kotlin-reflect.jar

#

to tell how to fix it

atomic niche
#

There are people who use kotlin, and they are very vocal and adamant that everyone else on the planet should also be using kotlin.

remote swallow
#

thats not their plugin

#

there crossposting

noble hedge
atomic niche
#

that's not why we point it out

remote swallow
#

ive seen the code for it before and refuse to touch it, contact the author

noble hedge
#

not really

#

but like the plugin is for 2 years

velvet prawn
#

Scoreboard teams with packets examples?

pure dagger
#

how to make nicknsmes invisible

kindred sentinel
#

Is there a way to get entity by selectors using plugin?

#

Like I want to create command that can use selectors

#

@e @a etc.

worldly ingot
#

Yes. Bukkit#selectEntities()

kindred sentinel
#

Thanks

noble hedge
remote swallow
#

its an issue with the reflection,unless you can fix it yourself no one here will fix it for you ur gonna have to pay someone to fix it

noble hedge
#

ok

paper viper
#

does anyone know a multimap cache collection that i could use? im using an invite system and each player can have their own invites that expire

hybrid spoke
paper viper
hybrid spoke
#

oh right

worldly ingot
quaint mantle
#
        for (double angle = 0; angle <= Math.PI * 10; angle += 0.35) {
            double x1 = radius * Math.cos(angle);
            double z1 = radius * Math.sin(angle);

            double y = (angle / (2 * Math.PI)) * ySeparation;

            Location tempLoc1 = loc.clone().add(x1, y, z1);

            final Location particleLocation1 = tempLoc1.clone();

            new BukkitRunnable() {
                public void run() {
                    player.getWorld().spawnParticle(Particle.FLAME, particleLocation1, 0);
                }
            }.runTaskLater(Main.getInstancia(), delay);

            delay += 1;
        }
#

Can someone help me with this? i wanna make it rotate with player pitch and yaw but idk how

worldly ingot
#

Yes but Bukkit doesn't shade Caffeine, so

#

If you're willing to either shade in Caffeine or use the libraries system, then sure. But otherwise, Bukkit already has Guava at runtime

paper viper
#

thing is there isnt anything built in that supports caching the values so they expire after some time for a multimap, you'd have to create it yourself

#

like the Cache works but single value

worldly ingot
#

Yes it would have to be a Cache of a Collection

paper viper
#

Yea

worldly ingot
#

That's why I said expire on access, so you can get it but it won't expire if you access it later

slender elbow
#

just make your own cache

#

how hard could it be

#

:Clueless:

sly topaz
#

do unverified people get no emotes as well

#

crazy

slender elbow
#

only boosters

worldly ingot
#

and mods because we're cool PajamaDance

slender elbow
#

sure

#

lol

sly topaz
#

you mean a real day or a minecraft day

quaint mantle
sly topaz
# quaint mantle exactly, sorry if i couldn't explain right

well, the yaw would be the x, z and the pitch would be the y. Given that pitch and yaw are in degrees, you would have to convert them to the respective x, y, z components by getting the cos and sin of these and then multiply the x, y, z components by the old values (the ones you already calculated there)

quaint mantle
#

i suck @ maths but ig i could do smth

sly topaz
#

ah, you have to convert the yaw and pitch to radians, since they're in degrees. Don't forget about that

obtuse bloom
#

does anyone know if its possible to run an EXE file inside a minecraft server
like i wanna use my minecraft server to host other stuff other than a minecraft server
why? cuz i already have many points in the minecraft server host im using and i dont wanna spend money on a normal server host

obtuse bloom
quaint mantle
obtuse bloom
#

saw some people active here

#

so

quaint mantle
#

lol u spamming in different channels

quaint mantle
obtuse bloom
sly topaz
remote swallow
#

if you buy an mc server from a host its just an mc server but if you buy a dedi or vps you can run whatever you want

quaint mantle
#

u using a channel of development for getting help cuz "it's more active"

obtuse bloom
quaint mantle
sly topaz
#

it is exploiting when you aren't using it for the purpose it was made

slender elbow
#

there is this thing called "usage terms and conditions"

obtuse bloom
quaint mantle
sly topaz
#

it honestly shocks me how people think they can get away with this lol

obtuse bloom
#

fuck its agains the tos

#

oh well ill find a way eventually

sly topaz
#

schedule a timer task and check when World#getFullTime reaches 0 ig

tepid jewel
#

Ok so ive been making a crafting ui and slot 16 is supposed to be the result slot but the issue is if the player tries to put something into the result slot and they try hard enough the item will get deleted and if i make it cancel the event for clicking on slot 16 then you cant take the result out after crafting, any ideas how to fix

sly topaz
obtuse bloom
#

other stuff no cheap

sly topaz
#

it is not cheap at all, it just looks like it

#

it is accessible, but not cheap

obtuse bloom
#

ive been using it, seems pretty cheap to me

tepid jewel
remote swallow
#

i love the fact exaroton doesnt say what specs the systems have

sly topaz
#

it is paid aternos basically, shitty shared host

slender elbow
#

you get what you pay for

quaint mantle
#

totally agree

#

emily porfavor actualiza el resourcepack bypass a la 1.21.1 jajaj

shadow night
quaint mantle
sly topaz
shadow night
#

Like, seriously, I'd rather just use aternos instead

quaint mantle
#

no tengo novia así que uwu

remote swallow
sly topaz
#

it is the pipeline

#

aternos -> exaroton pipeline

quaint mantle
#

JSHJDshj

shadow night
quaint mantle
shadow night
#

Also, guys, why we breaking rules now

#

I haven't seen such chaos here in ages

quaint mantle
#

lol

sly topaz
quaint mantle
#

i don't understand anything at all 😭

sly topaz
#

if you just apply the thing I told you earlier, it should do the thing

quaint mantle
#

fine

sly topaz
# quaint mantle fine
var radPitch = Math.toRadians(pitch);
var radYaw = Math.toRadians(yaw);
var pitchCosine = Math.cos(radPitch);
var pitchSine = Math.sin(radPitch);
var yawCosine = Math.cos(radYaw);
var yawSine = Math.sin(radYaw);

var newX = x1 * yawCosine + z1 * yawSine;
var newY = y * pitchCosine - (z1 * yawSine * pitchSine);
var newZ = -x1 * yawSine + z1 * yawCosine;

something like that

obtuse bloom
sly topaz
#

there's probably a better way than to apply the rotation to the existing angle tbh, but I can't really come up with one without visualizing it and I don't wanna write a python script just to plot the thing lol

obtuse bloom
#

im happy with it

shadow night
obtuse bloom
#

its cheap

shadow night
#

That's like the least transparent most limited paid host you can choose

obtuse bloom
shadow night
#

There are free hosts better than exaroton lol

obtuse bloom
shadow night
shadow night
quaint mantle
#

localhost for president

shadow night
obtuse bloom
quaint mantle
#

decent for free standards

obtuse bloom
#

hmm seems pretty cheap

tepid jewel
#

Ok so ive been making a crafting ui and slot 16 is supposed to be the result slot but the issue is if the player tries to put something into the result slot and they try hard enough the item will get deleted and if i make it cancel the event for clicking on slot 16 then you cant take the result out after crafting, any ideas how to fix

quaint mantle
tepid jewel
#

plz 🙏

obtuse bloom
quaint mantle
#

and x1, z1 and y would be my normal loc right?

sly topaz
#

yep

sly topaz
sly topaz
#

also, is there a reason you're manually handling crafting/smithing/whatever that is instead of using the recipe system?

night grove
#

I have a question is there any plugin that can disable exact enchantment like thorns,sharpness even when its already on the weapon?

sly topaz
night grove
#

okey so where can i ask?

sly topaz
night grove
#

okey

#

ty

warm musk
#

how can i solve

sly topaz
#

that video isn't embedding, discord moment™️

warm musk
#

wait

tepid jewel
warm musk
eternal oxide
#

Ask an actual question. no one is going to help you from a crappy video

warm musk
#

?

eternal oxide
#

Its your issue so describe it. I can only tell its something about placeholder api

#

can't make out shit from the video

chrome beacon
#

PlaceholderAPI doesn't do recursive placeholders as far as I'm aware

quaint mantle
#

can i make colored light?

warm musk
eternal oxide
#

you would have to re-parse it if you are adding placeholder. If it can even do that

chrome beacon
warm musk
chrome beacon
#

Keep looping until the string stops changing

quaint mantle
#

or

#

datapacks

chrome beacon
#

You can make a mod

quaint mantle
#

ah

chrome beacon
#

And that mod needs to be installed on the client

quaint mantle
#

so any method not working with vanilla

#

or datapacks

chrome beacon
#

Datapacks are far more limited than plugins

warm musk
#

thanks

young knoll
#

You can do some fancy stuff with shaders

#

I think

#

JNNGL is a wizard with vanilla shaders

sly topaz
#

completely broken in next update apparently

fading drift
#

anyone happen to know the equivelant of EntityPortalEnterEvent for 1.8

#

found it: PlayerPortalEvent

rough ibex
#

1.8 :hollow:

river oracle
#

I implemented a gcf function is this optimal?

fun gcf(first: Int, second: Int): Int {
    var fr = max(first, second)
    var sr = fr % min(first, second)
    while (fr % sr != 0) {
        val temp = sr
        sr = fr % sr
        fr = temp
    }

    return sr
}
#

I kinda just winged it and guessed what would be good based off of euclid's algorithm

urban saddle
#

yo

#

is there any place I can get support about a plugin I bought if the plugin owner is not answered, question about refund

quartz gull
#

How would I implement a social media verification system, would springboot socials be a viable option, and would it be possible to code a plugin without using a website?