#💻︱programming
1 messages · Page 33 of 1
What’s this chat for
Programming... I think. Lol.
Uhh /kill @e.
U might wanna look into PlayerMoveEvent and check if pistonhead is around that entity or u can look into BlockPistonEvent
anybody here proficient in writing lilypad plugins?
i'm trying to implement geysermc's floodgate in lilypad
I am going to look at that today.
alright if u need any help hit me up again 😉
I always need help. 
im down to help anytime 😄
Yea, just send me a DM if you want? You have bedrock right?
im only Java 😄
yikes i dont thing thats have any diff 😄
I mean JSON shouldn't be too different between the two..
well thats yeah
You pretty good with it?
im alright with Java tho havent done anything with bedrock tho
I haven't done anything on Java. Lol. May I DM you my JSON file for the entity?
yeah sure let me see that
Let's say
I downloaded the game from different browsers, I have enough storage to install, and everything normal.
But my game didn't install.
I shared the file to my old tablet with much less memory and it surpringly installed successfully.
My phone is android 10
My tablet is android 8
Why is it happening for me? Is it my phone? Or the file?
well check the app compatibility
Are you downloading a free version apk?
If I wanna modify vanilla clases
Like for example screen
I used my class name extends screen but it not works
What am I doing wrong?
It's free on Google play games too
So yes
4.3+
is the app still being updated?
can create app for ios and android?
idk
tbh learning english to be able to explain what you need is kinda essential so id work on that first
and to be able to learn from websites like oracle
books exist

congrats on dev @distant pasture
What's everyone working on? 🙂
Thanks 
"r?" mod for hypixel skyblock dungeons
lists the players in a party who are ready to start the dungeon
discord bots 
Some random open source game
A Rust library for the Discord API. Contribute to serenity-rs/serenity development by creating an account on GitHub.
Fastest discord bot in the Wilde Weste
Idk rust doe
Lel
Lol
Rust is like, spicy fast
rust is fe2o3
Rust is chemical reaction
a ffa plugin!
uuh noo..im still setting stuff up!
like db etc
Remember, always use Github because then later in life when you're trying to get developer jobs, your Github looks active 🙂
I know, haven't used github in a while !
Just don't accidentally upload/push your secret passwords 😛
I once leaked my database secrets..whoops
I pushed my .env 2 days ago
Hahahaa I've done that one more than once
i mean
Don’t hack my postgres dB plz
@pastel osprey I expect these things from you 😄
always start with the .gitignore
^
😂
why use databases when you can just hire some people from india to save the data in a ms word table
Random dude in the netherlands !== free
Exactly
I mean true
But then he steals your data
^^
All the credit card info that I have obtained legally will be in the hands of some random dude in India
@pastel osprey congrats too
thank!
Lol
I have 2 questions:
- Does RGB increases FPS?
- Does RGB uses more power compared to office keyboard?
no, an dprobably
- Yes.
- yes, ofc!

2 sadly :(((( 😔
I just learned the if statements and the dictionary
congrats!
Thanks babe
In what language
RGB gives a 1000% fps boost but yes it uses more power
Based on my observation, rgb does not increase nor decrease fps
no way really?
Try it by yourself
Python
Gg
- No
- dunno
Question does "Command block" count as a programming language?
Not rly
Commands themselves aren’t a programming language, however NBT in commands use a format similar to json which people commonly call “Mojangson”. Not really a programming language though
id consider it a programming language if its used within a datapack
I’d argue JSON isn’t a programming language though
Idk idrc either way I'm just a command block guru... If anything I think its more of a gateway into coding than actual coding itself
Just thought I'd see some other peeps opinions
tbf it rlly aint
JSON is just a data storing format, by itself it does nothing
datapacks are not just json
theres also that thing called functions
im talking about datapacks
and datapacks exist on bedrock although they are called behaviour packs there
or addon packs
can you like
read
lol
im not talking about json
functions arent written in json bro
how would that work
command blocks are json confirmed????
but json is just a format used to store data
in a format that pretty similar to js objects
IDE*
Not sure
cause idk know anything but i'm pretty sure it's an IDE what you code with
he sent a link explaining what an edi is, its not an ide
HTML is the best programming language
yes
They’re just a plain text file with a list of commands though, not a programming language 😛
Cap. It is the BEST language. Better than english!
Im just curious, is Sentinel a packet-based cheat detection or bot-based cheat detection?
i am sentinel
Nah
U are a moderator

dont forget the context
putting text in a plain text file isn’t a programming language tho 
wrong screenshot mb
isnt that just every programming language
except for uwupp
I’d recommend looking into Turing completeness when it comes to differentiating something from a programming language to not being a programming language
anyway, have a daily dose of find the idiot:
eh, its kinda related to programming/from a programming related discord
Programing language imo - has letter + numbers + symbols + can make something out of it, programming language
no txt is
when there are no doccuments on jda with mongodb, so u gotto improvise with what you have
i really need help...
Why do you need MongoDB docs for JDA? Don't u just need the docs for Java?
how?
i just satrted jds
so idk
not too woried bout that atm but alr
thanks albert
Ye but-
You're suppose to be looking for MongoDB library/documentation for Java not for JDA
please dont ping and ive just decided to do a different style of database
as mongodb wont rlly work with jda no matter what i think of
Ok sorry 

It probably would work but as u say...
Are you connecting to the db every time someone executes that command...?
LEAVE ME ALONE
Im not using mongo anymore
And yes no way i was, probs bc i dunno how to use mongo with java
But it works for me
Much better than sql
sadge
yea ik
they said in 1 post they had a dev working on it
but that was a while ago
Anyone knows how to bypass cloudflare's system while using vpn?
You mean the cloudflare's anti ddos?
Yup
It works for me with VPN
What vpn are u using?
Don't have to bypass or anything
PIA

Uhh my friend's paying for it cuz it can be used on more devices
But I'd say it's worth it
segway to todays sponsor: private internet access
There is no public API for Cubecraft
Oh. thanks
@minor roost Please don't ask for bypasses here.
Didnt know that thing is illegal. Sorry
@full salmon hey, free ban mods gifted ban for 1 month forever
Programming 100
That’s the point
Hey, I wanna publish a simple library and I need some help with it as I've never done it.
The library has only 1 function so far but there won't be much so I can keep all of them in single file and then after importing it I want it to be just library_name.function_name() to call it, but when I read the docs on how to publish it it looks like there have to be some subdirectories etc.
docs should have somewhere a complete setup guide, but the way it works is:
your top level directory will have a setup.py or setup script of some sort
the name of your module, so library_name is the folder shown called example_package
the __init__.py file defines the folder it is in as a module.
That way you'd then be able to:
import library_name
my_class = library_name.example.SomeClass()
or
from library_name.example import SomeClass
my_class = SomeClass()
the setup.py/setup script just ensures you get all the right dependencies (if any) installed, and then installs your library_name into your python packages
and is it possible to just do library.library_file.function()? with example being the file where the function is?
yeah that's how it would work.
afaik you can't do library.function() (example_package.function()), as technically library is just a module, that contains python files.
hence the longer call, or just doing from library import library_file then you could do library_file.function()
alr, imma try later and see how it goes, thanks
I guess you could, if this is just a one off function
but in terms of if this is something you're going to add to, its better practice to separate into files, and only use __init__.py to initialise ( 😛 ) your module with imports and constants, etc.
wha
I don't think List<String> can ever be an int?
so the check is redundant
so? what should i do
Nothing.
class
args will never be int
but what are you trying to do?
wdym?
What does args represent in this context?
im trying to get a per guild number (idk why just learning databases).
so admin would do: <prefix>setnum <num>
but i wanna check if that <num> is an int
yes
one sec
public boolean isInt(String s) {
try {
Integer.parseInt(s);
return true;
} catch (NumberFormatException e) {
return false;
}
}```
s being?
try this
s being the string that you're trying to determine whether or not it represents a number
alr,
but if this is a boolean then how is that suppose to work?
Im trying to get the args and to check if they're an int, if they are then reply in text channel and update database
args is a list of strings, right?
for (String s : args) {
if (isInt(s)) {
// reply in text channel, update database, etc.
}
}```
Did it work?
isInt isnt a method
show me again
? show what
the error
Cannot resolve method 'isInt' in 'SetStringCommand'
Did you add this method to your file?
nop
Paste it in your code, then try again.
but where do i put the "for" statement?
ok
Oml
mate your like a dad to me
thanks for that i was stuck on it for a bit
still really dumb imo compared to javascript,
java: all of that above.
js: if(isNaN(args)) { }
oh no way
i did do like basic learning just never really came accross something like that
I would argue that something like what I just did is very common.
Daddy
😳
well you wont have to see it again from me 👀
help
what's wrong here????
guess = " 655"
guess_count = 0
guess_limit = 3
out_of_guesses = False
while guess != secret_word and not(out_of_guesses):
if guess_count < guess_limit:
guess = input("Enter guess: ")
guess_count += 1
else:
out_of_guesses = True
if out_of_guesses:
print("Out of guesses, you lose!")
else:
print("You win!")```
your last print isn't indented
and then the two lines below
if guess_count < guess_limit:
are also not indented again
File "C:\Users\SNOW\PycharmProjects\test\quartz.py", line 10
guess = input("Enter guess: ")
^
IndentationError: expected an indented block
Process finished with exit code 1
yeah you need to indent the line it complains about
secret_word = "Python"
guess = " 655"
guess_count = 0
guess_limit = 3
out_of_guesses = False
while guess != secret_word and not(out_of_guesses):
if guess_count < guess_limit:
guess = input("Enter guess: ")
guess_count += 1
else:
out_of_guesses = True
if out_of_guesses:
print("Out of guesses, you lose!")
else:
print("You win!")
1 sec
How to java
@spring tiger which line i'm lost
the error tells you 😛 line 10
o
tyyyyy
Actually here's the link https://youtu.be/rfscVS0vtbw?t=8421
This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!
Want more from Mike? He's starting a coding RPG/Bootcamp - https://simulator.dev/
⭐️ Contents ⭐
⌨️ (0:00) Introduction
⌨️ (1:45) Installing Python & PyCharm
⌨️ (6:40) Setup & Hello Wor...
Just press and you will see
I think he or I made a mistake
it was indented correctly in that video from what I just saw
i copied the exact same thing
basically any code below if, while, for statements, etc. should get indented
think of it as blocks
i will rewatch maybe i made a mistake
question: would
crash()
crash()
end
crash() ```
crash my pc
(lua)
what im trying to do is make a function that activates itself twice
it won't crash your pc.
you'll get a recursion error
crash computer good yes
Question
This, can I directly put it in mc files? And where?
Nobody download this ok?
Oh it's .zip
You can just double click if it is a .mcaddon and it will install into your game
No no I'm on phone
I know I have to make it ".mcaddon" but where to import the file?
Resource packs or behavior packs?
nvm I will try both ones
On phone it should just load the game too
An mcaddon generally has both a resource pack and behaviour pack
as in manually copy them across?
You should just be able to tap on the .mcaddon and it will ask to launch Minecraft
and it will import them for you
An .mcaddon has both a resource pack and a behaviour pack
You have to have both.
@minor roost sup dude
bp to behaviour packs, rp to resource packs
Yes yes I know
im boutta watch 10 hours of roblox coding tutorials o-o
im
hi undefined, im quartz
hi quartz
Good luck with Lua
Where arrays begin at index 1
🤮
🤮
Monke
yes
Top 1 reason by matlab 🤮
😂
anyone tried developing emulators here?
i made a chip8 interpreter
and a gb emulator
which was extremely broken
im working on a new one :p
Hola
I made a
Phone emulator
And I did “inspect element” on hoogle
And bam click the phone and it makrs a phone emulator
Easyyy 😎
And I made it cause I changed the elements of the page 😎 😎
I'm not sure about .mcpack, but if it's a .zip you probably have to unpack it first and it'll give you an .mcpack which you can click then
No idea then, never really played on Bedrock :p
/demote @ocean sparrow "Doesn't Play Bedrock Edition"
@ocean sparrow Rename it from a zip to just .mcpack like I mentioned previously
It's a texture pack so it would go in resource pack
wrong ping 😂

@lusty pagoda
Why does shaders doesnt work mc win 10? I've googled about it and im pretty sure it uses hlsl or some sort of language
STOP IT!
?!
He hates uwu

where do y'all store you coding projects (on linux)?
I was also going with /var/coding/... but imo there could be a better place to store (maybe under /home/majksa somewhere?)
no translator rank anymore?
ye
/home/stuff
/opt/project
opt = optional
Hey I don't know if this is really good for this chat but does anyone know how to unclog a 3d printer extruder?
By "why" I mean tears
Your printer should have come with a tool, that looks like this
Mine didn't come with that but it came with this
And when I say clogged I mean rly rly rly clogged
best to look up a guide or video online, if it's really clogged you either want to melt it out with a heat gun or buy a new nozzle. nozzles are pretty cheap
Yo
Guys
have amogus in the sus with the wind blowing in fall of September 36 on April 2019 in the bells of mars. Of the time where the bears will migrate for the winter to find a place so they can then migrate to, in the summer they will be not but an admin in the hour of days or I will sacrifice myself to live!
Answer the question
So why did I have an aple in Monday? Where I can't eat apples
I have been removed from the team for breaking Discord ToS by sending a mass DM with a petition to all translators.
That's not very bright, did the petition work?
😂😂😂
lmao you had one job

if you knew the TT situation, you would have understood why I have done it. but I agree that choosing this way of spreading it was stupid and I deserved the punishment - even though almost no-one knee it was against tos
It is a very fine print
all the software and [...] that are not part of the default installation
Imo personal projects fall under this definition, and it's the only folder that is not overrun (like /var) by default linux stuff
elenahh got demoted 🥴🥴🥴
is learning programming online better than learning it at a college?
Because I feel learning it online is getting hard to me
What material were you printing with?
I think you can apply that question to any subject @lusty pagoda
it entirely depends on your learning style
I understood it online... But once the guy reached the "while loop" in Python I got lost arranging the spaces
I don't think college will entirely help with that, since computer science college courses cover a lot more than just programming
And I heard I need another thing to learn among computer science as I might get like... Kicked out of my job
Also to use that tool I usually heat the hotend to about 20C above normal printing temp and put it into the nozzle giving it a wiggle around once its in there and extrude ~ 2 cm. If the material is properly baked into the nozzle i'd just get a new one as they're cheap and not worth the effort to clean if the clog is V bad. Just make sure to do a hot tighten when putting the new nozzle in else you'll end off worse off.
@everyone
no
Pla
Yeah I tried heating to 260 c but isn't working to well
if you know how programming work in one language you can easily just copy that knowledge over to another language
I only know HTML which isn't a "programming" language :/
do you not even know js?
I mean, if you want to couple your knowledge for web development learning js
yeah it's a bit easier but js is no difficult language unlike c++ for example
Yep lol
If you do want to learn another language you could learn PHP because it's alot like html so it should be easy to learn
I learned HTML only, no CSS nor JS
Are you sure?
@spring tiger what do you think? Is PHP more like HTML and easier than Python?
I know my friend who likes coding using PHP but I'm afraid I will stop at the 1st point
I really wanna do something...
Yeah I'm learning it rn I've learned alot of coding b4 but it's basically just an updated version of html from what I've heard
From your own perspectives, is it easy for a beginner like me who knows HTML to start with it?
Yeah
Note again: I don't know any CSS or JS
Another easy one is c#
Well they're alike but different languages
Useful?
Ye
For example with PHP I can help my friend
What about C# what can I do?
Like video games
Personally I made an anti virus / hacking software for myself with it
You wha-
I have alot of free time
Okay then
I have some knowledge about Python and a lot about HTML
I can start PHP
K good luck!
Also being 13 and knowing this much about programming I don't have much of a social life anyways lol
delete that 13 good!
Ye
Or for preadator reasons...
I'm a boy just btw
Doesn´t change a thing
Some countries need you to be older to be able to use discord
Such as Ireland where the min is 16
Any tips for learning java?
C# is like java
Didn't u use to be a mod
nop
I downloaded a file, I extracted it and did those stuff
I typed "cmd" and opened the command prompt, I typed ">echo %PATH%" but it's giving me an error
Basically
I can't type the command here
need a fast reply because I'm running out of time
press enter
and don't type the > at the beginning if i understood correctly
Fastest response ever
quick google finds the solution
https://stackoverflow.com/questions/30811668/php-7-missing-vcruntime140-dll
https://www.microsoft.com/en-us/download/details.aspx?id=48145
I have an error when I start PHP 7 on Windows. When I run php on the command line, it returns a message box with system error:
The program can't start because VCRUNTIME140.dll is missing from
0.0
It's actually PHP 8
I'll Google
I thought it's a problem I made though editing files
It's the same answer.
The error you're getting is not due to your PHP version
You need to download and install https://www.microsoft.com/en-us/download/details.aspx?id=48145 (VCRUNTIME140.dll)
C++?
Why?
Learn the PHP programming language in this full course / tutorial. The course is designed for new programmers, and will introduce common programming topics using the PHP language.
⭐️Course Contents ⭐️
⌨️ 1. (0:00) Introduction
⌨️ 2. (1:56) Windows Installation
⌨️ 3. (7:32) Choosing a Text Editor
⌨️ 4. (11:06) Hello World & Setup
⌨️ 5. (20:29) ...
PHP requires that distribution to run, it's stated on the PHP install page
Many languages are built on top of others 😛
🤔 ឵឵
I noticed you used a 4 hour python course video
I don't know about you but personally I find it really hard to watch a video on someone programming, especially when there's no way to ask why they're doing what they are showing.
I'd suggest w3school or sololearn for learning languages because it goes through step by step with lots of examples, and sololearn at least has a massive forums section on each of the questions and answers
also 4-5 hours to learn a language from scratch is not very possible, it takes time to learn it (and that's not an issue!)
I mean like
I need somewhere to apply instead of just memorizing
huh.... 1 sec...
The 3 or 1 of them?
PHP may require all of them yes, depending on what you do
I only fully learned HTML
CSS wasn't taught correctly with solo learn
JS is a high level of programming
How? It directly started with fonts and stuff that I couldn't apply
They may go through styling with CSS, generally if you're doing web dev you'll never use just plain HTML, CSS is pretty common these days. It's just the style attribute of a HTML tag but in its own file (that is very brief, CSS is a lot more powerful than just that)
JS is commonly used as a communication layer between PHP and the page, i.e populating the page with content based on output from a PHP script
o
+1
I learnt everything using w3schools or sololearn - usually w3 on PC and solo on phone
To talk about programming :P
I mean, how is that anyhow relatable to the CubeCraft server?
how is #🎨︱creations related to cubecraft
how is #🕯️︱longest-night related to cubecraft
how is #📺︱media related to cubecraft
We have lots of developers who do porgramming 🤔
Programming.
Great spelling by yours truly
i love porgramming
i do too
sus
@kind brook
Count me as one of em, that's why I was interested in why there is a programmers text channel...
Cause it IS weird.
That's perhaps the first ever server that I saw that is not themed as programming but has a programming text channel
¯_(ツ)_/¯
Thx
Lol
Can I programming on iPhone?
you can programming on almost everything
There are probably apps out there to do programming, but I wouldn't say it's the most intuitive to use
Ok
@gaunt berry
well
if you are the compiler, you could convert your paper code to spoken commands
and your machine could be another person that listens to those commands

What programming does btw
I only know like
But I actually don’t know what it does
I got the pic from google
the "code" in the pic you sent does nothing
since its not real code
Yep lmao
it seems to be an xaml design to be used with like uwp, wpf or xamarin
seems like front end development mabye for a website or a game
ye is html
ok nerds >:(
that's html 
lol u be trying to impress everyone but rly it's just html
xaml looks the same
I dont know xaml so I cant rly judge that ig
ok nerd
lol
do you think im that smart
just fire it up
omw to open the terminal on a tree
Hi that smart, I'm Molly
system32 isnt a file
u
nah, just create an empty file called system32.exe then delete it
cringe
File f = new File("C:/Windows/System32");
f.delete();
Nah he’s not that smart ngl
He is 🙄
hi
she is molly not smart
anyone knows if it is still possible to get access token from the Mojang API after migrating your account? The old https://authserver.mojang.com/authenticate does not work anymore
"error": "ResourceException",
"errorMessage": "Gone (410) - The requested resource is no longer available at the server and no forwarding address is known"
}```
probably because authentication is done through microsoft now
ye but I can't even find any microsoft api for minecraft
tfw the build script is harder than the project itself
Hey guys, having a little programming problem.
I challenged myself to write a program that will take 3 numbers, num1, num2, result. And then will return every possibility to get the result using num1 and num2 at least once
I had an idea, and it's kinda working but I am not sure about how efficient my solution is, so I thought i'd listen to other people's opinions
which language are you using?
C#
But the action between the numbers is supposed to be "+". So multiplication and division and subtraction etc are out of the question....
Does anyone know if .json would be good to program a motion tracker?
.json is a storage file format, not a programming language 😛
Lmao my bad
Anybody?
not sure what you mean, are you wanting solutions from others or others to discuss your solution? @real moss
Just general ideas to a solution. I can share here my solution how I did it, though I am not sure about the efficiency. So it'd be nice if yall could share your ideas about how to achieve this...
{
public static int milkPrice = 8, muffinPrice = 5;
static void Main(string[] args)
{
Console.Write("Enter a number: ");
int coins = int.Parse(Console.ReadLine());
while (coins != -1) {
Possibilities(coins);
Console.Write("Enter a number: ");
coins = int.Parse(Console.ReadLine());
}
}
static void Possibilities(int coins) {
int numMuffins = 0, numMilk = 0;
coins -= milkPrice;
numMilk += 1;
while (coins % muffinPrice != 0 && coins > 0) {
coins -= milkPrice;
numMilk += 1;
}
if (coins % muffinPrice == 0 && coins > 0) {
numMuffins += coins / muffinPrice;
Console.WriteLine($"\nMilk: {numMilk}\nMuffins: {numMuffins}.\n");
while (numMuffins > milkPrice) {
numMuffins -= milkPrice;
numMilk += muffinPrice;
Console.WriteLine($"\nMilk: {numMilk}\nMuffins: {numMuffins}.\n");
}
}
else Console.WriteLine("No possibilities.");
}
}```
here's my solution...
oh, so basically something that takes two numbers x and y, and will output all combinations of x and y to get z?
yeap
My solution works fine btw,
output:
"Enter a number: 190
Milk: 5
Muffins: 30.
Milk: 10
Muffins: 22.
Milk: 15
Muffins: 14.
Milk: 20
Muffins: 6.
Enter a number: "
Why Did I Click On This Channel Now I am Losing Brain Cells..
Lmao
Oh btw I forgot to mention that instead of num1, num2, result I am using milkPrice, muffinPrice, Coins
Where I need to buy at least one muffin and one milk carton, and be left with no coins
But you know, the value and name of the integers can change. That was just my personal choice
i got bored and made a calculator injava, the problem is that im using double to store the score result
when i divide 5 by 3 thats good, cuz i get decimal places, but when im ading 6 to 6 im geting 12.0
so my question is, is there any method that i could use to remove the ".0" and no converting it to int doesnt work cuz like i said i sometimes will need decimal places
t
BigDecimal type, as it has a .stripTrailingZeros() method
Awesome, that works thanks weather boy
@minor roost
I need help
:FLUSHED:
vry helpfull
i agree
Anyone knows how to program a discord bot?
Can you teach me how to do it? I watched some tutorials but it doesn't work...
But keep in mind that I don't have the code in front of me rn lol
well first you start with ```cs
using System;
using System.Threading.Tasks;
using DSharpPlus;
using DSharpPlus.CommandsNext;
using DSharpPlus.Entities;
using DSharpPlus.Interactivity;
using DSharpPlus.Interactivity.Extensions;
and then u do this ```cs
namespace ThisDoesNotExist_bot_dotnet5
{
class Program
{
public DiscordClient Client { get; set; }
public InteractivityExtension Interactivity { get; set; }
public CommandsNextExtension Commands { get; set; }
public static string tok;
public static string userid;
public static string[] arg = new string[5];
static void Main(string[] args)
{
try
{
tok = args[0];
var prog = new Program();
prog.MainAsync().GetAwaiter().GetResult();
}
catch (Exception e)
{
Console.WriteLine("pls use me correctly thanks\n" +e);
}
}
public async Task MainAsync()
{
var cfg = new DiscordConfiguration()
{
Token = tok,
TokenType = TokenType.Bot,
AutoReconnect = true
};
this.Client = new DiscordClient(cfg);
var ccfg = new CommandsNextConfiguration()
{
StringPrefixes = new[] { "." }
};
this.Commands = this.Client.UseCommandsNext(ccfg);
Commands.RegisterCommands<thisfursona>();
Commands.RegisterCommands<ping>();
Commands.RegisterCommands<thisperson>();
Commands.RegisterCommands<thiscat>();
Commands.RegisterCommands<thishorse>();
Commands.RegisterCommands<thisart>();
Commands.RegisterCommands<credit>();
Commands.RegisterCommands<thisanime>();
var activity = new DiscordActivity()
{
Name = "Hazards Stream",
ActivityType = ActivityType.Watching
};
this.Client.UseInteractivity(new InteractivityConfiguration
{
// default timeout for other actions to 2 minutes
Timeout = TimeSpan.FromHours(12)
});
await this.Client.ConnectAsync(activity);
Console.WriteLine("logged in as " + this.Client.CurrentUser);
userid = this.Client.CurrentUser.Id.ToString();
Console.WriteLine(userid);
await Task.Delay(-1);
}
}
}
and done
u have discord bot
yeah that was a joke
😳
Spanish
the language of the bot?
programming language
or mine?
and so?
oh it's another type of language
lmao
I said I was stupid and I never coded anything
What's the programming language?
There are different programming languages u can learn for different things
Like java
And stuff
And I have no idea what I'm talking about
But yk
like Java script?
Yea
oh so that was the answer
he really left
i am ded
Lmao
It's java script
ok i dont do javascript
best not to start with a discord bot if you've never done a programming language before, although impressed with determination
yeah id suggest learning the language first
ok thanks
https://www.w3schools.com/ is where i learnt js
w3schools 😍
gl
and fyi, the code i sent is from a bot i made and its written in c#
and for nerds out there: yes i know i can register commands automatically but i cba to do it when theres this few
Lmao xD
this 👆
Discord.NET is better than DSharpPlus
change my mind
ew
@plucky hamlet Please don't spam
I'm not sure your allowed to do this.
How do u program a sosphicated program w/o getting bugs? What IDE should I use?
when you use Word as IDE, you have a great variety of fonts and sizes you can use. If thats important for you, that's the best.
jk
probably intellij
depends what programming language, as there are some IDEs catered for specific languages
I really want to find out how the server encrypted the resource pack...
it is
its some weird magic only magicians know about
dont tell me this isnt encrypted
English
i already left, ur late
sad
cubes pack
and every other featured server pack has it too
atleast the signatures.json
bedrock
ok mr big brain
tip: dont buy bedrock its garbage
I think the Server resource pack is encrypted by minecraft. Because when I install it on my server minecraft is still readable and it works fine. Can someone confirm if that's true or false for me?
its encrypted by cube
but minecraft can read it because of the signatures.json it seems
this is why i dont like closed source programs
stuff like this pack encryption thing
theres no documentation on it and just a few people know how it works
It is encrypted, and we do so to protect the work we've made for the pack.
Maybe I need to buy Mojang again for more🥲
just make a mc server and apply for it to become featured
and theyll probably give you docs on it
my WIP Gameboy emulator
it's tileset
screen doesn't work yet
it's written in js
Beep boop
taken from nukkit's protocol
the packs need an encryption key from the server too 👀
Super cool!
Does anyone know what platform the server is developed on? pocketmine, nukkit, bukkit, altay, bds :>, or is a self-developed platform.
Iirc its a modified version of spigot
CubeTap
XDDDD
I didn't know that there's a programming channel here
Feel free to ask anything and we'll help u out

css or html?
no
Delete the entire thing and you won't get any errors
Bruh
idc
thx, u too
leave programming, u will have no errors
:)
Is it your plugin or someone else's
@ocean sparrow thx man i fixed it ❤️☺️
does https://stats.cubecraft.net/ use Minetrack?
I didn't even help a bit
😂
maybe show the actual code and we can help you?
.
hi there
U forgot a bracket at the end of the 3rd line
where do you live ?@minor roost
@minor roost no
this because i dont create called rank "VIP"
cursed book
you = "likecubecraft"
if you == "likecubecraft":
print("pog")
Pug
else:
print("You are normal")
import society
you = society.human
if you.like_cubecraft: #thanks nightmare
print("pog")
else:
print("You're normal")
implemented
Programming
== true is pointless
Aww man, ironic, I've said that too and now I've done it xD
also I think import like would be a dead import
it's just a joke code 😛
I know I know
Hey guys how can I find the attack damage, movement speed, health of a entity in a java mod lol
( Minecraft Mod )
Just doing porting stuff and I am stuck here
Depends what language the mods running on and what mod it is
I run on English
Welp I think we found a non programer lol
I run on css
Nice I run on c++ that's why I'm so smooth😎
Hi so smooth, I'm Molly
:/
Forge or Fabric
Welp I can't rly help u there don't know much about forge in afraid
Fabric: https://fabricmc.net/wiki/tutorial:entity#registering_entity_attributes
So to find out vanilla ones, you need to look in the vanilla files and work your way up the inheritance tree for some mobs to eventually find where their attributes are defined
Thanks 😄
How would I get the value of a CSS attribute on an element with JavaScript? I have tried:
const x = document.getElementById("arrow")
if (x.style.left = "100px") {
console.log(“Hello”)
}
I have also tried replacing “100px” with 100, but it still cannot read the property of null. Here’s my HTML body:
<div id="arrow"></div>
Here’s the CSS:
#arrow {
width: 6px;
height: 100px;
left: 100px;
position: absolute;
}
Thank you!
tetris works... kinda
i should start working on MBC1
and fix the STAT interrupt
Be aware that tetris still has copyright, if you were to publish it you'd be infringing it and you may be contacted by the tetris company lol
And if you don't comply with them you can be sued
Is it possible to convert a java entity animation to Bedrock ?
For example I want to convert the model and animation of this file to Bedrock. I am able to convert the model but what about animation
You migjt be able to open it in Blockbench and the going to File > Export > Export Bedrock model
I have to convert the project to Bedrock first ?
Then export ?
Because if I directly go to export after importing this model their is no Bedrock option
And if I do Import > Convert > Export Bedrock Geometry it only downloads the geometry not the animation
I guess I have to recreate the animation or convert it manually right ?
I'm not going to bundle any game roms with it
i have two texture packs i want to combine, and the code in the ui sections of each texture pack is formatted like
{
texthere
}
if i wanted to combine the code from each texture pack, how would i do so?
like this
{
texthere
}{
texthere
}
or
{
texthere
}
{
texthere
}
or something else?
I agree
I think both of those options u sent would work the same if it is json
I don't think it is gonna combine like that
You'll need to show us like what exactly the both codes are
{
/////// Animated GUI Pack ///////
//(c) By @CrisXolt.
/*//////////////////////////////////////////////////////////////////////////////////////////////
// GUI Textures Setting Up.
////////////////////////////////////////////////////////////////////////////////////////////////
[ English ]
// Total frames per cycle depending on the vertical base size about texture.
// Valid values are from 01_frames to 40_frames.
// If you want that has not animated, just leave the value "01_frames"
// Duration per frames, is recommended to use the same value for
// some twin textures if their total frames is both the same. */
///////////////////////////////////////////////////////////////////////////////////////////////
// HUD
///////////////////////////////////////////////////////////////////////////////////////////////
///// Empty XP Bar /////
"$empty_xp_bar_texture": "textures/animated_ui/hud/empty_xp_bar",
"$total_empty_xp_bar_frames": "40_frames",
"$empty_bar_duration_per_frame": 0.05,
///// Full XP Bar /////
"$fill_xp_bar_texture": "textures/animated_ui/hud/full_xp_bar",
"$total_full_xp_bar_frames": "40_frames",
"$full_bar_duration_per_frame": 0.05,
///// XP Number /////
"$total_xp_number_frames": "40_frames",
"$xp_number_duration_per_frame": 0.05,
"$xp_number_color_frame_01": [ 0.250, 1.000, 1.000 ], /* Light Blue */
"$xp_number_color_frame_02": [ 0.250, 1.000, 0.900 ],
"$xp_number_color_frame_03": [ 0.250, 1.000, 0.800 ],
"$xp_number_color_frame_04": [ 0.250, 1.000, 0.700 ],
"$xp_number_color_frame_05": [ 0.250, 1.000, 0.600 ],
"$xp_number_color_frame_06": [ 0.250, 1.000, 0.500 ],
"$xp_number_color_frame_07": [ 0.250, 1.000, 0.400 ],
"$xp_number_color_frame_08": [ 0.250, 1.000, 0.250 ], /* Green /
"$xp_number_color_frame_09": [ 0.375, 1.000, 0.250 ],
"$xp_number_color_frame_10": [ 0.500, 1.000, 0.250 ],
"$xp_number_color_frame_11": [ 0.625, 1.000, 0.250 ],
"$xp_number_color_frame_12": [ 0.750, 1.000, 0.250 ],
"$xp_number_color_frame_13": [ 0.875, 1.000, 0.250 ],
"$xp_number_color_frame_14": [ 1.000, 1.000, 0.250 ], / Yellow /
"$xp_number_color_frame_15": [ 1.000, 0.900, 0.250 ],
"$xp_number_color_frame_16": [ 1.000, 0.800, 0.250 ],
"$xp_number_color_frame_17": [ 1.000, 0.700, 0.250 ],
"$xp_number_color_frame_18": [ 1.000, 0.600, 0.250 ],
"$xp_number_color_frame_19": [ 1.000, 0.500, 0.250 ],
"$xp_number_color_frame_20": [ 1.000, 0.400, 0.250 ],
"$xp_number_color_frame_21": [ 1.000, 0.250, 0.250 ], / Red /
"$xp_number_color_frame_22": [ 1.000, 0.250, 0.400 ],
"$xp_number_color_frame_23": [ 1.000, 0.250, 0.500 ],
"$xp_number_color_frame_24": [ 1.000, 0.250, 0.600 ],
"$xp_number_color_frame_25": [ 1.000, 0.250, 0.700 ],
"$xp_number_color_frame_26": [ 1.000, 0.250, 0.800 ],
"$xp_number_color_frame_27": [ 1.000, 0.250, 0.900 ],
"$xp_number_color_frame_28": [ 1.000, 0.250, 1.000 ], / Pink /
"$xp_number_color_frame_29": [ 0.875, 0.250, 1.000 ],
"$xp_number_color_frame_30": [ 0.750, 0.250, 1.000 ],
"$xp_number_color_frame_31": [ 0.625, 0.250, 1.000 ],
"$xp_number_color_frame_32": [ 0.500, 0.250, 1.000 ],
"$xp_number_color_frame_33": [ 0.375, 0.250, 1.000 ],
"$xp_number_color_frame_34": [ 0.250, 0.250, 1.000 ], / Blue */
"$xp_number_color_frame_35": [ 0.250, 0.400, 1.000 ],
"$xp_number_color_frame_36": [ 0.250, 0.500, 1.000 ],
"$xp_number_color_frame_37": [ 0.250, 0.600, 1.000 ],
"$xp_number_color_frame_38": [ 0.250, 0.700, 1.000 ],
"$xp_number_color_frame_39": [ 0.250, 0.800, 1.000 ],
"$xp_number_color_frame_40": [ 0.250, 0.900, 1.000 ]
}
and
{
/* Vanilla DX: Bottom Chat UI Tweaks */
/* (c) CrisXolt. Don't use any code without authorization! */
"$main_menu_button_default_color": [ 0.87, 0.87, 0.87 ],
"$main_menu_button_hover_color": [ 1.0, 1.0, 1.0 ], /* Before [ 1.0, 1.0, 0.62 ] /
"$main_menu_button_preesed_color": [ 1.0, 1.0, 1.0 ], / Before [ 1.0, 1.0, 0.62 ] */
"$main_menu_button_locked_color": [ 0.62, 0.62, 0.62 ],
"$chat_size": [ "40%", 180 ]
}
basically want to add the contents of each notepad file into one but when i do only one texture pack works
and i cant just copy the left folders to the right ones because they have the same name
yeah it won't work by merging them either.
unless their contents are entirely different, you're going to get really strange UI changes with both of them merged, because they will be trying to modify the same thing.
in terms of merging global variables, you merge them like so:
{
// pack one stuff here...
"$xp_number_color_frame_02": [ 0.250, 1.000, 0.900 ],
//..
// pack two stuff here...
"$main_menu_button_default_color": [ 0.87, 0.87, 0.87 ],
//..
}
this is the case with the other files too, but as I mentioned this would only work if their content is not identical in what they are modifying
for example
if hud_screen in pack one is modifying one thing, and hud_screen in pack two is modifying an entirely different thing, then you can merge them like the above.
if they are modifying the same UI component, this won't work.
@spring tiger What about this ?
never used java models before so can't help there ¯_(ツ)_/¯
Oh lol alright
Thanks for your time :)
Hi, I am having issues with using this answer https://stackoverflow.com/questions/5730092/how-to-remove-html-from-url, I have enabled the .httaccess but when I try to apply the suggested rewrite cond and rule and it simply does not work as it should aka I still can't get domain.com/example but I can get domain.com/example.html.
I have checked that the .httaccess is actually working by doing Deny from all and then the request indeed returns 403
have you tried the second answer on that page, it has nearly the same number of upvotes
and comments saying that the marked answer doesn't work for them
oh thanks, works now. I must've made some mistakes when trying it earlier
I know how to code json
How to change player generation when interacting with something
Specifically seat/sit
What u mean by player generation
If you want to make someone look like theyre sitting I guess spawn an entity like horse and attach the player to it
But the player sits very weird on a horse
It should be exactly the same model as sitting on everything else
You can try a pig
Maybe there's a class like Rideable so you can see what else extends/implements it
If player sits very weird on your horse can u try looking at the Vanilla Example packs
[{"name":"a"},{"name":"b","changedToAt":1580674354000},{"name":"c","changedToAt":1585250931000},{"name":"d","changedToAt":1588353057000},{"name":"e","changedToAt":1590959366000},{"name":"f","changedToAt":1593679856000},{"name":"g","changedToAt":1597599999000},{"name":"h","changedToAt":1607019146000},{"name":"i","changedToAt":1609612917000},{"name":"j","changedToAt":1612990049000},{"name":"k","changedToAt":1615656673000},{"name":"l","changedToAt":1618679560000},{"name":"m","changedToAt":1621348441000},{"name":"n","changedToAt":1625401361000},{"name":"o","changedToAt":1630861001000}]
Does anyone know how to de-serialize this to java array list with jackson?
@sweet barn The empty message kicks were our mistake and they have been fixed 🙂
Awesome, thanks a bunch!
Does anyone know how to hack a Google Forms?
Just don’t install anything that claims to be able to lol
Can someone tell me how can I make Gradle generate a pom.xml, nothing from our lovely StackOverflow works
Ofc, open your fav browser, make sure to remove VPN and Virus protection if u have. Search for a site that starts with http: and look for .exe file and download it, then just run it
That was a joke dont do that, and focus in class, ik it's hard but it pays of later
Hi, im trying to setup a minecraft server from a vps (archlinux), but when I try to build a package with makepkg but because we`re rooting to the vps we cant use makepkg and we cant install anything
running makepkg is not allowed, as it can cause permanent catastrophic damage to your system.
is there someone who knows how we can fix this?
I know how to urmom#
is it possible to add Cache-Control: No-Store to an html header or am I misunderstanding it, I know it's an http header and not html but isn't that kinda similar? https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
No
Thanks sir, may I also ask what is an http header, sounds like something you can explain to me
Yo those things do cool stuff like letting client and server make info go brrrrr
Thanks
How accurate was it
I just said random code words
Like client
And server
Well
The http header is sent with the request to provide some info to the server like Auth token, format of the response you wanna get etc
Sounds like I was right
Totally
@quasi oasis @abstract scroll make me dev rn
Hi ur dev now
Pretty close
Keep an eye on jobs.cubecraft.net
What language does cubecraft run off
CSS
As far as i'm aware both bedrock and java run on servers and plugins made in java
👀
no me 😏
why did u get fired anyway?
oh yes <33
ehh, long story. but lemme find the copypaste xd
Ah okay
I have been removed from the team for breaking Discord ToS by making the TT bot send a mass DM and using it in an unintended way.
Lol
Don't laugh lol
F prime
helooo!
how would i setup input validation for python
so for example
x = int(input("please enter a whole number"))
like how would it make it so that if they entered something thats not a whole number or even a letter
Use isinstance()
Personally I would parse x after the input as an int if it is not a float (using isinstance), and re-prompt input if it is a float
BASIC
Anyone here ever used Firebase by Google
yes
Of course, anything with code is
its not programming
like placing letter cutouts is not typing
Scratch is absolutely a programming language 🙂
Meh
thats still cool
whats wrong with scratch
scratch is a very good start
i started with scratch although it didnt help much and i couldve started without it its infact very nice for starting
cause it doesnt learn how to CODE
yes it does
how
it teaches the basics
you learn many concepts of programming with scratch
put it this way, people have been able to make 3d engines with scratch. sure their performance is awful but it goes to show you can do many of the core concepts of programming with it
^
thats just syntax
c++ is also different from python
its meant for beginners and the visualization is really helpful

I'm working on a social media type app do you think it would be better than spending hours of time and money on a backend?
if ur lazy use firebase, making it yourself would probably be better tho
I mean using firebase would give you time to add more features, or improve on existing ones without a HUGE difference on the app
Depending how good you are at backend
Week 1 of doing a computer associate degree in uni: why are all the other students socially incapable nerds?
working with computers = not working with other people
not working with other people = heaven for (some) nerds
What did you expect
Lol
this doesn't have to be true
