#help-development

1 messages · Page 1122 of 1

pseudo hazel
#

like the function keeps taking 1 away from the array and it needs to stop when its empty, but all of this logic is inside the function itself

sacred mountain
#

yea completablefuture is good for that if im not mistaken?

pseudo hazel
#

im not sure, idk how to use completable future

sacred mountain
#

Look it up

#

plenty of tutorials

pseudo hazel
#

but that wouldnt really help make the code look any better

#

like adding completable future is just gonna add more code that makes it look complicated

#

i guess i will just stick with the warning

sacred mountain
#

i see

sacred mountain
#

insane

pseudo hazel
#

what

sacred mountain
#

logic

pseudo hazel
#

dont ?? me

#

why

paper viper
#

Well, imo the completablefuture would be more suitable because in case it's chaining calls with one another

#

i dont think it would make it more complex

pseudo hazel
#

its chaining because its in a loop yeah

#

also CF just looks like a fancy supplier of sorts

#

if you have a bit of time, could you write up a quick example of how this code could be written more clearly with CF?

paper viper
#

Actually, reading more into the context, I don't think CF would help this unless is it some sorta api?

#

that users want to do something before or after

pseudo hazel
#

its not

#

its in the jungle of my file reader

paper viper
#

Ah I see that makes more sense

#

Sry mb then that's fine

#

but CF is very useful in general

#

so when i first saw that i was a bit confused lmao

pseudo hazel
#

and even if it was in an api, how would it help

paper viper
pseudo hazel
#

like the calls are sync and instant, because its dealing with a known byte array at runtime

paper viper
#

.supplyAsync, .runAsync, .supply, .run, .handle

sacred mountain
#

why do you care about the warning lol

#

just ignore it you know what you're doing

pseudo hazel
#

because warnings look like ass 😭

#

but u right

paper viper
#

i have liek 50 warnings lmao

#

IJ does "over warn" often tho for ex

rough ibex
#

you can just ignore the warning

#

add a comment explaining why

#

// Empty body, just need to exhaust this

pseudo hazel
#

I wish there was a way to just add some sort of code so that IJ will ignore the warning

rough ibex
#

you can

pseudo hazel
#

like an annotation or whatever

paper viper
#

@SupressWarnings

pseudo hazel
#

oh

paper viper
#

lmao

pseudo hazel
#

and I assume that has arguments for the warning type?

paper viper
#

Yeah

rough ibex
#

//noinspection

paper viper
#

Or you can do all for all

#

that works too

paper viper
#

i think the annotation has more support accross different IDE's tho

#

not sure

#

but noinspection can mark more stuff

sacred mountain
#

me when leaving the warning in is cmopletely fine

pseudo hazel
#

alr I cant really find the inspection I need so im just gonna leave it like this

#

thanks for answering 😄

cosmic elk
#

hey so im trying to look for somewhere i can speak to more experienced spigot devs than me, I've run into an issue and im seeking help but honestly not really sure where to go, google hasnt helped a lot lol

pseudo hazel
#

this would be the perfect place

#

?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!

cosmic elk
#

very glad to know that! lol i was getting kinda lost thank you

#

so not very sure how to explain this im pretty new to java, but using persistent data containers im trying to save an int value to an item which is just pretty much cooldown, issue is that everytime the item updates the cooldown it animates it in the view model as if I switched it out for a new item, and I want to know how or if I can stop that animation from playing, it doesnt really effect how the item is used but is very distracting

eternal oxide
#

instead of storing an int and counting down, store a Long which holds teh time the cooldown expires.

#

any change you make to teh PDC will cause an item update, which will cause it to animate as if you switched weapon

#

so long as you are just reading the long it will not alter anythign, so no animation

cosmic elk
#

i had a feeling it would be something simple lol, when i get stuck like this creative solutions like that always seem to be the best, when i get to coding later on today ill see if i can code it on my own, thank you though this is very helpful!

eternal oxide
#

you have a pom so you should be using maven not exporting

#

although you pom looks broken

#

fix your pom then right click and maven build

#

you don;t need a user setting file

#

nothing

#

?paste your pom

undone axleBOT
eternal oxide
#

pom looks fine

#

right click pom, run as, maven build

#

you have two missing/broken dependencies

#

I have no idea what those dependencies are. Never heard of them

#

I guess slook where you got the code from, there may be a read.me about them

#

no

#

those dependencies are nothing to do with spigot

#

they are custom dependencies

fair minnow
#

Alrighty soooooo (I'm very new to this so please don't judge) I'm trying to save the block data (coordinates of each block and the block type) of a specified area and save that into a hashmap. How on earth do I save the blockdata of the area (which will be defined with set coordinates but will be across a single Y level) to the list?!

#

WAIT HOLD

#

nevermind guys I'm in the wrong discord server I'm using paper

humble tulip
#

that's not a paper specific issue but alr

young knoll
#

Hey at least they realized

#

A+ for that

unique shuttle
#

Does anyone know why this is happening?

#

Okay. I just replaced System.lineSeparator() with \n

#

And work fine

echo basalt
#

now send the 16.8 million colors

drowsy helm
young knoll
#

That’s bungee

#

Smh

drowsy helm
#

whack

young knoll
#

Well they aren’t using the component builder

sullen marlin
#

On windows line separator is two characters, mc client only understands one

young knoll
#

Yay carriage return + linefeed

sullen marlin
#

Thanks typewriters

unique shuttle
#

I'm still waiting for the TextComponent in the item lore using Spigot 🥺

young knoll
#

Yeah choco

late sonnet
#

yeah...

lethal coral
#

anybody know?

wet breach
#

them old style printers where you have to tear the edges are the ones that utilize linefeed's

#

if you didn't send a linefeed and only a carriage return, the printer carriage would move left but the paper wouldn't move up a line

worldly ingot
#

md was actually just thanking typewritters totally independently from the surrounding conversation

#

He really likes typewriters

worldly ingot
viscid carbon
#

is it possible to get more than one result from a get method?

#

so i have multiple rewards in a file. and want to give them all at once. is how i should phrase it

worldly ingot
#

You're looking either for a Collection (or subtype thereof) or just a custom data type that has some fields in it

#

Depends on what you want

wet breach
worldly ingot
#

You think you know a guy, right? aPES2_HappyType

viscid carbon
worldly ingot
#

Well I'm AI, so

viscid carbon
#

😂

viscid carbon
#

then store that in my task instance

worldly ingot
#

Not sure if a Map is necessary. A simple List (ArrayList) would probably suffice

#

But yes, you've got the right idea

viscid carbon
#

I tried a Map(Material, Integer); That failed horribly 😂

worldly ingot
#

I mean if your rewards are as simple as a material and a quantity, you absolutely could do a Map<Material, Integer>

river oracle
#

guys revolutionary idea

Bukkit ItemStack in a nutshell
public record ItemStack(Material, ItemMeta, Int)

worldly ingot
#

But the most future-proof way to do it would be to have a list of an object that you could then later update if you add a new type of reward

#

Or a new variable piece of data to the existing rewards - like a reward name or something

river oracle
#

imho the best way to do rewards is to abstract away the idea of what the reward is completely

#

and just do a giveReward method

#

that is given a player

worldly ingot
#

Generally I agree, yeah

viscid carbon
#

I'm just a newbie 🤷‍♂️

river oracle
#

if you know its guarenteed its an ItemStack

#

a List of ItemStack is the best

worldly ingot
#

Also totally suitable

river oracle
#

If you want Weighted selection e.g. certain rewards are weighted you can implement a WeightedRandom

wet breach
#

guess you are taking my title of AI

viscid carbon
#

Its kinda cool once everything ya'll been teaching me gets easier to do and understand, thank you!

viscid carbon
quaint mantle
#

How many times do you think guys I've assisted in my pets death before this result? 😳

echo basalt
#

At least 12

outer tendon
#

bro is just abusing animals in his test area

#

anyway, I have a problem Im trying to figure out

#

I am trying to replicate this effect

#

where I can see myself even though I have invisibility

#

I cant seem to figure out how this is happening

#

I have tried hidePlayer() but nothing is working

#

and my team has old code that has done this, but we can't replicate the effect even when looking at that code

wet breach
#

because if so, then its simply a teams setting where players can't see you unless on your team

outer tendon
wet breach
#

the only way I can see that being possible is if they changed your skin

#

png does support transparency so it seems like an effective way to do that

echo basalt
#

it's a teams thing where you can see invisible players including yourself

wet breach
#

ah so it was a teams thing like I had thought

echo basalt
#

sure buddy

wet breach
#

anyways, seems like you have more then one way to accomplish the effect now

#

have fun

echo basalt
#

make a 3d engine that uses display entity billboards or whatever they're called

wet breach
#

lol

echo basalt
#

they support transparency iirc

wet breach
#

ok, so 3 ways now

echo basalt
#

some easier than others

pseudo hazel
#

wait skins support transparency?

#

I thought its only the outer layer

#

else I would expect a lot of people walking around invisible

young knoll
#

It is only the outer layer

outer tendon
wet breach
#

but illusion above already said how it is done

outer tendon
#

Oh I see now

#

hmm

wet breach
#

and then even offered another solution so you have 3 different ways to do this

#

all of which are supported by the api

outer tendon
#

yeah, I see now, thank you

#

Ill have to figure out teams then

spare hazel
#

Is there a way to make a command hidden? Like when the player does /loremipsum it shows as red but it actually gets handled

hybrid turret
#

that would probably have to include some sort of a custom command system or something if i had to guess if it's possible at all

#

at least if i had to guess

#

Kinda general java question but i really don't know how to google it, but if I do:

PlayerData data = this.playerDataManager.get(player.getUniqueId());

data.setLastKnownName("LastKnownName");

Will this update in the manager?
Like: is data only a pointer or does this return a PlayerData instance which is essentially copied to the data variable and i would have to set the PlayerData entry in the PlayerDataManager-Map again?

spare hazel
#

I have done something like this and it did work

rotund ravine
#

If ur keeping the instance around

quaint mantle
hybrid turret
#

aight thanks :D

rotund ravine
hybrid turret
#

i think i finally understood that stuff then

#
  private final Map<K, V> dataMap = new ConcurrentHashMap<>();

  public V get(K key) {
    return dataMap.get(key);
  }

Is the get method (abstract super class)

#

K is UUID and V is PlayerData

quaint mantle
#

Same thing

vast ledge
#

If you define it as ```java
new Yourobject<UUID, PlayerData>

glad prawn
#

huh

hybrid turret
rough drift
#

@hybrid turret Tip: Java is always pass by reference except for primitives (iirc), unless something manually clones an object, it will always be the same instance

hybrid turret
#

okay thanks, very good to know

#

(i feel like that's most languages, tbh)

slender elbow
#

now to confuse you more, java is actually pass by value

pseudo hazel
#

just dont worry about it too much

#

java does a lot of work so that you dont have to worry about it too much

hybrid turret
#

right?

#

ykw yeah i just wont worry

#

😎

#

Why can GameProfiles contain more than 1 texture property for skins??

hybrid turret
#

?jd-s

undone axleBOT
hybrid turret
#

oh that would be an extra skin??

#

i thought that would just be included in the first entry

peak depot
#

idk like what else would it be

young knoll
#

It should be in the first entry

#

A skin is just one image file

orchid gazelle
#

Damn this is kinda cringe

young knoll
orchid gazelle
#

My dad is shitting at DHL at the telephone rn

#

Oh wait this is help-dev

#

Oops

hybrid turret
#

xd

hybrid turret
hybrid turret
#

my skin has a front helmet in the sense of a mask and it's all in one file

#

hm

#

weird

#

i mean i guess it's just mojang wanting an array

umbral ridge
#

XD

young knoll
#

No

#

The text means it's too high resolution

hybrid turret
#

i mean maybe if down scaled lol

torn shuttle
#

can someone remind me of what I need to do to make sure the when in main hand text doesn't show up

tardy delta
#

something with HIDE_ATTRIBUTES

#

ItemFlag

torn shuttle
#

thanks

dense hedge
#

Hey guys i got a question. Me and my friend are making a server and we want to make it so blazes don't take damage in water, dont move and are forced down. Were basically doing this for the first time so we are pretty fresh to everything and want to know about how to tackle this

hybrid turret
#

Hmmmmm do you already know the basics of java?

dense hedge
#

absolutely not basically starting from scratch

#

i do have a few friends who can code in java tho

hybrid turret
#

Hmmmmmm

#

I feel like learning the java-basics are a good way to start

#

About spigot:

#

?jd-s

undone axleBOT
hybrid turret
#

those are the javadocs for spigot where (almost ig) everything the api offers is listed an described

blazing ocean
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! 🎉

hybrid turret
#

but big ass message lmao

blazing ocean
#

yea it's a bit annoying but helpful

dense hedge
#

ok imma pin this and start hacking at it

tardy delta
#

start hacking java

hybrid turret
#

yeah do that. The jdocs for spigot helped me a TON.
Ofc if you have any questions and stuff you can just ask here

#

just make sure to search in the docs first :))

dense hedge
#

yeah ill see how far i can make it if anything is really tuff ill ask around

#

thanks

blazing ocean
#

shioku i love your pfp

hybrid turret
#

thanks :3

#

meow

#

some dude here had a repo with lots and lots of cat pics

#

i might have saved it somewhere

blazing ocean
valid burrow
#

i do

blazing ocean
#

HI VOSS

valid burrow
#

HI RAD

hybrid turret
#

IT WAS YOU?

#

can you send it again?

valid burrow
#

maybe idk

blazing ocean
valid burrow
#

i have a website called the catbase

hybrid turret
#

then i'll know

valid burrow
#

catbase.siea.dev

hybrid turret
#

yeah i think that was it

valid burrow
#

i have to update it some time ngl

hybrid turret
#

hmmmm

valid burrow
#

@blazing ocean remind me to update when im home friday

hybrid turret
#

tbh maybe not

#

i cant find happy cat

#

(my pfp)

blazing ocean
orchid gazelle
#

I just wasted over an hour scrolling through the reels of exactly one insta page

hybrid turret
hybrid turret
#

happens to me on tiktok a bit too often

blazing ocean
#

@valid burrow i'll send you some cars when you're back home

hybrid turret
#

found the message

blazing ocean
#

can't forgor actual macking cheese

hybrid turret
#

LOL

blazing ocean
hybrid turret
#

very dev conversation rn

valid burrow
hybrid turret
#

lmao

valid burrow
#

ive never felt so impactful to this server

#

😭🙏🙏

hybrid turret
#

spoingus also very nice cat

blazing ocean
hybrid turret
#

but

#

arent you

#

kinda

#

catfishing?

blazing ocean
#

what

#

WHAT

hybrid turret
#

isn't your pfp a cat fish?

#

lmao

valid burrow
#

lmao

blazing ocean
#

i am NOT a catfish

hybrid turret
#

no?

#

what is that?

blazing ocean
#

a fish

#

or fih

hybrid turret
#

but what kind

blazing ocean
#

fih

#

fih is fih

hybrid turret
#

dis u?

blazing ocean
#

no

#

i am fih

blazing ocean
hybrid turret
#

idk why, just thought of spamton

hybrid turret
#

YEEEEEEEES UNDERTALE FANDOM RISE

blazing ocean
orchid gazelle
#

Idk why I keep not looking the channel name today when posting random messages

tardy delta
#

...

hybrid turret
hybrid turret
#

tbf we're saying shit here rn too

orchid gazelle
#

Yesterday was cool, but tbh it mostly is just staring at my phone, wall or pool for hours

hybrid turret
#

but eh admins sleeping ig 😎

blazing ocean
#

nobody really cares tbh

hybrid turret
#

yea

#

i mean we'll stop when a dev question comes in

orchid gazelle
#

And I really wanna go code on some software

lost matrix
blazing ocean
hybrid turret
#

FLO

blazing ocean
hybrid turret
#

smile and wave boys

#

smile and wave

orchid gazelle
#

And I have some heavy FOMO because nothing happened in the whole summer holidays and now in the last week there are suddenly just 5 parties spawning out of nowhere /:

orchid gazelle
hybrid turret
orchid gazelle
#

No

#

Fear of missing out events

hybrid turret
orchid gazelle
#

You don't really wanna bath in the lake lol

orchid gazelle
#

Yeah

hybrid turret
#

damn

#

i mean

#

tbf parties will come again another time

#

wouldn't worry too much

orchid gazelle
#

Not really

#

Only every 5 weeks or sth

hybrid turret
#

but i'm kinda glad i'm past the family vacation stage.

going in vacation with my gf since last year

hybrid turret
orchid gazelle
#

That sounds awesome

hybrid turret
#

every 5 weeks? that's kinda of a lot 💀

#

remember, you're on a minecraft development server lmao

orchid gazelle
#

Whenever I go to a party and it is amazing, the next day I am sad because I now have to wait forever to get to the next one

#

But we got a huge houseparty rollin' in 12 days, already so excited for that

hybrid turret
#

imagine getting invited to parties tbh

hybrid turret
#

(dont tell strangers your home address please)

orchid gazelle
hybrid turret
#

that's nice

orchid gazelle
#

The party of the homie caused me to upgrade to a better school system(very complex story), and there I kinda learnt doing shit by myself and socializing to some degree

#

Mostly it's public parties

valid burrow
#

i agree

hybrid turret
#

uhm what

#

discord mobile moment

orchid gazelle
#

This party is gonna get crazy again

#

And I am trying to make a birthday party for my birthday I guess, just anxious that it's gonna be weird or nobody comes

#

Probably gonna post in grade group chat, either nobody comes or my house is full of 50 people

hybrid turret
#

Anyway, sorry to kinda shit on the party rn but apparently i didnt ask my question so i'll do that now:

What exactly is the permissions object in the plugin.yml for?
Should i add ALL the permissions for my plugin in that?

orchid gazelle
#

I think I can trust in 5-10 people coming, but more is just gonna be gamble and hopefully I am a good host

blazing ocean
orchid gazelle
#

Yeah

hybrid turret
hybrid turret
blazing ocean
nova quail
#

Hello! How can I do item enchantable on anvil with custom echant? I added StoredEnchant but can't enchant item on anvil. I need to create events for anvil or there could be another way?

hybrid turret
#

oh

#

this is kotlin

#

right?

orchid gazelle
#

Sadly yes

blazing ocean
#

shut

hybrid turret
#

ergh

#

catfisher

orchid gazelle
#

All my homies hate kotlin

blazing ocean
#

Bukkit#getPluginManager#addPermission

hybrid turret
#

but why clunk up the onEnable if i could just add them as dictionary/object (whatever you wanna call it) in the yaml file

orchid gazelle
orchid gazelle
#

I handle permissions in my custom command microframework

blazing ocean
#

🗿

hybrid turret
#

would it be something like:

permissions:
  plugin.*:
    default: "op"
    description: "Wildcard"
    children:
      plugin.command1:
        default: "op"
.....
hybrid turret
#

or have several main permissions?

blazing ocean
#
permissions:
  plugin.op:
    default: op
    description: hi
hybrid turret
#

that's an example on the plugin.yml resource

#

ig those are the two way-to-gos?

blazing ocean
#

never seen anyone manually declare wildcard permissions

blazing ocean
hybrid turret
#

yeah i was just confused bc it was in the resource

#

so i just add the permissions in general and add children to a main permission if there are some

blazing ocean
#

ig

hybrid turret
#

If I have something like plugin.enderchest.admin and plugin.enderchest and one allows you to view your own enderchest and the other allows you ADDITIONALLY to view enderchests of other players

#

Would plugin.enderchest.admin be the child or plugin.enderchest be the child?

#

uhm

#

never heard of that issue

#

and locally hosted servers can't really have latency

#

(at least not notable latency)

blazing ocean
#

e.g. i do this in my plugins

        listOf(
            "instance.list",
            "instance.create",
            "instance.close",
            "instance.join",
            "instance.pause",
            "instance.unpause",
            "instance.inspect",
            "instance.data.get",
            "instance.closeall",
            "instance.data.merge",
            "hubothers",
        ).forEach {
            server.pluginManager.addPermission(Permission("redacted.$it", PermissionDefault.OP))
        }

and i give myself redacted.instance.* and then have access to all those subcommands

minor sonnet
#

someone can help me with itemsadders?

blazing ocean
hybrid turret
#

oh

#

is $it the current element?

blazing ocean
#

yes

hybrid turret
#

so it's redacted.instance.join for example?

blazing ocean
#

yes

tall dragon
#

its bassically a lambda without having to name the variable

#

its just "it"

hybrid turret
#

now it makes sense

#

tbh yeah i might do that with a helper

#

i'm sorry but i have no idea tbh. doesn't make sense at all 🤔

#

maybe some firewall issue or sum? but then you wouldn't even be able to join...

#

weird

hybrid turret
blazing ocean
#

try using vanilla

#

vanilly

hybrid turret
#

hmm

#

wasnt 1.20 the java update version?

#

to java 21

blazing ocean
#

1.20.5

hybrid turret
#

oh damn

blazing ocean
#

yea use java 21

#

not 22

hybrid turret
#

there's java 22?

#

lol

#

i've been using 17

blazing ocean
#

yea it's so fucking buggy

#

downgrade

hybrid turret
#

maybe try using java 21 instead

blazing ocean
#

j22 is buggy on so many levels

tardy delta
#

badlion 💀

hybrid turret
#

generally don't use experimental java versions

blazing ocean
#

22 ain't expiremental

hybrid turret
#

Use an LTS version

hybrid turret
#

Just use LTS

blazing ocean
#

or temurin

#

doesn't make a huge diff

hybrid turret
#

lol

slender elbow
#

lts or not really does not make a difference unless you want corporate support service

blazing ocean
#

oracle java 🗿

hybrid turret
#

what is even the difference between all the stupid java versions (not versions but like adoptium, oracle etc)

orchid gazelle
#

Just play minecraft forge 1.12.2 and learn what fun in minecraft actually looks like again

hybrid turret
slender elbow
#

vendors can choose to offer different support schemes, timelines, etc

hybrid turret
#

1.16 too

hybrid turret
#

Or just preference?

blazing ocean
#

temurin and adoptium are the most popular ones for 21 iirc

hybrid turret
#

ic

#

i think i've always been using oracle 🗿

orchid gazelle
#

With a huge margin

hybrid turret
#

oh really?
i thought u were being sarcastic

orchid gazelle
#

No

hybrid turret
#

mainly bc rad keeps reacting with a skull emote lmao

blazing ocean
#

no his takes are just that shit

orchid gazelle
#

It's actually the case

#

For context, me and rad literally disagree on almost every topic you could imagine

hybrid turret
#

idk if that was 1.12 (probably 1.16) but ATM5TTS was amazing

blazing ocean
#

yea

hybrid turret
#

XD

hybrid turret
#

no way java 22 is THAT BAD

blazing ocean
#

atm6 my beloved

hybrid turret
orchid gazelle
hybrid turret
#

or was it 6?

#

nah i think 5

dawn flower
#

How do I get a block display's boundingbox?

orchid gazelle
hybrid turret
#

i wish the all the mods team would develop those modpacks for fabric

orchid gazelle
#

No

#

1.12.2 forge

blazing ocean
#

maybe

hybrid turret
orchid gazelle
#

I am currently developing a new 1.12.2 Forge Modpack, good times

hybrid turret
#

can u recommend some good 1.12 modpacks?

orchid gazelle
#

What style do you like?

blazing ocean
#

atm6

hybrid turret
#

similar to atm ig?
i love tech
magic is pretty cool
BIG fan of skyblock

blazing ocean
#

feist opinions on my banner

orchid gazelle
#

I could advertise myself for a certain style but otherwise, if you want expert, e2e is great. If skyblock, go play Project Ozone 3 right now

#

If kitchensink non-skyblock, go on e2

hybrid turret
#

im not a big "i run around until i find stuff and endlessly mine underground" type of guy

orchid gazelle
#

If you like a mix between e2 and e2e, go play my modpack

hybrid turret
#

at least not in modpacks

hybrid turret
#

e2?

pseudo hazel
#

i really liked enigmatica 6 expert, its not skyblock

orchid gazelle
pseudo hazel
#

but it has a ton of mods and quests

orchid gazelle
#

:)

orchid gazelle
hybrid turret
#

I LOVE FTBIESEM lmao

pseudo hazel
#

you are not 1.12, so you are bad 🙂

hybrid turret
#

but

#

it's 1.7.10

#

so it's garbage resource whise

orchid gazelle
#

1.7.10 is also cool

dawn flower
pseudo hazel
#

rn im playing a 1.20 modpack and its fun

#

still has most mods from 1.12

hybrid turret
pseudo hazel
#

so idk what you on about

orchid gazelle
#

And they got ported to vanilla+ hell

hybrid turret
orchid gazelle
#

And to "I require 800 mods with 50 gigs of ram to just slightly get any modded feeling" hell

orchid gazelle
hybrid turret
blazing ocean
#

with adrenaline

orchid gazelle
#

I don't

hybrid turret
orchid gazelle
#

This is not about fos though

blazing ocean
#

config issue then

orchid gazelle
# hybrid turret what?

You get a lot more crashes, they eat a lot of more ram, generally waaay higher requirements to get stuff running

hybrid turret
#

anyway i just want my draconic evolution back :(

#

best late game op mod

orchid gazelle
#

So it's shit

#

Just play 1.12.2

#

Easy

blazing ocean
hybrid turret
#

is there a version and skyblock filter on CF?

orchid gazelle
#

I think so ye

#

I'd recommend Project Ozone 3, great pack(except for lordcraft and abyssalcraft ffs)

pseudo hazel
#

i recommend playing it together

orchid gazelle
#

Yes

pseudo hazel
#

then it doesnt matter what you do, playing mc together is always more fun

orchid gazelle
#

Way more fun in multiplayer

hybrid turret
#

Tbh

#

I might play FTB Infinity Evolved Skyblock Expert Mode

orchid gazelle
#

But it requires friends

hybrid turret
#

bc i never finished it

orchid gazelle
#

So that is an issue

hybrid turret
#

but i'd need a schmol server

#

bc i can NOT play a modpack like this in single player

hybrid turret
#

i think it's kinda cool tbh

#

but tbf

#

i did abyssal craft in endgame in i think it was one of the all the mods modpacks

orchid gazelle
#

It's hilarious in po3

#

I felt asleep while waiting 10 hours and kept on dying from random stuff spawning in my base all the time

pseudo hazel
#

if you want reccomendation for a unique modpack thats not quite skyblock but more like a puzzle, try compact claustrophobia

orchid gazelle
#

Is it 1.12.2?

pseudo hazel
#

idfk

#

why should you care

#

the only thing that matters is if the modpack is good

orchid gazelle
#

Yes it is

pseudo hazel
#

dont be versionist

orchid gazelle
#

Mods themselves suck in modern versions

worldly ingot
#

I think you're just playing shit modpacks

orchid gazelle
#

If a modpack is 1.13+, that's a no-brainer to leave the site

worldly ingot
orchid gazelle
#

OK PEOPLE WHO HERE NEEDS HELP WITH DEVELOPMENT?

worldly ingot
#

ME

#

>:(

halcyon hemlock
#

Good morning everyone

worldly ingot
#

how do i add 2 ints

halcyon hemlock
#

It's 11pm

pseudo hazel
halcyon hemlock
#

Simple

orchid gazelle
worldly ingot
#

I like sweattypalms' answer better

orchid gazelle
#

Ok then

pseudo hazel
#

its just add2ints() on my ide

orchid gazelle
#

Stop lying

halcyon hemlock
#

I'm not lying I swear 🤬

#

Just curious though, u live in EU?

orchid gazelle
#

Liar...

#

Yes

halcyon hemlock
#

Yoo nice

#

Anyeays

#

It's 11:04pm

tardy delta
orchid gazelle
halcyon hemlock
orchid gazelle
#

Or error?

halcyon hemlock
orchid gazelle
#

How

#

It's not parsed

halcyon hemlock
#

1-"1" is 0

orchid gazelle
#

Lol

halcyon hemlock
#

🤑🤑

orchid gazelle
#

How does that work

halcyon hemlock
#

Cuz + is string overload

#

Others work fine prolly

tardy delta
#

cuz its fucking javascript

orchid gazelle
#

We are talking about Java

tardy delta
#

java does not have operator overloading baby girl

orchid gazelle
#

See

halcyon hemlock
#

Javascript is pray

#

Just pray your code works

#

Cuz u never gonna know if it didn't

orchid gazelle
#

Or just code properly and know what you are doing

blazing ocean
#

i love kotlins and rusts operator overloading

#

in rust operators are mostly just traits

orchid gazelle
#

A programming language is not there to prevent the stupidity of a developer.

halcyon hemlock
blazing ocean
#

like ```rs
use std::ops;

struct Foo;
struct Bar;

#[derive(Debug)]
struct FooBar;

#[derive(Debug)]
struct BarFoo;

impl ops::Add<Bar> for Foo {
type Output = FooBar;

fn add(self, _rhs: Bar) -> FooBar {
    println!("> Foo.add(Bar) was called");

    FooBar
}

}

impl ops::Add<Foo> for Bar {
type Output = BarFoo;

fn add(self, _rhs: Foo) -> BarFoo {
    println!("> Bar.add(Foo) was called");

    BarFoo
}

}

fn main() {
println!("Foo + Bar = {:?}", Foo + Bar);
println!("Bar + Foo = {:?}", Bar + Foo);
}

#

from the rust book

halcyon hemlock
#

Javascript is less secure than C

orchid gazelle
#

Ofc it is

orchid gazelle
#

But if you know what you are doing, it is as safe

halcyon hemlock
#

I busted

#

Wrong chat

tardy delta
#

you what

slender elbow
#

"busted"

#

no need to thank me

viscid carbon
#

Wheres the proper place to put abstract classes?

slender elbow
#

wdym where

rough drift
slender elbow
#

yeah, it passes the reference to the object by value, it copies the reference, not the object itself

rough drift
#

yep

#

which makes sense -- don't want the methods to be able to reassign your parameters, you know?

slender elbow
#

yeah

rough drift
#

I mean, I'd love something like C#'s out which afaik just passes the exact reference of the object so that you can edit it

tardy delta
#

🙌 program in c 🙌

quiet ice
#

Java is good - if it weren't for the lack of 128-bit cas support

tardy delta
#

program in c

quiet ice
#

Doesn't have maven, opinion invalidated.

tardy delta
#

fuck build systems

#

just write a shell script that invokes the compiler

quiet ice
#

I mean, buildsystems are one thing, artefact repositories are a whole other league.

quiet ice
#

Have them be cross-platform? I'll be the happiest being on earth.

#

Also, easily parseable metadata written encoded in XML? I'll be happier than happy.

#

(Fuck you gradle with your order-sensitive json)

tardy delta
#

yes because we <love> bloat </love>

#

😂

#

put it in .ini and id be a happy man

slender elbow
#

inis in 2024 💀

quiet ice
#

Well, ini wasn't made for interaction between computer systems

tardy delta
#

toml was made for people who thought it had added value over ini

quiet ice
#

I'm talking about Maven as in the Maven Artefact Repository here, not the buildsystem.

#

TOML is the worst thing ever.

tardy delta
#

😂

#

better than yml

slender elbow
#

toml 💀

blazing ocean
#

toml my beloved

quiet ice
#

YML at least is a superset of JSON. TOML can't even properly encode some data

tardy delta
#

meanwhile yml for the norwegians :(

quiet ice
#

Actually, that was an issue with forge's config library. Whatever, I'll blame TOML for that.

tardy delta
#

the irony

clever lantern
#

can i send asynchronous api calls with okhttp in a spigot plugin?

rotund ravine
#

Spigot is java

#

As long as u don’t block the thread

#

U can

#

I mean u can block and still send api calls

#

🤷🏽‍♂️

pseudo hazel
#

you could

#

but if you can thats a skill issue

quiet ice
#

you probably should imo

river oracle
#

I think you can, but I hesitate to say they can

pseudo hazel
#

or ask citizens

slender elbow
#

you are a citizen

orchid trout
slender elbow
#

idonwanna

quiet ice
#

Emily is our resident pet

tardy delta
#

i read that as emily isnt our president yet

slender elbow
#

i mean

#

that's also true

remote swallow
#

we get to bully her when she tries to send a gif

quiet ice
#

I probably should unverify myself, I've deleted my spigot account in all but name already.

river oracle
#

Left the gang :(

quiet ice
#

I already left like a year and half already

river oracle
#

Damn

#

Why you delete ur account

quiet ice
#

I haven't but because of the 2FA it's completely unused now

tardy delta
#

hes gonna be a fulltime rice pudding fanatic

quiet ice
#

I legit have more access to spigot when logged out than logged in

#

Sooo, why on earth have an acc?

river oracle
#

Why not use some pass manager for totp

#

Instead of a phone

#

I use proton pass for that

quiet ice
#

weren't it email 2fa?

tardy delta
#

another proton enjoyer

river oracle
river oracle
quiet ice
#

I mean the issue with pass managers is that you are putting all your eggs in one basket

river oracle
#

All my source passwords I have memorized so I can recover everything

tardy delta
#

imagine not using your ten year old password

quiet ice
#

Oh great, dual point of failure. One of these points have a flaw and everything is accessible

#

No thanks, I'm a password booklet enjoyer

river oracle
#

What if your house burns down

eternal oxide
#

Do as I do and use an easy to remember password "Password1234"

tardy delta
#

thats basically half of my password 💀

river oracle
eternal oxide
#

I In truth I use a custom pass for every site which includes an identifier for that site so I can easily tell where data leaked from.

quiet ice
#

I know most critical passwords (ms account, legacy shared passwords 1 & 2, shared password 3, bank account, and probably a few others) by heart now

#

Well, I also know the GPG & SSH passphrases by heart, but that is useless in the event of a fire as you'll have to restore from scratch anyways

cedar maple
#

does anyone know how to really make 1.20 genuinley feel like 1.8.9 cos i have the plug in for combat and old combat but when it comes to farming entities for grinders its hella slow and tedious

river oracle
#

Tbh to make 1.20 feel like 1.8.9 it'd require rewriting some internals

#

You'd have to rewrite the damage and kb systems pretty sure

eternal oxide
#

I doubt its possible as the client is so different now

cedar maple
#

far out man, all good i might just put the server on 1.8.9 then figure out new set of plug ins i guess

#

thanks lads ❤️

river oracle
quiet ice
river oracle
#

Or you embrace the new system like a real man

#

And add different features to reduce what you don't like

cedar maple
#

look its more for a cosmicpvp factions typa feel and throwback with some other addons etc

#

but i wanna be able to grind blazes fast but shit is soooo slopw with old pvp on 1.20 version

river oracle
#

If ur gonna be on 1.8 make sure you fork spigot

#

You'll need to patch exploits

cedar maple
#

bro my brain too small for this im new af im just trynna set up server for my twitch type beat

quiet ice
#

Doesn't 1.20 pvp have AoE damage and stuff that should make grinding blazes quick?

river oracle
#

Sweeping edge 3 goes crazy

cedar maple
#

broi the thing is if you spam attack it will be stakced entity etc

quiet ice
#

Ono, optimization mods

river oracle
#

Increase sword damage against mobs then

cedar maple
#

you guys are actually cooking

#

look ill play around anud try figure it out worse goes to worse ill just go 1.8.9

river oracle
#

How do I add lore to an item pre DataComponents I'm so confused here. I've got this code for setting Item lore but it only seems to work if I actually have lore on the item already

        final CraftItemStack craftItem = ensureCraftItemStack(item);
        final net.minecraft.world.item.ItemStack nmsItem = getItemStackHandle(craftItem);

        final CompoundTag tag = nmsItem.getTag() == null ? new CompoundTag() : nmsItem.getTag();
        if (!tag.contains(net.minecraft.world.item.ItemStack.TAG_DISPLAY)) {
            tag.put(net.minecraft.world.item.ItemStack.TAG_DISPLAY, new CompoundTag());
        }

        final CompoundTag displayTag = tag.getCompound(net.minecraft.world.item.ItemStack.TAG_DISPLAY);
        ListTag loreTag = new ListTag();
        for (int i = 0; i < lore.size(); i++) {
            loreTag.add(i, StringTag.valueOf(ComponentUtils.toJsonString(lore.get(i))));
        }

        displayTag.put(net.minecraft.world.item.ItemStack.TAG_LORE, loreTag);
        return CraftItemStack.asBukkitCopy(nmsItem);
smoky anchor
river oracle
#

found the issue I think

#

Seems like if the compound tag is null I never set it on the item

#

thanks

halcyon hemlock
#

I fucking did it bro @blazing ocean

halcyon hemlock
#

im gonna cry

blazing ocean
#

did you implement the entire terrain gen or how

halcyon hemlock
#

just like vanilla world

blazing ocean
#

ah

halcyon hemlock
#

just showing the world is hard

#

terrain gen would be crazy

blazing ocean
#

yea

#

i think valence have some?

rugged plover
brittle geyser
#

How to change inventory title using NMS?

olive lance
#

I am testing ipv6 on windows. When I try to ping "ff02::1%7", the command prompt isnt showing any replies.
However, when I watch with Wireshark i discovered that the replies actually are coming but for some reason its not displaying.
But forgetting about that issue(though maybe its related), I discovered that when I ran a ping one time the replies sequence numbers were all 31. Then i stopped the ping, restarted command prompt and ran another ping on ff02::1 and all the replies were sequence 32

#

arent the sequence numbers supposed to restart?

slate siren
#

[20:41:58 INFO]: &aSelected region contains 18 blocks.
[20:42:02 INFO]: &aSelected region contains 18 blocks.
[20:42:07 INFO]: &aSelected region contains 12 blocks.
[20:42:13 INFO]: &aSelected region contains 18 blocks.
[20:42:22 INFO]: &aSelected region contains 90 blocks.
[20:42:52 INFO]: &aSelected region contains 45 blocks.

#

I chose the same area each time and got a different statistic each time.

#

WHA

#

🤔.

eternal oxide
#

?nocode

undone axleBOT
#

It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.

slate siren
#

[20:47:12 INFO]: &aSelected region contains 54 blocks.
[20:47:17 INFO]: &aSelected region contains 28 blocks.
[20:47:21 INFO]: &aSelected region contains 56 blocks.

#

Actually, the area I choose is always the same, but the number of blocks changes according to my location.

#

I select two areas diagonally

#

🤔.

eternal oxide
#

what the heck is new Location[2]?

slate siren
eternal oxide
#

ok, if you are not standing in teh exact same spot every time it will be a different sized area

slate siren
#

But I have an axe in my hand, I mark 2 areas by right-clicking on one side and left-clicking on the other, just like worldedit.

#

Does this have anything to do with my topic? Shouldn't it only cover the selected area?

eternal oxide
#

are you stood in the exact same spot each time? Where you click does not matter, only where you are stood when you click

#

lastly you never clear your playerSelection

#

ah tis ok, you overwrite

slate siren
#

Here, I have determined two areas, if I select the area by standing in the same position each time, the result is the same, but the number of area blocks I select changes according to my position. When I try it with Worldedit I noticed that there is 253 block, but the results are very different for me

pure dagger
#

how do i make a totem that saves player's items after death? i tried to use EntityResurrectEvent to check if thats the totem and then cancel it so player actually dies, there is a method in PlayerDeathEvent to keep inventory for that particular death but i used EntityResurrectEvent, first thing that comes to my mind is:

in EntityResurrectEvent add player to a hashmap
in PlayerDeathEvent check if he's there, if he is, remove him from hashmap and do the keepinventory(True)

but i dont know if that is the best approach

eternal oxide
#

Spigot has no EntityResurrectEvent

pure dagger
#

umm what?

#

i used it

pseudo hazel
#

are you using spigot latest?

eternal oxide
#

ah I typod

#

I spelt it wrong was all

pure dagger
#

??

pure dagger
#

u asking me or

eternal oxide
#

if you add them to ytour map in the resurrect event but they actually have a totem of undying they will not die so they remain in your map

#

ONLY add them to yoru map if the resurrect event is in a cancelled state

pure dagger
#

but they are holding the special totem

eternal oxide
#

they have two hands

#

one could be yoru don;t drop items, the other could be of undying

#

the event fires in a cancelled state if they don;t have a totem of undying

pure dagger
#

got lost how to do taht

#

i hate offhand..

eternal oxide
#

if (event.isCancelled()) add to yoru map

pure dagger
#

but event wont be cancelled if they are holding special totem

eternal oxide
#

it will be cancelled if its not a totem of undying

pure dagger
#

yeah it is but with a tag..

#

lol 😭

eternal oxide
#

ah

pure dagger
#

maybe i should change it to some oher item

#

and then you know.. i can even use PlayerDeathEvent because why would i use totem event

eternal oxide
#

in that case you will have to check for your tag, cancel the event and add them to your map

pure dagger
#

yeah thats wha i said at the beggining but you said there is a possibility that player holds 2 totems 1 normal 1 with tag

eternal oxide
#

yeah I did and thats true

#

you will have to check both hands

pure dagger
#

umm okay

eternal oxide
#

but

pure dagger
#

hahah

#

what? but

eternal oxide
#

if they have your tag AND an undying you should do nothing

#

as the undying will protect them

pure dagger
#

umm

#

but listen

#

if

#

player has totem with tag in main hand and normal totem in offhand

#

he should actually like... get saved by the totem in offhand

eternal oxide
#

yes, you are going to have to check both hands

pure dagger
#

XD

#

but how do i make the offhand totem save the player not my TAG totem...

#

jeezus thats so hard

eternal oxide
#

if you find yoru totem in one hand but ALSO an undying in the other hand, set teh event to use the hand of undying and do nothing

pure dagger
#

oh

#

you can set it to use other hand

eternal oxide
#

you shoudl be able, sec

pure dagger
#

that was i was asking

#

thanx

#

ks

eternal oxide
#

um, probably not

#

I guess use another item for yoru totem, or you are goign to have to implement undying and your keep inventory code as well

rugged plover
pure dagger
#

so ill give up then

#

i mean ill change the item

#

so.. i can use death evento

#

evnt

#

that's way easier

slate siren
#

I am making a pvp false system, when you shoot an arrow from a distance in a false area in pvp, this arrow damages the player. You cannot shoot an arrow in a false area in pvp. However, when you shoot an arrow in an true area in pvp, it damages.

I want to prevent this, like when you shoot an arrow at the player it recoils without doing any damage.
What can I use?

eternal oxide
#

ProjectileHitEvent. Check shooter and targets location to decide if it should do damage. Cancel event if no damage

young knoll
#

Should also be doable with the damage event

viscid carbon
#

anybody know why hotkeys randomly quit working in ij?

eternal oxide
#

IJ decided you are not worthy

viscid carbon
#

i guess, it complains i dont use it enough and when i try it doesn't work 🤷‍♂️

eternal oxide
#

Clearly its female and you should know what it wants

viscid carbon
#

👀

#

female???? WHERE?

quiet ice
tardy delta
#

sounds like relationships are hard

wet breach
tardy delta
#

dunno what that would imply

wet breach
tardy delta
#

hmm generally ye

#

i would reword it as not knowing what in the world is going on

#

anyways

quiet ice
#

Relationships are impossible if you live by my ruleset.

tardy delta
#

im going for the most spelling mistakes in one sentence

tardy delta
quiet ice
#

Well, there's a rule within me (which I know is completely bogus, but alas - that's my instinct and it's like telling a staunch pacifist to kill someone) that one ought not contact someone unless you are contacted first.

tardy delta
#

hmm

#

that goes deep

slender elbow
#

oh no a deadlock

tardy delta
#

more like a livelock

quiet ice
#

A wedlock?

tardy delta
#

till starvation.. 😂

quiet ice
#

Okay enough internet for me for today. Goodbye.

tardy delta
#

bye

#

gonna take a nap

upper cypress
#

How extensive could custom mob ai be? Like could you give a mob custom goals like spend x amount of time in the water, hunt specific mobs, sun bath, stuff like that

eternal oxide
#

if you write it, yes

wet breach
#

or maybe checking if it has any 🤔

lethal coral
#

Along with sending a vehicle move packet with reset yaw and pitch

wet breach
#

well a move packet would cause its velocity to change

umbral flint
#

What's a good command API that let's me control every single error message?

lethal coral
wet breach
umbral flint
#

In what API

young knoll
#

Spigot

#

The only thing you can't really control per command is the command not found message

#

Cuz yknow, the command doesn't exist

umbral flint
#

That's fine

pliant topaz
#

you can also try using brigadier if you want

#

its the command api from mojang, you will have to add it as a dependency tho or if you run paper, i think they have it, not sure tho

#

it takes some time to get the hang of it but it has more possibilities than bukkits Implementation

worldly ingot
#

Brigadier is relatively poor for command handling unless you make use of Minecraft's internal types

young knoll
#

I heard ya like builder pattern

pliant topaz
#

nope, i dont use it personally

#

i just thought i'd mention it

#

i like builders tho, except when it gets too messy and nested, thats really annoying

slate siren
#

Guys, I downloaded my server from hosting to upload it to vps and then installed the server on the desktop

#

But I encountered a problem

#

There was no such problem with hosting, the problem is this

Special characters used in plugins look interesting

#

#

like this

#

Unicode characters I guess

#

What can I do for this?

eternal oxide
#

look in the console, on the client, in files?

#

where are you seeing | ?

slate siren
#

I'll semd

#

Send*

slate siren
#

look lore

eternal oxide
#

Yes thats broken unicode

#

is the lore taken from a config file?

slate siren
#

yra

#

yea

eternal oxide
#

check the file is saved as utf-8

slate siren
#

oh okayy

#

i solved

#
@echo off
java -Xmx5G -Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcutils.com -jar server.jar
pause
#

java -Xmx5G -Dfile.encoding=UTF-8

#

thats

#

thank u

magic drift
#

ik this is skript but why wont this work

#
permission: player is "Zerg112"
trigger:
/gamemode creative Zerg112
        

command /zz
permission: player is "Zerg112"
trigger:
gamemode survival Zerg112```
agile anvil
#

You need ":" after your command

#

And intendation

#
  • i think permission waits for a given permission, not an execution
cosmic elk
#

im working on a weapon that when a player kills another player with it the user steals a heart from the victim but will have the effects reverted when the player drops it or dies or just loses the item in anyway, what i thought of was having a PDC double, the value being the victims max health, and the key string being the UUID of the victim, but i honestly feel like thats a bad way to do it and maybe theres a better way lol, if anyone has any ideas id love to hear it because this is starting to become a headache

quaint mantle
#

am i manage recipe book recipes lores names learning?

agile anvil
cosmic elk
vast ledge
#

Just add a pdc to the item, that contains the person that kill player B's UUID, and the amount of hearts

#

When picked up by a player that isn't the same UUID as the team, wipe it

rugged plover
agile anvil
#

And @cosmic elk you will have to monitor the multiple events that can make the player lose the item:

  • PlayerDrop
  • InventoryClick / Change
  • Death?
  • Clear commands?
vast ledge
#

It would be easier to check item pickup and inventory change

#

No need to clear it when it's dropped, just clear it when it re-enters a inventory

agile anvil
vast ledge
#

Really?

#

I thought they both just poof

agile anvil
#

That's what I understood

cosmic elk
#

yes i want the item to only steel the killed players hearts while its in use, so if its lost or no longer in the players inventory it should be wiped

vast ledge
#

Well if u wanna reset players, then check the events that rolyn said

agile anvil
#
  • you should find a way to manage the heart restoration if players disconnects
cosmic elk
#

i figured, although im still kind of confused about the pdc since im pretty new to them, is there a way to store more than one data type under the same key? its why at first i just had the key be the UUID of the player that lost the heart and the value being their max hp

cosmic elk
vast ledge
#

Create a file of code that should be ran retro actively, then on play join, check if there's something that should be ran for the player is said file

#

in*

agile anvil
#

ofc this is quite simple because you also need to manage the case where the player kills a given player more than one time, etc..

#

Or if more convenient, you can also create your own DataType

quaint mantle
#

@eternal oxide