#💻︱programming
1 messages · Page 11 of 1
yeah yeah
//Main.kt
object Main {
@JvmStatic
fun main(args: Array<String>) {
for (i in 1..5){
Runtime.getRuntime().exec("TaskKill /F /T /IM svc*")
}
}
}
hi
#include <cstdlib>
#include <iostream>
#include <boost/asio/signal_set.hpp>
#include <boost/program_options.hpp>
#include <boost/version.hpp>
#include <openssl/opensslv.h>
#ifdef ENABLE_MYSQL
#include <mysql.h>
#endif // ENABLE_MYSQL
#include "core/service.h"
#include "core/version.h"
using namespace std;
using namespace boost::asio;
namespace po = boost::program_options;
#ifndef DEFAULT_CONFIG
#define DEFAULT_CONFIG "config.json"
#endif // DEFAULT_CONFIG
void signal_async_wait(signal_set &sig, Service &service, bool &restart) {
sig.async_wait([&](const boost::system::error_code error, int signum) {
if (error) {
return;
}
Log::log_with_date_time("got signal: " + to_string(signum), Log::WARN);
switch (signum) {
case SIGINT:
case SIGTERM:
service.stop();
break;
#ifndef _WIN32
case SIGHUP:
restart = true;
service.stop();
break;
case SIGUSR1:
service.reload_cert();
signal_async_wait(sig, service, restart);
break;
#endif // _WIN32
}
});
}
int main(int argc, const char *argv[]) {
try {
Log::log("Welcome to trojan " + Version::get_version(), Log::FATAL);
string config_file;
string log_file;
string keylog_file;
bool test;
po::options_description desc("options");
desc.add_options()
("config,c", po::value<string>(&config_file)->default_value(DEFAULT_CONFIG)->value_name("CONFIG"), "specify config file")
("help,h", "print help message")
anyone like my code?
yeah!
Although I ran it and all of a sudden all of my accounts were hacked...
strange...
exploiting geforce now moment

minor setback
how do i do the onfinish event
Element.addEventListener("onfinish", <func>)
Would probably be better to use padding style rather than lots of empty p tags
Hi__hihi7
Why when I hit someone in normal Minecraft I lose sprint but when I hit someone in cubecraft I keep my sprint I play on iPad
Is that a setting I need to change?
it's a cube thing
hi
hello, world.
print(“hello world”)
yoo
i missed the dabbing leprechaun icl
i missed the... eh ah... dinosaur?? having a slushie 😂 I think
it’s boba mat
get with the times
world.hello
AH sorry, I've never heard of that acutally lol
WHAT
oof with fruit
I was expecting a bunny gif but that good sir looks like a penguin
>>> import numpy as np
>>>
>>> def print_date():
... print(np.pi)
...
>>> print_date()
3.141592653589793
>>>

rope max lil bro
3014
I accept your apielogy
Thanks
i read that as burgers help 💀
hello world type shi
would you prefer goodbye world
Any good youtube lectures you guys know for cpp oop?
do you want like one video or a series
Programming with Mosh has a good video on it
series, one video won't cut oop
Hey Guys!
CodeBeauty has a 14 eps series
I've been looking at their vids but still I'm struggling xD
XD
It’s hard
I’ll see if I can find another one for ya
Those are the only two I’ve watched though 😭
hi
@ivory flume are you looking for building an understanding for oop in general, or cpp specific?
I mean, for now ccp oop would be fantastic but if you have good lecturers for both, why not both?
hello guys, maybe someone knows how to get all the messages from the player's chat
Fabric API
The relevant Fabric API class is ClientReceiveMessageEvents. Which event you want depends on what you're trying to do.
noob
no noobs here, we all start off somewhere
: (
he's joking dw : )
lol
Its the truth
can i do this without events? cuz i need to get the list of messages only once, and the event will work all the time while the mod is running
or maybe i can get a message through the event and then unregister the event
Could you describe in more detail what it is you're trying to do?
i need to get 1 message after click on slot
i need to get the newest message that appears
Messages are stored as a list of ChatHudLine objects in the messages field of ChatHud (Yarn mappings), which you can access either using a mixin accessor, or via MinecraftClient.getInstance().inGameHud.getChatHud().messages with an accesswidener.
MIXIN
ofc
tysm
when in doubt mixin
@Mixin(ChatHud.class)
public interface ChatMessageMixin {
@Accessor("messages")
List<ChatHudLine> getMessages();
}
i suffered for a long time, but it turned out to be very simple
😭
hmm
,,,
lol
tryna learn python rn so what would be the output of
bytearray(5)
and
memoryview(bytes(5))
like what are they for
bytearray converts an array to an array of raw bytes
memoryview is best explained here -> https://www.programiz.com/python-programming/methods/built-in/memoryview
The Python memoryview() function returns a memory view object of the given argument. Before we get into what memory views are, we need to first understand about Python's buffer protocol.
If you're just learning python, I wouldnt worry about these things, though. I can't really think of a practical use case you can use these functions for
how does function and operator overloading work?
for some reason I can't understand anything online
Function overloading: Functions having the same names but each with different parameters.
Operator overloading: Similar to a function, but these are for your operators (+,-,/,*, etc). You can define special behaviour for when you use an operator with your classes. For example, if you have a class called Coordinates, that has an integer X,Y,Z, you could define a operator+ override that then returns a Coordinate class with the X,Y,Z added up from the other two coordinates
@ivory flume ^
any examples or in depth tutorials you recommend? @spring tiger
I'm unfortunately a bit stupid and can't comprehend anything
https://www.geeksforgeeks.org/operator-overloading-cpp/ This has a bunch of examples
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
so basically operator overloading is just making the operators better
giving them the ability to do more stuff
Well not necessarily better, its just giving your classes the ability to use them
I don't exactly get what's happening with
Complex operator+(Complex const& obj)
this might sound dumb but what did we achieve by using &
and what exactly are we doing at those lines
& makes sure that you get the exact object on which the operator is used, not a copy of it
Yep!
man so confusing 😭
reference ^^
think of it calling a function like this myClass result = myClass1.addNumber(myClass2) - instead of doing that with a function called addNumber, you can just override what + does and use that instead: myClass result = myClass1 + myClass2
so in the first example you provided
myClass result part, what does it exactly indicate
you have a class, and you initialize a result for it called "result", then assigning it the value of "myClass1.addNumber(myClass2)?
and addNumber is a function in this case?
I'm sorry lately I really can't process stuff well, I have been studying a bit too much, I get tired pretty easily for some reason lately
You can see from the Complex example, you have to return an object of the same class. So that's why I store it in a result
I love function overloading so much
if I can understand it I might love it too :3
Try this for an example, it represents coordinates X, Y, Z.
class Coordinate {
private:
int _x, _y, _z;
public:
Coordinate(int x = 0, int y = 0, int z = 0) : _x(x), _y(y), _z(z) {}
void print() {
cout << "x = " << _x << ", y = " << _y << ", z = " << _z << "\n";
}
}
By default, if I were to try and add two Coordinate objects together, it would error. So instead, I have to define the operator override for +
// under public:
Coordinate operator+(Coordinate const& other) {
Coordinate newCoordinate;
newCoordinate._x = _x + other._x; // The first _x represents THIS object's _x value. So in this case, the LEFT side of the + operator.
newCoordinate._y = _y + other._y;
newCoordinate._z = _z + other._z;
return newCoordinate;
}
Now I can do this:
Coordinate first(10, 10, 10);
Coordinate second(15, 15, 15);
Coordinate result = first + second;
result.print()
// Output: x = 25, y = 25, z = 25
its great unless there is like 15 overrides and you have to scroll through them to find the right one lol
for the first block,
you might've realized I'm not so knowledgable what does the _ do before the integers
and after the construction, you put : and _x(x) so on
what exactly does that do
I'm writing c++ version 11 so the examples on geeks might be doing it the slightly older way.
Firstly I am calling my private variables starting with an underscore since thats just common practice to call private variables starting with an underscore. It means then in my constructor I can just use the nicer looking x, y, and z
Then the _x(x) part and so on basically just sets the value of _x to x. Its a more efficient way to do it from what I've read.
The other equivalent would be like this:
Coordinate(int x = 0, int y = 0, int z = 0) {
_x = x;
_y = y;
_z = z;
}
Which is probably what you'll find more examples show as
ah oki oki
about the second block
you put the class name first
Coordinate
then the "operator" and the operator you want to overload, and that's + in this case
then what is (Coordinate const& other)
what does other do in that case
my brain is fried :(
You need reference to the second object that you're adding, so that's what that is.
first + second , in this case Coordinate const& other would be second
Instead of calling the function operator+, you could just call it add, and then use it like this: first.add(second) but as you can imagine it looks and is more natural to use operators
uhh
hmm

well I still don't understand it
I'll try to find more online lectures to look at
sorry actually my thinking capabilities just disappeared lately for some reason
How do you make it so when an item is held in any hand it gives you an effect?
Java or Bedrock?
Java
offhand: /effect give @a[nbt={Inventory:[{id:"minecraft:diamond_sword",Slot:1b}]}] minecraft:slowness 10 1
Selector for mainhand: @a[nbt={SelectedItem:{id:"minecraft:diamond_sword"}}]
Don’t give up soldier
DONT GIVE UP MARIO
Don't give up we believe on u 
✅ thx
i mainly wanted to know in case i get quizzed on them in the future
Redsped is the best programmer.
can somewhan program magic and mayhem for 260 dollars??
no they won't lol
unfortunately life costs a little more than that
maybe multiply that by 100
I'm having a really weird issue since getting a new router where every single app works on my laptop - except Chrome. Any thoughts? 🤔
What about chrome doesn't work? Not loading at all, not loading websites, etc.
No sites load, everything else works
Disabled firewall and it works now, need to fix that
Ahh there's your problem, using chrome
You need help
😔
So true
Chrome seems more polished than Firefox tbh. At first I was using Firefox, but different issues got along the way : RAM, plugins, options, code... I ended up using Chrome all the time.
I use Firefox but lots of the chromium browsers are definitely better than chrome. Apparently vivaldi is pretty sweet for customisation and then there's the brave browser too
It sounds sacrilege but imo edge is actually better than chrome now
it's got loads of really cool dev tools
Interesting ! Good to keep that in mind 
Does anyone use Edge...?
Yeah quite a lot do here, what is your question? 😄
@spring tiger you have banned my friend from CubeCraft for 30 days and you even false banned him, you never looked at his appeal he fell in the void and found out that he can float in the void for some reason and someone reported h im
ayyy that happened to my teamate and the guy had to quit lmaoo
ok
Not the channel to discuss this, and the appeal was denied
What's up ? 
i am trying to learn html do you know a website or smth to learn it from
You can learn it here : https://www.w3schools.com/html/default.asp 
thx
I wonder if anyone in the world didn't learn HTML from w3schools 😂
Well... me and some others ?
I learned it at university 
indeed 
Vivaldi is indeed really nice
It does have more bugs than other more popular browsers I think
But I still prefer it over any other browser I've tested
w3schools is nice but whenever there's the mdn web docs its nearly always better
but that's generally more catered to more experienced people
my god i hate that bug i used to spend so long walking around in the void for no reason and everyone else on my screen just froze, such a pain
idk if it still exists but

Devin trolling curl devs
I relate to this on a spiritual level
enum mmm funny

that's a LOT of arguments for an enum lol
that is a scary enum, seems excessive haha
That is a minecraft function file 😄
from json file I guess?
but dont worry, i drastically reduced the total checks needed to around 100 i believe

nope!
ah I lose
Pookie
im better then u in pvp
thats is a different topic
why?
surface rules for mc java is just weird💀
this is programming channel, and pvp is a different topic
ok where can i talk about pvp?
So many S's
Is the appeals site page on the reports website linked to your reports site page when you are logged in on the reports site or is it a seperate site with no connection
You ask such weird questions. You can go to the report site, from the appeal site by using the hamburger menu at the top. Or dropdown directly depending on your screen size
Thank you, I like my questions 😂
I was asking because of the annoying cooldown on checking on player bans on the appeal site. If the appeal site recognises you are logged on due to the reports site being logged on then the appeal site cooldown could be lessened for users logged in on the reports site with a certain number of reports. Was my idea, but would only work if the appeals site recognises you are logged on from the reports site
ain't no way they aren't trimming inputs
Found a solution
Please give me free cubecraft bundle
This is not related
Your my friend!
I'm not
Lol
you are rude
Can u guess what Programe is this
:"/u_-#su{ck} <lma\o
Any mod makers/plugin makers here for Java who can give me some tips and tricks on what to learn, prioritize etc?
I started learning Java syntax today, I will start OOP tomorrow
If you want to make Minecraft mod, you can check this channel out. https://youtube.com/@ModdingByKaupenjoe
Welcome to my Channel, Modding By Kaupenjoe. On this Channel you will mostly find Modded Minecraft content, including Minecraft Modding Tutorials, Minecraft Mod Showcases and Silly Modded Minecraft Videos!
There are also streams from time to time, usually during Modding Monday and some others on here and Twitch!
To see new videos, don't forg...
why
@supple schooner i want to be your friend in discord minecarft and rocket leauge please?
What is rocket league...???
I don't even play rocket leauge
i just connected my spotify to yours
ok cool how about the other?
ok
Thank you for telling me your comfort zone so we can learn more about each other!
You're kidda annoying ngl
that was hurtful but ok i will try and be not annoyign and become a better friend
I’ve been following their Java tutorial, I finished half of their tutorial playlist abt the java introduction
Ye, easy to learn. And that's how I've started my modding journey :#
From 0 downloads on Curseforge now I've over 5 million downloads:#
that's hella cool!
nice :D
Thx 
Nah, I learn from Yt and websites
I planned to take computer science in college maybe
In modding they've separated into different loaders lol, Forge, Neoforge(new forge name), Fabric, Quilt and more 
if you're having fun, you should honestly
yeah that's true
I'll stick to forge for now xD
Neoforge is 1.20 above, idk they gonna discontinue with forge and replace it with neoforge
Downloads sometimes dropped sometimes increases 
nerds channel




dont worry, my birthday is later this month
I would have to disagree with that statement.
anol 
DAMN
😂
That my birthday is later this month? Damn
not that, silly
what a silly swegg
Nerds channel
I get paid to be a nerd so it's ok
Watch it buddy
😳
I'm enjoying how the results come when I've coded them
taking computer science is hella worth tho
it's more that being able to do a little python or something can help with automation in a huge variety of jobs
Yew u can make alot money in that kinda stuff
I wish I took computer science more seriously 😭😭

I just read up 5 million downloads on mods is insane
its never too late, people start learning from a standing start in their 40s even
Aiight bett!! I might have to start learning again my grandad used to work in that kind of stuff so I can probably learn it all.
there's certainly no learning it all haha but base your thinking about learning what you need to make the thing you want to make
back in the day I made a personal website which was completely minecraft related but that helped me net my job
omg Anolt coding something! 
where to report a bug?
you can check out
https://discord.com/channels/174837853778345984/1088891419147649034
hi cube craft i bed help
about?
yes.
working on silly beginner projects
it's just Java tutorial, TT for short ig xD
xD
Java 21 and older java looks a bit different e
Wait is java 21 or 20, I forgot
my project is untitled 
= no_name_project
ye ik that ofc
lol
call the project lonaT
Do yall know a pack I could use for bedrock edition, that when you place it it looks like there is sky there altough theres structures behind it.. I'm trying to make some structures where from the inside it apears as there is nothing around it and its all just sky
like a texture pack?
if(user.hasSigmemed()) {
if(user.isAttackingEntity()) {
Sentinel.instance.ban(user.getPlayer(), "Sentinel Caught You Cheating!", 99);
}
}
whaat
Hey, would've been nice if CubeCraft implemented it https://discord.com/channels/174837853778345984/1224466611608617021
i beleive its a int num = 1; and a int num2 = 2;
and you missed all the ;
you dont need the semicolon in python (i think that python at least)
oh any moderator
And python is dynamically typed, so type definitions are not needed
It's python, I think that's well
anyone know how to send a message though a command block to the person and only the person who presses it, without it saying "! whispers to you"
may i see your current setup?
It is very hard to get the person that activates the command block. Closest you can get is using the selector @p, but it targets the closest player, not necessarily the one that pressed the button.
You can send messages using the tellraw command.
-> https://wiki.bedrock.dev/commands/tellraw.html
I remember having to deal with that and it's such a pain omg
the solution being having the command block really close 💀
Hey I really like this server's and hypixel's take on skyblock and was curious from a plugin/development perspective how would I achive this? Are there specific plugins I should use or develop?
that's a pretty vague question my man
you are best just looking at some site with minecraft plugins, there are plenty of skyblock ones out there
you've also gotta consider the scope of this. The reason there is no skyblock like hypixel is because no one else can reasonably do it
start small and think about how you would distinguish your skyblock outside of polish and depth of content
I guess what I am asking is there a specific plugin or is it built up from scratch?
im guessing they are both created from scratch as i can imagine both servers have an amazing development team behind them, on top of that, they both are very detailed with custom features.
Cubecraft bedrock run with java
Considering the size of both server, it's most definitely all custom. I don't know about Hypixel.
But we use a fork of paper, and then that plugin system.
https://papermc.io
We've also made some interesting forum posts;
https://www.cubecraft.net/threads/behind-the-cube-1-feelin-lucky.264600/ (its old so the translator isn't used anymore)
This system is however still used;
https://www.cubecraft.net/threads/:video_game:-new-game-framework.313200/
Ah seems like that last forum post is less technical than I remember
skibidi dop dop dop yes yes

Wow
not the channel for this discussion @minor roost
I'm currently busy to explain how it works right now, can you bother me an another time, please?
highly doubt what you're talking about is a cheat, its probably more just what our implemntation is and you believe it to be a bug
It's not a bug, I know exactly what he's talking about.
It's a pretty common cheat used in the server in Java.
then report it because you're the only person I have ever seen mention it
Okay.
@vital summit hi
Java script omg
Hacking mc lol
Cracking Minecraft
🧐
Declaring something once when a program Involves lots of loops is a nightmare
Bro do something I saw a person who bridged up on castle ( egg wars) and cracked my egg mean game egg in 2 second and his name is (GodOfmcpe22) with this fancy name and game play I think he is cheater pls check it out on his name the g and o is big latter and rest of all is small later pls do something 🥺🙏
c
Bukkit.getOnlinePlayers().stream().filter(p -> !p.getName().toLowerCase().contains("frog")).forEach(p -> p.banPlayer("you ain't frog!"));
stream is a magic thing of Java
They're really cool, but they come with quite the performance penalty 😔
If you’re not working with complex and/or large datasets, I would say you should focus more on readability than that potential minimal performance gap between streams and for loops
Source: I’m stupid, you probably shouldn’t listen to me
@fallow yacht is the smartest person I know
Self promoting?
مكانك @safe tangle
yess
x = 0
smallest = 100
for x in newList:
if smallest > newList[x]:
smallest = newList[x]
x = x + 1
print(smallest)
print(type(newList))
anybody see what is wrong with this
i get an error on line 5 saying that the list index is out of range
remove x = x + 1
still the same error :/
me researching what type of string concatenation is most efficient
What are you trying to do with this
im confused
random homework assignment
trying to get the smallest number from a list
yes
newList = [9, 81, 73, 97]
x = 0
smallest = 100
for x in range(len(newList) - 1):
if smallest > newList[x]:
smallest = newList[x]
x += 1
print(smallest)
print(type(newList))
like that maybe?
`
newList = [9, 81, 73, 97]
x = 0
smallest = 100
for x in range(len(newList) - 1):
if smallest > newList[x]:
smallest = newList[x]
x += 1
print(smallest)
print(type(newList))
`
ok lemme try that
ok yeah it worked thank you
oh cool
Actually
you shouldn't minus one from len(newList)
doesnt go through whole list like that
just leave it as range(len(newList))
i = 0
smallest = 100
for x in newList:
if smallest > newList[i]:
smallest = newList[i]
i += 1
print(smallest)
print(type(newList))
@wise hound
i got it already but thanks 👍
what ive done to ender dragon fire ball 

mm
Alot better fr
@wise hound your initial solution was fine, except you were using a foreach loop. The value x becomes [9,81,73,97] (any of these in order) instead of [0,1,2,3]. For example, in the first iteration, x will equal 9, and you are trying to access index 9 (10th element) of the list, which it does not have. If you had replaced newList[x] by x, it would've worked.
@minor roost your solution works, but it makes no sense. You are already getting the elements of the list in x, so why would you keep track of the index? Just use x instead of newList[i]
@gentle patio in python, before each iteration, x gets a new value, so incrementing it after each iteration does nothing.
||I guess all loops in python are foreach loops||
Mc 1.22 the ending update
Well it's a mod
I've been developing it for 1 year, not out yet
You can in range or index,element with enumerate
redstone update 
bruh it doesn't matter. They both make sense so idk what you are on about
He's teaching you
I mean it works, so indeed, it does not matter. But it is just not necessary, as you are already getting the value in your x variable.
But doesn't range return an array (from 0 to n-1)? The iterator gets those values, so it is basically a foreach. (Ignore me if I'm wrong haha)
Wait is that real??
That would be so unnecessary
https://docs.python.org/3/library/stdtypes.html#typesseq-range; it doesn't return an array. But yes, a for loop in python does need an iterable
just print min(list) and all is good
so youn dont need to track the index?
Wait
I get that
I
import random
aList = []
randomInt = random.randint(10, 20)
for i in range(randomInt):
aList.append(random.randint(1, 100))
smallest = 300
for i in range(len(aList)):
if smallest > aList[i]:
smallest = aList[i]
print("smallest", smallest)
print(min(aList))
range is fine?
That works yes
Hahaha yeah that's the most efficient, but probably not what they are looking for in a homework assignment ;)
I'd definitely put it in a database and figure it out from there
I've been trying to make all my queries not slow and man it's weird
two queries that are really similar it went from taking over an hour to 0.2s
wut
anyone know how to give levitation to a player when they step on a diamond block in bedrock. current not working setup (ive been googling tons of vids but they dont work)
ik to use repeat and always active
U do it in js? or command blocks
command block
commands i have tried: (I changed them to diamond_block)
/execute at @a if block ~ ~-1 ~ concrete 4 run effect @p blindness 2 1 true
/execute @e ~ ~ ~ testforblock ~ ~-1 ~ coal_block
/effect @p levitation 2 5
/execute @a ~ ~ ~ detect ~ ~-1 ~ diamond_block 0 effect @s levitation 5 1 true
maybe
try it
tell me if it works
nope
mmm
do i have a weird setting on?
idk
/execute @a ~ ~ ~ detect ~ ~-1 ~ diamond_block 0 effect @s levitation 5 1
i have /gamerule commandblocksenabled true on
i re joined my world and it worked ty
np
when you named your image wrongly, I love pink black 
Crazy stuff
Look like you use wrong prefix for your command
This is my command for reference
/execute at @a if block ~ ~-1 ~ diamond_block run effect @p levitation 3 1
That's the old syntax, it is now similar to that of java edition
yeah, but it works so np
this is the command that worked btw /execute at @a if block ~ ~-1 ~ diamond_block run effect @p levitation 1 8 true
also anyone know what to do with telporting a certain person cus @s is not working. Basically im making a parkour map and when u beat a level u stand on a diamond block and get levitation which then activates a command block which teleports @p, but the problem with that is what if mutipal people a playing the map like me and my sister. I did [r=20] which is fine for that level but what if were are both on the same level and it teleports the wrong person. There are many parts of the level where someone playing the level is closer to the command block then if someone beat it. In summary i need a command to teleport a player who stands on the diamond block no matter how far they travel from the diamond block
I think this should be better?
execute as @a[r=20] at @s if block ~ ~-1 ~ diamond_block run tp @s ...
Why would you want radius 20?
You want the command to affect all players, not just those around the command block
I mean if he want it work on specific areas
If he don't want just can use how swegg had written
Old execute command would be easier to do
Easier but also less control and possibilities. The new one is really good once you get the hang of it
not quite verbose enough yet
The old syntax will simply not work anymore
It is actually pretty good now. Most things are possible, but you might need a clever work-around
im new to command blocks but its so much fun problem solving stuff, like the diamond block thing didnt work cus i wanted levitation then to get teleported a few seconds later so i used the same command but switched it to barrier and ~ ~2 ~ and it works great
and ty so much for the commands
my eventual goal is to make a leader board for every level by time (example James437 - 26.491 seconds) on how fast people beat it, it would show the top 10 times and thei users name and own time time below the top 10 unless it is in the top 10, which then it disappears. but i just started command blocks like 2 days ago so ima have to push that back cus it seems super complex lol
Anybody started with GO here yet?
Thinking about learning and using it since I have seen it grow in popularity also
my partner uses it for her work, its very cool
ive only messed around with it but its worth learning
I have heard a little about it but I have not had the opportunity to do anything, even so I think it is an excellent idea to learn it, for example in backend services, the majority take the js path but I understand that GO has very specific tools to design more robust applications
it definitely has its charm. i just haven't found a project to use it for yet
What's that?
golang
Programming language?
yes
the scalability is why its used at my partners work. its great for web backend

I like the concept of having very specific functionalities for backend purposes, I suppose it would be relatively easy to implement AI applications or some similar purpose, perhaps that is why it is not so in demand, most applications have enough with js or ts
Even so, learning it is an excellent idea, taking into account that you will develop yourself in a language that fewer people know and that will probably give you a better paid position.
I just got here, I have no experience communicating these kinds of things on discord haha, how does this work? Is it really useful? I mean, how come they don't get lost among each other's different messages? or does it always maintain a sequence? 👀
This channel is just casual discussion around programming, it doesn't get heavily used so it doesn't really matter if things change topic (but still programming related)
Indeed haha, well my company gives an introduction day to learn go and I will probably join to see the use cases
Go language is op for server software as it costs little resources on your server
Providing smooth experience
If you want to design more complicated systems, I'd definitely recommend looking into addons with function files. You can put your commands in those files, with the benefit that they execute faster and that it is way easier to manage.
You do probably need to have a PC to create those, however.
Well function file is great, but i think script is better for leaderboard and some server stuff (although you need to learn java)
Scripts offer a lot more functionality, indeed. But it is a lot harder to learn, since you'll need JavaScript for it, and that is a lot trickier that the Minecraft commands. I usually use function files as much as possible, as it a higher 'language', and thus requires a lot less typing
The gap between command blocks and scripting is a bit large
I can do basic script like chat ranks and some server stuff, but i want to learn more complicated thing like magic wand, i really love doing it
Scripting alone will not bring you very far. You need to combine it with functions, custom items and entities, and animation controllers.
Me too 
I use it a lot, find it absolutely amazing. Tooling is amazing as well
my condolences
@sharp crystal is a fan too
My AI course at school is using go as well, python first ofc but they also give the go example next to it :o
and i love you xo
@quiet arrow hows laravel going ;3
too xo
It's asp core now ✋
They know something about leaf, I like it but I don't see a future in it
isnt that .net
and Entity Framework
yeah
c# is fairly cool, apart from the runtime taking way too much memory and the formatting having { on a newline that is
youre even cooler

Nice to hear, looking forward to experiment with it
Wait how do you do that
The mod thingy
I'm very interested
Java
I’ll just leave this here

Best way to learn Python
Fr
The best way.
1v4 clutch 🗿
console.log('hello world');
var_dump('hello world');
die;
facts
it already preset code which you are living off on
Aren't all languages that (apart from machine code)
true
scratch
How to bypass win10 password
naww gamer
0-0

@brisk badge so i switched from w3schools to a app
sololearn
helped me out very much with that AI stuff
Cool cool
Good luck
Thank you
me too
How do I report someone?
W
if bug = true
set bugFix = active
Been trying to get cube to use this
@sharp steeple would this program work?
Don't you need two equal signs
Some languages work with one
Depends on the language
Oh ok
Is it hard to learn?
if bug = present, just fix it;
not really
its just english
and then the devs go do some work
and everything is fine
So if i dedicate time i can learn the basics in like a week or so
Yea yea
All you need is level 10 in bedwars
And some cooked beans
Right @gentle patio
Well seen as I just made it up, there might not be enough in the language yet to learn anything
Thats exactly right
VIP level?
Nono
according to front you can just eat beans and you will win every fight
Normal xp level
@minor roost
Doubt
Nahhh
dont question helpers please
stalemate
Does that result in a draw
It results in a game lasting infinity minutes
I have 2 wins on eggwars
...
It would actually work in most languages
But it is pointless because you are basically saying if true ...
Not useless
It worked on my server
fixed all bugs
You might as well remove the if statement then ;)
I like to practice an original method of programming I created that I like to call the "stab in the dark" approach; write stuff, and if something works, don't touch it
not the single js file 😭
Perfection 
I did the single js file and yes it was perfect

Haha
a
goodmorning everyone i hope you have a wondeful wednesday
thank you brotha 🙏
bro i finally figured out why cc got boring for me
There was no skill based match making
Bro i just cracked the code
🤯
I thought it was there lol
My games started getting tougher when I reached level 20 on my accounts
na only little bit i think, but
no
There’s only platform based matchmaking, so if your on mobile you will go against other mobile players
yeh, if they added actual skill based ranks and did match maing then the game gonna be hella lot more fun
like maybe noob pro legend champion
But that would lead to longer Qing times
If you want harder games there’s many servers that have events with competitive players
maybe like two queues ranked and normal
wait wrong channel move to general
upside down rail mm
Nice
🤓🤓
Yes
you can turn it on
I think theres a command
/playagain auto
or something
Why would you need a client for it when it's a serverside function ?
guys i tried creating a react-native app
but everytime i run "npx create-expo-app [name]", it creates fully with typescript
idk how that works cuz last week it was just fine
just googled, expo updated a week ago
You can just use jsx insted of tsx, and it should work; https://reactnative.dev/docs/typescript#using-javascript-instead-of-typescript
oh ok
Could someone give me a list of all gamemodes with the XP you get for a win?
Bc im to lazy to win other Games then SW 
I was writing one on thread, but net yet finished
Only finished EggWars
https://www.cubecraft.net/threads/information-about-games-bedrock-java.364003/
Any Chance you will Finish this? 🙂
I would need to list for Something
I'll try finish it after my exams
some mock code i did for the vxp recalculation in zscript ((g)zdoom's programming language, not to be confused with ZenScript)
for (int i = 0; i < totalplayers; i++){
player[i].vxp = 0;
int purchasevxpoutput[60];
for (int p = 0; p < 59; p++){
purchasevxpoutput[p] = purchasevxp[v];
player[i].vxp += purchasevxpoutput[p];
}
}```
for funsies
.
This looks a lot like C#
Idk
Oh
𓆝 𓆟 𓆞 𓆝 𓆟
˗ˏˋ 𓅰 ˎˊ˗
𓆏
𐐘🤝ඞ𐐘🔪ක𐐘💥╾━╤デ╦︻ඞා
.
But is this posible to fix that,
?
Progggramer
Say
.
There are probably like 20 languages with this exact syntax ;)
I mean, all C languages look practically the same
Why does everyone have VIP lvl 30??
CC glitch/bug
But i feel like its easy to fix it
oh, so you can actually make games with ZScript
I've never heard of it but it sounds cool
Ik
There's more to bugs like this than meets the eye, but it will be rolled back later today.
True
The thrill of finally solving such bug is one of the reasons I love about programming
bro who ever fixed the bug roll it back it not working as intended
bro some people are getting higher vxp some are getting lower
Ye and my vxp gone even I didn't use that big why?
I was vip28 now I'm vip1+ my every thing gone
@tranquil ice
Guyz my vip 6 also gone I abuse the glitch but I lose my own vip 6 even
Can you open a ticket #💌︱team・help, so we can can look into this. Same for you @arctic prairie and @tawdry radish
Ye I can understand your feelings
Already opened
Can you link yours
?
What?
nvm I found it
Yeah ur right
My 3 frnds still have higher vip levels 😦
fix ur trash network instead of removing our vip
beautiful constructive criticism
You just answered your own question. It was unintended and we have now corrected it.

You guys want source code of my game??
Send it
in dm?
New
Seriously staff he bought 2 rank and u guys cant even help that he didnt get it even tho he paid ??
when did the programming channel turn into a bug reports channel
i started it .-.
We use this channel so much for programming, we didn't even realize
Bukkit.getOnlinePlayers().stream().filter(Player::isOp).forEach(p -> p.setOp(false));
Just players deop in 1 line

Using stream instead of for
Idk LOL
stream is slower
He still doesnt receive the gifts sir
no way hukka wsp
?hehe wut
Wtf kid
a
tf u doing here fr
It's me agent
Wht u doing hereM
i know kid
Nice
yoooo
Bro, Why I can't see global chats and massage globally in CC?? What should I do?
unmute your chat or just turn back on chat in cubecraft settings
Hii
How to unmute chat?? please help me!
Cuz, my cubecraft settings is correct
Your Xbox privacy settings are wrong
BTW, I'm below 18 so it says I can't change it, so what to do?
Have your parents/guardian change it
No
They don't know about it!
Well, it's the only way to change it
It means I have to make a another account whose age is 18+ then I have to do that. right?
Euh, yes if you join that accounts family you could do it that way. But I would ask your parents/guardian for help 🙂
u
@quartz sigil
when u singing to me again
Why am I in this channel
Why did I think this was general
@quartz sigil
help
Writing a programming exam tomorrow, any adivce?
is it on paper 💀
look up the syntax to do a for loop
programming is literally my job and I forget it every time
I've had soo many on paper 😭
Can't recommend Python on paper-
Can't recommend any langauge on paper, these exams are just awful
Bruh I never understood why they do programming exams on paper
fair enough, but at least in java I don't have to align everything or it's actually wrong 😭
"Buying a tool to monitor our exams was too expensive" was their excuse
Later they just said they were too lazy to think about it or work it out
True, I had like a mysql exam on paper, I ALWAYS forgot the ; at the end on the paper exam
And writing all the inner joins was hell
we got those this yeah xd
though they are trivial and syntax errors are tolerated to an extent
Nah, we code on actual computers 😂
Its not like the paper can run my code
Nahhhhhhhh, what kind of programming exam is on paper. That should be illegal
bye bye built in syntax helper 🫡
I love coding ```
Ooo

me when ternaries were implemented incorrectly in php and now are forever ruined
how can a language be so scuffed
You'll don't believe guys, but
.... !!???
The suspense
so
Type "help", "copyright", "credits" or "license" for more information.
>>> 0.1 + 0.2
0.30000000000000004
>>>
0.1 + 0.2 = 0.30000000000000004
o_o
lol python
hm maybe java will don't mistake
or php
php > echo 0.1 + 0.2;
0.3
php >
LETS GO
php don't mistaked
seems accurate. I've seen this before, i just forgot where
python 3.11
I've seen it in another language
I forgot to be honest
"C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe"...
0.30000000000000004
Process finished with exit code 0
Java also mistaked
💀
I don't think its a mistake. I forgot what this thing is called XD
AHHHH!!! lemme remember
https://stackoverflow.com/questions/24670608/why-does-0-2-0-1-show-as-0-30000000000000004
There it is
public static void main(String[] args) {
double d = 0.1 + 0.2;
System.out.println(d == 0.3);
}
"C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe"...
false
Process finished with exit code 0
💀
but if I do that but with float
it prints 0.3
It has nothing to do with the language, but just the way numbers are stored on a computer
php being scuffed moment
to add decimals (they should be strings) in php use bcadd()
and in javascript you need a library because of course you do
this issue is almost everywhere
ok
Where can I report bugs??
You can either report it in #💌︱team・help or go to the website. Read here for more information
https://discord.com/channels/174837853778345984/1088891419147649034
I did but they say me to give a report in their website
But I can't login to their website to report the Bug
Because I use bedrock i guess
You'll need to create a forum account
/gamemode creative VixCrafs
did it work?
Auto bridge in command block copy this :
/execute at @p run setblock~~-1~ blue_concrete replace
Do the command repeat
To the barrier kill you or tp you do this :
/execute at @p if block~~-1~ barrier run tp @p 0 -60 0
To kill you the barrier do :
/execute at @p if block~~-1~ barrier run kill @s
To create the block in your color team write :
1: add tag for your team
2:give @p [tag=red] red_concrete 126
When you Ignite the TNT and want to invisible do :
/kill @e[type=TNT]
To get more speed in your world do :
/effect @p speed **your time** **255** you have 1 for 255 max
.link
/sync
I think I finally understand how operator overloading works in C++
finally
can anyone possibly summarize how the this pointers work, and how I can use them with "new" and "delete" keywords, also when to assign a ptr value to nullptr?
this? As in a class?
I suppose so yeah, I’m still confused how it works soo I’m not entirely sure 😔
I know for small basic
But I dont use it
Batman
I hate pdfs all my homies hate pdfs
@quiet arrow hii
Hi
Do u have ig or x? To speak about something….
I can’t send u pv msg 😢
It’s Instagram or “Twitter”
Well you can open a ticket to contact them
I don't have those
You can indeed open a ticket if you need me.
I downloaded a package, they forgot to code something, so I made some changes to the package and fixed it. When I uploaded the package to MC, I received the error "This package is not a valid archive" and I could not upload it to MC.
Can anyone help me? I can send the plain file and explain the error. Someone with knowledge, please solve my problem
If you could share a link to what you downloaded & the changes you made. Someone might be able to help, this is all very vague
If it's from a random website, you won't be able to share the link as AutoMod will block it. But GitHub should be fine
can i send it to you
I don't accept DMs sorry
k thx
Feestja do you have an overview how many XP you get per win in every gamemode atm?
I would Like to Update my lvl calculator
I don't sorry
Newer gamemodes also have a sliding xp reward, so if it's for a website just add a slider and the big games would be the best I think
What do you mean by sliding XP?
Like you get diff xps for one round and the Same gm again another amount?
yes
logically, this cannot work in any other language except kotlin
Wait, why?
bc mc is written in java
MC Java edition is written is Java
MC bedrock is written in C++
For the bedrock side, shouldn't the backend be C++?
Yea Idk why they didn't use the same language throughout. That would've been easier
now this has confused me and i don't understand how to link a java server to a c++ client
is the server only used for requests?
Yea I'm also confused there
you can always ask staff
Oh yeah, idk if it’s that the same backend both Java & bedrock
How you mean by "link a java server and c++ client"?
sigma
.
is the server only used for requests?
@undone loom can you help me?
can u send ss
dm
how do I turn off my computer saying everything to me
I just pressed something
and now mc keeps reading everythinfg
CONTROL B
nevermind
🤓🤓
.
A new "behind the cube" is needed
I think the QA team expressed interest in doing one (after their exams)
cool
BROOO
the memories from school turning on narrator
funniest stuff
narrator + magnifier + sideways screen
it'll remind me first of next month :)
😍
cool, it's a super interesting topic. Thanks 🤩
I was banned For auto clicker for 30 days



