#💻︱programming

1 messages · Page 9 of 1

lone kraken
#

Wsp ppl

gritty shadow
#

oh, real? what is your score?

quiet arrow
faint knoll
#

Ok

minor roost
#

Congarts! 🎉

pure geode
#

400/400

lusty pagoda
vital summit
#

Wait, I can join CubeCraft Java while playing Bedrock?

lusty pagoda
vital summit
#

0-0

lusty pagoda
#

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

quiet arrow
quiet arrow
#

The server

vital summit
#

oh

#

I love more Java pvp tbh

#

I wanna main on CPVP if I get a pc

vapid mountain
lusty pagoda
vapid mountain
lusty pagoda
#

Oh well

minor roost
#

I wanna be a bedrock server developer how I can make a server

stark horizon
#

and buy a server at a hosting company

vapid mountain
# lusty pagoda Oh well

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.

faint knoll
#

Hey can we still run java code in website? If yes, how?

stark horizon
faint knoll
#

Because I know java better

#

Javascript not much experience

steel forum
faint knoll
steel forum
steel forum
#

no problemo!

sharp crystal
faint knoll
#

which library of jaca

sharp crystal
faint knoll
sharp crystal
faint knoll
lusty pagoda
sharp crystal
#

Just google "java web framework"

faint knoll
#

Thank you, lot of useful search results

brisk badge
tranquil ice
faint knoll
#

🙂

#

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

faint knoll
#

Ded chat

brisk badge
faint knoll
#

Oh

faint knoll
brisk badge
#

Might wanna ask @sharp crystal

faint knoll
#

Oh

#

K

brisk badge
#

I believe they use it quite much

faint knoll
#

Oki

#

Do php often

#

You can hack a lot

#

Might as well make free servers for cubecraft

sharp crystal
#

what

brisk badge
#

I am not really into web development

faint knoll
#

From pear directory

sharp crystal
#

What for

faint knoll
#

Mine's has that curly braces thing

#

So it can't install Mail php

#

That's why

sharp crystal
#

Then you google the problem

#

but you're not getting mine

faint knoll
#

Googled everywhere

#

Nobody telling how to fix config.php

sharp crystal
faint knoll
#

I even tried going to offical pear site

faint knoll
sharp crystal
#

you usually don't need a config.php file

faint knoll
#

Then how do I install Mail.php without it?

#

Stack overflow says using Config.php ONLY

sharp crystal
#

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
•...

▶ Play video
faint knoll
#

Ok thx let's see

faint knoll
#

@sharp crystal so uh do I even require Mercury Mailing anymore?

#

Or I can just delete it yk

#

(saving memory on my potato pc)

faint knoll
#

Bruh this is so broken. I have composer.json but no composer.phar

faint knoll
#

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?

sharp crystal
#

and first learn the basics of php

faint knoll
#

-> is like . in java

#

.= is like adding elements to array

#

<?php ?> program starts and ends like this

#

What else I need to know lol

sharp crystal
#

😭

#

just google the problems

#

there are plenty of other options

faint knoll
#

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

sharp crystal
#

a .json file is never a full application xD

faint knoll
#

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

sharp crystal
#

whats the error

faint knoll
# sharp crystal 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.

sharp crystal
#

what command do you use

faint knoll
#

composer require phpmailer/phpmailer

sharp crystal
#

if that works at least

faint knoll
#

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

sharp crystal
#

what directory were you trying it in

#

as you have to execute the command in your project directory

faint knoll
#

Oh

#

Now I see

#

You mean I have to use the cmd to enter the project directory and then use the command?

sharp crystal
#

yh

faint knoll
#

O man, thanks

#

Guess I am opening it again

faint knoll
#

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

sharp crystal
faint knoll
faint knoll
#

Lmao I just left another php developer confused with this

brisk badge
#

@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

faint knoll
#

But I think java and python went smoother with me, maybe just me idk

brisk badge
#

And that's why i like it more than web development ;)

faint knoll
#

But I wanna send and read mail no matter which programming language

quiet arrow
quiet arrow
#

idk how useful it is, but there is one :)

sharp crystal
#

like you probably haven't looked for a composer one yet

faint knoll
sharp crystal
quiet arrow
#

my second result was an article explaining it all

faint knoll
quiet arrow
#

I also have no idea what's possible with it, I'm just saying there is one

faint knoll
#

Ok

#

👍

quiet arrow
faint knoll
#

Oh

#

This

#

But can python also read mail? Lemme check rq

sharp crystal
#

@faint knoll what languages are you currently learning

quiet arrow
#

Second example is about parsing

sharp crystal
#

Do one a time

faint knoll
#

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

sharp crystal
#

Learning 3 langs at the same time is super confusing

faint knoll
#

Nah

#

Fun

#

Nvm

trail marsh
#

Hey gamers

#

I am new here

faint knoll
#

Gaymers

trail marsh
#

Yeah

faint knoll
#

Yeha

trail marsh
#

Bro I am confused

fathom maple
#

Lol

quasi narwhal
#

101010011001100100101

true heath
#

anyone wanna join my server

#

want some people to join i got 10 of my buds already

spark silo
minor roost
#

Can anyone make a pack for me

steep dagger
#

I love how vague that is

crystal lake
#

anyone can help me with tier checking im new

indigo plover
#

Guys how do I share my world to another device

#

?

stone mirage
#

@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?

brisk badge
indigo plover
#

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

lusty pagoda
#

oof

stark path
stark path
#

am looking for a good pvp server

rare sierra
#

Hey wanna hop in the vc for bedrock

minor roost
stark path
#

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

rare sierra
#

Bruh Hey wanna hop in the vc for bedrock

stark path
rare sierra
#

Dude ur a mobile user

polar silo
#

Mobile 🔛🔝

rare sierra
#

@polar silo Hey wanna hop in the vc for bedrock

polar silo
#

Sure 1 min

rare sierra
#

Ok

#

Ill be waiting

polar silo
#

ok ready what vcc?

rare sierra
#

Bedrock

#

No duos no to4

sharp crystal
#

i dislike wordpress

fathom maple
#

Who gonna claim my ticket?

royal pelican
fathom maple
#

Yooo how you still awake

#

It like 11pm

royal pelican
#

6:59am for me!

steel forum
steep dagger
#

programming 2

gilded saddle
#

Guys I'm a yt how iget yt rank

stark horizon
eternal whale
#

does anyone know python

#

for making a discord bot

#

bc ive made one

#

it works

#

but smth is wrong

#

ive fixed it

storm kayak
#

offering a c++ course to the staff if it helps them fix the disconnections on bedrock

vital summit
#

@silver imp Channel description is for you

spring tiger
steep dagger
#

Cube if it was written in Rust

plush walrus
#

...searching for something that has not yet beet rewritten in rust

quiet arrow
steep dagger
zinc steppe
dry ermine
#

Does anyone know how to use java visualiser in intellij

sharp crystal
dry ermine
#

I found it tho lol

minor roost
dry ermine
#

💀😭

supple schooner
#

💀

storm kayak
stark horizon
quiet arrow
#

It's java

supple schooner
#

I don't think bedrock edition server run on java

tranquil ice
supple schooner
#

Ops sorry forgot to off ping

storm kayak
# stark horizon nope

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

stark horizon
#

😂

#

i liked to exploit their bugs in the past ;p

quiet prawn
minor roost
#

Hi

quiet arrow
#

Hi

warped dragon
#

Hi

minor roost
next dust
#

.

minor roost
#

Hi

supple schooner
#

👋

#

I love programming doge

steep dagger
#

while true

#

🔥🧊🔥🧊

lusty pagoda
dry ermine
dry ermine
vapid mountain
# supple schooner I love programming <:doge:297181862709952522>

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.

supple schooner
quiet arrow
#

They're ✨ special ✨

supple schooner
vapid mountain
quiet arrow
#

Till you program in lisp and everything is #t except #f

warped steeple
#

who know codeForcses?

brisk badge
#

I do

balmy nest
#

Hello?

minor roost
final stirrup
#

Deviously long command chain

old pulsar
#

@sweet barn how long do sentinel appeals take to answer

minor roost
#

It can take up to few weeks

old pulsar
#

the time they answer the appeal the bans over

minor roost
#

Well it can take up to, you may get answer within few days

quiet arrow
#

I believe we try to answer within 2-3 days

brisk badge
#

Considered using functions?

supple schooner
quiet arrow
#

I don't think I like how the brackets are used here HoloSad

supple schooner
#

Maybe there is better way

#

i mean it still works fine in coding ig?

supple schooner
#

🤔

#

im suck at java

quiet arrow
#

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

supple schooner
#

why do need brackets for other?

quiet arrow
#

I don't know if you need them, but it would be more consistent

#
if (this.fire > 0) {
    this.fire--;
} else {
    this.fire++;
}
supple schooner
#

it still works the same

final stirrup
supple schooner
#

thats a cool chaincommands blocks...

final stirrup
#

Also I don't like using addons in general, since making a small change requires me to exit the world and edit the file

final stirrup
brisk badge
brisk badge
supple schooner
brisk badge
hard roost
supple schooner
sharp crystal
#

@quiet arrow imagine not using @if and @endif

final stirrup
hard roost
#

Why not if you don't mind me asking?

final stirrup
# hard roost 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

hard roost
#

I don't think you need to exit the world 🤔

old pulsar
vapid mountain
steep dagger
#

this.fire -= this.fire > 0 ? 1 : -1;

brisk badge
#

Big brain while true loop

steep dagger
#

$fire -= $fire <=> 0.69

#

php

vapid mountain
steep dagger
vapid mountain
#

this.fire = 0;
200 IQ

steep dagger
#

this.🔥 = "🤔";

quiet arrow
#

swift moment

steep dagger
lusty hare
#

fellas

#

i need uh a quickstart on java I'm freshly new to this

quiet arrow
lusty hare
quiet arrow
#

Gotta have them both

quiet arrow
lusty hare
quiet arrow
#

Just following along with your own language teaches you a lot

lusty hare
#

what prompted me this is because i wanted to make Minecraft mods

supple schooner
lusty hare
supple schooner
#

Yeah

lusty hare
# supple schooner Yeah

because uhhh
i wanted to add 2 things from a doom mod named Hideous Destructor to Minecraft

supple schooner
#

I have over millions downloads on Curseforge

lusty hare
#

one moment

supple schooner
#

Cube

lusty hare
#

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

supple schooner
#

When mining the block, there is a chance they will spawn

lusty hare
supple schooner
#

Basalt only

lusty hare
#

they're like

#

not really dangerous when faced alone

#

they are in groups

supple schooner
#

Well then if you mine one basalt block, there is chance spawn lots of them

lusty hare
#

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

thick wigeon
#

pago por hacer un Hola mundo jaja

eternal whale
#

how to mention reply in js?

vital summit
eternal whale
#

u sure

#

where do i put it

eternal whale
#

like gimme example

vital summit
#

If someone uses the command, bot should ping them?

#
await interaction.reply(`<@{interaction.user.id}>`)```
eternal whale
#

ok

final stirrup
lucid inlet
#

I don't know what is c++ can somebody explain me

spring tiger
#

it is a programming language

lucid inlet
lusty pagoda
sharp crystal
toxic ginkgo
plush walrus
sharp crystal
slow mist
#

Something that is better than java(lol)

#

Better optimisation

#

And available for more devices?

stark horizon
#

c++ isnt only for bedrock

silver ibex
#

by the way is typescript is better than C++?

#

@spice maple

#

Oh shoot i accidentally mentioned you

steep dagger
#

typescript is much worse fundamentally

#

javascript is terrible and typescript is tolerable

#

but if you are making a website you gotta use it

quiet arrow
#

💯

#

i use wasm 🤓

silver ibex
#

i use it in bdsx

silver ibex
hard roost
#

Oops wrong message

vapid mountain
# slow mist And available for more devices?

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.

tranquil ice
# slow mist Better optimisation

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.

lucid inlet
#

I want to learn coding any suggestions @tranquil ice @vapid mountain

zinc steppe
tranquil ice
slow mist
slow mist
slow mist
#

Like when you try to import java features in to bedrock?

#

I'm not sure, i haven't did this for years!

lucid inlet
stark horizon
#

if you wanna code minecraft plugins i would say java

thorny cape
#

hello

#

Y’all all devs?

final stirrup
noble crescent
#

learn python first

#

Best to begin with

bold fjord
#

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?

silver ibex
#

does anyone knows how to port forward?

#

in router

quiet arrow
bold fjord
quiet arrow
#

I don't think I like function definitions on separate lines and brackets types missmatched

bold fjord
#

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

quiet arrow
quiet arrow
lusty pagoda
vapid mountain
#

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.

steep dagger
#

developers have been replaced by chat gippity, nice try

vapid mountain
steep dagger
#

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. 🙏

zinc steppe
#
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
steep dagger
#

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

zinc steppe
#

okok

brisk badge
sharp crystal
quiet arrow
#

me when spell checker

brisk badge
#

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

steep dagger
#

me making sure the entire project has 0 problems:

#

this guy:

plush walrus
orchid dove
#

/

zinc steppe
#

pog

serene valve
#

hello

daring talon
#

@vapid mountain what? Are you a bot?

#

Oh nevermind. xD

vapid mountain
daring talon
#

xDD

#

I really thought you were an AI lol

vapid mountain
daring talon
#

OwO

#

That means...

brisk badge
steep dagger
#

No no no. I'm also not an NPC so everyone is a bot except me and that guy

brisk badge
#

That's exactly what npcs are programmed to say

steep dagger
#

That's exactly what an NPC programmed to question my humanity would say

thorny cape
#

Hello

#

any1 r devs of games here?

flint verge
dusty cliff
#

i'm learning python

eternal whale
night hinge
#

Sdl2 gives me nightmares

sly saddle
#

i am a npc

coarse parrot
#

A

daring talon
#

@vapid mountain I need help with a code,what's 1+1?

somber ocean
#

@daring talon 2

daring talon
#

Oh okay ty 🤣

eternal whale
#

Yo @brisk badge what coding language do u use and what do u use to design packs and stuff

daring talon
#

Python is really hard for me 😔

quiet arrow
#

Is there something specific you're not getting your head around?

brisk badge
#

I like java or c++ for personal projects.
I am a behaviourist, so I mostly change json files. Besides, there are the regular commands.

daring talon
quiet arrow
#

How you make them? Use them? Or what they actually are?

fickle warren
#

💀 blockwars capture the flag is messed, I can't combine my little bits of blocks together. think you could fix that problem?

steep dagger
#

I have no idea what potato bro is saying

daring talon
quasi narwhal
#

I love python so much!!!! (Hardest coding language ever)

daring talon
#

Yeah frr

steep dagger
#

wait until you find out about endofunctors and monads

#

legends say that no one knows what they are

dusty cliff
#

i need help making a mod

dusty cliff
#

what platform do i use

dusty cliff
#

hello

quiet arrow
#

Heya!

minor roost
minor roost
drowsy terrace
#

Gotta admit, AI is catching on to me.

sharp crystal
drowsy terrace
sharp crystal
lime ice
#

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!

dusty cliff
#

any suggestions on how i can make a mod

#

like what platform

quiet arrow
#

A mod for what?

quiet arrow
brisk badge
#

It's possible with both

lime ice
lime ice
brisk badge
#

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

spring tiger
lime ice
#

Looks great! Tysm for the help!

wise hound
#

anyone know a good way to learn javaScript?

#

idc if it takes long or not tho

quiet arrow
#

My condolences

terse slate
#

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!
brisk badge
terse slate
#

Way to h#ck the p#nt#g#n (TOP SECRET!):

  1. Press hot keys:
    Windows + R
  2. Type in opened window:
    cmd /k color 2 && dir/s
  3. 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

pearl iris
#

I don't understand programming

lusty pagoda
lusty pagoda
jolly idol
#

xd

terse slate
#

U need to understand this in C++

#

(if u programming on C++)

steep dagger
#

based (2) frog moment

quiet arrow
#

I quite liked c++ when learning it at school

minor roost
wise hound
#

HTML and CSS are pretty easy

#

but im getting confused on some parts of javaScript

#

and binary numbers are funnn

floral cosmos
#

oh my

warm bison
terse slate
wise hound
#
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???

wise hound
#

*basically what im asking is how to update the values of the variables

wise hound
#

nvm i figured it out

#

had to reassign the variables after each event

iron cove
wise hound
#

and it took me like 15 attempts to find out how to write the code in discord lol

vocal night
#

This is all you need

if (player.isFlying()) {
  player.kick("Flying is not allowed on this server.")
}
lusty pagoda
#

i thought i was reading java for a sec

spring tiger
#

all this does is kick players whose Y level is above 255. it doesn't do anything to actually check for flying

spring tiger
#

@vague igloo This isnt the place to make job offers :)

hard iris
#

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

royal pelican
#

You know you are now at risk of having this account banned facepalm

hard iris
#

i can't risk more cuz i did nothing wrong

royal pelican
#

Your bypassing ahhhhhhhhh

hard iris
#

i am programmer dude

royal pelican
#

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

hard iris
#

he ban me and didn't even respond to my support he didn't ever read the code and what he talk about

royal pelican
hard iris
#

the only rule i break is this rule and i am very sorry for what i did

#

but i had no choice

royal pelican
hard iris
#

basically i could add new acc and act like nothing happend

#

and they don't even know

royal pelican
#

Well a smart person would probably do that 🤣 but I wouldn’t advise anything

hard iris
#

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

royal pelican
hard iris
#

yeah true

royal pelican
#

There is no guarantee of anything

#

But it’s worth a shot I guess

hard iris
#

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

royal pelican
#

Anyways I am no longer going to continue this discussion

hard iris
#

yeah good bye brother

royal pelican
#

It is up to you how you would like to proceed

lusty hare
#

i couldn't wrap around my head on Java

#

heck

quiet arrow
#

Anything specific? Someone here might be able to hint you in the right direction partyblob

lusty hare
#

everything, specifically the likes of Minecraft Java modding via fabric

quiet arrow
#

Were you able to get intellij (or whatever) set up for it with the docs?

lavish zephyr
#

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

ivory flume
#

since I started studying c++

#

I actually understood a code

#

for the first time

#

even if it's simple

#

I'm so proud

lavish zephyr
#

great

#

so working

#

yay!

#

vote for me president of United States

lavish zephyr
#

#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

lavish zephyr
#

i have been working on it last week

#

then a playee reach goes above 3 it will automatically kick

#

that it.

lavish zephyr
#

😭🙏🏻

brisk badge
ivory flume
#

idk much about coding as of now

#

what should it be stored as

lavish zephyr
#

😭

brisk badge
#

Also, the break statement does not break both for loops

lavish zephyr
#

mb

#

i don't code anti cheat very much

#

i am new

brisk badge
#

Or a custom class

ivory flume
#

pair/tuple huh

#

gotta research what those are

#

xD

#

ah pairs are pretty straightforward I see

lavish zephyr
#

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

#

😭🙏🏻

brisk badge
#

That is another language

brisk badge
#

So pairs will not work haha

ivory flume
#

pairs are well

#

pairs

#

so 3 ints do work

#

that would be tuple, yeah?

brisk badge
#

Yep!

ivory flume
#

eyy :D

#

thank you!

dusky fern
ivory flume
#
#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 -.-

brisk badge
#

But you have a semicolon after your if statement

#

After all of them :p

quiet arrow
#

You need ``` before and after

ivory flume
#

I even failed at that lmfao

quiet arrow
#

```c++

// bla bla
```

ivory flume
#

ty yall xD

brisk badge
quiet arrow
#

Put \`

brisk badge
#

Ah that's clever

ivory flume
#

so when you input 2 and 2020 as a year rn, it just prints out 29 and 31

quiet arrow
ivory flume
#

omg I accidentally sent the one with a no no word in it lmao

#

I was mad while trying to code it

brisk badge
ivory flume
#

dude I have a midterm next week I'm gonna die

quiet arrow
#

Also, you need to check if year % 400 == 0 since then it won't be 29 :)

brisk badge
#

You'll be fine!

ivory flume
#

I also need to improve my general knowledge

brisk badge
ivory flume
#
#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;
}
quiet arrow
#

Wait no, it's every 4 years. But not if divisible by 100, but not by 400

ivory flume
#

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

quiet arrow
#

Because you have two if blocks, rather than one with 4 branches

ivory flume
#

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?

quiet arrow
ivory flume
#

mine is so messed up 💀

#

lemme try to fix it

quiet arrow
#

As for the correct leap year, you don't need any if else for that :)

ivory flume
#
#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

quiet arrow
#

Yes, but your leap your calculation is wrong 🙂

quiet arrow
ivory flume
#

I'm still trying to make sense of it

brisk badge
#

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 ^^

ivory flume
#

the way I like

#

just put everything

#

tyty

brisk badge
#

no worries, practice makes perfect

ivory flume
#

I just for the first time wanted to try chatgpt for coding

#

and

#

well

#

whoa

#

I LOVE IT

brisk badge
#

you cant use it on your exam ;)

ivory flume
#

I am confused with a lot of stuff I do but it's a great tutor as of now

ivory flume
#

I THINK I'M UNDERSTANDING STUFF

dusky fern
#

@graceful axle our bot got verified! cube_party

graceful axle
#

🔥🤙

brisk badge
quiet arrow
brisk badge
#

woops

#

goddamit

quiet arrow
#

It's a but confusing haha

brisk badge
#

stupid rules hahaha

quiet arrow
#

(year % 4 == 0) && (x % 400 == 0 || x % 100 != 0)

brisk badge
#

i didnt know about the century rule

#

well spot

gleaming raptor
#

I finally built a multiplayer engiene for the first time, ot took me 2 and a half hours but its finally NEARLY done!

brisk badge
#

2.5 hours is quick! Well done

quick verge
#

how to translate this

brisk badge
quick verge
#

a nintendo switch code file

#

its literally the nintendo switch's code

brisk badge
#

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

oak bolt
# quick verge goofy ahh

Totally not suspicious link from guy with no pfp and joined the server the same day he got discord this year

quick verge
#

wdym?

#

i need it decoded

#

my switch is broken and i need its data

oak bolt
#

Get a pfp dude, ur account looks sus asf (not hating, just saying)

#

Especially when u posting links out of the blue

quick verge
#

ok

oak bolt
#

👍

quick verge
#

now do u believe me?

#

its shattered

#

i need its data

oak bolt
#

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

hollow gorge
#

print(“Hello”)

lavish zephyr
#

🙏🏻😭help

spring tiger
#

What do you need help with? @lavish zephyr

lavish zephyr
#

i solve it

jade viper
#

um guys i got false banned what do ido

royal pelican
jade viper
#

ok ill try

lavish zephyr
#

i create a reach display mod but how to aply it

#

cuz i wanna show my friend i am legit

#

🙏🏻😭

#

for bedrock

misty kestrel
lavish zephyr
#

not supported 1.20.40

quiet arrow
#

You can downgrade if you really need to. I don't think it's easy to do stuff like this for mco HoloSad

remote comet
#

Hello how I can do a generator of diamond

remote comet
#

Who can answer me 💀

brisk badge
lavish kiln
#

.-.

proven rain
lusty pagoda
quiet arrow
brisk badge
#

I have just spent an hour to read a 8 bit unsigned integer from the console:

++++>-]<[<->-]<<<<++++++++++[>[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<<<<<-]>[-]>>>[<<<+>>
>-]<<<<++++++++++[>[>>>+>+<<<<-]>>>>[<<<<+>>>>-]<<<<<-]>[-]>>>[<<<+>>>-]<<<<++++
++++++[>>[>>+>+<<<-]>>>[<<<+>>>-]<<<<<-]>>[-]>>[<<+>>-]<<[<+>-]>[<<+>>-]<<<```
#

Brainfck is actually quite fun

onyx summit
#

How do I make custom kb on my world I’m not the best at coding

#

@ mention me I will not be on

wise hound
#

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

quiet arrow
quiet arrow
#

Oh, very sad

steep dagger
#

that top comment tho 💀

#

//code starts here

wise hound
#

i said i didnt finish it

minor roost
#

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

gleaming raptor
#

@magic rapids thats a lot of time 🙀

supple schooner
#

For what

lavish zephyr
# supple schooner 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

supple schooner
#

Idk

minor roost
#

It disabler cc movement checks

#

Which mean

#

Fly

lavish zephyr
#

basically he posting cheats?

minor roost
lavish zephyr
#

i got banned for doing that

#

i recom deleting it

#

recommend

#

from wild

supple schooner
minor roost
supple schooner
#

So what's the point

lavish zephyr
#

there is not one world

minor roost
#

Sir yes

lavish zephyr
#

or lobby

#

there is multiple lobbys

#

so that will not nowr

minor roost
#

Sir you cannot read cpp code sir

lavish zephyr
#

sorry sir

minor roost
#

I accept your apology sir

lavish zephyr
#

i am trying to explain sir

minor roost
#

Okay sir

lavish zephyr
#

thanks u sir

#

bye sir

minor roost
#

What u trying to explain sir

#

Wait sir

#

Don't go

#

Sir

#

Sir

lavish zephyr
#

what sir

minor roost
#

What you trying to explain to me sir

lavish zephyr
#

sir u will need to make the code for all the lobby and all games sir

#

sir u didn't do that

minor roost
#

It a movement disabler check for the bad cc anticipation sor

lavish zephyr
#

u try it sir on ur world sir

minor roost
#

Anti cheat

minor roost
#

Already sir

lavish zephyr
#

but work in the end or nether sir

minor roost
#

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

lavish zephyr
#

hmm nice point sir

minor roost
#

Sir

lavish zephyr
#

appreciate sir

minor roost
supple schooner
#

Ok stop

minor roost
#

Mistake

lavish zephyr
#

🙏🏻😭

wise hound
#

that was many sirs

supple schooner
#

They just want some attention yk

wise hound
#

yes i do know sir

lavish zephyr
#

yeoxuhang

#

and i am sorry if i make u mad sir

#

i apologize sir

supple schooner
lavish zephyr
#

ok sir

minor roost
#

Okay buddy

supple schooner
#

Ok stop

minor roost
lavish zephyr
#

okey now we stop

#

sir.

wise hound
#
insertItem(myNums, 1, 25);
insertItem(myNums, 0, 50);
removeItem(myNums, myNums[1]);```
wise hound
#

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

spring tiger
#

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

green elbow
#

hey

lusty pagoda
#

anyone cares to help me here?

quiet arrow
steep dagger
#

:o who website for that

#

genius

lusty pagoda
#

gott everything i need

spice stratus
#

Anyone know how to fix this bug :/

#

It gets stuck on the connecting to external server loading screen

onyx summit
spice stratus
#

My game is fully updated this has been going on for at least a year now

#

I am just so tired of it

onyx summit
#

Can you join at alll?

spice stratus
#

Sometimes it lets me in for a couple times but a lot of the time no

onyx summit
#

Ok

#

Probably just a glitch report it to minecraft

spice stratus
#

I have

onyx summit
#

👍

#

Ok

#

What you play on?

spice stratus
#

PC

onyx summit
#

Ok

#

Windows?

spice stratus
#

yes

onyx summit
#

Ok so go to settings

spice stratus
#

k

onyx summit
#

Now search updates

spice stratus
#

k

onyx summit
#

Then check for updates

#

Click check for updates

spice stratus
#

I can update it yes

onyx summit
#

Click another time after

#

Just so your sure it updated

minor roost
#

It's caused by your ISP

#

Your NAT type is probably strict

#

enabling UPnP would fix it

#

Or port forwarding

spice stratus
#

I am going to be honest I dont know what all those things are

#

Thanks a lot though

#

Ill try to figure it out

brisk badge
arctic hill
hexed lake
#

Who’s the person who was programming a game like Bloons td battles

quasi oasis
#

I’ve worked on that game before lol

modern kayak
#

Palombo! hi

quasi oasis
#

Hi!