#💻︱programming
1 messages · Page 6 of 1
His question was already answered
and theres nothing wrong in a little funny comment
Cube is way to child friendly istg
this has nothing to do with cubecraft's policy. I am not a mod or admin, so i am not speaking for them. I just feel that you two are being unnecessarily toxic against certain individuals
if u mean 💙 ᴊ̅ᴏᴄ̅ᴋʏ̅ ᴊ̅ᴀᴢᴢ̅ 🖤 we are way too polite to him
he shouldnt be allowed in this chanel to start with
if he is annoying you in any way, best to just ignore him.
its not that he lacks the knowledge that is perfectly fine. It's that he doesnt wanna learn
easy to say if he replies with silly stuff on every question here
dang bru
that dude's about me is breaking more rules than our conversations
??
Then you can still ignore him?
If your bothered, block him then you don’t see his messages
ba dum tss
who know cloud compute?
what type?
Ik I'm late to this but I'm genuinely curious how it was possible for the global skin system to basically crap itself. It wasn't just a cube craft issue like to me it seems as though Mojang changed the models or something and just didn't warn anyone
سلام عليكم مين يبيع حسابه بس المطلوب إني اشتري الحساب يكون فيه جميع رانك ميزات كيوب من عام 2012 لعام 2023 ميزات
للتواصل معاي ضغط هنا 𝐂𝐇𝐑𝐈𝐒𝐓𝐈𝐍𝐄@
salam ealaykum myn yabie hisabah bas almatlub 'iiniy aishtari alhisab yakun fih jamie rank kyub min eam 2012 lieam 2023 mizat
liltawasul maeay daght huna @merry dune
Hey guys I got a part of json coding of discord
It won't fit in the message here omg
It should convert it to a .txt file if it goes over the char limit
You need a PSU to make a computer turn on @real pelican
i dont have a psu o+o
and i choose wat is the right psu for my desktop_
?
my desktop brand is zotac
Depends on what all the components are in it
i have 128gb ram
and
i7
and nividia gtx 640
gpu
if i send a screenshot of my pc can u tell wat psu is best for my pc</?
i think you dont have 128gb of ram with a gtx 640
128mb
Prob 1-2 max
Pretty sure both selling and buying mc account is against discord TOS and minecrafts EULA
What's the diffrence between interrfaces and abstract classes in java?
What's the point in having interfaces if u already have abstract classes?
Interfaces means you can define as many method prototypes as you want, but it's not necessary to use them all in a class using that interface.
For an abstract class, you must use each and every method in the abstract class, in the another class which uses the abstract class
Then why use interfaces at all if they dont hold any implemnation?
your answer makes no sense at all
an interface is basically a fully abstract “class” and it can only have abstract methods or default methods
it cannot have instance fields
interfaces also support multi inheritance, meaning that a class can implement more than 1 interface and an interface can extend more than 1 interface
an interface can also have be refrenced with lambda expressions () -> if it only has 1 abstract method
an abstract class is like a normal class but it can have abstract methods just like interfaces
any non sub abstract class that extends it must override all of its abstract methods
and abstract classes cannot be instanciated just like interfaces
if it's a pre built it should have a psu?
I don't understand what you mean byinterface an interface can also have be refrenced with lambda expressions () -> if it only has 1 abstract method
Also I still don't get how having a blueprint(interface) can be usefull
It has no implementation
The only thing it has are method blueprints
Let's say you have a family classes called "Vehicle". This means that all of the classes in the family inherit (directly or indirectly) the superclass Vehicle. Vehicle can hold instance variables like topSpeed, motorPower etc. You can also give it functions, like steerLeft. You make Vehicle abstract if you dont want it to be instantiatable (prob not correct spelling).
What if you want to be able to group subclasses in more categories? Lets say we want to make a category called Paintable that groups every vehicle that can be painted. We want to make sure that every class that is paintable has the method paint(Color color). In that case you wouldmake it an interface.
Since java does not allow a class to have multiple superclasses, interfaces are very useful. You cannot inherit from the class Vehicle and Paintable at the same time. With interfaces you can group classes on behaviour. You could for instance keep a list containing every paintable vehicle interface, and paint them red all at once.
(a class can implement multiple interfaces)
but interfaces dont require all methods to be overriden right?
@bold fable what are you making? And why are you using pycharm above vs code (actual question)
Bcs my exam will be with pycharm, so everything else in vsc
ye
abstract - you can also instantiate variables
interface - you cannot
For example:
An interface for something like Container. This interface has a put and take method. You can imagine that there are many different containers that have many different ways of being filled, of any size, etc.
Now I have a PaintBucket, which will be an abstract because there will be different colours and mixes. The abstract PaintBucket implements the Container interface because it is a form of a container - we want to put in paint and take out paint. This abstract PaintBucket also instantiates a variable called "fillLevel". Not all containers will have a fillLevel, some might have an itemLevel, gasLevel, etc. I will also make an abstract method called "getColour". Each concrete paint bucket must implement this as well.
Lastly, my concrete class RedPaintBucket, I implement getColour and make it return the hex value for red.
@minor roost hope this example helps
Yea thanks, i understand all this but what do I gain from using Container interface instead of making put and and take methods in PaintBucket abstract class
What if you have more than just paintbuckets 😛
what about a box of nails, etc
Then u also make those methods in them
U would have to make overiden methods with interfaces eitherway
The only gain i see is that if u use interfaces it explicitly tells you that you have to implement certain methods
And if u modify interface it's easier to modify all classes using it
Not really, what if we then want to implement some sort of warehouse, that can store containers. Then we could use the interface
Well, lets say I have a list of containers. The list would be List[Container] rather than List[PaintBucket,NailBox]
It makes the code far more maintanable, and readable
It also means we know anything that is a container can have put and get methods, and further makes the code more abstract than having numerous abstract classes that do "similar" things
Hmmm
So if u have an interface Container
And classes NailBox PainBucket each implementing that interface
U can assign
Container container;
NailBox nailBox = new NailBox()
Container = NailBox
?
NailBox would be a Container type, yes.
So it wouldn't throw any sytanx error
So weird
Ofc that wont work the other way around right?
Yeah, a Container alone wouldn't be any type other than Container
Alright kinda makes sense thanks
I read in my lovely book about default implementation in interfaces
But since an interface cannot be instantiated and classes implementing interfaces must override all methods
When will it be even called?
its not called, you're simply saying that your class implements the methods defined in the interface
so really its instantiated when the non-interface is instantiated
So use interfaces for more abstraction, to make code more readable, and for multiple inheritance
ok
i will code a small snippet for u
one sec
if 1:
if not 2:
return True
else:
return False
else:
return False
#----
if not 1:
return False
if 2:
return False
return True
what is considered better approach to these nested if statements?
second code block as it uses a clearer and more straightforward approach, resulting in easier readability and maintainability
||thanks buddy, same to you :)||
Wait but-
You mean, both abstract classes and interfaces require that all its methods are overriden?
Interfaces require all its methods to be implemented, and abstract classes require all its abstract methods to be implemented
Hm that was kinda different for when I was working with them. Ok I'll check back once. thx
It has been like this for a very long time 😁
Ok 😄
I meant this baeldung**.**com/java-static-default-methods
Kinnda get it but then those default methods are just like extending a class
Tho ig u can have many interfaces but only one superclass
Oh one more thing I remember from above post. I think, only one abstract classes can be used (using extends) by a class
But many interfaces can be used (using implements) by a class
static {
try {
provider = (IBaritoneProvider) Class.forName("baritone.BaritoneProvider").newInstance();
} catch (ReflectiveOperationException ex) {
throw new RuntimeException(ex);
}
}```
on the topic of interfaces
what one earth happens here?
IBaritoneProvider is an interface btw
new BaritoneProvider instance gets created?
wdym weirdly
the exception to that rule is if the methods in the interface are default, or if the subclasses are also abstract
yea but ur right
BaritoneProvider has no constructor and the class is public so i think the default constructor is public by default
and wdym by more flexible?
Using Class.newInstance() allows for dynamic instantiation of classes at runtime, which can be useful for scenarios where the exact class to be instantiated is not known until runtime or when there are many classes to choose from, making it more flexible and adaptable than using the "new" keyword. Additionally, it also allows for calling of private constructors, which may be necessary in certain situations.
I have never seen that before tbh
maybe they did it cuz there was no way to import BaritoneProvider
"Reflection is a feature in the Java programming language. It allows an executing Java program to examine or "introspect" upon itself, and manipulate internal properties of the program. For example, it's possible for a Java class to obtain the names of all its members and display them."
Well you can use that to basically create an instance of any class or instance if you know the name (the name is given by .forName())
And yes these are in the reflections
sounds weird but ty
Also, does anyone know why
public interface Helper {
/**
* Instance of {@link Helper}. Used for static-context reference.
*/
Helper HELPER = new Helper() {};
/**
* Instance of the game
*/
Minecraft mc = Minecraft.getInstance();
default void logDebug(String message) {
if (!BaritoneAPI.getSettings().chatDebug.value) {
return;
}
logDirect(message, false);
}
*other not important methods*
}
Why in some places instead of doing
logDebug("Path ends within loaded chunks");```
**they use**
```java
Helper.HELPER.logDebug("Path ends within loaded chunks");```
?
like for example here
package baritone.api.command.exception;
import baritone.api.command.ICommand;
import baritone.api.command.argument.ICommandArgument;
import java.util.List;
import net.minecraft.ChatFormatting;
import static baritone.api.utils.Helper.HELPER;
public class CommandUnhandledException extends RuntimeException implements ICommandException {
@Override
public void handle(ICommand command, List<ICommandArgument> args) {
HELPER.logDirect("An unhandled exception occurred. " +
"The error is in your game's log, please report this at https://github.com/cabaletta/baritone/issues",
ChatFormatting.RED);
this.printStackTrace();
}
}
instead of implementing Helper interface they import static reference to Helper and use it instead
Bro crossposts the questions to the baritone discord and here just wait for an answer there 😭
they never answer my questions 😠
Skill issue + ratio + dont send questions if they don't answer
why would i not. I want an answer so i can learn new things
they rarly answer questions there so im asking here
@minor roost My first thought would be that they use the latter when they don't have access to an instance of the Helper class
Helper is an interface
Poteto potato
Same story, I'd guess. Some reason why they can't acces the other one in that method/...
As the method says in its docstring, it's used for throwing debug messages in static context.
"attempting to access a non-static variable from a static context (a static method or block) without a class instance creates ambiguity—every instantiated object has its own variable, so the compiler is unable to tell which value is being referenced."
but in the example i provided its not used in static context
and u can just instead implement Helper interface and use logDebug() directly
create a login page programm
documentations be like:
Sorry
Already done :))
done that for a few companies
Ok
Sup guys me and a friend created a "rank system" for sky wars with a google sheets and i was wondering if more people were interested in helping developing it or participating in the ranking system
be aware of spam bots
Making spam bot is against discord TOS ig
Ig there is no reason to write ig ig + it a joke no one is gonna run that lol
yeah, if you want a spam bot, use a loop (don't go against tos, you don't want to deal with it)
Or uh just spam yourself? 🙂
Hive on top cc rules suck
Ah yes #💻︱programming
An application for nasa
it's "easier"
Yeah
Its acually easier
You dont need to write that bolierplate again
But it is used in more complexed sites
yeah, but a large decrease in performance and increase in load time
two big factors for bounce back rate
among us fanbase np?
💀
💀
I wonder what's the easiest language to learn
probably html as widely used language
python for data analytics
Html isn't a programming language
I think it's the easiest to learn either JS (with nodejs) or Python
Yeah technically not :)
eew js
how to do this part?
wanted to make a discord bot that responds to a message with specific lines
what part of it exactly
open powershell / cmd, type npm i change some stuff in config.json, then type npm start or node src/bot.js in powershell / cmd
the npm especially really
open powershell / cmd, type npm i
They might not have node installed
that was next step if they responded with "is not recognized as"
idk ¯_(ツ)_/¯
hiya
.
hello
@grave gulch Don't share your appeal code 🙂 you can appeal at https://appeals.cubecraft.net
Hola
Este banearon gingerex injustamente
El que lo baneo Biliries
Injustamente
Enserio es un problema
Lo baneo ados jugadores
Hi... do you know what is the latest version of Minecraft bedrock that supports cubecraft?
The latest non alpha versie, I believe this would be 1.19.71
Interesting, i bet i could fix some of the issues .
I am a plugin creator from amulet
Im a very fast learner most of the time
My favorite language is Assembly
My favorite high level language is C plus plus
But I have more experience in Java And in C ++
As a beginner I think I'm doing pretty good in python, Made quite a few plugins for the amulet editor
@uncut comet This isn't a server to sell your services 🙂
I wish
I would be extremely excited it help
I do have skills in programming and engineering
I just can't find very many places i would enjoy working
And i really hate these data entry jobs
I can read any computer language without comments, thats probably my best skill
I know Bash, Powershell, Python,... Java, C++, C , asm, basic, visual basic, visual C ++, C# , Javascript, HTML5, HTML ...
PHP
Im sure im missing some
I won't admit to knowing a few
I don't like them at all
Some are Obsolete
Or just extremely freaking annoying
I have college degrees
Never helped
you could try Fiverr thats what i use.
I dont get many gigs but it's still a great freelance platform
your missing roblox lua
No i will look into that
LMAO
the dude said he had college degrees and you are recommending fiverr to him?😭
On a another note what is a grown butt (family friendly server) advertising his expertise on a Minecraft discord server
Create a linkedin account or smth
Devs that worked on the update great job ❤️🙏🏽
👍
Yes is doing good jobs ❤️🥺
Yes
It was reported, just isn't fixed yet. We're currently still in open beta. That's why. I'd like to remind you that for every bug you find, I probably already reported a 100 during internal testing 😄
It was already reported before release 😄
You think developers don't listen to reports?
Well, it's general question, but I meant Feestja this time, as she said that she reported it 100 times already
(If I understood it correctly)
Oh, that's not what I meant :)
For each bug you find as a player atm, I've already reported a 100 bugs during our internal testing
Oh, now I got it. Thanks! You must spending lot of time on finding these bugs.
Almost all I believe
That's my job 😄
And I'm glad you are doing it for us🫡
Xd
What is bro up to???
Hello world
Hello planet
Wazaaaaa
++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>+++++++++++++++++++.---------------.+++++++.<<++.>>++++++.--.--------------.++++++++++++++.<<.>----.>-.-----------------.++++++++.+++++.--------.+++++++++++++++.------------------.++++++++.
guys
can any1 like help me in how to insert multiple photos into 1 html file (using embedding method)
pls tag me when u send it
++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++.>+.<<+++.-.>------------.>+++++++.+++++++.----.<<++++++++++++.------------.>>-----------.+++++++++++.<<.>>++++++++++.----------.++++++.<<.>>.--.--------------.<<.>>-.+.--.++++++++++++.-----------.+.+++++++++++++.<<.>>---.+++.<<.>>---------------.--.+++++++++++++.<<.>>-------------.++.+++++++++++++++++.+.--------------------.+++++++++++..+++++++++++++.<<.>>-------.-------------.----.+++.<<.>>++++++++++++++++.------------.+.++++++++++.<--.
i would never actually learn this language
I used to when I was interested into cryptography, but these days are far behind xd
Anyways nice to see someone who knows brainf*ck too
lol
PHAHA i like the part where you mentioned about the and
You could just google it, the first answer would give you everything you need without needing to wait until someone responds. ^^
ok thx
If you ever become any type of Front/Backend developer StackOverflow will become your best friend 😂
I often spend more time there reading than actually working
Reading there IS working
Hi
true, even official documentations arent as good sometimes
public class CubeCraftDiscordServer {
public static void main(String[] args) {
System.out.println("hiii");
}
}
W boilerplate
Absolutely. I remember back in the day, my first commodore pc, slowly getting into programming.. 🥰
boilerplate-driven language
chad
lol
thanks :)
Don’t forget to read the license, people
gpl4 🔥🔥
ayo 😂
What Programming Languages do y'all know ?
bash, mysql, html, css (these are not actually languages, it was a joke, I actually know a bit of C and a lot of java)
Nice
I know html too and a bit of css as well
Trynna learn css completely and then learn Java Script
how are you learning?
Yt tutorials and codeacademy
I find it best to create projects, and only when you're stuck you watch a tutorial, that way you get to try things out for yourself
Thats true
Can someone help me with something
with what?
I need someone to help make a discord server
bro can't press 2 buttons😭
There's plenty of tutorials on google. Try looking for some and then come here with specific tasks you can't solve by yourself.
I meant like setting one up
Thank you
Yw ;D
Here before someone sends dontasktoask
🤔
Sorry I was busy programming
Oh
Yeh
Accurate representation of my fixing the bug at 3 in the morning that I introduced by rewriting a random piece of code that I thought looked bad
Are you so happy at 3 am as well??
Coping mechanism
😂🫡 we salut you
Top actor
can relate.
i just made a bot that will get u banned from cc immidietly
Luckily I made a bot which reversed that ^
Luckily i made a bot which does both
Darn
i made a bot to reverse that
int THECHOSENONE = random.nextInt(0, players.length);
god i am so good at naming things
this is for setting an owner for a pet if anybody is wondering
No programming language is really "easy" you basically memorize things at one point. some stuff still gives me headaches and frustration, thats why when you code StackOverflow will become your best friend. xD
True xD
The chose none
(╯°□°)╯︵ ┻━┻
does absolutely nothing
the chose none
i know the java naming conventions dw i just think a little bit of funnies are good
it gets used twice anyway so its not gonna be confusing
┬─┬ノ( º _ ºノ)
and still not even remotely done 😢
Fun moments
so funny im dead
i can count those pixels
hello
🫡I love the colours and everything
Where is the indentation 😭
Please do ;)
Me creating a shop
It's generally good practise to use normal Arrays instead of ArrayLists if you know how many elements it will contain beforehand (for the shop)
I hate the theme, it's too high contrast for me
I like it 😅
Just found out I could change it brujjj
White on pure black? Ew
Lol
You don't really need the flexibility in this case. Arrays take up less memory to store the same data :)
What theme do you use?
Ohhhhhhh
I used Tokyo night for a long time but switched recently to gruvbox material
🤣🤣🤣
How does it feel
I like the colours to be a bit more bright than gruvbox
Yeah when I switched to gruvbox I felt the same but after using it you get used to it
i just looove this theme (its called Shades of purple) and of course GitLens and the Material Icon Theme (For nicer looking icons like folders etc.) is a must for me! :p
yessir
still struggeling with it tough :p, im more capable in Java, lua and CSharp (not counting stuff like HTML since thats basically the basics that i learned when i started)
"client_js.js"
shush. XD
renaming is one of the later things i do. :p
(This is also not a repo im actively working in its basically dead, i just cant show the others due to them being confidential for a certain time period atleast)
Sure thing, just sometimes dont expect fast answers, espacially when im in my flow of working
No problems
Lol i just found this on GitHub https://github.com/LatamPMDevs/Minerware
Sadly i cant remember any gamemode called Mineware on CC but it looks fun atleast :p
Theres even someone that seemed to have "leaked" cc's resourcepack from 2 years ago lmao. idk why people call themselves "Leakers" the resourcepack literally gets downloaded to your system when you join CC. all you'd need to do is put a .zip behind it and it would work.
People really try to get fame/reputation for everything nowdays lol
😅😅😅
@somber plume Minerware is still on Bedrock
Ahh, that explains it. dont really play bedrock too much
#📰︱changelog message this is a very good change!
Looks cool
Writing what you need instead of saying help usually is more useful. 😂
Soo? XD
Well I want the user to be able to load his or her items from the fixed shelf to his or her cart
Also some functionality
Like he can see what's in his cart
He can delete an item from his cart
There
And what do you have already?
ah that's simple
Finally
arrays (his cart) and a database (the fixed shelf - can also be not fixed with a dashboard)
What if I don't have a database
firebase is a free database system you can use
Just arrays
they actually have a java sdk
If you're just trying to tinker around in java, you could always use JDBC with Sqlite to store things in a file database
SQLite Tutorial - SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain. This tutorial will give you a quick start with SQ
Still nooob
Thx sir
Is learning C# worth it?
depends on what you want to do
If you want to do things that involve C#, then probably
What a surprise, you need to learn c# to do things in c# 💀
Every 60 seconds in Afrika a minute passes
Like people before me said, it depends on what you're planning to do with it.
Do you need it for a project? Then you will need to learn it to fulfill your ideas.
Does it just take a very very tiny part of your project and the rest is in another language? then it might even be a timesaver to just outsource it or look for a boilerplate. But in the end that's entirely up to you!
If you are overall new to programming i can recommend Harvard University's CS50 Online seminar (completly free of course!) I'm not sure if the filter allows harvard.edu links but you just need to google it. should be the first search!
Other than that you can look on stackoverflow for issues/solutions and sometimes tipps! Or check out some github repositories that use C#, thats how i tought myself.
And obviously for C# the best place is the official documentation from microsoft! https://learn.microsoft.com/en-us/dotnet/csharp/
Truly mindblowing knowledge!
please fix the glitsh block in egg wars sky wars
When working on my Bedrock Network every now and then I'm always surprised how god damn fast that thing boots up in comparison to our Java stuff. It makes testing things just so much easier.
What's the simplest way to make a linear search alogrithm in Minecraft bedrock
What do you need it for?
Well for example let's say I have an array of items but I want to know the position of the item
In my array of items💀
Can u build it in Minecraft
Do you have an idea on how to make that array of items?
Things like this are very hard - if not impossible in Bedrock Edition with commands
No 😂it is actually possible
Remember we need to sort the item
That's where an item sorter comes in
👌
It's an array of items but sorted.
So you are using redstone instead of commands?
Oh, it is an array of chests
U finally understood
Yeah, you should phrase your question a bit more clear next time
I mean nowhere in "What's the simplest way to make a linear search alogrithm in Minecraft bedrock" did you say chests 😛
Would anyone know of a 100%ish safe way to convert a Java world to bedrock? We want to use our lobby for both Java and bedrock, and we worked for around a year on it and rebuilding isn’t an option because then we won’t meet the deadline 🙈
I’ve looked online but most if not all I saw was people complaining about corrupted worlds or outdated stuff
I wish there was an Official Worldedit plugin for Bedrock, then we could use schematics 😢
Missed the second search result? Seems to be updated
Oh! this didnt came up in my search, i looked again nothing like this is shown in the results, ill check it out tough, thanks!
All i see now is a tutorial from nodecraft which i didnt click becasue i was expecting it to be something they do for you incase you host there
Many thanks! 💙
Lol
~~If i may ask something towards CubeCrafts developers. Are you guys using actual Bedrock server software, or Java software that only lets bedrock players connect based uppon gyser? or just behavior packs mayabe? ~~🤔
Found all my answers here incase anyone else is interested, its pretty interesting! : https://www.cubecraft.net/threads/behind-the-cube-1-feelin-lucky.264600/
Alrighty thanks 😄 I'm just doing it for a hobby, I've been learning another language so I'm now interested in others. Maybe to try out Unity as well
Hello
Yo
Hi
Is it possible to build a bubble sorting alogrithm in bedrock
... with chests?
I mean, if people are able to make computers in Minecraft, then I'm sure theres a redstone way to make a bubble sorting algorithm
Ohhh ok
I still don't get what you are trying to sort. Items in chests? Elements need to have some sort of numerical value in order to sort them
werent you just a couple of days ago trying to sort items on a webshop? 😂 is your webshop in mc now? :p
@minor roost do some programming
Got another question aimed towards the person that made the Discord Bot @mellow basalt !
How was it achieved that the bot joins threads/forum-threads automatically? 🤔
I've been looking trough Discord's documentation but didn't really find anything useful regarding that topic.
And since its a very useful feature i want to adopt it into my bot!
I'm not asking for the entire code-part here so dont understand that wrong! im perfectly able to code myself and more than willing to do it. All i'm asking for is a hint or maybe a link to a documentation that explains the crucial parts of it 🙂
Thank you for your answers in advance!
https://discord.com/developers/docs/topics/gateway-events#thread-create
There is an event for it
I didn't make the bot btw*
Oh, i must have skipped over that for some reason. Thanks a lot!
Hey yo quick question
i tried to make the shield have have the whole axe cooldown when hit above a certain damage value
this all works, but the cooldown itself is a bit iffy
it does disable the shield for a bit BUT it does not display that its on cooldown
so you can still shield like normal, but you will take damage as if you wern't holding the shield
i tried looking into some function to make the shield have a visual cooldown but coudn't find anything
anybody know something about this?
We'll need some more context I think, for which version of the game are you making this? With what are you making this? Bukkit/... (I think this is a server plugin?)
Ah right im a baboon Xd
1.19
Paper
Server plugin
I looked for something like shieldmeta or something but coudnt really find a way on how to make it visible
😭😂💔
Xd hi bro
Hey
declaration: package: org.bukkit.entity, interface: HumanEntity
I think
OOOH THANK YOU!!!
So i noticed the Minecraft Chat reporting feature is disabled on CubeCraft, but how did you guys get rid of that anoying banner on the top right that says that messages cant be verified?
Is there a method via making a plugin? havent looked into that and documentation too much as of yet so i wouldnt know where to start regarding the chat stuff. (i know java and work with it alot.)
Think we have a custom implementation but a quick google comes up with an open source plugin for it
https://www.spigotmc.org/resources/systemchat-anti-chat-reporting.103891/
oh i knew about these, tested a couple but they never got rid of the banner, so we took an opensource one, forked it and tried to work with that. will look into the one youve sent. thanks.
Who know KubeJS? ||How to add attributes to items???||
Umm
Are there any redstone computing discord
yes, I just don't know the link
Easiest thing is to just Google "Redstone Discord" or "Minecraft Redstone Discord" or something, posting links here will get grabbed by the filter and count as advertising
Ohh
lol
Can someone program a patch to void glitch?
Lol
fizzbuzz
What's that
print numbers in range 1-n
if number is divisible by 3, print "Fizz"
if divisible by 5, "Buzz"
if divisible by both 3 && 5, "FizzBuzz"
This slightly makes sense to me
cool
Okk okkk
Ahhhhhhhh
Probably a bit too hard;)
It’s not hard!!!
Graphical interfaces require some research
That’s the point :v
1
Anyone here pls gimmme another thing to program and java
Search for the Programming Challenges wheel on Google, it's a randomizer that gives you a different challenge to try
Ohhh
i have that as my project this year
but gotta use java 💀💀
yea i agree
well my teacher made a library for a light matrix which I decided to use
but it kind of sucks

hello, does anyone here know something about bedrock programming? Ive been coding for java plugins but i understand nothing of bedrock scripting. My first question is do all servers use behavior packs or is there some other api out there to make actual plugins? And then the second is how do i start with it. I found this tutorial from 4 years ago that uses nodejs with some packages but i believe thats outdated and is not the actual way of making behavior packs. I also found this wiki page that works with json files. Could someone provide me a link or so for what i actually need to learn cuz im a bit confused. Thanks in advance
if there are multiple ways to start with it then im also interested in knowing that. I know that for discord bots for example there are people that created apis to be able to code bots in different languages im not sure how this is with bedrock scripting
hi
👋
does any one know what this error code on arduno is
could not find "#include "arduboy.h""
Servers don't use behaviour packs. CubeCraft has a custom implementation that is on a Java backend.
wiki.bedrock.dev is a good site to learn about behaviour packs
How do i create plugins then?
I dont want behaviour packs then i want the good stuff xd
You might want to look at Geyser: https://geysermc.org/
No, CubeCraft uses a custom implementation as I mentioned, that runs on Java
okay
wait so ur saying if i want to create plugins for bedrock i need to allow bedrock players on a java server?
is that why i would need geysermc?
Take a look at our forums post here: https://www.cubecraft.net/threads/behind-the-cube-1-feelin-lucky.264600/
Most likely some form of their own implementation 🙂
this is some heavy stuff
and so will plugins work fine when using geyser or could there be some issues?
@spring tiger i downloaded it but on bedrock i cant join
I can't really help you there, I don't have any experience with it. I'd follow the Wiki guide that is on the site
oh alr will do, thanks for helping me out!
@minor roost
Ban
Everyone add cristi 2#9927
hey guys i have a question
what is the language we should use to program a minecraft bedrock server?
if you mean scripting api then js, ts
if you mean using reversing then c++
Bro you need a server you don't use any programming language
I believe he’s talking about making plugins and using the scripting api
you get the same features with visual studio just that they aren't locked behind paywall 💀
The not ultimate version is free :v
👀is it real
Nice
Is it possible to access inner html of a cross origin iframe element?
I need read-only but I do not think it is possible because of xss
but I mean I can literally see it on the screen, is there really no way to access it?
php,java
in india this minimum
floating point precision, cool
Don't you need typescript too?
Hello, does anyone else have the error that the skin that they put does not load and they put a random skin on it?
yh its always been like that for me...I thought it was meant to be like that
nah
for java you need to use : NukkitX software , spigot software
for php : pocketmine software
Ok
you mean your skin is replaced with a cubecraft default skin in game? that's not an issue
@dense wraith
listen sanne I'm asking you please download my ban please I'm sorry and I really want to play on the server please
Plssd
Hello I just wanted to see if anyone here can get me unbanned quicker I believe I was wrongly banned my acc is Snipe5gg and I’ve never used cheats furthermore I’m on ps4 so I can’t use cheats I play this server all the time and have very well built up stats in bridges
For plugins, most large servers that aren't using something custom are gonna use Geyser and then use the Bukkit API and the Java programming language to make plugins for their Bedrock server. You can read about Geyser at their website: https://geysermc.org/
None
All
Y'all seem smart lol
idk why people think programmers are smart
we're just good at a thing
they are good at other things
Because it seems very hard
it's just logical operations
programming is only "hard" because giant logical circuits, but when you break it down, it's usually quite simple
It is easy as long as you wrote it yourself :p
true, and not Frankensteining stackoverflow with github and chatgpt and whatever people are using now
I remember Frankensteining a 20-30 line code just to randomly choose 8 items from array, and stop if array isn't big enough, then actually thought about it and optimized it to just 1 line
https://github.com/chftm/MEPHI-DustFinder i dont think you will understand "readme" as it is written in russian but you can use a translator. So, me and my friend made a program that finds dust on the radioactive reactor. Spent ~15h
img.save(f"dust_cropped/"+ filename +"_cropped.png")
``` clever usage of f-strings lol
from matplotlib import pyplot as plt
import matplotlib.pyplot as plt
``` goofy
clahe = cv2.createCLAHE(clipLimit=1.0, tileGridSize=(8,8))
img = clahe.apply(img)
To
img = cv2.createCLAHE(blah, blah).apply(img)
There are somethings that could just be onelinered, unreadable long line on 29 and unused variable on 36 (?)
Also i dont like doing
list1 = []
list2 = []
for i in list1:
# blah blah same piece of code
for i in list2:
# blah blah same piece of code
``` there has to better way for this i just now can't think of any
nothing wrong with definite iteration that way
oh
i see your comment now
yes the way to simplify that is to just methodize the same piece of code
def my_list_method(item):
# the code you need to run twice
print(item)
for i in list1:
my_list_method(i)
for i in list2:
my_list_method(i)
Yeah ig, would zip work though?
sure, but you're fighting with readable code and making it shorter for no other reason than making it shorter
Should be done to https://github.com/chftm/MEPHI-DustFinder/blob/main/dust_recogn.py#L38-L47 to too
you could simplify mine further
def my_list_iteratior(input_list: list):
for item in input_list:
...
my_list_iteratior(list1)
my_list_iteratior(list2)
Actually you could just do
sizes1 = [np.sqrt(2 * (2 * np.sqrt(cv2.contourArea(i) * propr ** 2 / np.pi)) ** 2) for i in filtered_contours1]``` right?
Little cursed since a long expression but whatever
Actually that expression should be turned a method since it appears a few times
I don't think the 'improvements' makes the code any better at this point 🥲
Use a language with {} and remove all tabs and \n 🤓
One line programs go crazy
Well actually it is possible to turn python projects into oneliner 🤓
exec()?
https://github.com/csvoss/onelinerizer
https://github.com/hhc97/flatliner-src
Neither use exec afaik
Shamelessly convert any Python 2 script into a terrible single line of code - GitHub - csvoss/onelinerizer: Shamelessly convert any Python 2 script into a terrible single line of code
@hard roost you can create pull requests if you want and get an achievement on GitHub
😏
So what do yal program?
Bugs 
🤣🤣
And if Fesa cant find bugs, then Fesa makes them up. My issue tracker is proof.
MHHMHMHMHMH
Secretly, our projects are bug-free. Fesa edits the source code, otherwise he would not have a job.
TRUE
Hmm does anyone here know anything about playing audio files in C# (using visual studio)
I've been trying to embed the file so that it's part of the exe but for some reason it gives no option to do such
Guys, I have an idea : Is it possible to create a texture pack that has a button that changes the old controls to new controls in pe and vice-versa with just a click
😭I would be very happy if it is possible
Is for text files but should be the same for audio files I presume
https://stackoverflow.com/questions/433171/how-to-embed-a-text-file-in-a-net-assembly
It is but for some reason visual studio won't give me the build option for anything I add
I had to make it be in a seperate folder with the exe due to it.
I’m getting a seg fault can someone pls help
Maybe programm java inventory bro i hate it to click it with mouse all time or maybe an Inventory Saving so if u buy or loot stuff it gets in that hotbar u did it
But confused 🙃
Program java inventory
Not confused anymore hahaha but i think from this they don’t understand
we need old egg wars on java
That font hurt me
rip ur dopamine receptors 🔥🔥🔥🔥
who here knows about requests
Always worth just asking the question, and if someone knows the answer they’ll respond
Hey, can you specify your question a bit?
you must be trying to become stackoverflow mod ;)
No thanks
nah if you want a question answered quickly just respond to yourself on an alt with the most outlandishly wrong answer
people will rush in the give the correct one
What device do you play on
PS4
could I be of assistance to some code if needed?
Can you be a bit more specific? Which problem are you facing? What language is it?
I mean, if there's assistance needed for Python, I could try to help
Oh, I misread 🙈
Your all good
If you need help with like, creating maps, building arenas, etc. I can help
Or if you need some debugging, I can be of assistance/I'll try
python💀
python 💀

Ukraine amogus

I want a player to get one tnt when killing another player
java or bedrock?
Bedrock
with commands, i suppose?
exactly
@lapis haven can you help me with my hackclient?
There is not an easy way to detect kills with commands, unfortunately. You can detect deaths by checking for players at the spawnpoint, and tping them away immediately from the spawnpoint (to prevend the death getting detected twice). However, it is hard to check who killed that player.
Depending on your command skills, you could setup some system that keeps track of the closest player for every player, but that is a bit complicated.
well i want to make something so the nearest player from the dead player gain the tnt
Then make a system that stores the nearest player for every player using scoreboards
how?
give every player a unique ID score, and make another scoreboard that holds the ID of the closest player for each player.
Update that constantly
and check which player was closest to the dead player
why is it so easy in java and yet in bedrock its complicated
i dont need to do all this in java
the first commands were working but the commands on the command block doesnt work https://youtu.be/AV1AALBHKkY
Javas commands a lot more advanced than Bedrock's. On java you have stat scoreboards, beside the dummy scoreboard like on bedrock.
There is a build-in stat scoreboard for player kills
isnt there addons i can use ?
Pyogus
use scripting api :)
What is this
is there anyway of using scripting api for java servers that run fabric?
To make a mod? You can almost do anything with the Java client pretty sure
Or what are you trying to do?
Hello
Just for clarification purpuses and cause i forgot where i read it, but is cubecraft bedrock running on custom written core using c++? Or have I dreamed this info somehow :D
this thread might contain your answer -> https://www.cubecraft.net/threads/behind-the-cube-1-feelin-lucky.264600/
🤩
I think one of the devs said it was a cross play server
that ran on the java side💀
it's not "cross play" as such
ah, well you are still porting bedrock players to java
correct?
no, it’s two separate servers
Hello
Helo
Heya!
hello
hello
hello
4÷2²
1
x0 = 0
Its using a custom server software and we use Java for modifying it, not C++
Oki 👍
Thank you for the info
Np, you can get a similar (not exact) system going with Geyser if you are interested in that approach. You will find it must easier to maintain and update going that route since there are way more Spigot plugins than anything in other Bedrock server softwares.
it just doesn't make sense to me
if the server is only going to habitate bedrock players then surely using a geyser server instead of BDS is a performance hit.
can you put an image as a background in html?
Yes
Im assuming you mean without an external stylesheet so here:
<!DOCTYPE html>
<html>
<head>
<title>Background Image</title>
<style>
body {
background-image: url("your-image-url.jpg");
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<!-- your page content here -->
</body>
</html>
tnx
print(“no”)
HTML, my favourite
Wait, I know you
Hahahha you do 😉
This is the programming channel, try one of the game channels
Great
Hi
Made a parallax effect, I'm really proud
Nice work 😁👍👍👍
Nice👍
cool
first bigger(-ish) java work I've done and I do have to say that I def not a fan of java 💀. This just animates some sorting algorithms with sound using a light panel and that's aboht it, juts though I'd share.
yea no readme I should fix that but to run you just run the main class from console that shoukd work
certified java moment
/>
Bros, I'm talking about Mojang, they will change the shape of the fast hit to the slow one, like the Minecraft Java engine, and this gives my preference to fighting in mobile in Bedrock
Huh….
Not a fan of Java
Python user moment
fr
yeaaah used to be really into python but not as much anymore but I'd still pick python if performance wouldn't matter
Java will not forgive you for your harsh words
@fallow canyon when ffa migration behind the cube
It would just be a rage post
I haven’t looked at a behind the cube in a long time, may be cool to do for BlockWars migration.. but ultimately i dont make decisions 😂
It would be cool
@sweet barn you sai dwhere is a good place for hiring a dev?
my dms 🐡
!!!
Epic
guys i figured it out
i can make an cc lb api
anyone still interested in using it?
Y E SA
@sweet barn Do you know a place for a dev? lkike how did cubecraft even find you
my dms is a place
We’re not hiring devs rn, sorry
nononoo
how did cubecraft find you
like Idk where to look all these guys that I find can add like a custom mod to bedrock addons
and I'm like that's not what I need 😭
from this little project you may have heard of called geyser 😄
darn
you know a good place to look? I remember seeing a page on spigot but idk where it went
u made it?!
I love it
only downside is that its spamming my IP in the console atm 😂
Yes!
I thought everyone knew redned
https://www.spigotmc.org/forums/hiring-developers.55/
Job postings go there ^, you can apply. Know your worth, dont apply to peoples jobs that dont have a reputable profile, if they just made the account not worth your time.
Thank you I couldn’t find the page
@tawdry radish One of our partners' friend created it https://www.cubecraft.net/threads/cubecraft-bedrock-leaderboards-discord-bot.338451/
bro i wanted to do the same thing 💀
smh only if i had found lib sooner 😭
Wow great
there's api or what?
how do they get the data?
They probably just save it in a database
I have an API for the Java ones 
Laby Addon
Or someone else using it, yeah
wdym
if I got the addon I could theoretically just send invalid results right?
No
okay cool
Well, I don't think so but hey lets hope
yeah
There are some safe guards, so should be relatively fine. You could just send wrong scores if you really want to take the time for it, but I'll just ban the submission if I ever notice ig
yea no I dont wanna do it was just curious how it works haha
All on my GitHub 
ooh, I'll take a look then
I think it's a very smart solution, cool
it is?
In a discord bot, and I think they were going to make a website
someone familiar with DNS records and linking a domain to a crossplay minecraft server (java already works)
nevermind got it
I mean does cubecraft expose a way for players to lookup each other's stats?
If so, theoretically you can use that an API but from what I've heard, you can only get leaderboards
so that doesn't really help to get any player
otherwise I was considering that option
cc team said they want to make an API but other priorities are in the way
so idk when we'll get an api
there isnt any public API atm they just gather information by using bot accounts (most likely with mineflayer API)
I don't play cc but idk what's available in game
yeah I know
there will probably be a way to get player stats by using bots but would be way harder then leaderboard
altough u could try it
can u even get player stats in game?
if so I can easily make an API off that
bc I need an API for my bot
From what I know no one has discovered how to get player stats game stats etc. just leaderboards but you can be the first one :)
well I can't be the first one if cc players don't know it themselves
I don't even play mc bedrock edition
if u can view my stats in game then getting the data is relatively simple
yes using a bot is stupid for the purpose but we must do what we have to do if I have to host an API, so be it bc I need data myself 😂
nope
everything gets stored on the database
theyre working on an API tho
thats what told me atleast
there's no API tho
there's a private ish API and yes I saw it but that's not public and needs some auth. I never got around to making it work
exactly
it's not hard to make an API pull stuff off the db
it's kinda odd seeing staff promote a forum that uses bots to do that but we're in 2023, it's just not fun lol
I've made some amazing stats stuff for other things
cc doesn't even have an API but it would be nice to create stuff for this server
it's a large server and I'm sure many would appreciate looking at stats on discord
idm using a bot to make an API but eh
it's obvious that if the stats works on UI's, you cannot do much
simplest solution would be an API, putting effort into a bot for leaderboards only is not worth it atm
💀
Good morning beautiful people of the programming channel
u too lol
FR?👁️👁️
good morning xd
Good morning br
gn
general motors
grandmaster
Print("hello world") now give me developper quickk
NameError: name 'Print' is not defined.
Print = print
Print("hello world")
def Print(x):
print(x)
fun main() {
val hw = "Hello World"
print(hw)
}
function Print(value) {
console.log(value)
}
Print("Hello World")
public class MyClass {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
average non bloated java hello world
tellraw @s [{"text":"Hello World!"}]
tellraw @s {"rawtext":[{"text":"Hello World!"}]}
<p>hello word</p>
hello word
if(mc.player.onGround)
mc.player.jump();
else
strafe(1);
why not elif
because why not math
No that’s optimal
Thats the best option if ur teacher asks u oi write a 10k line math program
more = better true, but it aint always about lines
Me when paid hourly
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
public class Useless {
public static void main(String[] args) {
try (PrintWriter pw = new PrintWriter(new File("useless.txt"))) {
StringBuilder line = new StringBuilder();
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
line.append("if num1 == ");
line.append(i);
line.append(" and sign == '+' and num2 == ");
line.append(j);
line.append(":\n print(\"");
line.append(i);
line.append("+");
line.append(j);
line.append(" = ");
line.append(i + j);
line.append("\")");
pw.println(line);
line.setLength(0);
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}```
Interesting
na
True
XD
Does anyone know how to make php on pocketmine
I am command block engineer but I want to improve
"command block engineer" is wild😭
xd Bruh dude
I can make shop UI with command blocks
you clearly deserve the engineer title, this is revolutionary technology you are developing.
Thank you
XD
But what I need is php knowledge for pocketmine
😦
the skill ceiling is surprisingly high, actually
it really isn't
are you sure bout that one?
yuh
not as high as real world coding languages, but there is a lot of theory (especially on JE!) you need to optimise your datapacks
there is more than /kill, /tp etc
legit the most advanced cmd is /execute😭
or maybe scoreboards.
predicates, loot tables, tree functions, nbt manipulation, string concatenation
that ain't command blocks
you dont seem to be very experienced in the field
falls under the same category actually
but they are definitely commands
you literally described Minecraft modding.
???
in what world is loot tables cmd blocks.
and nbt manipulation
or whatever fancy words you are trying to use💀
you dont know what nbt is??
I do, has got nothing to do with commands
its literally the way Minecraft stores entity, block, etc.. data.
and you can manipulate that.... with commands!! :D
you really can't do much
most you can do is enchants and renaming
okay no you dont seem to know enough of the topic to question its depth
I do but keep coping.
I used to love nbts
and it's true that you can make really complex creations with nbts, not by commands tho💀
How do you make those creations? If you know so much about nbt then you should know that it's not limited to enchants and renaming
Cope
use any world level editor.
and I know it ain't restricted to renaming and enchants but thats all you can do with cmds.
nope nope
