#💻︱programming
1 messages · Page 9 of 1
oh, real? what is your score?

Ok
Congarts! 🎉
400/400
Wait, I can join CubeCraft Java while playing Bedrock?
Well yeah kinda
0-0
But I heard they suggest not to use it in Cubecraft or any popular server because there's a difference between movements I believe and you can get banned by the anti cheat
I think we'll redirect you to the Bedrock server
we?
The server
It's against Microsoft's ToS.
Java Minecraft has a different system for player safety than Bedrock, and to ensure both safety systems are working correctly the platforms have to be separated.
But yeh, we absolutely could put Java players on bedrock and bedrock players on Java, we just don't.
Wait woah
How is Mineplex gonna do it? I heard the server will be a Cross-Play server between java and bedrock players
Slap some geyser on it
Hmm. Well last I checked it was against ToS, but that might have changed. They may have a specific way of doing it that Microsoft approves of, or the rules have changed then.
Oh well
I wanna be a bedrock server developer how I can make a server
probably use nukkit or something
and buy a server at a hosting company
Ok I've done a little more digging and it turns out I'm talking hot air. 😅
Seems like it isn't against Microsoft's ToS, so apologies, no idea where I got that info from.
But still, we wouldn't do it anyway as certain input methods have advantages over others, and we have our own moderation systems.
Hey can we still run java code in website? If yes, how?
You can use javascript
Yeah I know that... but can we still incorporate direct java code into website like applets?
Because I know java better
Javascript not much experience
browsers dont support java applets. it's a security risk
Any other methods other than applets?
uhhh no. most (all modern ones) web browsers dont support running java at all. just like flash it's an old and deprecated web platform. if you wanna be a web designer it's best to learn html or js
Oh
That's sad
Anyways thanks
no problemo!
libraries
Maven I think?
You mean, Maven library will allow me to embed java code in website?
it's the best to just google it
It says maven only makes .jar files work
Nice digging and nice answer
Thank you ! :3
I'm not a java dev xD Was just a guess
Just google "java web framework"
Thank you, lot of useful search results
Maven is just a tool to make exporting projects and importing libraries easier ;)
oop
You can't directly run Java in a browser, but there are alternatives https://teavm.org/
Java bytecode AOT compiler
Ok thx, I think I have enough means now
🙂
btw can anyone pls send me their Config.php (in PEAR folder) so that I can install Mail.php (for php language)
Mine has those curly braces and that's why I can't use it to install Mail.php
Ded chat
It was 5 in the morning for a lot of people 😜
Oh
So uh do u happen to have php?
Pff it's been a long time since I used php
Might wanna ask @sharp crystal
I believe they use it quite much
Oki
Do php often
You can hack a lot
Might as well make free servers for cubecraft
what
I am not really into web development
What for
isn't that the whole point of it
I even tried going to offical pear site
You mean?
you usually don't need a config.php file
Then how do I install Mail.php without it?
Stack overflow says using Config.php ONLY
Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth
Learn how to send an email using PHP.
Full PHP course:
➤ https://davehollingworth.net/phpy
In this video you'll learn how to:
• create a contact form in HTML, including client-side validation
• install and configure the PHPMailer package
• send email using PHPMailer
•...
Ok thx let's see
@sharp crystal so uh do I even require Mercury Mailing anymore?
Or I can just delete it yk
(saving memory on my potato pc)
Bruh this is so broken. I have composer.json but no composer.phar
Nah composer can't even install phpmailer. Says some error occurs.
Not even zip file works. Program says it can't even find the PHPMailer class lol
Overall php is a mess
@sharp crystal any guide?
Duh we have only one active php user here?
maybe its the best to just google it yourself?
and first learn the basics of php
Yeah, $ is used for variables
-> is like . in java
.= is like adding elements to array
<?php ?> program starts and ends like this
What else I need to know lol
Rest is all like java and python combined
Ok
I have been googling only
I learnt that I had to download composer
So I did
It gave error while installing Mail.php (the installer thing doesn't even reinstall vendor folder in the users folder)
Next I uninstalled composer, just to realise I had a pre-installed composer.json hidden in my xampp files
But that was of no use
Then I installed the zip
Realised, the vendor folder is in phpMyAdmin which is inaccessible, so I even brought that entire file to htdocs
Even brought the PHPMailer extracted zip file there
All errors fixed, just to realise, it can't even find the PHPMailer file correctly mapped (Dora the explorer moments)
Searched this last error on google, just to realise what do I even search at this point
@sharp crystal but don't worry if you ever think I have been taking up too much of your time you can just tell me, I just don't know what to do
the composer.json file got there through composer
a .json file is never a full application xD
Yeah, I believe it came with the xampp installation (I checked the dates)
But anyways, the newly downloaded composer can't even extract the PHPMailer archive and hence install
Php is a broken language
it has nothing to deal with that
whats the error
Can't extract archive, and then it slaps two nonexistent addresses, one of vendor folder in users, another of some highly encoded long file name again in the users folder.
what command do you use
composer require phpmailer/phpmailer
just do phpmailer
if that works at least
Ok I will try it a little later. I have closed pc in disappointment.
Thanks for that idea
Opening it again takes lot of setup
what directory were you trying it in
as you have to execute the command in your project directory
Oh
Now I see
You mean I have to use the cmd to enter the project directory and then use the command?
yh
K @sharp crystal back
It says phpmailer is not a thing, it's phpmailer/phpmailer
Now trying with the slash and location set let's see
Wow it removed a bunch of files and yetted the same error amazing
Probably my first ever irl picture in discord anyways
do you have 7zip
Yes
Lmao I just left another php developer confused with this
@faint knoll this is just the reality of programming. Especially when you are just starting with a language, you spend 90% of your time googling and debugging
Nice
But I think java and python went smoother with me, maybe just me idk
And that's why i like it more than web development ;)
Ok
But I wanna send and read mail no matter which programming language
windows moment
There is an email lib in the python std library
idk how useful it is, but there is one :)
just look for tutorials please
like you probably haven't looked for a composer one yet
mail() ? Tried that for long with many tutorials. No use
that's literally not what she's saying
my second result was an article explaining it all
I have been consulting a developer on call
I also have no idea what's possible with it, I'm just saying there is one
https://docs.python.org/3/library/email.examples.html Here are some examples for it
@faint knoll what languages are you currently learning
Second example is about parsing
Java, python, php
Do one a time
Java in scl
Python also in scl
Php at home rn
But if python can read and send emails both, then I will quit php
So I will check tomorrow
Learning 3 langs at the same time is super confusing
Gaymers
Yeah
Yeha
Bro I am confused
Lol
101010011001100100101
sure ip?
Can anyone make a pack for me
I love how vague that is
anyone can help me with tier checking im new
@crystal lake Idk how check it I am also new
Sure somebody around here knows
What do you guys do on this chat?
Make mods? Code with py, css, html. Any thing like that?
On a mobile device?
Yes @brisk badge
It says java.io.IOException
Idk what that
Is
It shows
Operation completed with errors
000003.log
Failed to determine if primary:Android/ data/com.mojang.minecraftpe/files/ games/MT14Ya90AAA=/db is child of primary:Android/data/com.mojang.minecraftpe: java.io.FileNotFoundException: Missing file for primary:Android/data/ com.mojang.minecraftpe/files/games/
MT14Ya90AAA=/db at /storage/emulated/0/
Android/data/com.mojang.minecraftpe/files/
games/MT14Ya90AAA=/db
What should I do
oof
sure
is it a pvp server?
am looking for a good pvp server
Hey wanna hop in the vc for bedrock
Can u
I used to build packs
not free ofc
cant do it for free if its a completely new pack
I can edit sum packs if u want
for free
Bruh Hey wanna hop in the vc for bedrock
would have but my mic ...
Dude ur a mobile user
Mobile 🔛🔝
@polar silo Hey wanna hop in the vc for bedrock
Sure 1 min
ok ready what vcc?
i dislike wordpress
Who gonna claim my ticket?
When a staff member is available they will claim it!
6:59am for me!
cryptomod
programming 2
Guys I'm a yt how iget yt rank
this is not the place to ask that
but well you can go to https://partners.cubecraft.net/
does anyone know python
for making a discord bot
bc ive made one
it works
but smth is wrong
ive fixed it
offering a c++ course to the staff if it helps them fix the disconnections on bedrock
@silver imp Channel description is for you
The bedrock server does not run on C++ 😛
Cube if it was written in Rust
avg rust fanboy
...searching for something that has not yet beet rewritten in rust
error: lifetime may not live long enough
assignment requires that '1 must outlive 'a
skill issue
async rust is the best programming language
yaay
Does anyone know how to use java visualiser in intellij
i bet google knows the answer
I found it tho lol
no clue what half of your sentence means
💀😭
💀
not even the plugins?
nope
It's 
I don't think bedrock edition server run on java
The official one runs on C++, but the question was regarding ours which does run 
Interesting
Ops sorry forgot to off ping
thats interesting, i've never really probed into how bedrock ticks, so i assumed it was like java edition where its almost all java. i hope you didnt take what i said before too harshly, i was just slightly tilted as i got disconnected from 2 late game survival games matches in a row.
i'm sure you guys do great work, it can't be easy taking care of huge server
just realised that you're not a dev; i meant to direct this at @spring tiger and the rest of the dev team
you'd be programming 20days before you've got all the bugs out of the game these days
Hi
Hi
Hi
^^
.
I don't get this 
If there is fire
Use this
Else 💀💀💀
How frequently is this check running? Because in theory you'd just be lighting a fire on one cycle, and then extinguishing it and sounding an alarm the next cycle. Wash, rinse, repeat.
And also nothing is ever resetting the alarm, so unless that has its own logic which turns it off, you'll have an alarm on permanently the moment fire is true.
But also, in Java at least, numeric types cannot be inherently evaluated as a boolean expression. So you'd end up crashing the building.
But if it's in some other language, then yeh you'd put out as many fires as are equal to fire and then you'd get stuck in the loop of ignite-extinguish again.
Well it just a meme so yeah🫡
My integers are falsy if 0 and truety otherwise 
They're ✨ special ✨

Honestly I'd prefer them to be that way in Java too... but noooooo. Big ol' Mr doctor Java man says "CANNOT INHERENTLY CAST INTEGER TO BOOLEAN" and I cri.
Till you program in lisp and everything is #t except #f
who know codeForcses?
Hello?
@vapid mountain #1160844409840095313
Deviously long command chain
@sweet barn how long do sentinel appeals take to answer
It can take up to few weeks
so what is the point of banning someone for a week to just take a few weeks to answer it lol
the time they answer the appeal the bans over
Well it can take up to, you may get answer within few days
I believe we try to answer within 2-3 days
in my opinion, it will be something like this in Java🤔
if (fire > 0){
this.fire--;
} else this.fire++;
I don't think I like how the brackets are used here 
pls
fix it
idk if it will work, I always add brackets. But it just looks a bit odd because you added brackets once, but not the other
why do need brackets for other?
I don't know if you need them, but it would be more consistent
if (this.fire > 0) {
this.fire--;
} else {
this.fire++;
}
I'd like it to be 100% vanilla. No add-ons of any kind.
thats a cool chaincommands blocks...
Also I don't like using addons in general, since making a small change requires me to exit the world and edit the file
Thank you yeoxuhang
Or just ```if () ...
else ...
Don't mix them up 😓
Woahh easy why would you put brackets AND put it one line
its java btw
ikr
You're not gonna believe this but functions are vanilla
it would be very hard to read
@quiet arrow imagine not using @if and @endif
I meant without adding packs to the world
Why not if you don't mind me asking?
I don't like using addons in general, since making a small change requires me to exit the world and edit the file. it makes it difficult to bugtest. also from my experience, some function files often dont work for some reason
I don't think you need to exit the world 🤔
i havent had a response and its nearly the 5th day.
this.fire += this.fire > 0 ? -1 : 1;
this.fire -= this.fire > 0 ? 1 : -1;
while (((int i = 9)-i) > 0? 0 : 1))
Big brain while true loop
Nono, the - from the -= combines with the - in the -1, becoming --1, which equals 0, meaning it becomes fire - 0. 
this.fire = 0;
200 IQ
this.🔥 = "🤔";
swift moment
Java is a programming language famous for its ability to compile to platform-independent bytecode. It powers enterprise web apps, big data pipelines, and android mobile apps.
#java #programming #100SecondsOfCode
🔗 Resources
Java Website https://java.com
Star7 Demo https://youtu.be/1CsTH9S79qI
🔥 Get More Content - Upgrade to PRO
Upgrade to ...
by proxy, actual coding
Java is one of the most successful and most dreaded technologies in the computer science world. Let's roast this powerful open-source programming language to find out why it has so many haters.
#java #programming #comedy #100SecondsOfCode
🔗 Resources
Java Website https://java.com
Java in 100 Seconds https://youtu.be/l9AzO1FMgM8
Why Java Suck...
Gotta have them both
https://interpreterbook.com it costs money but it's an amazing book
which is sortof ironic since i mod doom for 2 years
Just following along with your own language teaches you a lot
what prompted me this is because i wanted to make Minecraft mods
I also make Minecraft mods
java?
Yeah
because uhhh
i wanted to add 2 things from a doom mod named Hideous Destructor to Minecraft
I have over millions downloads on Curseforge
one moment
icic
floating hostile cubes
Cube
getting hit by them uhhh
can and will be dangerous
will make them commonly found in the nether
any biome but basalt deltas and warped forests
or allow them to spawn in basalt deltas. what can go wrong

When mining the block, there is a chance they will spawn
any nether block? (obviously except obsidian and crying obsidian)
Basalt only
ah
they're like
not really dangerous when faced alone
they are in groups
Well then if you mine one basalt block, there is chance spawn lots of them
1-3 at best
might make them spawn around naturally in groups of 1-4
knowing that most of the time, the nether is a mid-game dimension
pago por hacer un Hola mundo jaja
how to mention reply in js?
<@${interaction.user.id}
If someone uses the command, bot should ping them?
await interaction.reply(`<@{interaction.user.id}>`)```
ok
I made some optimizations and improvements to the formula. Now it cuts the commandblock count in half. So sadly its no longer deviously long
I don't know what is c++ can somebody explain me
it is a programming language
Full form
It is a programming language
wow really?!
😂
it's the same as c+=1
wow
It's a programming language in bedrock
Something that is better than java(lol)
Better optimisation
And available for more devices?
??
c++ isnt only for bedrock
by the way is typescript is better than C++?
@spice maple
Oh shoot i accidentally mentioned you
typescript is much worse fundamentally
javascript is terrible and typescript is tolerable
but if you are making a website you gotta use it
i use it in bdsx
Bedrock Dedicated Server Extenser
And available for more devices?
3 billion devices run java
Oops wrong message
Consoles: yes, devices: no.
Java runs on practically everything. Coffee machines, refrigerators, all sorts of handheld devices.
Java is much more widespread, but c++ is the standard for consoles.
A programming language doesn't automatically make your code optimised. That's something you have to do yourself, but lower level programming languages do allow you to use platform specific features that can give you access to performance improvements.
I want to learn coding any suggestions @tranquil ice @vapid mountain
don't do java(really good suggestion)
Find something that will motivate you to learn to code. The only reason I learnt was Minecraft and Garry's Mod. If it wasn't for them and wanting to know how games and plugins work, I wouldn't be here.
Just refering to ONLY minecraft
Yeah, if you want pain?This definitely the job for you:]]
Me too, still focusing on some weird stuff
Like when you try to import java features in to bedrock?
I'm not sure, i haven't did this for years!
I am new what language should i learn?
depends on what you wanna do
if you wanna code minecraft plugins i would say java
Some of us, in some capacity
harvard cs50
learn python first
Best to begin with
Hi guys, I'm writing a Spigot 1.16.5 Java MC server plugin and I want to prevent specific items from despawning due to (fire) damage. I've got the following snippet, which does prevent despawning but makes the item invisible to the clients:
@EventHandler
public void onEntityDamage(EntityDamageEvent event) {
if (...Logic...) {
event.setCancelled(true);
}
}
Any ideas how to make the item visible again?
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/ItemDespawnEvent.html
Maybe look into using this? Seems more appropriate; as you're cancelling damage and not despawning now
Ofc, after you fix your syntax 
declaration: package: org.bukkit.event.entity, class: ItemDespawnEvent
Thanks, I'll have a look into that! What's wrong with my syntax? 😳
I don't think I like function definitions on separate lines and brackets types missmatched
Might be a mobile thing? Method definition is on a single line for me ;P
Also: according to the docs, the ItemDespawnEvent fires "when a Item is removed from the world because it has existed for 5 minutes.", so it will not cover (fire) damage
Oh yh probably
Oh-
Paper has a EntityRemove event if you're using that. Other than that, you'll need someone that knows better what's going on 😛
It'll very much depend on your router for the exact steps. My ISP has a page on their website explaining it; would try searching for something like that for the brand of yours
Tbh I found the motivation but I don't feel like benefiting from it, I either don't know the answer or it's all wrong
That's called ✨ L E A R N I N G ✨ sweetie, and is a good thing.
You don't know this time, but you'll remember it for future, and the more times you do that, the more "tools" you add to your "toolbox".
The bigger your tool collection is, the more likely it is you'll be able to solve new problems in the future.
developers have been replaced by chat gippity, nice try
I'm sorry, I can't help with this request.
As an AI language model, I am trained to help with various requests. Please let me know if there is anything else you would like me to help with.
I'm sorry but I prefer not to continue this discussion. I do not like someone trying to manipulate me. I'm still learning and this detection might be wrong, so I appreciate your understanding and patience. 🙏
const input = document.querySelector("cpf")
cpf.addEventListener('keypress', () =>{
let cpflength = cpf.value.length
if (cpflength === 3 || cpflength === 7) {
cpf.value += "."
} else if (cpflength === 11){
cpf.value += "-"
}
}) //i wanted to make this format 'XXX.XXX.XXX-XX', but without changing its actual value, how can i do that? i used js for this but i could also use PHP
split the value into an array with 3 characters each
then loop over the array and based on the index append a dot or a dash to the end of that segment
@zinc steppe
okok
👀
Pov: your vsc didn't load your files in properly
me when spell checker
I have like 10 behaviour packs and resources packs in my workspace, and some of them are written in older version and contain every single vanilla entity. The syntax highlighter doesn't really like older versions, so it gives warnings and errors for most files
how do i email an ISP?
/
hello
Beep boop.
Everyone on CubeCraft is a bot except you.
You are the main character, so anyone else must be an npc or bot
No no no. I'm also not an NPC so everyone is a bot except me and that guy
That's exactly what npcs are programmed to say
That's exactly what an NPC programmed to question my humanity would say
am not a bot
was
i'm learning python
sheeesh i thought 10 was alot
Sdl2 gives me nightmares
i am a npc
A
@vapid mountain I need help with a code,what's 1+1?
@daring talon 2
Oh okay ty 🤣
W its easiest language to learn and not time consuming
Yo @brisk badge what coding language do u use and what do u use to design packs and stuff
Python is really hard for me 😔
Is there something specific you're not getting your head around?
I like java or c++ for personal projects.
I am a behaviourist, so I mostly change json files. Besides, there are the regular commands.
Yeah, functions ;-;
How you make them? Use them? Or what they actually are?
💀 blockwars capture the flag is messed, I can't combine my little bits of blocks together. think you could fix that problem?
I have no idea what potato bro is saying
Everything about them actually. 😅
I love python so much!!!! (Hardest coding language ever)
Yeah frr
wait until you find out about endofunctors and monads
legends say that no one knows what they are
i need help making a mod
what platform do i use
same
hello
Heya!
Hi
Hi
Gotta admit, AI is catching on to me.
never seen that before in gpt4
If you ask it for code, it can provide.
It was about the two options xd
Hello, CubeCraft has always amazed me on how they create custom gui's. I know how to create one on java, but how do you do it on bedrock? I would love to learn how to do this, so any code, github page, or yt video would help. Thanks!
A mod for what?
Dunno about this. I'll ask a dev after school if I don't forget
Are you looking for a vanilla way (with addons) or with mods?
It's possible with both
I'm just gettign started with bedrock dev so correct me if I am wrong, but isnt vanilla easier?
Definitely
yea lol, do you have like a github or maybe a yt video where I can learn this?
one thing that might be a problem for you: you cannot force the player to open your gui. They will need to click on an item
Looks great! Tysm for the help!
My condolences
My C++ skill be like
#include <iostream>
#include <string>
using namespace std;
int main() {
string message {"popa pipiska kakashka!"};
for (int i = 0; i < 5; i++) {
cout << message << endl;
}
return 0;
}
popa pipiska kakashka!
popa pipiska kakashka!
popa pipiska kakashka!
popa pipiska kakashka!
popa pipiska kakashka!
Interesting way to declare a string
yeah 🙂
Way to h#ck the p#nt#g#n (TOP SECRET!):
- Press hot keys:
Windows + R - Type in opened window:
cmd /k color 2 && dir/s - Click OK. Done.
This code in Java got an ASCII number of the letter!
char letter = 'A';
byte ASCIInumber = (byte)letter;
System.out.println(ASCIInumber);
Console:
97
ASCII Table:
Dec Hex Char Binary
----------------------
0 00 NUL 00000000
1 01 SOH 00000001
2 02 STX 00000010
3 03 ETX 00000011
4 04 EOT 00000100
5 05 ENQ 00000101
6 06 ACK 00000110
7 07 BEL 00000111
8 08 BS 00001000
9 09 HT 00001001
10 0A LF 00001010
11 0B VT 00001011
12 0C FF 00001100
13 0D CR 00001101
14 0E SO 00001110
15 0F SI 00001111
16 10 DLE 00010000
17 11 DC1 00010001
18 12 DC2 00010010
19 13 DC3 00010011
20 14 DC4 00010100
21 15 NAK 00010101
22 16 SYN 00010110
23 17 ETB 00010111
24 18 CAN 00011000
25 19 EM 00011001
26 1A SUB 00011010
27 1B ESC 00011011
28 1C FS 00011100
29 1D GS 00011101
30 1E RS 00011110
31 1F US 00011111
32 20 SPACE 00100000
33 21 ! 00100001
34 22 " 00100010
35 23 # 00100011
36 24 $ 00100100
37 25 % 00100101
38 26 & 00100110
39 27 ' 00100111
40 28 ( 00101000
41 29 ) 00101001
42 2A * 00101010
43 2B + 00101011
44 2C , 00101100
45 2D - 00101101
46 2E . 00101110
47 2F / 00101111
48 30 0 00110000
49 31 1 00110001
50 32 2 00110010
51 33 3 00110011
52 34 4 00110100
53 35 5 00110101
54 36 6 00110110
55 37 7 00110111
56 38 8 00111000
57 39 9 00111001
58 3A : 00111010
59 3B ; 00111011
60 3C < 00111100
61 3D = 00111101
62 3E > 00111110
63 3F ? 00111111
64 40 @ 01000000
65 41 A 01000001
66 42 B 01000010
67 43 C 01000011
68 44 D 01000100
69 45 E 01000101
70 46 F 01000110
71 47 G 01000111
72 48 H 01001000
73 49 I 01001001
74 4A J 01001010
75 4B K 01001011
76 4C L 01001100
77 4D M 01001101
78 4E N 01001110
79 4F
1 byte = 8 bits
1 KB = 1024 bytes
1 MB = 1024 KB
1 GB = 1024 MB
1 TB = 1024 GB
every bit is equal 0 or 1
and every byte contains 8 bits, for example: 01000110
I don't understand programming
digital logic
because you may haven't even started
xd
based (2) frog moment
I quite liked c++ when learning it at school
nowdays people use chatgpt 😭, I'm really happy for that
HTML and CSS are pretty easy
but im getting confused on some parts of javaScript
and binary numbers are funnn
oh my
bro I think you should replace these words... 💀
it are joke russian words 🙂
var color = getText("colorInput");
var textSize = getText("fontSizeInput");
onEvent("quoteInput", "input", function( ) {
setText("quoteOutput", getText("quoteInput"));
});
onEvent("colorInput", "change", function( ) {
setProperty("colorOutput", "background-color", getText("colorInput"));
});
onEvent("fontFamilyInput", "change", function( ) {
setProperty("quoteOutput", "font-family", getText("fontFamilyInput"));
});
onEvent("fontSizeInput", "change", function( ) {
setProperty("quoteOutput", "font-size", getText("fontSizeInput"));
});
ok so
i need to replace the getText's in the events with the variables at the top
but when i try replacing the getText's with the variables
it doesnt work anymore
any idea on how to fix it???
*basically what im asking is how to update the values of the variables
Bro has 946393639263926392539253925392549263926483529352925492539246383637373737302631 iq
i have -18632 iq
and it took me like 15 attempts to find out how to write the code in discord lol
This is all you need
if (player.isFlying()) {
player.kick("Flying is not allowed on this server.")
}
i thought i was reading java for a sec
all this does is kick players whose Y level is above 255. it doesn't do anything to actually check for flying
@vague igloo This isnt the place to make job offers :)
hey
i am the one that write that code
i got banned by wild
for "posting cheating code"
i guess he didn't understand what the code
do
i am sorry for miss understanding
it wasn't a cheat code
You know you are now at risk of having this account banned 
i can't risk more cuz i did nothing wrong
Your bypassing 
i am programmer dude
Unfortunately they don’t just hand out punishments for no reason
They don’t want people just creating new accounts and re joining evading punishment
Or else there was no point in the first place
Giving you a punishment
he ban me and didn't even respond to my support he didn't ever read the code and what he talk about
That’s not for us to decide
the only rule i break is this rule and i am very sorry for what i did
but i had no choice
That’s completely fair but like I said before
^
Well a smart person would probably do that 🤣 but I wouldn’t advise anything
but i want to get my voice cuz that so unfair and mod abuse
i just want to make the game better and show my anti fly code
but instead of support me he banned me cuz he don't want to see a better person
Well I mean since you came back and that is what you would like to do
I suggest creating a ticket https://discord.com/channels/174837853778345984/1019248948449378404
yeah true
but the only prof i got is the respond of the admin cuz he know that not a cheat code
that why i tag him
here
Anyways I am no longer going to continue this discussion
yeah good bye brother
It is up to you how you would like to proceed
Anything specific? Someone here might be able to hint you in the right direction 
everything, specifically the likes of Minecraft Java modding via fabric
Were you able to get intellij (or whatever) set up for it with the docs?
back
i make an anti auto clicker
so basically kick player if he got +12 click per second
#include <iostream>
int main()
{
int cps = 0; // cps = clicks per second
int threshold = 12; // threshold = max allowed cps
while (true)
{
// get mouse button click event
bool clicked = getMouseButtonClicked();
if (clicked)
{
cps++; // increment cps counter
// if cps exceeds threshold, kick the player
if (cps > threshold)
{
kickPlayer();
// print message to console
std::cout << "Player kicked for illegal autoclicking." << std::endl;
// reset cps counter
cps = 0;
}
}
else
{
// reset cps counter if mouse button not clicked
cps = 0;
}
}
return 0;
}
here
could it work?
pretty simple
i put it 12+ cuz some time mybe glitchy and can kick player in 10cps
so that it
i ma go eat
since I started studying c++
I actually understood a code
for the first time
even if it's simple
I'm so proud
#include <iostream>
#include <vector>
int main()
{
// Define variables
std::vector<int> player_positions; // to store each player's position
int max_reach = 3; // maximum reach distance for all players
bool is_hacker_detected = false;
// Get player positions and check for any hackers
for (int i = 0; i < player_positions.size(); i++)
{
// Calculate distance between players
for (int j = i + 1; j < player_positions.size(); j++)
{
int distance = sqrt(pow(player_positions[i] - player_positions[j], 2));
// If distance is greater than max_reach, hacker detected
if (distance > max_reach)
{
is_hacker_detected = true;
break;
}
}
}
// Display result
if (is_hacker_detected)
{
std::cout << "Hacker detected!" << std::endl;
}
else
{
std::cout << "No hackers detected" << std::endl;
}
return 0;
}
anti reach
what is that
and how
i have been working on it last week
then a playee reach goes above 3 it will automatically kick
that it.
i see
😭🙏🏻
You are storing a position as an integer? 🤨
genuine question
idk much about coding as of now
what should it be stored as
😭
Also, the break statement does not break both for loops
In c++ probably a pair<int, int> or a tuple<int, int>
Or a custom class
pair/tuple huh
gotta research what those are
xD
ah pairs are pretty straightforward I see
leme fix it
eq
brb
a friend send me this
Vector3<float> playerPos = player->getPosition();
Vector3<float> blockPos = Vector3<float>(blockX, blockY, blockZ);
if (playerPos.distance(blockPos) > 10.0f) {
player->sendMessage("You cannot reach that far!");
player->setPosition(playerPos);
}
}
LOL
😭🙏🏻
That is another language
Yeah I just realised that you need 3 ints, as we are working in 3 dimensions
So pairs will not work haha
Yep!
If a hit that player made, got to the server with delay, it might trigger that :c
So its a little harder to check for reach than calculating distance
#include <iostream>
using namespace std;
int month, year;
int main()
{
cout << "Please input a month between 1-12" << endl;
cin >> month;
if (month < 1 || month > 12);
cout << "Invalid input." << endl;
else if (month == 2);
{
cout <<"Please input a year value."<< endl;
cin >> year;
if(year %4 == 0)
cout <<"29 days."<< endl;
else
cout <<"28 days."<< endl;
}
if (month == 4 || month == 6 || month == 9 || month == 11);
cout<<"30 days."<< endl;
else
cout<<"31 days."<< endl;
return 0;
}
I'm going crazy right now
I know this is not very readable
but like
else if gives off an error
the else at the bottom gives of an error
I really can't understand what's happening
it's probably the simplest issue and I'm going insane over it
I'm also a beginner don't judge me -.-
You can do
```c++
Your code here
to make it more readable
But you have a semicolon after your if statement
After all of them :p
You need ``` before and after
I even failed at that lmfao
```c++
// bla bla
```
ty yall xD
I tried to type that but it caused it to format the wrong way haha
Put \`
Ah that's clever
so when you input 2 and 2020 as a year rn, it just prints out 29 and 31
control flow (if, else, ...) aren't statements, so you don't need a ; after them. I know it's not needed but, I would suggest added (at least while learning) brackets everywhere, so you can clearly follow which part of the code in is what scope
omg I accidentally sent the one with a no no word in it lmao
I was mad while trying to code it
Your last if statement does not have an else before it
wut
dude I have a midterm next week I'm gonna die
Also, you need to check if year % 400 == 0 since then it won't be 29 :)
You'll be fine!
oh wait wasn't 4x years leap years
I also need to improve my general knowledge
Except for years that are divisible by 400 haha
#include <iostream>
using namespace std;
int month, year;
int main()
{
cout << "Please input a month between 1-12" << endl;
cin >> month;
if (month < 1 || month > 12)
cout << "Invalid input." << endl;
else if (month == 2)
{
cout <<"Please input a year value."<< endl;
cin >> year;
if(year %4 == 0)
cout <<"29 days."<< endl;
else
cout <<"28 days."<< endl;
}
if (month == 4 || month == 6 || month == 9 || month == 11)
cout<<"30 days."<< endl;
else
cout<<"31 days."<< endl;
return 0;
}
whAt
Wait no, it's every 4 years. But not if divisible by 100, but not by 400
so I deleted the ;'s and it works except 2
when I input 2 it gives off 2 outputs
I think it's smth with the else but
dunno xD
Because you have two if blocks, rather than one with 4 branches
and how can I do that
my brain can't handle what's going on atm after 4 hours of discrete mathematics all my logic senses are just lost
with like
lots of else if's?
You need
if () {
} else if () {
} else if () {
} else {
}
While you have
if () {
} else if () {
}
if () {
} else {
}
As for the correct leap year, you don't need any if else for that :)
#include <iostream>
using namespace std;
int month, year;
int main()
// months that have 31 days are: January, March, May, July, Aug, Oct, Dec
// months that are 30 days are: April, June, Sept, Nov.
// months that are 28 days are: February
{
cout << "Please input a month between 1-12" << endl;
cin >> month;
if (month < 1 || month > 12)
cout << "Invalid input." << endl;
else if (month == 2)
{
cout <<"Please input a year value."<< endl;
cin >> year;
if(year %4 == 0)
cout <<"29 days."<< endl;
else
cout <<"28 days."<< endl;
}
else if (month == 4 || month == 6 || month == 9 || month == 11)
cout<<"30 days."<< endl;
else
cout<<"31 days."<< endl;
return 0;
}
this worked, apparently
Yes, but your leap your calculation is wrong 🙂
Do you also understand why? Seeing as you used apparently
I'm still trying to make sense of it
Since there are only 12 possible inputs for months, you might as well hardcode it. This will result in much more readable code:
int numberOfDays[] = {31, 28, 31, 30, 31, ...}; // Do this for every month respectively
int month;
cin >> month;
if (month == 2) {
int year;
cin >> year;
if (year % 4 == 0 && (x % 400 == 0 || x % 100 != 0)) {
cout << 29 << endl;
return;
}
}
cout << numberOfDays[month-1] << endl;
@ivory flume ^^
no worries, practice makes perfect
I just for the first time wanted to try chatgpt for coding
and
well
whoa
I LOVE IT
you cant use it on your exam ;)
it's explaining stuff to me as well
I am confused with a lot of stuff I do but it's a great tutor as of now
Your leap your is wrong xo
I THINK I'M UNDERSTANDING STUFF
@graceful axle our bot got verified! 
🔥🤙
why?
If it can be divided by 400 is it a leap year
It's a but confusing haha
stupid rules hahaha
(year % 4 == 0) && (x % 400 == 0 || x % 100 != 0)
I finally built a multiplayer engiene for the first time, ot took me 2 and a half hours but its finally NEARLY done!
2.5 hours is quick! Well done
What kind of file is it?
it is probably either already compiled or encrypted
you can try running it (after changing the extension) with a compiler
if you know the language
Totally not suspicious link from guy with no pfp and joined the server the same day he got discord this year
Get a pfp dude, ur account looks sus asf (not hating, just saying)
Especially when u posting links out of the blue
ok
👍
I wasn't that I didn't believe u, I'm just saying most people won't click on a link posted by a guy with no pfp, which means you'll get less help
I'm sorry I can't help tho, I haven't a scooby how to read code
oh thnx
ok
print(“Hello”)
🙏🏻😭help
What do you need help with? @lavish zephyr
i solve it
um guys i got false banned what do ido
You can appeal here:
https://appeals.cubecraft.net/
ok ill try
i create a reach display mod but how to aply it
cuz i wanna show my friend i am legit
🙏🏻😭
for bedrock
onixclient has reach display you could use that maybe?
not supported 1.20.40
You can downgrade if you really need to. I don't think it's easy to do stuff like this for mco 
Hello how I can do a generator of diamond
Who can answer me 💀
what do you mean?
.-.
I think he wants to know how to make a diamond generator like the ones in Eggwars
Yes
Serial.print(hello)
You'll probably want to look into paper
I have just spent an hour to read a 8 bit unsigned integer from the console:
++++>-]<[<->-]<<<<++++++++++[>[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<<<<<-]>[-]>>>[<<<+>>
>-]<<<<++++++++++[>[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<<<<<-]>[-]>>>[<<<+>>>-]<<<<++++
++++++[>>[>>+>+<<<-]>>>[<<<+>>>-]<<<<<-]>>[-]>>[<<+>>-]<<[<+>-]>[<<+>>-]<<<```
Brainfck is actually quite fun
How do I make custom kb on my world I’m not the best at coding
@ mention me I will not be on
test
ok had to remember how to do that
var ans1;
var ans2;
var ans3;
var gameType;
//Extra background music
playSound("cyberpunk-171563-(1).mp3", true);
//Switching between screens
onEvent("startButton", "click", function( ) {
setScreen("quizScreen");
});
onEvent("restartButton", "click", function( ) {
setScreen("startScreen");
});
onEvent("finish", "click", function( ) {
if (ans1==undefined || (ans2==undefined || (ans3==undefined || (ans1 == "Select" || (ans2 == "Select" || ans3 == "Select"))))) {
setScreen("incompleteScreen");
} else {
setScreen("resultScreen");
}
});
onEvent("incompleteQuiz", "click", function( ) {
setScreen("quizScreen");
});
//Variables changing
onEvent("ques1Ans", "change", function( ) {
ans1 = getText("ques1Ans");
updateVar();
});
onEvent("ques2Ans", "change", function( ) {
ans2 = getText("ques2Ans");
updateVar();
});
onEvent("ques3Ans", "change", function( ) {
ans3 = getText("ques3Ans");
updateVar();
});
onEvent("quizScreen", "mousemove", function( ) {
if (ans1 == "True" && (ans2 == "False" && ans3 == "True")) {
setText("hiddenText", "Fun");
} else {
if (ans1 == "True" && (ans2 == "False" && ans3 == "False") || ans1 == "True" && (ans2 == "True" && ans3 == "False")) {
setText("hiddenText", "Skill-Based");
} else {
if (ans1 == "False" && (ans2 == "True" && ans3 == "False") || __) {
setText("hiddenText", "Shooting");
} else {
if (ans1 == "True" && (ans2 == "True" && ans3 == "True")) {
setText("hiddenText", "Fun or Skill-Based");
} else {
}
}
}
}
});
//Sound Effects
onEvent("titleTrophy", "click", function( ) {
playSound("sound://category_retro/retro_game_bit_coin_1.mp3", false);
});
onEvent("quizTrophy", "click", function( ) {```
onEvent("titleController", "click", function( ) {
playSound("sound://category_hits/8bit_splat.mp3", false);
});
onEvent("quizController", "click", function( ) {
playSound("sound://category_hits/8bit_splat.mp3", false);
});
onEvent("redCircleLeft", "click", function( ) {
playSound("sound://category_retro/retro_game_echo_error_2.mp3", false);
});
onEvent("redCircleRight", "click", function( ) {
playSound("sound://category_retro/retro_game_echo_error_2.mp3", false);
});
onEvent("startButton", "click", function( ) {
playSound("sound://category_retro/start_game.mp3", false);
});
onEvent("resultScreen", "click", function( ) {
playSound("sound://category_male_voiceover/congratulations_male.mp3", false);
});
//Extra Stuff
onEvent("generate", "click", function( ) {
if (gameType=="Fun") {
setText("quizText", "According to the quiz results, it seems like the game genre that would be the best for you would be fun. Some games recommended for you are Candy Crush or Subway Surfers.");
} else {
if (gameType=="Skill-Based") {
setText("quizText", "According to the quiz results, it seems like the games best suited for you would be skill-based games. Some games that are recommended for you are Geometry Dash or Rocket League.");
} else {
}
}
hideElement("generate");
});
//Function updateVar
function updateVar() {
onEvent("quizScreen", "mousemove", function( ) {
ans1 = getText("ques1Ans");
ans2 = getText("ques2Ans");
ans3 = getText("ques3Ans");
gameType = getText("hiddenText");
});
}
there
its not fully finished yet but yeah
its for a school project btw
Not a lot of context, but you'll want to either look into paper or fabric. Or a behavioural pack, as I think you can add enchantments now
No for the behaviour side
Oh, very sad
Dont works
Yo
@fallow yacht
So
I'm a dev and I want you to patch something in cc
So
I created a disabler
That disable movement checks in cc and can do anything
So here
)
Taking my time to write bypass and giving you the bypass to patch >)))
@fallow canyon
@queen nymph
@sweet barn @magic rapids @tranquil ice
@zenith hill
@magic rapids thats a lot of time 🙀
For what
In simpler terms, this code is handling data packets related to a player's movement and input. It makes sure the player is correctly jumping and sprinting, adjusts the player's velocity based on their rotation, and sends the information back to the server.
movement checker
buggy ngl
Nah that's not a checker
Idk
It a cheat
It disabler cc movement checks
Which mean
Fly
basically he posting cheats?
Posting code to get it patch
Writing a cheat, cc developer won't add it tho
Sir I said I wanna get it patch
So what's the point
sir u trying to be smart
there is not one world
Sir yes
Sir I'm trying to improve cc sir
Sir you cannot read cpp code sir
sorry sir
I accept your apology sir
i am trying to explain sir
Okay sir
what sir
What you trying to explain to me sir
sir u will need to make the code for all the lobby and all games sir
sir u didn't do that
Sir it work on all sir
It a movement disabler check for the bad cc anticipation sor
u try it sir on ur world sir
Anti cheat
but work in the end or nether sir
Sir we don't try stuff in local world
We try stuff in the real deal which is bypass in actual server
@vapid mountain @minor roost
hmm nice point sir
appreciate sir
Ok stop
🙏🏻😭
that was many sirs
They just want some attention yk
yes i do know sir
yeah but not from u sir
yeoxuhang
and i am sorry if i make u mad sir
i apologize sir
I don't really care about you guys, instead it feels funny sometimes
ok sir
Okay buddy
Good to know sir
Ok stop
Okay I will stop sir
insertItem(myNums, 1, 25);
insertItem(myNums, 0, 50);
removeItem(myNums, myNums[1]);```
javascript btw and i have a question about this
if the first line is displayed, it shows 3 5 10 12
if the 2nd line is displayed it shows 3 25 5 10 12
if the 3rd line is displayed it shows 50 3 25 5 10 12
im getting confused on the last part tho
why does the 4th line show up as 50 3 25 10 12 and not 50 25 5 10 12
cuz the index value of myNums that its referring to is the 1st index value
and the 5 is the 3rd infex value
The second argument of removeitem is asking for the index of the item you want to remove, not the value
So doing myNums[1] is returning 3, so removeItem is removing the value at index 3, which in this case is 5
@wise hound
ah ok thx bro
hey
anyone cares to help me here?
https://dontasktoask.com - most likely yes
gott everything i need
Anyone know how to fix this bug :/
It gets stuck on the connecting to external server loading screen
Check for updates
My game is fully updated this has been going on for at least a year now
I am just so tired of it
Can you join at alll?
Sometimes it lets me in for a couple times but a lot of the time no
I have
PC
yes
Ok so go to settings
k
Now search updates
k
I can update it yes
I have that issue too
It's caused by your ISP
Your NAT type is probably strict
enabling UPnP would fix it
Or port forwarding
I am going to be honest I dont know what all those things are
Thanks a lot though
Ill try to figure it out
He didn't really try to put it in accessible language haha
https://youtu.be/jHMLQW03Buc?feature=shared cheat or clean?
Who’s the person who was programming a game like Bloons td battles
I’ve worked on that game before lol
Palombo! hi
Hi!
