#help-development
1 messages · Page 1141 of 1
what what
this shit requires like a lot of font fuckery and it's sometimes annoying
so why not make a way to do it without the whole font fuckery
imagine everything you can do with html5 and css3 but in a window that the server sends to the client in minecraft style
because I love doing devious stuff
right, just use modded ui at that point
define modded ui
I am actually working on this! (With them being interactive UIs, to some extent!)
like plugin dev is like acting as if the server is drawing the client menu, but modded is more like the client draws the ui based on what information the server has
acting as if the server is drawing the client menu
what
A mod?
Fully server-side :P
:Pé
yoooooo
shut
:DD
You can link it with a mod to make it better though
interesting
so are you gonna include a resource pack compiler or something
That's kind of the entire point of my framework, I was just forced to release it too fast and it's broken as shit
Nope, just a very small and clever set of shaders
glhf with cross version compat
it kinda works but it's the tech demo of the tech demo
whats it called?
take this menu, everything should just be in the client, except for the server sending the profile and the client sending when you wanna add a chat or whatever the menu does
this is an inventory
Helix, it's OS rn but that's the version I absolutely despise
I am reworking the API and loading so that it works on Fabric/Forge/Spigot
??
why not just make an actual ui
right
with font fuckery
are you talking about making a modded client?
vanilla client
yes
then what is the point of still using inventories
with mods you can draw whatever the fuck you want on the client
when did i say i was gonna use inventories
?
that's what i'm saying
you didnt
right
but my point is the server wont say draw a box
the server says here is a player profile, and the client will be like, okay I can make a menu for this and show it
why not
instead of the server being, " hey here is the menu that you use for a client, and these textures should be in those spots etc
Guys quick design question
because of peformance probably
like the client should be responsible for its own shit, ideally you dont wanna have the server draw everything for its clients too
Would it be better to do the following:
- the "loadPlugin" method returns a boolean and fires an event
- or does it just fire the event?
2nd would force you to not put everything in the same spot
the only reason we are outhere using inventories for everything is because our userbase has vanilla client
but with mods, the possibilities are endless
and you should use the client for all visual representation of information
what if the userbase is not just vanilla
You are just not abusing the vanilla client enough
It can be fucked with so hard
Yes
if I was making a mod on the client I would make the ui in the client, not sent from the server basically
which is what the inventories are
You can make mostly working menus without mods
yeah but rad was talking about using mods for better menus specifically
sometimes i cannot be fucked to do font fuckery
Why doesnt the player's name above head update when I send a packet to update it but the tab name does
so I was like, if you are going to use mods, might as well do it the best way
because that's not how it works
you need to respawn the player
respawn packet
ah fair
right
you cannot update the players display name and have it change in the nametag
don't use text displays
how
than whatever you are doing
🗿
?
Text displays have a weird funky bug if you use them as nametags
?
real
they will begin to wander the 9th dimension if you apply a tiny offset to them while they are seated on your head
they will transcend God
works for me
and that's how mojang wants it to be
player remove? player add? 😭
i have never needed to do this for nametags
ever
weird
they are placed at a weird offset for me
you just spawn a text display, add a translation of like 0.75 and add it as a passenger to the player
I also figured out that if you teleport an armorstand every 3 ish ticks it will sync with players
wdym
We tried that at my previous workplace and it fucked up
val textDisplay =
lobby.world.spawnEntity(player.location, TEXT_DISPLAY) as TextDisplay
val transformation = textDisplay.transformation
transformation.translation.add(0f, 0.75f, 0f)
textDisplay.transformation = transformation
textDisplay.billboard = CENTER
player.nameTagDisplay = textDisplay
player.addPassenger(textDisplay)
player.hideEntity(GameServerInstance, textDisplay)
works fine
ArmorStands interpolate over 3 ticks so if you teleport once every 3 ticks the speed will literally match the player's
ah
Using TextDisplay.class removes the need to cast btw
so why don't you do it
anyways this
have not touched that piece of code in months
also pardon you but GameServerInstance upper camel case?
what is this
C#?
my plugin is an object
oh
object GameServerInstance : SuspendingJavaPlugin() {
@rough drift PacketType.Play.Server.PLAYER_INFO_REMOVE?
YUP
then you need the one to add
use text displays i beg you
this is better
shush
blue line
PacketType.Play.Server.PLAYER_INFO_UPDATE?
https://wiki.vg/Protocol#Player_Info_Update this one to add
Yep look at player actions
it auto adds right?
h o w
it will break a lot of shit
it won't only change the name tag but the players name everywhere else
look bro
blue line
thats it
argument over.
- you have that for the player anyway lol
lol
i mean you'll either have:
- something which will break a lot of other things and is more complicated than it needs to be
or: - one smol blue line
first one all the way
see I was almost team text display
but I saw that they went off the player when he died
so I changed my mind
lameee
I was too lazy to fix it
fr
so you're too lazy to write 5 lines of code and instead you write something that will break on some clients and is more complicated than it has to be
nice
yeah 🔥
be prepared for the footguns of packetry
Stubborn and stupid, the perfect recipe
real
the what
oh you'll for sure have fun
Yeah I alr am
I wrote smth
I dont even know what it is
but it's working
so
🤷♂️
wait until they wanna use colours too
you're not saying
💀
am I cooked
idk about you
but my colors are working
🤷♂️
im waiting for that fr
I already got that
actually
so
🤷♂️
mr. rad
names are components
you don't see &rradstevee
display names are - names aren't
Yes
which is why you edit the display name
they are editing the name however
and also, editing a players display name will not change the name tag
so
yeah
no it will not
the client renders the name tag as following:
- {team_prefix}{team_color}username{team_suffix}
How to create brewing stand recipe?
sadly enough, brewing recipes don't have a system like the crafting ones where you can just register recipes (though I think that was being added in the new release? I might be misremembering), so you gotta work it around like this
I though it can be less dificult
Depressing truth :<
It can not
Unfortunate facts of life
😔
Is there some magic API/NMS way to just power a block
Without actually placing a power source
That would be hard to get working right
Making it powered is the easy part making it stay powered during a block update is going to be hard
So what exactly do you want to power? Any block or is there a specific type?
I though there is a way to power it using spigot .. _ ..
if u wanted to do any block u'd probably need to check relative blocks to your block and check if they are Powerable
Anything
I'd look into it, but I notice Entity#teleportRandom, so I've been screwing with that lmao
Sadly the power level of blocks isn’t something maintained by the world
It’s just part of block states
Well, if there is no way I would just check if there something powerable around it like redstone and add power to it
curiously it works when moving, but not standing still (?)
Trying to figure out why, likely have to fork spigot & add debug messages to the relevant method
I guess it's something like enderman's thing
Yea, it is
they too teleport if they are walking somewhere
chorus fruit also uses it though
Ender pearl too used it in one of last snapshots
Chorus Fruit - https://paste.md-5.net/iyusapudis.cs
Enderman - https://paste.md-5.net/ojonelilil.java
takes an x, y, z & flag to determine if the chorus fruit particles should show or not
It just teleported something like (initiate coordinate + pearl coordinate)/2
I want that method cause it also determines safeness (to an extent)
Trying to figure wtf is going on with it though 🤔
The randomTeleport code itself - https://paste.md-5.net/cozuvepame.java
actually, I might know
im drawing a blank, whats a Function that doesnt return anything, I just wanna run some code
is it just a runnable?
si senor
okay
- I'm dumb, didn't pass the coords in that specific code iteration
- Seems like Async fucks it up, tried it in AsyncPlayerChatEvent for testing & it throws
org.bukkit.event.EventException: null Caused by: java.lang.IllegalStateException: Asynchronous Chunk getEntities call!
Second's not really an issue though, you just don't run it async KEK
Is there an event for when a creeper drops a disc from being killed by a skelly?
Just the standard death event
declaration: package: org.bukkit.event.entity, class: EntityDropItemEvent
API would probably be something like Player#randomTeleport(retries, xRange, y, zRange, showTeleportParticles)
Depending on if I'm understanding entityliving.getX() + (entityliving.getRandom().nextDouble() - 0.5D) * 16.0D; and such correctly
Does anone know what TagKeys do, I'm a bit mistified looking at adding some API but I noticed it this stuff was being added to create TagKeys, after a bit of digging I still don't really understand the purpose here
okay wait I think I got it now
seems like its analogous to spigot's Tag API for items
but much more expansive
@valid burrow
Chourus Fruit:
double x = entityliving.getX() + (entityliving.getRandom().nextDouble() - 0.5D) * 16.0D;
double y = MathHelper.clamp(entityliving.getY() + (double) (entityliving.getRandom().nextInt(16) - 8), (double) world.getMinBuildHeight(), (double) (world.getMinBuildHeight() + ((WorldServer) world).getLogicalHeight() - 1));
double z = entityliving.getZ() + (entityliving.getRandom().nextDouble() - 0.5D) * 16.0D;
Enderman
Random Teleport
double x = this.getX() + (this.random.nextDouble() - 0.5D) * 64.0D;
double y = this.getY() + (double) (this.random.nextInt(64) - 32);
double z = this.getZ() + (this.random.nextDouble() - 0.5D) * 64.0D;
Teleport Close
double x = this.getX() + (this.random.nextDouble() - 0.5D) * 8.0D - vec3d.x * 16.0D;
double y = this.getY() + (double) (this.random.nextInt(16) - 8) - vec3d.y * 16.0D;
double z = this.getZ() + (this.random.nextDouble() - 0.5D) * 8.0D - vec3d.z * 16.0D;
Might have to set the x,y,z outside of the method, not sure on a clean way to handle all three instances in a single api method 🤔
can someon help im trying to make a plugin but when i try to compile it its not working
what's the error
wait theres like 22
give us some details
its one long one
?loh
?log
wasnt it like this
damn
?error
?errorlog
i swear there was a command like this
?notworking
"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.
is that the one?
?stacktrace
We cannot help without the full stacktrace; Please paste it here: https://paste.md-5.net
guess Player#randomTeleport & Player#teleportTowards w/ relevant options
?paste
ah yes that
i do javac [filename] and it says something like symbol: class ItemStack
location: class ParkourListener
ParkourListener.java:31: error: cannot find symbol
ItemStack enchantedGoldenApple = new ItemStack(Material.ENCHANTED_GOLDEN_APPLE, 3);
and 21 others
idk
Use the buildsystem it uses
?
why are you trying to compile a plugin with raw JavaC
idk how i searched it and thats what came up
every fiber in my body is screaming an AI probably wrote this code
are you using an IDE?
if not please go learn how to use an IDE
and learn how to compile with your IDE Of choice
vissual studio is an IDE right?
are you using VSCode?
or Visual Studio
if you're using Visual Studio I am unsure if that even supports java
some people get confused between Visual Studio and Visual Studio Code
cuz their names are very close
one is a C type language IDE and the other is a text editor with a versatile plugin system
it says "Visual Studio Code"
so am i using the wrong one?
no you are using the correct one
Visual Studio is for C languages
go learn how to use and compile java projects with maven on VSCode
oh i have maven i just dont know how to use it
i searched how to do it and nnothing came up
it only showed me javac way
i have to read all of that.?.
dude you aren't going to make it in programming if you don't read
turn back now before you just waste your time
its not that im just tired
believe it or not you'll be required to read and write lots of code read and write docs
then go to sleep and get back at it again tomorrow
The Maven for Java extension for Visual Studio Code provides fully integrated Maven support, allowing you to explore Maven projects, execute Maven commands, and perform the build lifecycle and plugins goals.
Get a hands-on start with the tooling and meet one of its engineers - Yan!
Start now: https://code.visualstudio.com/docs/java/java-build
I found this video at the top of google search
both of those resources I gave should be perfectly fine for you
so will these teach me how to compile?
it'll teach you how to setup maven and compile probably
if it doesn't teach you how to compile you'll be fine cuz its legit just a button that says "package' after you set up maven
oh alright thanks btw is codecademy good for learning im paying for it rn
😭
I just became a google savant
I read books
nerd
lol
What is the equivalent of NMS IBlockData (BlockState with mojmaps) is in CraftBukkit I really don't get it because it seems like IBlockData is BlockState but BlockState is something completely else with spigot mappings, even mojang mappings don't really make sense because it seems like spigot's BlockData and BlockState are all bundled in IBlockData
19
oh damn
18
damn
?learnjava
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! 🎉
Yes IBlockData is blockstate
wtf is BlockData then? Does it just not exist as a concept? Or is it a more abstracted concept?
Data state
Not really
The bukkit block data state stuff is really fucked
Iirc NMS block data has properties, which are what spigot calls BlockData
It's bukkit get it right nerd
okay so basically if a NMS method takes IBlockData and I want to expose it to the API I myself should expose it as Bukkit's BlockState
gotch you
Is that envoys
nope its a Spigot PR
Spigot pr!?!?
Have you done any spigot prs that modify a cb pr yet
c pr?
Cb
You should it'll be fun
also by spigot PR I mean I'm PRing to CraftBukkit
jsyk
who tf would ever PR to spigot, gross disgusting awful
I wouldn't touch those patches in a trillion years
Smh
my kotlin make class hotkey is so ingrined into my brain
I press it when I'm doing java
and it pops up and I have to exit out in sadness
If only you could make an ij plugin to swap it based on module language
Oh wait you could
its too late I have ctrl+shift+k ingrained in my head
Man both IntelliJ and Eclipse are fighting me today
My jb toolbox downloaded an eap randomly earlier
If you have jb toolbox installed use that
JB ToolBox 💪
It had the nerve to say downloading update files for like 20 minutes
Not 29?
And then just say “Lol failed to update 404 not found”
Coll you're so naughty >:(
U wot
on 10/09/23, for your europeans (09/10/23) you PR'd locateNearestBiome
but never PR'd locateNearestPoi
Yeah I looked into that and idk how it really works
Dw buddy I'll do it for you <3
There’s no magic internal locateNearestPoi()
Would that method be Poi or POI
its Poi
usually in personal projects i do all capitals cuz then I know it stands for something
I never know how to capitalize acronyms in class names
Is it MySQLAdapter
MYSQLAdapater?
MySqlAdapter??
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> archetype:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< archetype:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- archetype:3.1.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository not defined. Using the one from [org.apache.maven.archetypes:maven-archetype-quickstart:1.5] found in catalog remote
[INFO] Using property: groupId = com.example
[INFO] Using property: artifactId = maven-demo-quickpick
Define value for property 'version' 1.0-SNAPSHOT: :is the "no pom" an issue or am i doing it right
On out server players can get enchant values higher then vanilla (efficiency 7 .. from custom fishing). We don't want them to create these enchants in anvil so I made this plugin to check if result enchants are higher then vanilla ( eff 5 + eff 5 = eff6) and if so set them back to vanilla max value. If palyer puts already stronger enchant like eff 7 + silk touch it should set it to eff 7 + silk touch tool. It works fine but it doesnt refresh the result when I shift click items into anvil slots. When I update it by changing name or grabbing the result it's fine. Can I somehow refresh the result when I shift click the items into the anvil slot so it doesnt create this visual bug?
are there any links that would be easy to use block textures that are above 16 x 16 pixels?
private String getBlockImageUrl(Material blockType) {
// Example image URLs from Minecraft Wiki
return "https://assets.mcasset.cloud/1.21.1/assets/minecraft/textures/block/{material}.png".replace("{material}", blockType.name().toLowerCase());
}
why would you need block textures in spigot
you can't even change the textures
unless you're doing some runtime deployment of a resourcepack
You'll probably be rate limited by that you should download and cache
Seems weird to need vanilla textures for that
Im making a discord feature with one of my plugins
where I need to set the image of an embed to the block
I wouldn't recommend querying mojang for that
wdym
Download the resource pack and cache it
if you need the assets as embeds, host them yourself rather
mcasset.cloud isn’t Mojang
And mcasset is owned by a hypixel dev
I just needed the images to be bigger than 16 x 16
mcasset is actually a money laundering front
ik, thats the only one I could find
trust me
Download the resource pack and cache it rather than querying it and possibly being rate limited
or just resize it?
they don't want the resourcepack, they want an url embed to be displayed in discord
ah
Time to host them yourself
Don’t tell Mojang
yeah, no way around that really, you'd have to resize them yourself by passing them through a proxy or something
oof
ik
they might just be testing the thing for a feature, who knows
dw, theres going to be other events also 😉
are you seriously going to send a message for every time a player does those things in discord? Crazy talk
yes
I would probably go the summary route if I were you, players do way too much for that to be reliable at all
that one dude carving out a whole chunk and rate-limiting the hell out of a discord webhook at the same time
lol
Does the event get triggered when shift clicking?
If not, use InventoryDragEvent, otherwise use player#updateInventory
yea, in console it shows event triggered 3 times
Try player#updateInvnetory
ok thank you I¨ll give it a try
Or try resetting the item in the anvil inventory in the next tick by BukkitScheduler#runTask(...your code here)
If that didn't work (afaik updating inv will work but just in case it didn't)
I tryed that but it didnt work. At the end I went a different route and just created a new Itemstack in result slot. Had to make check for tool type and incompatible enchants but it looks like it's working.
Did ChatGPT do that?
you know it. Its too late 😄
Fyi it won't be compatible with custom items or tracked items by other plugins
Unless you NMS copied that item, rather than remaking a new one with the type only
yeah this will be on the server just until slimefun 1.21 is out
Ahh ok
Shit. He's onto us 
Fortnite poi?
Thoughts on API suggestion
Why?
#general
Java mail? Idk what you need in a library
send mail
why does config.getConfigurationSection("ranks").getKeys(false)
return empty set when there are no values in "vip" ?
is it invalid ?
Identitation
what do you mean
Add a tab
before the vip?
it cant have no value
try putting null and see if that changes anything
long live yaml
or if its a list put []
Looking for a programmer willing to help me with a server I started. Dm me if you willing to help.
?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/
PDC can store multiple data of the same type with different keys?
sure
you can store the same data with different keys if you wanted
a single key can hold any type of data
if i type null is it null or string null
okay
but if its supposed to be a list you should be using [] to say its an empty list
yes
vip: []
but
what if my "ranks" is empty, because user is gonna type in what they want
themselves
so its just "ranks:"
well that should be invalid
I think snakeyml doesnt see the difference between indentation if you dont assign a value
because ranks: is a map not a list, can i make like empty map
ranks and vip are then both considered emtpy objects, on the same level
well that's just null
but like its been a bit since I had to work with this kinda config
An empty map/section is
Map: {}
oh
if you want a map and your get returns null, return a new map
oh
Not sure how the Spigot API will handle that so a null check is probably a better idea
but then there is no difference between map being empty -> null and map not existing
you asking me?
yes
i probably have to test it to get it
they will both return an empty map
imma try it and think if that makes sense
does Bukkit.getPlayerExact work only for online players? or only the ones that have been on the server?
a Player object only exists for online players
oh, so if there is no player with that name currently online it wil return null
yes
almost, (if I remember) one can perform a lookup to mojang so can cause lag
yeah but i mean if it also returns null if player is not on the server
all getPlayer methods will return null if there is no online player
Player can only exist if they are online
okay okay thanks
just write spigot javadocs <class name here> class in google
all of that are documented properly on the javadocs
or spigot <version> javadocs for example spigot 1.20 javadocs
validBordersFromNeighbours.put(buildBorderChunkDataEntry.getKey(),chunkData.pastableModulesContainer.modulesContainer().getProcessedBorderMap().get(ModulesContainer.transformDirection(buildBorder.getOpposite(), rotation)));
aw yeah we love programming
okay 😔
what about it
I've added the library but it doesn't seem to recoginise the ObjectMapper class
the package com.fasterxml.jackson.databind cant be found
but com.fasterxml.jackson and other stuff can be found
did you add the databind dependency?
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.17.2</version>
</dependency>```
does it compile via the terminal or is your ide just tripping balls?
what does maven say?
yeah not sure
maven loads the dependency fine
wait wtf
it was intellij it works now after reload
yes
Javadocs are your friend https://hub.spigotmc.org/javadocs/spigot/org/bukkit/plugin/java/JavaPlugin.html#getDataFolder()
ty
private fun startBreakingStages(block: Block) {
val blockLocation = block.location
var stage = 0
object : BukkitRunnable() {
override fun run() {
if (stage >= 11) {
block.type = Material.AIR
cancel()
return
}
sendBlockDamageToNearbyPlayers(blockLocation, stage / 10.0f, 40.0)
stage++
}
}.runTaskTimer(RTKB.plugin, 20, 20)
}
private fun sendBlockDamageToNearbyPlayers(blockLocation: Location, damage: Float, radius: Double) {
val nearbyPlayers = blockLocation.world?.getNearbyEntities(blockLocation, radius, radius, radius)
?.filterIsInstance<Player>() ?: return
val transactionId = Random.nextInt(0, 100000)
for (player in nearbyPlayers) {
Bukkit.broadcastMessage(player.toString())
player.sendBlockDamage(blockLocation, damage, transactionId)
}
}```
Can anyone help me figure this out? Im trying to make the block break with breaking stages, but for some reason it saves teh breaking stage. It dosnt reset it back to a lower break stage.
Is there a plugin that supports giving players items with command blocks for example through essentialsx but still being able to use "@s" "@p" etc
Sounds like a question for #help-server
To send emails with java, you need to provide your password and email, right?
But doesn't that allow anyone viewing your github to simply hijack your account?
stick it in env vars
create an env var on your pc, use System.getenv
use the key you set for the env var on ur pc
only you will know the email and pass and people in github will know what you named it
but not the content
because its on ur pc
Asked there, ty
depends how you are sending emails
Then how do I attach it to my minecraft plugin?
I'm currently looking for the best approach
well typically you either use sendmail or smtp
in either case, you would just use a config file to pull the credentials from
this way you are not hardcoding anything
optionally you could just implement smtp yourself I suppose into your application
then no credentials are needed just an email
Yeah, I don't get it
Like, what does that mean?
"implement smtp yourself"
This part
smtp is just a protocol on a specific port
smtp is a protocol for sending mail. It involves looking up MX records(mail exchange) and the sorts to know where you need to send the message. If SMTP is implemented yourself there isn't like a logging in that needs to be done, just an email that is attached to the message. How Mail servers know you are authorized to use that email is by contacting the server of the domain you used in your email address. Example, if you used your gmail email, it would contact gmail to see if your server is in an allowed list. If it isn't its auto rejected. If such a list is not implemented they generally consider it as spam unless you prove its trust worthy.
Someone knows what i should do when the programm doesn't recognize the class "Material"?
Update Intellij
already did
Make sure you have the project jdk set to Java 21
oh updated it already, but wants a new update
weird, ig it doesnt automatically update to newest version
Update it again ig
does anyone know how i can make an item display bigger by like 110%/ 1.1x bigger
change its scale component
how do i do that
Ourgh chaning version didnt work and i have trouble updating intellij.. well time to waste more time
E.g. /summon minecraft:item_display ~ ~ ~ {transformation:{scale:[1.1f, 1.1f, 1.1f, 1.1f]},item:{id:"minecraft:bedrock"}}
using code tho
kk
So you could e.g. do ```java
var display = world.spawnEntity(location, ItemDisplay.class);
var transformation = display.getTransformation();
transformation.scale.mul(1.1f);
display.setTransformation(transformation);
no, just set it to 1.0
kk
If you multiply 1.1 by 1.0 you obviously get 1.1 lmao
LOL
You could multiply it by zero and add 1.0
why
To get 1.0
yeah but why when i can just set it
I'm making a joke
ah
has NMS become insanely hard to update from like 4 patches ago
thx for your help, didn't work though so i just copied an old project where Material still worked, changed its version and copied the code in
rly weird but prob the best solution
sometimes only like half are there
are those BlockDisplays?
Did you put it in your pom / gradle file?
itemdisplays
your InteliJ is out of date
yeah
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<classifier>remapped-mojang</classifier>
</dependency>
ok that is a good pointn
menndokusai
brb
but like how did you knnow so fast 😭
lmfao insntalled 26/4/2023 yep.
its a common issue since 1.20.5
what do u use senpai
Eclipse, but this issue is an IJ specific
elgar strikes me as a netbeans kinda guy
out of curiosity im updating my NMS code
there was like
PathType.Water
in my old pathfinder code
i wonder if this will fix that too
I've done nothing with goals
the issue you have is just IJ with java 21 and Enums
do we have to use java 21
i was using 22 oops
yeah 22 is bad at the moment
ok ill install 21
bro idk like i probs soundn like a dumbass coming in with my opinionns 20 minutes into being in the sever
but like
istg beta + launch to like 1.8 was peak dev time
no bullshit
or not as much...
bring back pumpkin stem 104
hard to say
could be an engine thing
sum1 with way more wizard knowledge would know
hm thats super annoying
The half rendering of some of those makes me feel like it's a weird culling issue. Not sure why it's culling, but yeah
maybe its lunar client being weird
That sounds like it could be
ill test on vanilla
make their height infinite
how do i pass infinite
just a really fucking large number
are you constantly spawning new ones
thats the only one i can do tbf
nope
try it
or just editing the existing ones
editing existing
ok well if theyre still there hmm
id say its a rendering issue with MC in genneral bc they do re appear
ima try what voodoo said
Lunar client
ok ill test on vanilla after
setting max height fixed it
thats really weird how did u know that was the fix @rough drift lmao
yerp, 50 bucks a spin
hey if you don't get em hooked young who'll go to the casinos when they grow up
real bucks*
you understimate my ability to lose money
Okay so let me explain
The culling of display entities (display entities in general tbf) is absolutely batshit insane
It will mess up the calculation to check if the bounding box is inside the view if the height of the display entity is less than something like half the screen? at least that's what it feels like
Setting the entity to max height means that you can always see it, because it will be forced to always be inside the bounds of the screen
meaning that it can never disappear
What was happening before is that it was getting culled out due to funky (probably intern written™️) code
holy i wish i never switched to intellij
what is this 2024 version
looks nothing like th eold
what
oh
skill issue get good
what were you using before IJ
NetBeans™️
crazy
neovim
nah jk I was using Eclipse
that's even crazier
Java support outside IDE is already bad enough
?
but like
it isn't
things werent this bad
it is lol
a few years ago
the LSP crashes all the time
Java + Neovim works great, btw
the gif is silent but the audio still rings in my head
That's kotlin
Never had any issues with jdtls
did ya read the docs
happens to Java LSP too, though Oracle's one is better in that regard, no one has ported it to neovim yet
i just wanted to update my wholesome 1.8 plugin
and its late at night
too many changes
because potions aren't a single item anymore
never had any issues
ohhh lmao
makes sense
Guys I just added networking latency to method calls and I don't know how to feel about that
they're separated between POTION, SPLASH_POTION and LINGERING_POTION
is there a 1:1 replacementn
yeah
if(mat == Material.POTION){
PotionMeta pmeta = (PotionMeta) im;
PotionData pdata = new PotionData(PotionType.WATER);
pmeta.setBasePotionData(pdata);
}
ofc there is my friend
this is what i was doing
var meta = im.getItemMeta();
if (meta instanceof PotionMeta potionMeta) {
potionMeta.setBasePotionType(PotionType.WATER);
//im.setItemMeta(potionMeta);
}
though I don't know what the point of setting the base type to water is
ye just did that haha
um
there was a reasonn
a few years ago
dont remember why nnow
so much has changed
i think im just gonna get iut compilable
and then tweak it later...
famous last words
:D
that plugin isn't gonna get touched again
nah
i love it
i always updoate it
and never release my server
wow particles changed AGAINN
GRRR
or if you know the name of the vanilla particle, they match now so it is that
that one wasn't too bad
SLOW_DIGGING though...
what is it
slow digging is the spigot name
mining fatigue is the vanilla one
slow digging to match with fast digging I guess, which is haste in vanilla
any idea how the number in this is made ?
so you will need to create custom char for every single cases ?
You have one font
like from 0->100k
hmmm
and you just font:blocky25.5k</font>
lmao, imagine having to create the font for every single number in existence
so how about the red bar behind
that'd be almost like creating a chinese font 
more font magic
You can, for example, make a 1x1 pixel .png
and then stretch it to like 1x9
and make another variant that's like 2x9
you just modify one of the glyphs to make it look like a bar
and one that's 4x9
text color it red, do some binary matching thing to have any size bar
hmmm
that sound doable
cool tks
but kinda painfull tobe honest
wynncraft now is kinda insane in term of graphic tbh
Error creating remapped jar: Unsupported class file major version 65
anyone seen this
Failed to execute goal net.md-5:specialsource-maven-plugin:1.2.2:remap (remap-obf) on project XXXXX: Error creating remapped jar: Unsupported class file major version 65 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.md-5:specialsource-maven-plugin:1.2.2:remap (remap-obf) on project XXXX: Error creating remapped jar: Unsupported class file major version 65
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
the concept is pretty much the same for anywhere else you might want to display it
current specialsource version is 1.11.5
oh..
some people also make cool UI by sending action bar messages as well like this
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.2</version>
<executions>
-> 1.11.5
?
hmmm
wait what is that healthbar thing
no, 65 is java 21
yep I just looked it up
font magic
lets c
so use current specialsource and be sure you are running maven under java 21
ill rerunn
i am determined to farm this before i sleep
build....
build...
SUCCESS!
Class file version 100 corresponds to Java 29. If you’d like more information on the features or enhancements in that version, just let me know!
is that a bot
lol no
chatgpt responsne
Are java versions version + 44
haha
wait elgarl do u know how to do this
or what its called
i legit have never seen that possible in vannilla evecr
or is it like a lunaclient trick
It just needs a resource pack
it is completely vanilla with resource pack
I took that one from https://www.spigotmc.org/resources/gui-api.95468/
but that one is kinda outdated now ig, not sure it works anymore
are resource packs safe/legit nnowadays
theyre just pngs how can they be unsafe
every server that is worth its money uses resourcepacks nowadays
they just allow a lot of things that weren't possible before
any other hot buzz stuff that i should know about
not only changing the look of blocks, is what I mean
what u were doing before with the roulette seemed really out there
for like boomer standards
playing around with display entities ig, people make really cool stuff with them
like that roulette
https://www.youtube.com/watch?v=r70xJytj0sw or crazy stuff like this
In this video, I show you how to create a spider with a procedural galloping animation.
Previous Video:
https://www.youtube.com/watch?v=Hc9x1e85L0w
Source Code:
https://github.com/TheCymaera/minecraft-spider
World Download:
https://www.planetminecraft.com/project/spider-garden/
All my links:
https://heledron.com/links/
Inspired by:
Coding A...
does it override vanilla or can u have resource packs like only edit "tagged" mobs
so like can u choose between having some normal mobs spawn and some "super buffed up" ones
- im 99% sure this doesnt change the collision boxes right
Do you need help? 😭
how do you play minecraft on a square
Also it seems as if you're missing backjumping
no I just got it to sort of start working again
it's a really tricky implementation because it's supporting rotations natively
nah im new to developing on this version myself, i was surprised too
i used to be a legacy dev
and uses a tag system
that doesn't make it trickier
you're just skill issued
ok buddy you go make your own then
I did
and then optimized the shit out of it
Hello! Is there any way to detect when an entity is removed? Or when an item is deleted after nobody has picked it up? Spigot +1.19.4
good for you
and then added back jumping
I have rollbacks the house detection just didn't trigger it yet
Uh can i see a video of that too :o?
wha
of IkeVoodoos Implementation
mine is done using textures TBF
but I guess it's like his
lemme find it
got it
Btw did you set a specific size of maximum chunks / radius?
Or was your minecraft like nah i dont want to go further?
I set it to be real small
For testing purpose i would say?
I like it btw :)!
EntityRemoveEvent ig
ah, there's a more specific one https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/ItemDespawnEvent.html
declaration: package: org.bukkit.event.entity, class: ItemDespawnEvent
@fair rock I'm optimizing it slightly because I want to make it big but it's slightly too slow
here
btw it's still generating but I'm not sure a video of 10 minutes of it generating to view distance would do well in discord
ty
still have to add the new more vertical buildings, voronoi noise for the target height, biomes for region-based architecture, actually implement rotations, add the repetition penalty system... and I think that's it
my initial goal here is to actually make a warhammer 40k-style hive city
oh and weight system
that too
To be honest, looking already good
nah these are the placeholder graybox builds
it's a hot mess
already working on canals, walkways, bridges and modular builds with the builder, I just need to configure their tags correctly
hm also I'm now pretty sure I flipped one of the axis here and it's causing problems
good
?bt
that isnt offical and shouldnt be used
What is the official one?
Ouh hell yeah
?bt
Thx
so much cool stuff
Aight, so a variety of NMS classes implement a form of a "addParticlesAroundSelf" method (or just don't use a method and call the code directly). These classes being EntityDolphin, EntityAnimal, EntityAbstractHorse, EntityOcelot, EntityTameableAnimal, EntityAbstractVillager, and EntityLiving. Thoughts on bumping "addParticlesAroundSelf" to "Entity", rewriting the above classes to use it, and also making it a Bukkit API method?
The following contains a rough (incomplete, might have slight incorrections) spigot only implementation showing similar each of the methods are (plus a generic method for general purpose): https://paste.md-5.net/oqucixineb.cpp.
While I could update this to support every mob, it would be much more useful to have an Entity#addParticlesAroundSelf method so that I'm not duplicating vanilla code and not having to update it every version either
Used for things like taming failed/succeeded, when the dolphin is fed and locating a structure, when an animal is in love mode, villager mating, angry, happy and the villager splash particles, among others
yeah thats a lot optic
api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api api
That's what this is about lmao
Nah, I was messing around looking for stuff to add to a project. Noticed stuff in NMS which would be a nice to have as a public method lol