#💻︱programming
1 messages · Page 1 of 1 (latest)
Raw text?
?
You want the raw formatting style? Check the gist
from java import headache
Horror
Guys who knows how to solve the problem
@frozen lion I just spam jump
what gist
give me a link
How did you not see it when you sent the first message lol, just scroll up
Not programming related but check ur internet
Or you may live far away from any cubecraft servers
lul im blind xD
ur just too laggy !
That just god mode
`lol
can anyone suggest some good librarys to make games on a web browser (am trying to make a multiplayer game with websockets)
u can use unreal engine or unity i think
Why use libraries for a browser game when you could just use unity and unreal
🥱🥱🥱
you realy think am gonna go back to game engine
im to stupid to know but how do you get custom dyed armor just through commands?
by dying it
easy
magic
Hello guys
Is there anyone knows in mechanic ?
I just have a proplem with automated bleed function for cadilac sts 2007
If anyone can help
Java or bedrock?
I don't think its possible on bedrock
Nice
or phaser.io if u want
ok nvm it just didnt dye the armor :(
if you do know how did they make the wizard kit armors dye the most bluest than dyed in a cauldron? @brisk badge
found out i could use unviserse mc editor and take java color codes and replace it there
They can make it with the help of plugins, which have, especially in bedrock, a lot more possibilities. You can dye leather armor in any colour you want with that method, which is also possible in Java with commands. In bedrock, I don't think there is a way to give dyed armor items, so you'll have to dye them manually, put them in a chest, clone the chest to the position of the player and destroy the chest and the chest item.
You can't use any color though; you are bound to the colors minecraft has provided: the dyes
I mean at least I found one way and it worked
I needed it for a map I was making
It was going to be like an Extension of FFA in cubecraft but with more kits and cool things too
Cool!
@woeful crystal you could prob edit nbt data to get that custom item ig
I literally just did that and used javas color code
alr
is it java or bedrock
i was going to stream me doing my HTML homework but i forgot we dont have programming vc anymore
sadge life
dead
self.input_layer = nn.Linear(self.input_size , 128) is this a dense layer? is the input and the first hidden layer?
i have a school project where i gotta make a pet adoption website :D
Im thinking of something like this
noice
use figma to create a good design
after that sketch
or your brain gonna go haywire(or only mine does)
design tool for making guis
O
very useful if you are a perfectionist like me
0_0
ikr
U mean new no?
Python or java script
That's not true @wicked moth 😄
Both languages are extremely powerful and have their own benefits for different use cases
in my opinion, i have coded java script but i prefer python
but i also dont program games i code drones and robots
so robotics
also i was wondering if i could ask you about the staff application process
Which position?
as helper
Go ahead, I don't work with helper applications however so might be better to ask in #💌︱staff・help
i still think js is supior in all aspects other then library fighting(that is what i call it bc too many libraries on same thing)
you arent wrong at that
I use punchcards, which then convert to brainf. Next, I convert the brainf to straight binary. From there, I can then convert the binary to a scratch project, which I then re-create on a web browser.
💀
Yes
💀
Bruhh
hey anyone here smart with stuff
with like coding and such
I found a thing that'd give me zoom in bedrock without being Onix... I run 32 bit... issue being it gives me an error bc it hasn't been updated in like 2 years
anyone have a way to fix it/have an alternative solution that isn't on 64 bit? I'm running 1.18.12 on x86 bc I can't do render dragon it fries my pc
you got src code?
and me
Hi
Hi
is there a way to get different coloured names in mc chat on bedrock
like in cc
ive been searching but i cant find anything
yeh
in profile
social menu -> profile -> profile loot
nah i mean in your own realm/server
ive been looking for a mod but cant find one
i assume it can only be done with your own coding
just want to know if its possible instead of wasting time
i didnt really word my first message very well sorry
It's not possible on realms unfortunately
hey anyone that's smart with command blocks question for u
anyone know the symbol for "all data" for a block type for detect? (bedrock)
I'm trying to run /execute @e[type=silverfish] ~ ~ ~ detect ~ ~ ~ water (x) kill @s
replacing (x) with whatever symbol makes it so ALL silverfish die in water :]
but the problem being that if I do just testfor and run it that way, then every silverfish dies if one touches water, but I want to make it so that if the silverfish touches not just a source block it'll kill it
oh wait nvm I just realised its -1
Bruh
-lifesteal WiktorXponton
-1 should do the job
O yeah u found it out oops ;)
Hey guys, does anyone know how bedrock plugins are made? In particular, is there a framework everyone uses or how do you even get started?
Bare in mind that's for addons like the ones you see on Marketplace, not for server plugins
You'd be surprised
l
Gopmitla
Yeah
Hi
I'm representing a tensor with a flat vector, is anyone familiar with converting from multidimensional indices to a single one?
nvm google apparently has that on the 14th page.
What type of plugin
Any Type
isn't that just going through the tensor using double for loops and putting each value into a flat vector
also is tensor a matrix, or am i wrong about that??
Yes, hi
Hi
I need to export my world, but I'm on Android. Can anyone help me or link me to a working tutorial?
i mean a quick google search comes up with the minecraft guide to that 😛 https://help.minecraft.net/hc/en-us/articles/4409165790605-Managing-Data-and-Game-Storage-in-Minecraft-
Which one do I read? None of them seem to relate. I want to export a world as a .mcworld or .mcworld.zip and then share it
You have to access your game files as it mentions in that URL
use a file manager on your phone to zip the contents of the world folder and rename it to .mcworld
I went to com.mojang.minecraftpe > files > games > com.mojang > minecraftWorlds and compressed the world folder as .mcworld.zip, but when I tested it by changing it to .mcworld and opening it in Minecraft it failed to load
when you access the zip what are its contents
the usual
should look like this
yeah i've seen you've exported our lobby
so just rename that .zip to .mcworld
that's all that should be needed
Is it the game giving the error or your file manager
game
i assume the file manager you're using does a zip compression that the game does not understand
I used ASTRO to zip my worlds
im using Cx File Explorer
lemme try installing ASTRO
for some reason Android > data is empty
All files in the data folder are hidden
on astro go Home -> Settings cog -> Default view settings -> Hidden items (on)
Still doesn't show up
I tried copying the folder to my downloads folder via Cx and then compressing it via ASTRO but testing it still results in error
If I dm you the world folder can you try doing it for me?
(I don't think seasonalwarz will be happy if I leak the file in the cubecraft discord)
@spring tiger
conea you got windows 10?
You see the problem is is that you need to export the file by going into files and then you need to press the export button to export the world from your device to the place you want to export it to.
Be careful not to save as because saving as doesn't mean you have exported it so to export it then you have export it.
?
what export button
im not on windows 10
wait you have no windows 10?
I don't own a pc
Qsecrets does it
screenshot
i screenshotted your message
@tepid chasm I am sure you can find a tutorial on YouTube
nope, cant find any
i tried everything but no work
None?!
i looked at some and they didnt rly help
tutorial for what
exporting world on mobile
Then ur doing something wrong
like from mobile to computer?
i followed this guide and it didnt worm
work
i compressed the world folder
but i tested it and it didnt load into mc
if i dm you the world folder can you try exporting it for me?
@brisk badge
I'm not home
oh
1)Turn on your PC
2) Connect your Phone with an USB-cable
3)Open your Phone files on your PC
4)Look for the place,, where your Minecraft Bedrock Stuff is stored
5) Copy and Transfer the world you want to copy onto your PC
no
what if no pc
I don't think you can drag and drop files on phone
At least with the Phones I know
But some phones have the options to transfer files with a button in the menu
May I ask you, why you don't have a PC/Laptop?
@spring tiger?
.
A tensor is a 3 dimensional array. I found a function that lists all indices in any dimension array, so i can just tweak that a little.
Also thx for recommending me Rust last year.
np
- First of all, almost every household in Anglo-America and Europe has at least two functional computers in their home and makes it a common feature to be home.
Unless he is not from these regions, not having a Computer is very unusual.
2)Secondly, your facepalm reaction is out of place.
Don't clown yourself
It's only normal to Android 11 or any newer versions of the OS because of the decision Google made, for the sake of privacy .
Data is not empty in the earlier versions in devices, where you run the older Android OS.
Do you even know what a stereotype is?
Apparently you do not.
A stereotype is an image you have in mind (usually of a group)which is untrue or uncommon).
And about the stuff I mentioned about, I never addressed or targeted a group.
All I did was saying that it us common for a household in NA and EU to have at least one PC.
First of all, learn reading and don't interpret or mix up the words of someone else.
Secondly,learn the actual meaning of words, such as stereotype.
The only one who is being a clown right now is you.
Neither have you helped the guy above much above and you just jumped right at me with "facepalm" and your response right now.
I have a laptop, it's really bad and cannot run Minecraft
@magic spruce can we keep the subject on programming?
I already stopped because
see no point in continuing
Then don't continue.
It should be enough for file managment
ok ill try
I can't plug my phone in, my laptop just charges it
There should be a notification on your Laptop/Phone, which will ask you, if you allow the connection between your Laptop and phone
nope
most likely the cable you are using is power only, is it the original cable that came with the phone?
Cables don't come with phones anymore lol
Also I'm using my controller cable as my phone one broke
If I dm you the folder can you try doing it for me?
@spring tiger
i don't accept dms sorry.
your best bet is to try a service like https://chunker.app/ and upload your world there, then get a download of it that works
like world folder?
world folder or your .mcworld/zip
oh wow, it actually worked
thanks for your help
now i just need seasonalwarz's permission to share
thanks a lot bye
it is the official thing from Mojang right?
its from hive which is a mojang partner
but idrc its still the best
i see
they said exclusively licensed to mojang doe
hive is partnered with mojang
it can be used to convert java maps to bedrock, and also convert zip folders to working world files
ikr
The anticheat of hypixel is called Watchdog
So basically the Sentinel of hypixel
Huh
Sooo
I downloaded a mod on my phone and copied my map to my ps4 through realms and tried to download it to my saved maps and when i started it it showed me something about watchdog script @brisk badge
That something failed
ah that's not related to anticheat
the addon you got on your phone likely used experimental features that require scripts, and those will not run on console
.
Player Tant33 = new Player(500, pro, 100, Cheese)
Syntax error: no semicolon
Player Tant33 = new Player(500, pro, 100, Cheese);
I forget those like 20% of the time
At that point might as well just add the semi colon and run the program if the debugger is so smart
Yes thats how I find out
but I start with my next line before adding the semicolon
The program doesn't really know if there is supposed to be a semicolon there. (The exception doesn't exist for that reason). It just assumes the commands goes further on the next line, but since that is a completely different command, it will not be able to understand it and therefore throw an exception
Yes but my ide highlights errors like this
In my humble opinion it is very rude and selfish of it not to add it for me if it sees it as an error
Error: trying to instantiate a non excitant class
idk java errors don't ask


@spring tiger thanks for your reply a couple of days ago. I was indeed looking for server plugins not addons. Could you tell me what tools/framework you guys use to develop plugins?
Public class ProMCGamer {
...
}
Idk why but ur banner makes me stare at it for too long👀
@quasi oasis give me your knowledge + +
anyone alive??
I’m died
😔
anyone know how to make discord bots here?
yes
Which language
yes
I know how to make another discord 😁
anyone good with json?
like Bedrock addon json
have a pack I need changed/fixed to do something different but I'm lost
@rose nymph you can contact a behaviour engineer designer
a whatnow
A designer that is specialized in making entities, like mitgobla
can you show your problem?
so I have an addon that adds extra player animations (crawl, low crawl, lay, sit, carry) and I just want it to have crawl and low crawl
i have 0 idea of how to do that tho
I don't want the other parts of the addon but "crawl" is tied to "sit" bc how the addon works is if you look down and crouch you sit down, then if you move while sitting you crawl, then if you jump while crawling you low crawl
I want it to be "if you look down and crouch you crawl, then if you jump while in crawl you low crawl, then sneak to stand up" and thats it
sounds a little complicated
you'd need to look into animation controllers
(I didnt make this addon btw my friend sent me it)
if u want I can send the addon here and if u can fix it to just have the crawl/low crawl that'd be cool
No idea what i'm doing with that btw. Ik its having something to do with animation controllers but other than that I'm lost lol. I don't do json it took me 6 hours to make animated sandstone
What do you mean?
i crashed my gpu drivers soo bad that it is asking me to pls reinstall them
how XD
Python
Python
When im piting a usb hub ans a pijuise on a respberry pi and using the command lsusb i have like 15 sec delay how can i fix it?
bri'ish
...
ilyt
wrote a shader
throw off a working guide on mcbe python scripts, please
you can't use python for bedrock edition @cedar robin
that's with educational edition
its a separate version to regular bedrock
and not the "enable educational features" switch in world settings
I see. Thanks
njkjnbnhu gcdxstfcyg jkbnmlbhyfgvcdrygvbn
too political
overrated opinion
I have a slight issue with Docker.
I have a file containing api tokens which I can't upload to github but the docker image is built on github with actions so the config is missing in the build and I can't really think of a solution
I was thinking about using the actions secrets but I have no idea how to implement that
I guess I could build the docker with arguments of all the keys (?)
yes, I know how to use actions secrets bhut I do not know how I could actually use them for my idea to work
because the docker image is public
use aternos.
BREHHHHH
what did I get pinged for?
Who programs with swift
RAF lol
||hi||
@sweet barn a question if is cubecraft using software spigot (modifer) so how then can use UI fourm to select games + i now spigot software using GUI fourm only how is thats its is possible to get the code ?
Worth noting that we've made a LOT of changes to our server software to support some of the stuff we do, especially on Bedrock, and a lot of our UI code is very specific to our setup too 😄
software cubecraft is private ?
yes
someone wanna play
Python
On line 12, it says encrypted_message is possibly unbound
But if i use .append() then it doesn't show me this error
You're defining encrypted_message inside and outside of a def, .append doesn't define it
bc encrypted_message is an array?
or does python allow that
oh alr
i don't think its bc of the list
As i allows it
I've used the same almost the same code in the password generator project and even the instructor has used the same thing
Yes i do understand that
As the list contains a single letters so i used += operator
Btw i'm new to programming
Just started learning from last week
Ok maybe i figured it out
So in python if there is an assignment to a variable inside a function, that variable is considered local. So have to use the global keyword inside the function in order to modify the list
If you are interested in watching a YouTube video, send me a private message or send a friend request
py weird ngl
this is ma problem, its pretty serious
Make more sense to pass the variable to the function, and return it.
Using global isn't very good practise; also you don't have to specify 0 in range
for _ in range(0, 10):
...
# Is the same as
for _ in range(10):
...
If you want to make a string from a list consider using the join function
# The functions works on a string, and takes an iterable (list, tuple, set, ...) as input. And returns a string
# iterable must only contain strings
# raises TypeError if a non string is passed (doesn't try to convert)
string_one = ", ".join(["1", "2", "3"])
print(string_one)
# returns "1, 2, 3"
As you get better at programming you will realise there is easier ways to perform what you are doing. Depending on your python version you can use string.printable or secure.choice Which would look something like this,
"""
choice = secrets.choice()
printable = string.printable()
for = length of pass
"""
pass = "".join(choice(printable) for i in range (10))
print(pass)
@void willow how can you optimize them 3d models when they are just boxes?
less boxes
Not if done correctly
The ones in-game look really similar, but they have 50% less cubes
o_o
that is a huge optmization
anyways congrats on becomming a duck(the ultimate being)
I
Anyone that's good with addons able to help me possibly
So I have this spider entity that I created in block bench but I made it way too small, and it's not animated at all, plus it's hotbox is too large so it takes damage while I have it crawl on the ceiling
Anyone able to help me add the animation file (I have the json) and maybe do the scaling and the hotbox I'd be super greatful for
So this is where the nerds hang out huh
I’m out here crafting a dispenser from memory thinking I’m big brain
Does anyone have universal minecraft converter? I have a ps3 world I want to convert but I don't have a pc
converted to what
I think there is no software that does something like that, convert a world from PS3 to Minecraft Java/Bedrock, but you can do the opposite using the Universal Minecraft Converter, so like to convert a Minecraft Java world to PS3.
bedrock ofc
there is
you can install it
install it?
lol alr
ill dm them
👍
oh god
reminds me of this tiktok
gime the video don't got tiktok in india
basically a guy giving a tutorial on hwo to create secure passwords
💀
oh, he stupid ngl
had a stroke seeing it
Goofy ahh indentation
bro i swear he could have just put all of the chars in the random.sample instead of adding them in a all variable
That’s the same, no difference. The actual problem is the random library, which is only pseudo random
I don't see an issue with using the random module
Since you'll never get a truly random number with any library
why would you ever need truly random numbers, if you are not working for like a bank
isn't it completely impossible for any code to be fully truly random?
Well yes
Cloudflare has lava lamps to generate encryption keys
normal computers cant generate truly random numbers no
If you connect them to a supercomputer from Google they can run minecraft at a million frames a second, did you know?
Idk man, my discord bot does random stuff 
Also, random should not be use for anything related to cryptography.
It’s a library to simulate randomness such that you can reproduce the same randomness an other time
Ofc it is fine here, but for any real stuff. Don’t use it
There's more over on Veritasium! "What is NOT Random?": https://www.youtube.com/watch?v=sMb00lz-IfE
SOURCES AND MORE BELOW!
My twitter: https://twitter.com/tweetsauce
My instagram: http://instagram.com/electricpants
Generate random numbers using atmospheric noise: http://www.random.org/
randomness:
cool video about randomness
i saw other video on randomness
also i have theory on randomness
nothing is random
I think it was a joke 😛
Bohr turns in his grave
anyone know a command to change the color of people name tag in bedrock like in skywars sqaud where your teammates name tag is green
That is done with plugins. On java edition, you would make a team and give that team a color, but teams don't exist on Bedrock.
So it's impossible, unfortunately
oh
is the plug-in public or private
Private, but I'm sure you can find how to do it on the internet
It shouldn't be too complicated (if you know how to make a plugin
alright thanks
you need to use 3rd party server software doe
if they are talking about command they def aren't using server software

you stinky poop
took me 5 mins to read that but why you posting that on cubecraft
it was a problem i had my thoughts on
the resource pack was for general purposes
any world, including servers
i see
the user's resource packs gets loaded up first before the world's
Bro leaked his ip 💀
idm it changes anyway
plus ip isnt even something hard to get
provided u play 1.9 ffa servers ur ip has already been leaked at least few times
bro really thought 💀, sorry lol
for my exuse i was trolled by the reveal ip button
which would suggest it is yet to be revealed xD
how do i post big amounts of code without spamming chat?
does it look nice?
i'm tryna remove that white thing
ooo that might look better
I've made an NPC shop using scenes in a JSON file, but I was wondering if I could make it faster as it feels extremely slow. Can anyone help?
You can use mystbin/pastebin/... to paste your code and send it here
First check with the allowed links, before you get muted ofc
Anyone know rust?
tiny bit
whats a good laptop i can use to play minecraft with good quality
really depends on your budget
You can get decent laptops for 500, good laptops for 1000 and great laptops for 2000
Depends why u want it to be a laptop
If u mainly wanna play games and don't have to take it to work / school then pc is better both quality and price wise
And u can always improve pc by just buying additional parts instead if having ti buy a new one like it's with laptops
U can always buy both if u have budget for it
Pc for gaming and some cheap laptop chrome book for example
Really depends on what u will use that computer for
https://www.cubecraft.net/admin.php
try: hazard pass: egg
its this good for a begginner?
HTML and CSS(idk javascript)
i used bootstrap
“Beginner” is relative but I would say nice job 👍
yeh
guys can ya gime some ideas for school project
i am gonna make an website and app
Sounds of fractals
ok i looked back at the allowed stuff, they said it needs to be an app
Make an app that lets you listen to the sound of fractals ¯_(ツ)_/¯
not so fun ui wise
i need something that appeals to everyone
not only teachers
since it is like an exhibition
Aah
lol
Heyo! Got a question: Is there a place where the packets are documented up to date? I'm searching for documentation for 1.19.1/1.19.2 but https://wiki.vg/ only has up to 1.19
Nvm got it. For anyone interested: https://pokechu22.github.io/BurgerWebViewer/
got it for bedrock edition too?
Probably not
They’re making their own server software in GOoOooOooOo
So not looking for Bedrock ig
bedrock? na they made it in c++
making their own client became boring ig
🙂 🙂

commands.Bot 💯
full of exploits
wat
yea ccr bot is
kk
Why are you making the embed twice :(
because I wanted to migrate away from the custom embed constructor
but never removed it
Not even the same embed 🤨
One has a time stamp, other not
didn't know that's a thing
Which you’re not
I'm on 1.7.3 xd
Will break later this year
🙄 🙄 🙄
🥲
I wanna do discord.js more
still me
on_member_(join|member)
Ok dc
Why do you have al entire Cog for just on_ready 🤨
Subclass bot if you ever remake it
✨ organisation
Way easier
Slack bot
I made a website with fastapi and spotify api
O
Wow wow
only thing I am not satisfied with is the speed
Well it’s Python lol
and well cold starts ofc but I don't wanna pay much to gcloud
Hello 👋
Does anyone here have experience with the Chrome Web Store Developer Dashboard
I'm trying to update my Store listing but it just gives me an error in the bottom left corner every time
:((
I tried to change it and had no issues
first I clicked save draft and then submit for review
When I click save draft it just spits out that error with no further information
very frustrating
Idk if it's a problem that I've uploaded a new package to the draft, but I don't think it should be
isn't there already a version awaiting review?
no, I've got 1 version that's currently published to testers
and 1 draft
It's so weird
and it's driving me crazy xd
The weird thing is also that I can update everything else no problem, like visibility, the package, payments & distribution
It just won't save the store listing
Maybe I should just Submit it for review, wait till it's published and then update the listings
and submit again
Thanks for checking though KristN
Apparently it only happens when I try to add a youtube link now
Idk if you've tried that
No I haven't
commands or plugins?
im sure you can find it on the internet - its called hoverable text
plugins, it is an inbuilt in feature i think
Yeah you can do it with commands too
wow
anyone know how i can get the state of a connect 4 board using opencv?
and the board is irl
The android > data folder isn't showing files, how to fix this?
I need to export a world

google giving me java answers
I wanna play stardew valley with @median kernel
But I need a 3rd party client
I mean a client that allows us to connect to the same ip address to play co-op
I saw one called Evolv3
https://youtu.be/sFeHWyUbHOs from this video
Get the Best Games for Less https://www.g2a.com/r/darkskeleton
◢◤◣◥◢◤◣◥◢◤◣◥◢◤◣◥
0:00 Local LAN Play / General Hosting Setup
3:12 Internet LAN Play
► Humble Monthly - Multiple Good Games for $12 Every Month https://www.humblebundle.com/monthly?refc=7zD7sU
►Watch live at https://twitch.tv/darkskeleton
►Follow me on Gab: https://gab.ai/Darkskeleto...
awesome
awesome
what is being used on minecraft bedrock servers for adding custom commands, items, etc.
a custom server software
pmmp or cloudburst
or an other one
or maybe custom built one like what cc team be using
I started a dedicated minecraft bedrock server and opened the ports and the server is online but I am unable to connect to the world
why
?
Where are you running the server? Locally on your machine or somewhere else?
locally on my machine
thank you it is now working!
probs with Minimessage lib
Hi
When you rewrite your program in GO and the speed increases twelve fold 😔
@spring tiger GO pretty cool lol 
What program was this? and what was the original language
No way I caught a rare active conversation in #programming 😨
Nah, my response was more than an hour later
Still active for #💻︱programming
I'm rewriting https://github.com/Fesaa/cube-msg-processor in GO, from python
Without the GUI stuff, cause it's for the backend of my discord bot
Who could've guessed that python is slow
I hadn't expected that much slower
Why GO?
Friend of my said I should try it, so that would mean free tech support
And looked fun, really enjoying it
Apart from the braces ofc
what
no??!
Yes.
They're very useful
Pythons indentation is much more readable, without needing two extra chars for everything
I'm indentation everything now anyway
I prefer two chars over 4 tabs
I think 4 tabs is an error
if True:
print("Hi")
1 tab is enough
But, either way. I am indentation anyway for readability so the {} feel unneeded
yeah, the braces have a clear start and end
Not if you have 5 of them at the end, and I have to figure out which one is which loop/...
Only reason I find it then is my editor putting the _ under the {
not just for if statements too, if I have to open a file for example, my code becomes something like this;
with open(file1) as fileOne:
with open(file2,"a") as fileTwo
for line in fileOne:
for i in line:
print(i)
fileTwo.write(line)
And the two last lines are quite confusing, because its just a tab away
with open(file1), open(file2) as file_one, file_two:
for line in fileOne:
print(i + "\n" for i in line)
file_two.write(line)
yes, I was making a point
But, sure. I don't see how having {} makes it more readable tho
also I feel like the senior dev would fire you for print(i + "\n" for i in line)
Sounds like their issue
sounds like code readibility issue
Whoever doesn't understand that should get fired, in line for loops are a big part of python
My main issue, is having them all end at the end of my file
And you have n off them after each other. Then figuring out where my new stuff comes is just hell
It just comes down to getting used to, but I am not a big fan
from __future__ import braces
for (line in fileOne {
for i in line {
print(i)
}
fileTwo.write(line)
}
Yeah ew
I just prefer it being nicely readable
I like seeing a real indication of where it ends
🙂
also there's import antigravity (referring to one of the xkcd comics) and import __hello__
xkcd 353
And import this
Syntax error: "wtf did you even try lmao"
Is this something you could do concurrently in some way? Go is exceptional doing concurrency compared to python
Probably
It does like 8 things with the same line per file. So all those things could go concurrency
GoLang
after looking at this channel for 1 year now
i have understood that i am the weird idfc programmer
Do you have any good resources for goroutines and channels?
not a shocker since everything mc is doing is for no reason what so ever at this point
also bedrock players have no such api so idc .-.
i mean names history is very fundamential for most of services
and it doesnt even solve anything except for being annoying for small hobby devs having fun
sites like namemc will still find a way
"most of services" so name history services?
There's little reason for it to be public and that second point is just guhh
many plugins, addons and servers need it
You're insane, what for
idk but i can imagine its being used
For what????
no need to call me insane if u dissagree 😕
for checking who is the new loges user for example
i have seen it being used a lot
and i can imagine not every server is having a huge db storing all that
New loges user?
no old ones
changing nicks
still its a huge un needed
un asked
change that doesnt solve anything
What
idk thats not important
i dont know what that endpoint was used for by plugin makers and server devs but it was def used
No server has a db of name history, probably if they're not insane
on top of that sites like namemc will still prob work
meaning that, this change doesnt solve practically anything
I mean it's quite clear what the endpoint was used for? It's that there's no reason for a plugin to use it
Unless the point of the plugin is just to show the previous names to users which is kinda useless since the users can open namemc
pretty hard without minecrafts database
You would need their uuid or something
I love how go has the panic() function
process.exit() 😂
yea, that one is good too
Hi
Who give me cps phar plugin xD
guys how do i make an item that opens a npc dialog when you click it
like a navigation system
Iam ded
Me too
you were probably the only one then ;)
You can always join another vc
You could start a private call with the one that you want to stream with
na everyone used it for streaming everything other then programming
Ded chat
في فعاليا
Ded cam
Salut
Salut
You are allowed to speak other languages then English here
Just not in english general
Ohw okay
I'm gonna cry, been working on something for 16 hours and can't find the error for the life of me

Done for the night, head hurts. Goodnight
Does anyone have the new cubecraft texturpack file?
Ça va
No
👺
👺
👺
👺
is there a way to change the start x and y position in python turtle?
...
Hmmp you still here @ocean bane by the way u still remember me ?
yes kind of
You was racisting me cause am an arabic boi
Am i right
Thats why u dont want to talk with me anymore
nvm i have no idea who u r
realy?
Remember now ?
but why whould i be rasest cuze u r arbic im also arbic
no i didnt
turtle.setpos(x, y)
no i dont need telport
well there are other suggestions
yah i already was in this website it didnt help me
any way what i want to do is probobly imposibal but i found another way its kind of change the map but still
i want to detect player in a area in the middle of the map so there is 4 points but u can do it only with - and - or + and + u cant combine + and -
i can send u the code private
if u want
you're making a game using turtle?
have you tried pygame?
Have you tried not using Python for a game 
A recommendation when trying to make any game: Use a compiled language, not an interpreted one
Like scratch
omw
I started with a C type style language and it worked out pretty well 😛 If you're doing it for fun, no problem, by all means xD But if you're serious about it, keep in mind that it's much easier to go from a C type language to python for example than the other way around and learning the fundamentals of a language on a low level goes a long way
loll true
this is why i always do it
if they are srs about making games then they will def not quit
Yoo gimme some fun ideas to make
me when purple
wait what
OH
I did not mean that
I did not notice that even, I just checked the "it's not rocket science, wait it actually is" one
Ahah
It’s a great image
I said C type style language. That means C/C++/C#/Java, anything that uses a syntax equal or similar to C. Out of those I mentioned, just C/C++ are compiled languages.
Yea, learn to read before commenting.
anyone got recommendations on a solid laptop that can run minecraft smooth for around 400-500
limit may be 700-800
It contained swearing, I’ll blur it out and send it again once I get home. Because it is an amazing image
Is the list/array sorted?
Then probably just use linear search
If you don't need to sort it for any later use that'll just make it slower as sorting it includes more instructions than searching, but if it has to be sorted then it's probably fine
Hello Alex,
I just wanted to know, how would I do cosine search on my quadratic array?
Kind greetings
Fesa
sorted(list)[0]
It's a pure choice of pros and cons regarding the language C, C++ and C# have their own strengths and weaknesses.
You would be chocked how "easy" it is to build graphic engines, not speaking about gaming using frameworks like SDL2, SFML or any other solution out there
I personnally made a full working non euclidian graphic engine from scratch in C few years ago to learn about stuff and C was not a problem as long as you write modern C and have at least some sort of knowledge about organizing projects etc
Using Makefile helps a lot and at the end of the day it's all about preferences. It would shock you but some people out there are more productive writting C / Rust and alike languages than Python or Javascript for example
Non-euclidian?!?! 😮
I agree with that a graphics engine is pretty simple to make. People make it seem much harder than it is. I am impressed though when you mentioned non-euclidian 😛
Pure OpenGL in C++ is pretty fun
min(nums)
Which geometry did you use
non euclidian geometry ofcourse

btw is your pfp from spices and foxs?
Spice and Wolf
I loved it
alr am gonna watch tmr
I limited myself to euclidian geometry but i could for example make an infinite space in a 4m³ box
From the outside it looks like a 4m³ box but in the inside it can be much more
It allows you to create portals as well pretty funny
So you didn’t make a non euclidian graphics enige 
And you have to find the lowest value?
they can range anywhere from 1 to n where n is always idk how to say it in english its rounded like 2 not 2.3 not root of 2 etc
Integer
yes that ty
and i have to find how many of these integers i have to swap for it to be 1 after another
so this
As in, how many swaps for it to be ordered?
With 2?
Wait no I don’t get it
You want the list of length n to only contain integers from 1 to n?
So n = 4, can only contain 1,2,3,4
ye
well thanks for help with claryfing the question xD
got it wrong but yea u r right
ye
made this```py
ciag = [10, 9, 8, 7, 6, 5]
x = 1
to_be_changed= 0
while x <= len(ciag):
if x not in ciag:
to_be_changed+= 1
x += 1
print(to_be_changed)
it works but idk if it catches all edge cases
The
if x not in checks the list the entire time. If you’re allowed the use the len() operator; just loop over the list once and add 1 to to_be_changed if the value is greater then the length
so like this? ```py
dozmiany = 0
for element in ciag:
if element > len(ciag):
dozmiany +=1
print(dozmiany)
yup makes more sense xD
thanks
Might even be faster to store the len() in a variable if n gets really big but idk
tho actually not cuz sometimes we have to swap it even tho its smaller than len(ciag)
for example (2,2,2,2,2)
we have to swap four "2" with 1, 2, 4, 5
Do you know how sets work?
ooh just realised, gratz on QA
?
You could make a set and append each value lower than len into it. But since it can’t contain dupes. The difference between the len of the set and of your list will be the amount of swaps
Ty
I did, but i didn't created non euclidian objects that's what I'm saying
Which geometry was it then :D
There are more than objects that is affected by non euclidian geometry: space is a good example
You can still have euclidian object within slice of non euclidian space though
Yeah sorry for the shortcut
My understanding of it is purely mathematical, I assume the words would be used slightly different
I'm not that good in maths but as what I learned non eucludian geometry is everything but lets say you have an infinite space, you go toward any direction from the origin, you can't go back to the origin
In a non euclidian space this is possible
The reason why you can also have infinite space within finite volume
rip
wanna copy paste code so i dont have to write it xD
the vertical is time and horizontal is amount of integers in list right?
Yh
Will do once I’m back upstairs
how did u got this lovely graph?
import time
import random
import matplotlib.pyplot as plt
def timer(n: int, f, *args, **kwargs) -> float:
start = time.time()
for _ in range(n):
f(*args, **kwargs)
return time.time() - start
def pam(l: list) -> int:
to_be_changed = 0
x = 1
while x <= len(l):
if x not in l:
to_be_changed += 1
x += 1
return to_be_changed
def fesa(l: list) -> int:
my_set = set()
length = len(l)
for x in l:
if x <= length:
my_set.add(x)
return length - len(my_set)
def main():
# Can be changed for a bigger test pool (From 10**0 to 10**(n-1))
highest_power = 5
x = [10**i or 1 for i in range(highest_power)]
y = []
z = []
for n in x:
test_list = [random.randint(1, 2 * n) for _ in range(n)]
y.append(timer(1, pam, test_list))
z.append(timer(1, fesa, test_list))
plt.plot(x, y)
plt.plot(x, z)
plt.xscale('log')
plt.show()
if __name__ == "__main__":
main()