#help-development
1 messages · Page 1205 of 1
inteliji ULTIMATE has been acting strangely.
i create module but he was desappear
or i was do error idk
but pom still red??
сolor bug i gess
or smth happened?
you not need do same?
or you mean gradle not has bugs?
no I use gradle
lol
I like gradle but it doesn't have as much deployment as maven. although sometimes it's uncomfortable
and i not can find gradle dependency for some libraries
??? to both of those points
Gradle uses the same dependency information as Maven does
what
It's just not xml
You can just write it yourself
what does "it doesn't have as much deployment as maven" even mean
lol
it's literally just implementation("g:a:v") or compileOnly("g:a:v") lol
tbh, u could probably implement the maven specification using gradle
what maven spec do you mean
which says a lot
I mean like maven as the tool itself


I mean you could just impl it as a gradle plugin tbh
Haha yea
😭
it honestly wouldn't be hard at all
in a martyn itlw voice
At first glance, it seems that Gradle is easier to use than Maven, but that's not entirely true. Gradle provides more flexibility in writing dependencies, almost like a second programming language. On the other hand, Maven is much stricter on syntax, which can make it verbose - and sometimes that verbosity can be awkward.
Regarding the second point: I once spent 7 hours trying to find the right Gradle dependency for a library I needed to use with Spring. When I switched to Maven, I was able to find it immediately.
a gradle dependency is exactly the same as maven, except it uses a different format
i bad write in engl
its not hard to convert them
so i translate
i think gradle need use only in big projects
in plugin i like use maven
you know its crazy that i can google springboot gradle and immediately find the info
plugins can be pretty big projects when you get into NMS abstraction and stuff
I don't remember what kind of library it was anymore. I think it was JRPC
it's crazy how you only need to change the syntax to use a maven dependency with gradle
MISINFORMATION ALERT ‼️ ‼️ ‼️ ‼️ ‼️
ike go away
it's misinformation
i did not ask
I do not care
Ohhhhh, get em!
I love how this is "Why X, Y and Z is bad, but W is AMAZING"
i love how you chose W for the amazing one
it is the symbol for quaternions ig
XYZW
yeah I know, just a nice coincidence
ig fair enough lol
https://mvnrepository.com/artifact/com.dinstone.jrpc/jrpc-spring/3.2.0 love the fact it took 2 seconds for me to find jrpc gradle info
yeah I think you might just be a hacker ebic
no
READ
we know raydan is ai
it literally looks written by AI lmao
he is
Maven slander at it's finest.
gpt ahh response
sorry but how should implementation '...' be valid syntax in any language
It's literally key value
there is no indication whatsoever that that is a function
Dude don't talk
i love non existent intellisense with groovy
you have kotlin with method {}
thats a lambda
ah so that is different? lmao
which at least make sense once you actually look at them
yeah
dude's gonna defend groovy lmfao 
I don't understand why it needs to look like a function though.
It's just some slightly different syntax for what is ultimately the same thing.
even if you dont like kotlin you will atleast want to use it for buildscripts, a for intellisense and b for actually having an idea of how to use stuff
because it is a function
well If you compare gradle and maven, it would be something like java vs kotlin in terms of syntax. Java is verbose and some people find it convenient Kotlin is a light version but has a lot of confusing sugar that is hard to parse as a java developer.
The one good thing about it being a "function" is the consitency in writing it.
Other than that, I don't think I could care that much about it.
Unless it offers more functionality using that syntax, then it is no different.
read this idc to make it visible in discord
wait till you have to use multiple functions
include modImplementation('...')
i just want you to know, sure it still evolving but its not gonna break on a minor version
theres something called semver which people follow
**XML Fatigue**: Ant’s XML-based scripting is verbose and outdated.
lmfao so maven's isn't?
generated by gpt, as the third line said
anyways ant is worse than maven
and you cannot deny it
ant is literally worse than anything out there
ok well nothing is worse than cmake tbf
that shit is fucking horrid
Man, cmake... I hate using it and make
bazel.
gnu make is somewhat decent imo but horrible for anything that isn't just compiling 5 files
i have never seen a good CXX build tool, I heard meson was good tho
I hate it cause I have to manually compile wine with it every so often.
and it's been the easiest one for me to compile projects with, as an end user
why are you compiling wine
Cause I need custom forks of it for Affinity products
affinity 
I just want them to merge it into the mainline already 😭
what has it done
Hey, it's still better than gimp
hey gimp 3 is great
it installed 7zip windows and added it to arc menu
Gimp sucks
why would you use 7zip-
lmaowat
and i deleted the stuff but it wont disappear
foxwall
gimp 3 is actually awesome
Isn't it still in development?
hello,
can you make somthing like that with tabcompleter ?

you'd have to use brig: https://github.com/lucko/commodore
Utility for using Minecraft's 1.13 'brigadier' library in Bukkit plugins. - lucko/commodore
I never got a reply last night, can I say what my problem is again? It's been almost 12 hours, but if not that's ok
yes
I need to scale an ender dragon down but it's not working. I could do it on my datapack so is there a way on a plugin? I have:
entity.getAttribute(Attribute.SCALE).setBaseValue(SCALE); but nothing happens. tried a few values for SCALE like 0.7 with no luck
hm? How did you do it in vanilla
I can't seem to do so which is why I'm asking
oh it's easy. in your summon function you just add attributes:[{id:scale,base:0.5}]
Doesn't seem to work
want the whole command?
I'm going to go test it again to be sure
what's a mandela effect?
Mandela effect refers to a situation in which a large mass of people believe an event occurred when it did not
are you saying
did not rewrite minecraft in rust
I loaded my datapack back into the test server and you're right, it did not work for dragon. so I guess I gotta use it as normal size. anyways thanks guys. think that bug will ever be fixed?
or is it intentional?
Must have been a mod
that's sad. oh well
can i get help about this here or not?
possibly, dunno if lucko has a discord
?paste
okay so i can use me.lucko.commodore.Commodore but i got this error https://paste.md-5.net/iqexugoqiq.cs
thxx
you have to add the dependency
you may need to shade it
?paste
https://paste.md-5.net/qudurisoki.cs here is my build.gradle, i think i added all the dependancy but i can get wrong
no idea, i don't know gradle
x)
make your assemble task depend on shadow
tasks.assemble {
dependsOn(tasks.shadowJar)
}
thx it work now 😄
what the package need in protocolLib for chance current player onlnie count in server list (not in server)
whats the api equivalent of /give @p note_block[block_state={instrument:"chime",note:"1",powered:"false"}] 1?
I see there MusicInstrument Meta but thats only instrument
BlockStateMeta?
nice xD
Wouldn't that be BlockDataMeta
what the difference?
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/meta/BlockDataMeta.html
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/meta/BlockStateMeta.html
declaration: package: org.bukkit.inventory.meta, interface: BlockDataMeta
declaration: package: org.bukkit.inventory.meta, interface: BlockStateMeta
both set methods are the same description
bukkit blockdata/-state is so confusing
No
State is the Block entity data
Like chest contents
Data are the states you see in the F3 screen
And yes the naming is backwards
nerd
If i hide mobs from a player will the mobs ai still attack the players that have it hidden?
and also, is there a better way to force say creeper view on a player without having respawn the player after setting the camera
show build system config
bumb question, but what do you mean?
are you using maven or gradle
maven
show pom
like it knows the Vote, but not the VotifierEvent.. and thats what i need to be able to make working Listener for votifier xd
ugh, not sure, where can i update it using intellijIdea? is there something? like i do not need to download new version from internet?
i guess i have the latest
help > about
IntelliJ IDEA 2024.1.4 (Community Edition)
Build #IC-241.18034.62, built on June 20, 2024
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4086M
Cores: 16
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
com.demonwav.minecraft-dev (2024.1-1.8.2)
Kotlin: 241.18034.62-IJ
clear cache and restart
import is correct
does it compile?
oh you are using NuVotifier, not votifier
no
no
yeah, i know that, so i am using nuvotifier
-universal
i have already tried this dependency, this one is not working
its what they say to use so you should use it
try it again
your groupId is wrong too
Did you copy the repo too
yep
same issue
i just need to combine both of them xd
so the second one is correct
like put those to the correct one xd
Make sure you copied the repo
i am sure
VoteListener not VotifierEvent and use teh dependency they say to use
because you are breaking shit and including multiple API parts
the problem was there was nuvotifier-api not nuvotifier-universal
i know, i have removed one
i only have this one
strange.. bcs both dependency were wrong lol
<groupId>com.vexsoftware</groupId>
this is correct way
the com.github one should be ok as it is using jitpack to fetch it
so be it
yeap, but there was problem with votifier-api, it must be votifier-universal to make it working
but thanks for helping
boolean worldBorderFacesTheOutside = true;
//If it's on the border, check if world_border is facing towards the outside
if (isGridBorder){
for (Map.Entry<Direction, List<NeighborTag>> directionListEntry : modulesContainer.getBorderTags().entrySet()) {
if (directionListEntry.getKey() == direction.getOpposite()) {
for (NeighborTag tag : directionListEntry.getValue()) {
if (tag.getTag().equalsIgnoreCase("world_border") &&
gridCell.getWaveFunctionCollapseGenerator().getSpatialGrid().isWithinBounds(gridCell.getOrientedNeighbors().get(directionListEntry.getKey()).getCellLocation())) {
worldBorderFacesTheOutside = false;
break;
}
}
}
}
}
if (!worldBorderFacesTheOutside) continue;
aw yeah now that's a method
if for if for if
pro tip
wave function collapse systems are not built to use borders
it sucks to implement
thanks for coming to my ted talk
as a matter of fact everything about wave function collapse systems is a pain in the ass to pull off and I can see why many don't actually build something with it
at least not anything complex
Hey, this is a simple Java question, but I just want to make sure my head is on straight.
icon is a String. The following won't work, will it?
if (icon != "")
no
Yeah, didn't think so. Rookie mistake.
As a brief explainer, == checks for referential equality, equals() checks for object/data equality, which can vary from object to object.
List<String> first = List.of("a", "b", "c");
List<String> second = List.of("a", "b", "c");
first.equals(second); // This is true, List#equals() checks to see if the contents of the list match
first == second; // This is false, the two lists are separate instances
List<String> first = List.of("a", "b", "c");
List<String> second = first
first.equals(second); // This is true, the contents still match
first == second; // This is now true, "second" was assigned to the reference of "first"
Oh, I know.
I just don't know what I was thinking when I wrote that, or how it seemed to work.
I tested it. Obviously not very well.
You get into some fun oddities with strings though and their object pool because technically System.out.println("" == "") is true lol
But this,
String a = "";
String b = new StringBuilder().toString();
System.out.println(a == b);
is false
And this,
String a = "";
String b = new StringBuilder().toString().intern();
System.out.println(a == b);
is true again 😄
I'm recovering from a mild case of Covid. You're making my head hurt again.
You're welcome :D I hope you recover well
yo
i got an issue
i mean not an issue but idk how to do this
i got a plugin
and i want to make a mod that does what the plugin do
nodeathanimation
the death animation is clientside afaik so easily you cant
i mean its hard for me cause i dont know nothin
i will figure it out
if somebody helps me it would we awesome tho
i have a code
but its for a plugin
idk how to convert it
to mod
i dont like that mod
its animation is strange
i like the plugin thingy
but its plugin
i want to make it a mod
i think its very simple
but im kinda dubm
dumb
Can you link the plugin
Yeah that does what I said
but how can i make it a mod
it would be 1.21 fabric
do you have any experience with Java?
little
im trying to learn
public final class NoDeathAnimation extends JavaPlugin {
public class NoDeathAnimation implements ModInitializer {
modinitializer it says in the walksy plugin
mod'
cause its a mod
but idk how to make it a mod
idk if its simple
thats why i came here
It quite simple since PacketEvents is available for Fabric as well
PacketEvents is a library that plugin uses
To stop the death data from reaching the client
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
^^ could hire someone to do it for you
how do servers change premade item stacks that have already been created in game? like if i were to alter the lore of an item, how would i make sure it is reflected in anyone who has that item in game?
The server does it through the DFU (DataFixerUpper)
Though that's not easily accessible
You're probably better off checking the items in events like pickup, join and inventory open events
yo
FAILURE: Build failed with an exception.
-
Where:
Build file 'C:\Users\Ubicacion Gamer\Desktop\nodeathanimation-main\build.gradle' line: 2 -
What went wrong:
Plugin [id: 'fabric-loom', version: '0.12.12'] was not found in any of the following sources:
- Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.7/userguide/plugin_reference.html in the Gradle documentation.)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'fabric-loom:fabric-loom.gradle.plugin:0.12.12')
Searched in the following repositories:
Gradle Central Plugin Repository
this error is popping out
what do i do
its with the maven thing i think
i changed the other code
to use the fabric modinitializer
and now this is popping out
help
Follow the guide
man just help me
im not reading no guide
im trying everything i can
and i cant do it
i aint no codin expert
gg
?whereami
not with that attitude
are you saying we won't give support for loom
and 0.12 doesn't even exist lmao
latest release is 1.9-SNAPSHOT
how do you get rid of the "When equipped: 5+ armor" lore when dealing with itemstacks?
tysm you're a lifesaver
Anytime 👍
hello I am making a 1.8.8 Spigot plugin. right now I am trying to copy a button from one part of the world (a stone button, placed on the floor), and set a block elsewhere to be facing the same direction, but with the button type changed to wood
however, I am having trouble with having the button place with a consistent rotation. it seems to sometimes face the floor, and the other times it will choose a random wall to face. I would like to set the facing direction myself manually if possible but I am not sure what format this is stored in for 1.8.8 Spigot
How are you trying to do it rn
And obligatory
?1.8
Too old! (Click the link to get the exact time)
I believe I solved it. basically I was copying a region of the world from top to bottom, and since the button I was copying was facing the floor, if the floor a valid block for a button to face it would attempt to face another direction. I solved it by using a runnable to place these types of buttons one tick later
I have artifact conflicts when building a modular project (nms project) in 1 Jar file (maven shader found them) this is the first time for me. Where I need to prescribe filters in the constructor, parent module or in those modules where exists conflict?
each module should be in its own package so no conflicts can arise
Yo any idea how to easly make a mob without ai but still with damage animation?
NoAI mobs still have the damage animation?
Pathfinder?
Is there any way to set FreezeTicks without them being reduced over time?
I would prefer not to have to apply them every tick.
Don't think so
Is it fine to store Player objects if I know they will be removed when the are disconnected
Yea
why is this limited to 59?
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Display.html#setTeleportDuration(int)
declaration: package: org.bukkit.entity, interface: Display
You can use a weak ref to be safe
because that's what Mojang decided

wtf 💀
trying to figure out nms, is there a tutorial for how to just spawn a basic zombie in 1.21.1
Make an instance of it modify it as you want then add it to the world with addFreshEntity
oh and don't forget to setPos on it
i've never used nms before and i've been trying to find out how to do all of that but am unsure and the tutorials I have looked at so far don't seem to be working, most likely because they are for older versions of nms but it could be I'm not importing nms correctly
?nms
is itemstack not a PersistentDataHolder?
alright I got an entity spawned, but I can't figure out how to create a custom goal using the mojang mappings. is there a resource I can use to help understand how to do this?
Its meta is a holder
yeah calm
would u also know how i can stop people putting something in the offhand
like what event is that
ive covered the swap hands one
but what if they just place it
also what was the a() method replaced with mojang mappings nms
?mappings
Compare different mappings with this website: https://mappings.dev/
The best source is nms itself
Read through the code and see how Mojang does it
For what purpose?
i dont want people putting sutff in their offhand
ive handled the swap event
but i dont want ppl to place it in
code works fine
except sometimes it lets u place it in
like 30% of the time it just completely ignores it
actually it seems if u dont move ur mouse at all and do it it cancels
but if u drag down while u place it
it works
InventoryDragEvent
sorry im responding so late, but attributeModifier's depreciated in the version im coding on so what else can i do?
?fork
SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.
Most of the constructors are depricated, beside one. https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.html#<init>(org.bukkit.NamespacedKey,double,org.bukkit.attribute.AttributeModifier.Operation,org.bukkit.inventory.EquipmentSlotGroup)
This was due to vanila changes I assume
what did the old PathfinderGoal a() b() c() and d() functions get replaced with as they don't seem to line up with what is being shown here: https://mappings.dev/1.21.1/net/minecraft/world/entity/ai/goal/FollowMobGoal.html
version: 1.21.1, hash: bfbf3184fe
(I am using mojang mappings)
Well what version are a b c d for
i don't know; tutorial was made in 1.15
Then take a look at the 1.15 mappings
No mojmaps in 1.15
lies
You should be able to refer to literally any pathfinder goal though. They mostly follow that same pattern of
- Can start?
- Start
- Can keep running?
- Tick
- End
Sorry, you're right, they were in 1.14
They do exist just not for Spigot
Hi i need support With link discord
?ask
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!
What is the name of your color theme?
anyway to send ascii text in console?
u can use jansi
wym send ascii text
what happens if you try to send it like that
u are gonna have to find a character but ya, your message is misleading because technically the characters in your string are not ascii
ya ascii is a set of chars from 0-255, it could be that your character is in the set of utf-8
hmm idk just try to find a dot, ik the console doesn't only print ascii characters
lemme try
want me to send the string?
https://www.w3schools.com/charsets/ref_utf_technical.asp try using characters from here
so spigot prints utf8 characters better yes?
idk if it prints all
Also just make sure your plugin is compiled in an encoding that actually understands those characters
okay
i just compile using maven and intellij artifacts
Yeah but you have to specify an encoding as well
In your pom.xml, either in your properties or in the build plugin if you're using it
ah yeah i build with utf8
It defaults to your system's default encoding, which might not be UTF-8, or whatever encompases those characters
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release = 21
options.compilerArgs.add("-Xlint:none")
}
Or, yeah, that if you're using Gradle lol
yeah
Mk, good to double check. Again, don't know if UTF-8 encompasses those chars, but if it does, then you're good on that front at least
well the chars im using in that string is utf8
did you try printing it again with a different (set) of chars
i'll paste the original
String art = """
⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀
⠀⣴⠟⠛⠛⠛⢷⣄⠀⠀⢸⡟⠛⠛⠛⠛⠛⠛⣿⠀⠀⠀⠀⠀⣸⢿⡄⠀⠀⠀
⣼⠃⠀⠀⠀⠀⠀⢻⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⣰⡟⠈⢿⡄⠀⠀
⢿⡀⠀⠀⠀⠀⠀⣸⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⣠⡟⠀⠀⠈⢿⡀⠀
⠘⢷⣄⣀⣀⣀⣴⠟⠀⠀⢸⣇⣀⣀⣀⣀⣀⣀⣿⠀⠀⢰⡟⠀⠀⠀⠀⠈⣷⡀
⠀⠀⠉⠛⠛⠋⠁⠀⠀⠀⠘⠛⠛⠛⠛⠛⠛⠛⠛⠀⠀⠛⠛⠛⠛⠛⠛⠛⠛⠓
""";```
idk, xD tbf i'm using paper though:
is that squid game
just logger
Logger logger = bootstrap.getLogger();
new BukkitRunnable() {
@Override
public void run() {
String art = """
⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀
⠀⣴⠟⠛⠛⠛⢷⣄⠀⠀⢸⡟⠛⠛⠛⠛⠛⠛⣿⠀⠀⠀⠀⠀⣸⢿⡄⠀⠀⠀
⣼⠃⠀⠀⠀⠀⠀⢻⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⣰⡟⠈⢿⡄⠀⠀
⢿⡀⠀⠀⠀⠀⠀⣸⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⣠⡟⠀⠀⠈⢿⡀⠀
⠘⢷⣄⣀⣀⣀⣴⠟⠀⠀⢸⣇⣀⣀⣀⣀⣀⣀⣿⠀⠀⢰⡟⠀⠀⠀⠀⠈⣷⡀
⠀⠀⠉⠛⠛⠋⠁⠀⠀⠀⠘⠛⠛⠛⠛⠛⠛⠛⠛⠀⠀⠛⠛⠛⠛⠛⠛⠛⠛⠓
""";
logger.info(art);
}
}.runTask(bootstrap);
I really don't think it's a Spigot issue
did you try running it olivo
if you figure it out let me know :)
Looks like the Intellij console really does not like those characters
Will check using cmd
how are you compiling
intellij artifact
theres your issue
compile with maven
If you're using Maven, you need to compile with Maven :p Otherwise you're circumventing the build system entirely
sure 2s
still printing the same
i did mvn clean package
used the minecraft plugin in intellij to build the project
just made the log
then that command
.
im on paper
🤔
That's the API you're compiling against not what the server is running
is making an entity just walk towards a location using nms as simple as this.getNavigation().moveTo(target.getX(), target.getY(), target.getZ(), speed);
in the constructor or do you need to set up pathfinder goals (which I have also tried but am new with NMS and haven't got either methods to work)?
yeah i found that weird too
but not in the cmd console when running Spigot
That's a cursed square and triangle
guys i think he is the frontman
🦑
🎮
bump still haven't found a solution
You're using nms so you're mostly on your own
Try it and see if it doesn't work look at how Mojang uses it
and then try to do that
everything I have found online says something along the lines of
this.getNavigation().moveTo(goalPos.getX(), goalPos.getY(), goalPos.getZ(), 1);
should work but it hasn't for me and I don't know why or if its because of my version, so I was wondering if anyone knew why?
but I have also tried registering pathfidergoals with no success either, don't know if I'm missing something there as well
Tried attaching a debugger and seeing what it's doing
You should run it in another terminal with another font just for run
yo @molten hearth what does this mean? is this a rich person thing? idk im 1m in debt
i cant lie bruh, i die inside when i see a plugin pasting a massive wall of fucking ascii whenever it enables
if anyone knows anything about nms and would be willing to help that would be much apprecaited
https://www.spigotmc.org/threads/using-nms-to-have-entity-walk-to-location.674952/
Have you tried putting the goal in the same class as where you create the entity
only ever used NMS once but thats what i did and it worked
@barren peak also
https://www.spigotmc.org/threads/all-you-need-to-know-about-nms.582651/
Imillusion made a great guide, thats what i used
i dont think your ticking the goal? <----
?nms
oh yeah dont forget to remap your jar^
ty for the glaze
[04:02:08 WARN]: FieldAccessException: Field index 0 is out of bounds for length 0
[04:02:08 WARN]: at ProtocolLib_2.jar//com.comphenix.protocol.reflect.FieldAccessException.fromFormat(FieldAccessException.java:49)
[04:02:08 WARN]: at ProtocolLib_2.jar//com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:318)
[04:02:08 WARN]: at CapeSwitcher-1.0.jar//me.anas.capeSwitcher.Main.lambda$applyCape$1(Main.java:152)
[04:02:08 WARN]: at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78)
[04:02:08 WARN]: at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474)
[04:02:08 WARN]: at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1805)
[04:02:08 WARN]: at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1666)
[04:02:08 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1331)
[04:02:08 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:341)
[04:02:08 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
https://pastebin.com/54WRZ8Ps < my plugin code
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Gpt ain't helping me solve this code
true
hi zaddy
Why can I not use bold text in my minecraft server chat
I am trying to make ranks bold with essentialsx chat & luckperms
.
did you try contacting protocollib support?
No
They don't have support server
I don't understand how canceling an event cancels all its changes that affected the subject. For example, there is an event GiveRoleEvent on the logic if it is canceled then the effects of the role should not be given to the player yes? Here is example - https://paste.md-5.net/yomoricoyo.java
how works other events with this problem?
Maybe you need to specify the event priority aswell.
LOWEST would be called first.
alr
You could also use ignoreCancelled = true in the annotations.
@EventHandler(priority = EventPriority.WHATEVER, ignoreCancelled: true)
for what
Basically that listener would not be executed if the event is cancelled.
oh
If there is other listener that might cancel the event, you may want to set the priority so it gets called after that listener.
highest, ignore cancel?
Sure, you could try it.
Are you asking how you should create a custom cancellable event ?
not really. I want to make it so that when the event is canceled, the effects that are given are canceled
but this effects are also inside the event.
how i undestand i need highest priority
I think how spigot does that usually is: send an event with the changes that are about to happen but don't modify anything yet
So what you're doing seems correct
callEvent start event so effects will be added before cancel
idk
how this works
i need somehow check canced event or not before he start
lol
https://paste.md-5.net/zebabatelu.java this seems like what i need i gess
I'm probably being a gigantic idiot again but where the hell did my POM go?
I believe in src/main/resources
Welp, can't help you with that.
Does it exist outside of ij
so i added it again and now i get this warning lol
system modules path not set in conjunction with -source 17
@remote swallow no, it was just deleted for SOME reason
that was my first thought too
on that topic how do i add javadoc again? i ran the build with generate-docs but my IntelliJ aint seeing it
this is litarally it
Blud thinks I'm a shmergillionaire
oof intellij just asked me if I wanted to download the docs haha
so according to this spigot is a vunlerability now?
i stg every time i try to do anything involving javadoc...
eeeexcuse me
--generate-docs does not generate docs
wtf
project settings should fix this
i am trying to get buildtools to spit out javadocs
wth why is this nonsense necessary now lol
but for me IJ also has the javadocs as deps?
the buildtools page says --generate-docs does it but apparantly no lol
i have it set for automatic dl docs
ok wtf
its generating the docs but not moving them to .m2
whats the correct path to paste that?
just where the server is copied to?
put in m2 next to other spigot jar
alr, back to IJ
ye ik. my issue is now getting IJ to see this file
i dont see that in the options
thats what i checked. none of those are named sync
not too sure what you mean by that
Press shift and shift again
quickly
it brings up a quick menu
so you can easily find literally every action and option and text
Ctrl ctrl is similar
that gives me a ton of options lol
ok besides the fact im a fuckin idiot i think i did it
not sure if it was maven javadoc dependency or ctrl-shift-alt-s import but it works
sure
is there somting where i can check this
just import Bukkit and hover
click on localhost
Does it work
well yes. but again i can just open the spigot api in my browser. i want to see it in intelliJ not firefox bruh
what more are you expecting to see here
whats missing
the actual javadoc and not just the file structure generated from spigot.jar
That is the javadoc
Its 1 sentence.
declaration: package: org.bukkit.plugin.java, class: JavaPlugin
its working fine.
just the modal is at an odd size
huh
...hence me asking earlier if theres a good class to check this on
i want to hit my head against the wall
welp at least i have confirmation
There's a squid in that game
that’s why i didn’t make it too big. just tryna make it more of a theme and customisable yk
you would need to connect AI API to Spigot and then send request to it from the player. Should work, chat gpt has public api i think
alot of networking handling
They probably mean mob AI
but chatgpt isn't a mob? how else are you gonna give AI to an NPC if not to chat 😂 😂 🤣 💪 💯
kms
Does bungeecord ship with SQL drivers like spigot does
yes
My IDE (IntelliJ IDEA CE) isn't recognising org.bukkit.Material (e.g. red line under Material.DIAMOND)
But it runs and compiles successfully (i.e. its intended). Anybody know how to fix / suppress this?
update your IDE
I did using the top menu
use toolbox (I Believe)
lemme see
You will need to do that multiple times
It only goes one step at a time
Or as ElgarL said you can use Toolbox to manage all your Jetbrain IDEs and keep them up to date
Yea but how about providing chat gpt the world render? So he knew where to go
What method can I use to get a list of all mobs that can be leashed?
jesus christ
and what about pandas and villagers, for example?
all LivingEntities
oh I just assumed the name, thought pandas were in there (they are also living entities)
i mean technically there is an internal method to check if an entity can be leashed but iirc that's only used for when as a player you are trying to leash an entity, not with the api
get the position based on the player interacting and then do some hacky stuff? idk what your asking seems extremely difficult to do if not impossible
but this could also work, right? "if (ec.isLeashed() && p.equals(ec.getLeashHolder()))"
Everything possible
your not gonna be able to make the NPC/AI "see". You will only have world block references
Such as where the interacting player is standing at
Ye ye i thought it might be possible to teach AI how to read chunk data and based on that make decisions
Wdym client side?
I'm assuming you are trying to do something like they do on the Neuro/Vedal streams
an AI bot/programmer who plays games like Minecraft on stream
Yea what else is this some fucking vtuber
Wow aren't you so big and tough.
isnt ur pfp a vtuber
Nah its anime character
lol
looks a lot like a vtuber
do you really want to provide an LLM with a snapshot of a three dimensional dimension in text representation
wow man gl
dont you do that in ur sleep
definitely
Okay nah i dont want to create AI Vtuber i want to download some city map from the fucking internet. Mark that region and let AI create real life movement in that city. So the npc's will get up, go to work do some shit on farm, go back to his house. Something like that
thats just citizens
Then just fucking path find that shit, like for fucking real man
No that's not, Citizens are reta*** and have no real life. They don't move or move in the admin created paths.
there are plugins to do that
Which ones?
im fairly sure they can
But this doesn't feel real u know what i mean. It's all scripted and repeats iteself in one big loop.
Why? Wouldn't it make NPC's decisions unpredictable even for admins while still realising goals?
it would for sure make it unpredictably bad, terrible and buggy
expensive and slow too of course
You can simulate "life" to a degree using pathfinding/goals but adding an actual AI is going to be risky at best. You are better off Simulating it in a plugin
testing until the point where it works would already be like at least $200 of openai credits 
If you are a good programmer
Yes i know you can achieve very satysying resultats using PathfinderGoals but i was thinking about creating something new and wanted to consult that
why would this need actual ai to work
no need to overcomplicate shit
It might be funny when the AI hallucinates and goes on a murdering spree, but other than that its overboard.
that would certainly be entertaining
but yeah I tried using ai (locally hosted llama whatever it's called) to get it to roleplay as a blacksmith and it couldn't even do that
if it can't act as a character it sure as hell ain't gonna function as an in game npc
just copy neuro-sama
yikes
looks like Darcula mixed with this one color scheme i used to use on TextMate
lol
not sure if I'm missing something with inventory change events but is there a way to have a player unable to equip a custom ItemStack that the material is a player head?
Does Curse of Binding work by chance? I'm pretty sure it works with anything that's on your head
Might be able to avoid events all together
i meant the player has the item normally but cannot equip it onto the helmet slot
Oh, sorry, other way around. My mistake
its purely cosmetic theres no real functional value to having it that way
You'd have to listen for an InventoryClickEvent, InventoryDragEvent (because dragging is separate), and I think that's it?
Because you can't right click to equip a skull so that's fine
i dont think theres a method in the inventory events that explains the result of where the item ends up
thats the problem I have
but in the case of armor its trivial
It's pretty easy lo
alr it doesnt have function anyway its just cosmetic
then why is it a skull
so i can have custom textures without a texture pack using the skull meta
Ño
ok lol
srue
lol
should i use my old actionbar or does the new one seem better
No opinions are banned
Just let that be configurable
I don't like either there aren't any hookers
if modmode has multiple functions other than visibility then the new one but otherwise the old one
LMAOOO
real
is it possible to cast an itemstack to a recipe choice or do I need to check if the craft has the itemstack instead of a placeholder separately?
meaning I can set a crafting recipe to use one of my itemstacks
RecipeChoiceExact
do i cast that to the itemstack?
because its not a class if thats what youre going for
and if I cast RecipeChoice to the itemstack then it doesnt work
No
You cast the recipe choice
Fucming hell
I've got the name wrong then
?jd-s
declaration: package: org.bukkit.inventory, interface: RecipeChoice, class: ExactChoice
ty
declaration: package: org.bukkit.inventory, interface: RecipeChoice, class: MaterialChoice
There's one for material as well
it works it just uses the material for the itemstack in the recipe suggestions
but it doesnt craft with the material
https://www.codebin.cc/code/cm5mz9ow20001jo037s695kar:GzpAkzZhE2sgFGSMSmV6MVcuX1FV3Gogae6qyFFVEEfa
Hi there, I have the current code (above) and was wondering if the base health values and attack values are significantly less than in just vanilla minecraft. Any help would be great, (the code is untested however I'd assume it would work)
?paste Use this instead
How can I check if a WorldCreator is loading a world or completely generating a new world
how do I unban a player in my logic given I only have their UUID? I tried Bukkit.getBannedPlayers().remove(Bukkit.getOfflinePlayer(playerId)); but it just didnt remove the object for some reason
Probably returns an immutable collection
is there a different way to unban the player then?
Get the banList and then pardon
do I use the name type or profile type
since name is volatile if the player changes their username
well nvm it shouldnt matter because I'm sourcing the player name from the uuid anyway
Use profile
and then get the player profile from the uuid
do I get the string from the profile then?
the pardon method doesnt take the player profile tho
?jd-s hmm
wdym?
Use the javadoc and you'll see it
How to make a rabbit hop when you're riding it? It just slides across the ground right now 😛
I tried velocity but could not get it to work, especially since I already have it moving forward using velocity in a runnable. Also tried teleportation but that didn't work either.
Bukkit.getBanList(BanList.Type.PROFILE).pardon(Bukkit.getOfflinePlayer(playerId).getPlayerProfile()); is this wrong? i dont see how it is
that doesnt work tho it still wants a string
Cast to profile ban list
still string
i got it
i had to put PlayerProfile as the target of the BanList<>
and nvm it throws an error
ok well what's the error?
So, I was thinking, whenever the rabbit is found to be on the ground I teleport it up a bit but that's not working along with velocity because this:
ride.setVelocity(rider.getLocation().getDirection().multiply(speed));
Also affects the y axis
if you want to make it only affect the x axis
could you clone the location but set the X to zero before multiplying
You can also just set the y axis to 0 before calling setVelocity
This is probably a stupid question. Is there any way to put a viewable map on a display entity?
setItemDisplayTransform
Unfortunately, they still appear just with their basic item texture. Thanks for the help though! Here's my code if I'm missing something. ```ItemStack stack = new ItemStack(Material.FILLED_MAP);
MapMeta mapMeta = (MapMeta) stack.getItemMeta();
MapView view = Bukkit.createMap(player.getWorld());
DebugMapRenderer renderer = new DebugMapRenderer();
view.getRenderers().clear();
view.addRenderer(renderer);
mapMeta.setMapView(view);
stack.setItemMeta(mapMeta);
player.getInventory().addItem(stack);
for (int x = size * -1; x <= size; x++) {
for (int z = size * -1; z <= size; z++) {
Location spawnLoc = new Location(loc.getWorld(), loc.getX() + x, loc.getY(), loc.getZ() + z);
Bukkit.broadcastMessage("loc: " + spawnLoc.getX() + " " + spawnLoc.getY() + " " + spawnLoc.getZ());
ItemDisplay display = (ItemDisplay) loc.getWorld().spawnEntity(spawnLoc, EntityType.ITEM_DISPLAY);
display.setItemDisplayTransform(ItemDisplay.ItemDisplayTransform.FIXED);
display.setItemStack(stack);
}
}
return true;
}```
i needed to create a separate variable in order to put PlayerProfile as the target of BanList<> directly then use the offline player method as well
This is supposed to create a grid of maps
?paste
Solved my problem
This makes the entity hop
ride.setVelocity(rider.getLocation().getDirection().setY(speed * 1.5).multiply(speed));
Thanks to those who replied though ❤️
wo nay
I have a question
yes?
Lets assume i have a discord bot running and i know it's token
Is there any way to make my spigot server receive events from it?
are you developing a plugin
About to
Basically plugin which somehow hooks to the bot by token and receives callbacks of it
so you're writing a discord bot in java
While server is running
the bot token and such is just basically the login
the bot doesn't do anything
you have to tell it what to do by sending commands to the endpoints with that token
Sadly the bot is written on python, not JDA
and youll get replies back
tankz
maybe webhooks?
No clue
I'm freeballing this, I haven't written a discord bot.
Never tried this shit
too bad discord bots dont have a java option.
I once hosted a bot which replied penis to every message
they absolutely do
And once used discord srv to connect chats
theres basically an api for every lang
JDA?
Whattt????
hello
Yes
Java wrapper for the popular chat & VOIP service: Discord https://discord.com - discord-jda/JDA
it's quite nice
But never a plugin which listens to bot callbacks
the only time i tried to do a discord bot, i tried to get it to say online. I gave up xD
No clue if it's even possible
probably
I mean i can shade JDA into the plugin
And run some shit in onenable
But not like create a new bot, but listen to an existing one, only knowing it's token
Hi
you can have multiple bots run on one token
hi
resident @undone axle is like 2 or 3 bots
Yeah but bot is already working and it's not written by me, and it's also written on python and hosted separately
Rn it just fires an empty message(in discord channel) on click
And guys want it to tell plugin to do smth instead
Or well, make plugin know that bot did smth, and run some stuff based on this knowledge
And for me it sounds kinda impossible
Any clue, @remote swallow
does anyone have any idea of why this code doesnt work how i want it to? https://paste.md-5.net/hesemogubu.java
im trying to make it so when the chunk hopper is placed it saves in config and saves the hopper size in the config as well therefor anytime the server is restarted they all save as they should and load how they was, but currently they save the location but doesnt save the size of the chunk hopper when server restarts
package LOL industrial-grade programming here
i know as you see i am a pro
i can put whatever there