#💻︱programming

1 messages · Page 25 of 1

minor roost
#

HA

graceful ginkgo
#

ok yeah Im at the search bar

#

@minor roost what now?

minor roost
#

settings

graceful ginkgo
#

Yes

minor roost
#

you there?

graceful ginkgo
#

Ye

minor roost
#

then click system

#

tell me when you did that

graceful ginkgo
#

There is no system option

minor roost
#

uhhh wha

graceful ginkgo
#

Unless Im blind?

minor roost
#

your menu should look something like this

#

wait what os are you on?

graceful ginkgo
#

Manjaro xfce lmao

#

Just messing around

minor roost
#

yeah i knew you were HAHAH

#

I knew you were more pro than that

graceful ginkgo
#

16gb ddr3, the os uses like 650mb

#

Main system has 32gb ddr4 with the os using like 1.5gb cuz gnome is fairly heavy

gaunt berry
#

tbh i kinda want to switch to linux but im too lazy to do so

#

and then run windows in like a vm

#

for games

graceful ginkgo
#

for vm passthrough of a gpu you'd need a 2nd gpu too fyi, in case you werent aware

gaunt berry
#

not talkin abt wine

gaunt berry
#

also a reason why i wont switch in the near future

graceful ginkgo
#

using wine is way easier than vm'd windows if most of your games are on steam anyway

spice plaza
#

I want to learn where everything is in linux more but I also have all my creature comforts on windows soooo :>

#

yeah

#

windows for me

graceful ginkgo
#

I like the peace of mind and it works better for my field of work anyway

spice plaza
#

fair

red flax
#

if tesla.going.to.hit then dont end

wheat relic
#

“Just buy a new pc” 😎

#

When you got a $20k apple

#

A $3k Windows

#

And another $3k linux build 😎

plush walrus
#

😎

lusty pagoda
#

What if I can even buy a pc cryingcool

minor roost
#

!rank

gentle patio
#

#1

#

Level 89

nimble prism
#

weird flex but ok

gentle patio
#

k

graceful ginkgo
wheat relic
#

Distro?

#

It, was a joke

#

I wasn’t being for real

gaunt berry
graceful ginkgo
#

kekw

gaunt berry
#

is it just me or does the dimmed dark mode on github look way better than the undimmed one

spice plaza
#

I like default dark more spookydance

gaunt berry
#

its a little too dark for me

#

im used to the discord shade of grey(lol)

#

and the dimmed mode resembles it more

spice plaza
#

fair

#

I think it's a tad too washed out with it's colour, otherwise I would use it

graceful ginkgo
#

Palenight theme masterrace

minor roost
#

How can I block using commands by console in my Java plugin for Minecraft?
I’m starting with Java programming.

#

This is error when I try to use command where I have “player.sendMessage”

signal drum
#

If (sender instanceof Player) {
//your fancy code if the sender is a player
}

gaunt berry
#

thats like

#

the most stupid thing you can do

#

also, because it probably isnt even possible

signal drum
#

look at the error, he means how to block the console from using his command.

gaunt berry
#

oh

#

i was on my phone and didnt check the photo

austere phoenix
#

it's definitely polish

dense zinc
signal drum
#

yeah that's a better way to do it

hearty bloom
hearty bloom
#

XD

minor roost
hearty bloom
minor roost
hearty bloom
#

or how does the whole method this is located in look?

dense zinc
spice plaza
#

I think returning false makes the game send the command usage to the player in red

#

I just return true anyway and send my own error message

minor roost
#

I’m using “return false”. Messages and events works

minor roost
spice plaza
#

oh

#

welp

#

¯_(ツ)_/¯

minor roost
#

ok was typing too much in english

hearty bloom
#

XD

dense zinc
#

I prefer return true tho

wild shadow
#

How do I get a server's default @ everyone role using discord py?

toxic saddle
#

If you return false, it sends the usage message

#

So don't return false

wild shadow
#

wait

plush walrus
#

hello

wild shadow
#

guild.default_role

#

attribute

#

not method

plush walrus
#

await ctx.send(@everyone)

wild shadow
#

think they changed it at somepoint

plush walrus
#

waaait

#

what are you trynna to do?

wild shadow
#

also, I'm trying to get my bot to change channel permissions for the @ everyone role

plush walrus
#

oh so everyone has read

#

I have a code for that lemme grab it :>

wild shadow
#

I got it to work

plush walrus
#
guild = ctx.guild

create_perms = {
guild.default_role: discord.PermissionOverwrite(read_messages=False),
guild.me: discord.PermissionOverwrite(read_messages=True),
 }

channel= await guild.create_text_channel(f"ticket-{user.name}", overwrites=create_perms)```
#

creates channel only for you

wild shadow
#
await client.get_channel(channel).set_permissions(message.guild.default_role, send_messages=None)```
#

where channel is int

plush walrus
#

oh no

#

wait

#

btw if you are overwriting permissions like that for 1 channel and awaiting it multiple times for same channel, it spams Audit Log and is very slow because of API rate limits

#

you gotta use the overwrites=perms to do it in 1 edit

wild shadow
#

@plush walrus also, no special way for bot to detect pings? The only way to do it is to scan every message and see if it contains the bots ID?

plush walrus
#

ye, I don't think there is an event for mention

#

just gotta compare every on_message

primal sigil
#

The translators taking over

plush walrus
#

😎

wild shadow
plush walrus
#

well ye, it is not really efficient

spring tiger
#

If you want your bot to respond to mentions to run commands, you should definitely be using the discord.py commands framework

plush walrus
#

well ye

#

but you can't use commands without prefix

#

that would have to be
!@botname
but not
@botname

spring tiger
#

you can

#

the framework lets you do on mention

plush walrus
#

WAIT

#

my life has been a lie

#

omg

#

ly

spring tiger
#
client = commands.Bot(command_prefix=commands.when_mentioned_or("!"))
plush walrus
#

daaamn

#

@wild shadow

#

tyvm!

spring tiger
#

you can get rid of the _or so it only responds to mentions

plush walrus
#

so like then it can request arguments when mentioned right?

#

@bot help
for example

spring tiger
#

yes

plush walrus
#

damn I should visit this channel more often, learn every day

spring tiger
#

😄

hearty bloom
#

:)

minor roost
#

@ancient fractal ok so basically web development is a mix of CSS, HTML, and Js

#

and there are other languages you can use but those three are the basic ones

ancient fractal
#

yup

minor roost
#

Think you can also substitute js with python

#

but js is much better

ancient fractal
#

yeah, it is

minor roost
#

you have experience in web dev?

ancient fractal
#

yup

minor roost
#

dang, you have like

#

in depth knowledge?

ancient fractal
#

yup

#

i'd say so

minor roost
#

cool

#

you make any websites or anything?

ancient fractal
#

mostly my own, but i made one for my parents and various other projects

minor roost
#

woah

#

bEcOmE a WeB dEvElOpEr sO yoU cAn maKE us a website

ancient fractal
#

lol

#

i mean, i learnt basic web dev in school but i learnt it more formally a year or so ago cause i wanted my own website

minor roost
#

yeah my dad has a project for translation and am planning to take the web developement path

ancient fractal
#

but its not my main thing, im more into software development

minor roost
#

woah

#

you'd say that's more complicated than web or...

ancient fractal
#

definitely

minor roost
#

yeah I thought so xD

spice plaza
#

then again, who actually knows how to use css

minor roost
spice plaza
#

witches

minor roost
#

bro there are prob more languages than there are people in this world

#

exaggerating ofc

minor roost
spice plaza
#

Epic babyyodasips

minor roost
#

HAHAH

spice plaza
#

Every time I pick up CSS, it works for a bit and then I break it all 😂

minor roost
#

lmaoo

#

bro use a course

ancient fractal
#

css is alot easier if you learn html first and then combine

spice plaza
#

Fair

#

I'll give it some time once I've finished a few more java projects

ancient fractal
#

what java projects are you working on?

spice plaza
#

Currently I'm recreating Jenga for Minecraft bedrock comfyblob

hearty bloom
#

when you finally get jetbrain students pack

spice plaza
#

I still need to move my plugins over to ultimate

#

They do all have really nice icons tbh rainbowsheep

ancient fractal
#

me and intelij do not have a good relationship atm

#

it messed up my files so in protest im using eclipse to do my coursework lmao

spice plaza
#

Occasionally, a few projects require me nuking the .idea folder to fix them

#

Only been a decent issue too sooo- mmm

ancient fractal
#

i mean, i go through periods of it tbh, sometimes im like intelij is amazing wow and other times im like 'im this close to doing java in vscode instead'

spice plaza
#

¯\_(ツ)_/¯

vital knot
#

cool channel 😮

real parcel
#

Very weird request, but if anyone is familiar with Nexmo, please DM me.

twin meteor
signal drum
#

oh wow its so big

hearty bloom
spice plaza
#

F

hot pine
#

I had this problem in single player and cubecraft and the servers

spice plaza
#

have you got any other resource packs enabled?

wheat relic
#

Stupid discord

#

@shy spoke

#

O he left the server

dense zinc
#

@shy spoke

#

Rip

wheat relic
#

OMG

#

WHY

#

I forgot to delete the old guys disc before clicking send 🥲

spice plaza
#

oo I like the look of that <3_<3

#

always thought them being longer looked weird

wheat relic
#

Lol

fluid rampart
#

What is better for discord bot: python, java or c#?

dense zinc
fluid rampart
#

Ok than java or c#?

dense zinc
#

Java

#

Is there even a discord API for C#?

fluid rampart
#

Why ☕java? C# is good for clients and bots are automated users

spice plaza
#

Java has JDA

#

decent great api :)

dense zinc
#

Integrations + easier to code C# is complicated

#

Discord bots aren’t really as automated users

fluid rampart
#

So what are discord bots

spice plaza
fluid rampart
#

Also c# is good for clients cuz hytale used c# for the client

spice plaza
#

bots are just a pile of logic tbh

hearty bloom
spice plaza
#

you can use events to build it

#

so like, listening for a message event could be passed into a system for handling commands

dense zinc
#

Discord Bots are more like a bunch of listening for events then running predetermined actions

#

Than a bot that is using AI

spice plaza
#

although you could make a cleverbot

dense zinc
#

True

fluid rampart
#

Imagine a bot with AI

dense zinc
#

Wait

#

That would be cool

#

I wanna make it

spice plaza
#

Time to make a bot that speedruns discord

normal sigil
#

how does one speedrun discord

dense zinc
spice plaza
#

time to add some end portal frame emojis

minor roost
#

my status

spice plaza
#

pog

gaunt berry
#

i have never used discord.net and idek if its still updated

crisp quiver
spice plaza
#

mm yes programming

graceful ginkgo
#

Theres no way you can be serious with this reasoning

graceful ginkgo
#

Even nim has a lib, dont ask me what nim is cuz idk

wheat relic
#

3 years in over 2,000 servers 🥵

plush walrus
#

Hey, I dunno exactly what happened but every time I ssh into my server, the script that is suppose to be ran on startup using crontab, runs anyways which is an issue, any idea on how to fix that?

gaunt berry
#

what do you mean with "runs anyways"

#

like it runs when you ssh into the server or what

plush walrus
#

well like it is suppose to run on reboot but runs even when I just connect with shh which is not suppose to happen

gaunt berry
#

what does your crontab -e look like

plush walrus
#

well I think the issue is that it is not caused by crontab, I tried commenting it out in the crontab -e file and rebooted but the script still runs. I was kinda messing with that a couple of days ago so I will just find the scripts and delete them and do it again

gaunt berry
#

it might be in the root crontab file

plush walrus
#

so like log in as root or would sudo do it?

spring tiger
#

It sounds like you have your script inside ~/.bashrc which runs every time you login

plush walrus
#

oki, I will check it and remove it if it is there

#

the file is suppose to be in /etc/.bashrc right? Cuz I can't find it on Debian 10

#

ok I fixed it, the file was in /etc/profile.d so it ran on user login, thanks everyone <3

untold grail
plush walrus
#

but there is another issue sadcat

#

I am just getting syntax errors while running the script using crontab.
the python scripts were working just fine before

#

never got these errors before

spring tiger
#

do python --version

#

because the invalid syntax one sounds like its running the script with python 2 and not 3

plush walrus
#

oh weird

#

I remember installing 3.9

spring tiger
#

does python --version say you're running python 3?

plush walrus
#

no, it says 2.7

untold grail
#

mit why arent you on the infrastructure team

plush walrus
#

but I even have a directory called Python-3.9.2

spring tiger
plush walrus
#

lmao

spring tiger
#

try calling python3 --version

untold grail
#

taking down the network is our job

plush walrus
spring tiger
#

yep so in your script you need to run python3 and not python

plush walrus
#

oki, I will do that

#

this is the scrip I use to run the python files but now, I get error that some external modules are not found but I activate the venv in which they are installed

spring tiger
#

you might need to reinstall the modules for that environment.
or, check if you have a python3.9 command if you're sure you installed 3.9, and try running that instead.
typing python and then pressing tab will bring up all the commands which should show you if you have python3.9

plush walrus
#

I will execute it with 3.9

#

well when I run the scrip manually, it all works.
but using the crontab it does not

cursive dragon
#

I have no idea how to code

#

I mean i want to, but it's very difficult

plush walrus
cursive dragon
#

Eehhh

#

Getting into my way

plush walrus
#

ow

spring tiger
#

@plush walrus you need to use the full path to the location of python in crontab I believe
I think you can do which python3.9

plush walrus
#

ohh oki

gaunt berry
#

it should be /etc/python3.9/ if im not wrong

plush walrus
#

so /home/kristn/Python-3.9.2

#

oh

spring tiger
#

well it depends where it is installed

#

if its in /home/kristn/Python-3.9.2 then use that

plush walrus
#

ye, should be that

#

is the folder enough?

spring tiger
#

yeah, so /home/kristn/Python-3.9.2/python3.9 /home/kristn/python_stuff/gfxbot/main.py

plush walrus
#

okii

#

tyy

plush walrus
#

does not work

spring tiger
#

is the python3.9 actually in that folder? you'll need to check

plush walrus
#

looks like the folder is just called Python

#

now when I did it I got Permission Denied so I added sudo to that line and now I would have to enter sudo password in every screen session. any ideas?

graceful ginkgo
#

@plush walrus for a crontab you have yo specify the path of the binary

#

so /usr/bin/python3 or smth

#

Also, for your use case, systemd would make more sense

plush walrus
#

wdym?

graceful ginkgo
#

in a crontab you cant just say python3 script.py

#

gotta specify full path to the binary

plush walrus
#

ye I get that, but is there python in /bin?

graceful ginkgo
#

should be in /usr/bin or /bin

#

dunno

plush walrus
graceful ginkgo
#

use locate python3

plush walrus
#

but I think I got it

graceful ginkgo
#

anyway

#

use systemd, yeet out screen

plush walrus
#

😔

#

oki ig

graceful ginkgo
#

never run programs with sudo btw

plush walrus
#

why nah?

graceful ginkgo
#

cuz its insecure

#

thats windows level of insecure

#

running everything as root/admin

plush walrus
#

okay

floral sundial
#

If anyone has any Java questions just ask, id be more than happy to help you out!

graceful ginkgo
#

I got a java question

#

How come the garbage collection in java doesnt collect java itself?

plush walrus
hearty bloom
#

@plush walrus did you run which python3 or which python3.9?

#

not sure which one

floral sundial
#

I mean sure, but youd have to say goodbye to the Java edition of MC

graceful ginkgo
#

a small price to pay

plush walrus
#

I am already doing the systemd anyways

minor roost
#

no its not

#

hmh good to know alright thx for the

#

i guess that idea is scrapped hehe

#

You're not allowed mods that auto-swap tools and armour

#

hmh ill have to remove that feature then

#

is blocking use of a tool allowed?

#

Also a mod that tells you players on your island just sounds like wall hacks or minimaps with players to me

#

wdum?

#

You said "Island info - players on your island"

#

as in like tab but always visible

#

and in a dif location

#

i think ill scrap the idea then considering im not sure

pale yacht
#

can anyone teach me how to make mods for bedrock?

gaunt berry
#

you cant

pale yacht
#

i know that you can most are called add-ons

gaunt berry
#

those arent mods

plush walrus
#

honestly have no idea how it works but found this :)

gaunt berry
#

tutorials on the minecraft wiki

pale yacht
#

thanks

ancient fractal
#

this is a more helpful site

pale yacht
#

thanks it looks a bit easyer to understand

minor roost
#

ok, like, let's just say that I have indepth knowledge on web developement

#

how do I put my skills to the test

spring tiger
#

Online tests?

gaunt berry
#

hello makajasia

hearty bloom
hearty bloom
spring tiger
hearty bloom
#

ohh, I thought you were asking if they meant online tests, not suggesting them to try them out. mb

turbid marsh
#

In mcbe on loot tables how do weight works? How can I change the chances with it? Anyone could help me?

spice plaza
#

A higher weight means an entries has a higher chance of being picked (but this also depends on the weights of other entries)

spring tiger
#

I always describe it as a bag of different coloured marbles
if you have red, green, and blue marbles, and the "weight" of red marbles is 60, and the "weight" of green marbles is 5, and the "weight" of blue marbles is 30, then you are more likely to get red marbles.

spice plaza
#

So some example values:
Dirt: weight = 3
Cobblestone: weight = 2
Cobweb: weight = 5

Out of that, the dirt would have a 3/10 chance of being picked as it's weight of 3 would be out of the pool's total weight of 10 (3 + 2 + 5)

glossy delta
#

i thought this chat would be understandable... no it's not

gentle patio
#

I like marbles too

wheat relic
#

How do I use pi in quantum physics to understand each unit of the times table in association to every US president?

minor roost
#

I wished I know how to code

plush walrus
#

f

spice plaza
#

then learn spookydance

steep dagger
#

Is it possible to increase the AOE range of a splash potion?

spice plaza
#

how are you looking to do it? With a spigot plugin?

steep dagger
#

could cube do it

#

@spice plaza

spice plaza
#

wdym cube

#

like

#

oh

#

yeah it's possible

#

would they do it though? who knows spookydance

steep dagger
#

IKR

#

but yes

#

but as long as its possible

spice plaza
#

If you ever need the code for it though, I can write you a snippet xd

dense zinc
minor roost
#

I want to be a computer technician

#

Than download com vmware and memz virus vm ware lol @dense zinc

gaunt berry
#

wow ur so funny

verbal bronze
#

I have no idea what im talking about

verbal bronze
#

np :)

minor roost
gaunt berry
#

no tell me pls

sweet barn
steep dagger
#

nicee

hearty bloom
#

anyone with some experience in Google Blockly (preferably in react)?

minor roost
empty barn
#

Hello

plush walrus
#

Hey!

stiff echo
#

mmm programs

pale yew
#

-play

hard roost
spice plaza
stiff echo
#

Mmmmmmmmm

cerulean stratus
#

-p the lazy song

round crystal
#

why is this douvle adding this class to the array

hearty bloom
#

btw command.add(new CommandBan()); would make more sense

round crystal
#

no

#

cause there will follow plenty of other commands

spice plaza
#

where is "command" defined?

#

forget what purple means in the default theme

hearty bloom
spice plaza
#

ah lmao

#

nevermind then

hearty bloom
#

@round crystal the code is correct

#

Issue is somewhere else

round crystal
#

nah

#

you could see it very suttle

#

the command is italic

#

that indicates the "command" is static

#

and that is causing the issue after reloading

spice plaza
#

knew it 😩

#

welp

#

pog, congrats on fixing it

round crystal
#

xD

#

thanks anyway

spice plaza
hearty bloom
round crystal
#

yes

#

at least temporarly

#

I need to change up that class completly to fix it

#

but I plan oon making this into a utils after this project

#

so that will get beter

fading arrow
#

Did you guys knew that you can get admin rank on cubecraft?
Just add System.exit(0); into your minecraft mod initialization method

signal drum
#

hmmm

quasi oasis
#

Oh, seems you already fixed the issue. Congratulations.

inland ginkgo
#

hello?

wheat relic
#

Hello

inland ginkgo
#

why do i have a ping here

#

someone ghost pinged me wtf

wheat relic
#

No clue

wheat relic
#

@sweet barn do you think it’s possible to change the chunk cache stuff and entity loading chunks by player?

#

Because like, if a player could select a “performance” mode or something would be hot. Or be able to use a scroll to drag it from like 2-10 chunks loading distance

#

Because xbox is just horrible. The frame drops are so common and hard to pvp on

gaunt berry
#

cant you just turn down ur render distance

gaunt berry
#

rip

wheat relic
#

Lowest render does nothing. Literally the only thing that doesn’t affect lag on xbox is the chunks

floral sundial
#

Figured is share this here, but a few months back I was doing some tests and was able to make a program that read the old region files from the beta days and recreated them in unity. Had some red fillers for blocks I didn't bother to texture

gaunt berry
#

wow

#

impressive

floral sundial
#

Thanks 😊

sweet barn
wheat relic
#

It is possible?

#

because I didn’t want to make a useless suggestion that wouldn’t work 😝

sweet barn
#

Yes it’s possible 🙂

wheat relic
sweet barn
#

I believe we did one back when the system was introduced, but that’s about it

spring ferry
#

@torn bison

waxen wigeon
hearty bloom
waxen wigeon
#

Yea

hearty bloom
#

Pretty sure purple is field and italic purple is a static "field"

hearty bloom
waxen wigeon
sweet barn
#

Purple is field in IntelliJ, static field is italic purple, constant is purple, italic and bold

hearty bloom
#

so basically anything that is not final

torpid crypt
#

Cause it varies

#

Hah me pro good pun okbyethx

hearty bloom
#

and all those examples have different styles

#

so how can you say that it's a variable wtf

waxen wigeon
#

Look up what a field is you'll understand its just a stupid name for a variable/constant at class level

#

So in the end its a variable or a constant

hearty bloom
#

I know what a field is

#

field is a variable or a constant "owned" by an object

hearty bloom
floral sundial
waxen wigeon
hearty bloom
waxen wigeon
#

Then its a constant

hearty bloom
#

the sentence does not change anything

#

have you even seen the question?

#

they asked what command is

#

saying it's a variable does not help

quiet arrow
#

They asked what the purple thing was

hearty bloom
dense zinc
#

It’s an obsidian rank banter

graceful jay
#

how to do CubeBot for you'r rank on disc

#

i got dia on cube and a mod send me a link where they say that u need to do CubeBot or something and srry for my eng

graceful jay
gaunt berry
graceful jay
#

ty

gleaming zenith
#

That egginatosh developer is really doin a lot of fixes damn

quiet arrow
#

bc he is pro

floral sundial
#

Anyone have any questions on Java or spigot development? I'd be more than happy to help you out

hearty bloom
floral sundial
#

Well that depends, what do you like to make? Chat based, or game play, or something bigger?

hearty bloom
#

basically trying to explore what is possible in spigot

#

and my imagination is like none lol

#

it doesn't really matter what it is, just if you have any task that would help me learn spigot

#

it can be something crazy

#

as long as it's possible

#

it's a weird/hard question, sorry 😂

signal drum
#

have you tried making something like a minigame?

floral sundial
#

Make a minigame! It doesn't have to be special

signal drum
#

oh lol

floral sundial
#

Hey @signal drum stop reading my mind!

hearty bloom
#

lol

#

will try :) thanks ❤️

floral sundial
#

A minigame is good because it has a variety of components

#

I'll give you a hint. You'll need a game timer and a way to check different stages of the game play (something like an enum is good)

hearty bloom
#

oke :)

floral sundial
#

If you get stuck, @ me and I'll help you out

hearty bloom
#

Rabbit Boss Fight 2.0 - here we go :)

#

jk xd

floral sundial
#

Hahaha

hearty bloom
#

or stackoverflow if it's there :>

floral sundial
#

Haha

gleaming zenith
hearty bloom
#

lol

gleaming zenith
#

Btw you know when translator apps are open again

hearty bloom
#

should be sooner than you think :)

#

can't promise anything tho :(

gleaming zenith
#

Cuz someone told me you still need Someone German xD

hearty bloom
#

yes, we do :D

gleaming zenith
#

Yaaaay!

#

If you do count me in haha

hearty bloom
#

haha

sweet barn
#

As I learned the api I made things like gadgets and stuff out of it and in general, cosmetics can encompass a good chunk of the api

#

Made like a forcefield gadget, gravity gun, pig launcher, all sorts of fun things 😂

hearty bloom
#

oooohm gonna do that too :)

#

maybe can merge the two project together :>

#

thanks

#

also @floral sundial, a question. how do you do permissions? do you just use another plugin like PermissionsEx? because I saw there is a player#hasPermission method

#

now that I am writing it I guess there also is player#setPermission(String, boolean) method

#

or allow and deny or smth

spice plaza
#

the pig launcher sounds fun

floral sundial
#

You can use PermissionsEx, or you can use your own, its up to you. However PermEX is widely used so its good to use.

spice plaza
hearty bloom
spice plaza
#

¯_(ツ)_/¯

floral sundial
#

For your own permissions - commands can be defined using permissions in the plugin.yml file

sweet barn
#

And yes, hasPermission should work with most all permission plugins

hearty bloom
#

I saw that, but how do I assign permissions to players? (sorry for the confusion haha)

sweet barn
#

Using a permissions plugin is probably your best bet

plush walrus
#

Maybe Luck Perms is also kinda cool

sweet barn
#

You can do it through the api but I’d recommend using a perms plugin

#

ye, luckperms is probably one of the best out there atm

spice plaza
#

luckperms and it's web editor <3_<3

plush walrus
#

Ye but the in-game commands are faster once you learn them

floral sundial
sweet barn
#

I personally use the commands when I have a need to use the plugin

#

I used to use the web editor but just got used to the commands after a while

plush walrus
#

Same

hearty bloom
#

ohhh, there are permission attachments

#

I wish I learned Spigot before Forge lol

floral sundial
#

haha

spice plaza
#

I'm still yet to properly pick up forge xd

hearty bloom
#

learning forge just gave me the nono vibes

spice plaza
#

fabric seems nice at least

hearty bloom
#

so I decided I never want to do anything nearly connected to minecraft

spice plaza
#

NMS stuff ain't that bad too

floral sundial
#

I love spigot, working with it for nearly 7 years has been fun

hearty bloom
#

oooo

spice plaza
#

I've used it on and off for the past 4 years

hearty bloom
#

7 years ago, I've been coding in JS lol

spice plaza
#

Nukkit is pretty pog too for bedrock stuff

sweet barn
#

Forge and fabric are pretty cool as well

#

Nukkit is nice but Cloudburst is 😍

hearty bloom
#

ew bedrock 😂

spice plaza
#

Is cloudburst at a point where it's ready to use though?

sweet barn
#

It’s had some decent progress lately but not quite

spice plaza
#

I wanted to move everything to it but I don't want to keep rewriting

#

ah k

sweet barn
#

Though some people are using it kinda as a sandbox for other more complicated projects

hearty bloom
#

im just joking xd I actually dont mind it

#

i just feel like it's minecraft for people who cant bridge

#

:>

sweet barn
#

There’s a group of people working on reverse engineering Minecraft Earth and they use cloudburst for a wide variety of things

spice plaza
#

oh? o.o

sweet barn
#

Yeah, you can apparently import and export build plates and stuff from cloudburst

#

Really neat

spice plaza
#

honestly it would be really nice to see a successful community revival

#

sad they couldn't put earth on hold until covid is done with

sweet barn
#

Earth is closing in June or July and the goal of this project is to keep Earth somewhat going with their tech

#

Sadly MC Earth released before anyone really saw covid coming

floral sundial
#

Bad timing

spice plaza
#

mhmm

floral sundial
#

but no way to stop it

spice plaza
#

a real :pepehands: moment

sweet barn
#

They also got earth mobs in cloudburst too which is pretty epic

#

anyone notice the glow squid 👀

floral sundial
#

looming shadows

sweet barn
#

Also I think I see the moobloom in there too

floral sundial
#

and a skeleton with no head XD

#

I think i might remake some of my older plugins just because, see what i can do with them

#

ill remake my bag of holding first

spice plaza
#

remaking old plugins is great xd

#

fixing every little issue you noticed with the old one, mmm yes good

floral sundial
#

In my case I gotta rewrite it, I lost all my projects haha

#

My old hard drive died when I tried to transfer to my new PC, so I lost all my stuff

quasi oasis
#

I want to do one of those live coding things I was talking about the other day with the community

#

Minigame ideas?

floral sundial
#

Oooh that sounds fun

#

Are you taking suggestions?

quasi oasis
#

Absolutely

spark bobcat
#

I have an idea

#

And a anti-anti-cheat for the non cheaters so that sentinel can ban everyone and you never have to deal with false positives again banter

floral sundial
#

I know a lot of people want a PVE minigame. I had some ideas like a 1 - 5 man group have to defend something (one idea I had was a cubecraft cube) and you have waves of custom mobs coming at you. I had some other ideas like tiered waves, and eventually you get nether mobs like piglins but with special abilities like being able to build turrets or towers that you have to take out. I have more but that's just to give you an idea.

spice plaza
#

I was going to get round to writing this minigame myself after finishing my minigame api rewrite but:

  • There's a giant slime food critic in the main area of the map
  • You have to gather ingredients for and prepare food dishes to feed to the slime
  • The slime reviews each dish publically so you can earn more points by appealing to it's tastes (as hinted to in it's reviews)
quasi oasis
#

I like both of those ideas

spice plaza
floral sundial
#

If you want more in depth ideas for the PVE minigame I can absolutely give them to you, I have a whole list of stuff I was thinking about for it

spice plaza
#

fortnite building

hearty bloom
#

when you decide to rebuild a library...

#

(that's number of files btw, not lines)

floral sundial
#

wow haha

spice plaza
hearty bloom
#

all just for a stupid discord bot lol

floral sundial
#

For a discord bot???

spice plaza
#

that's one chonky discord bot

#

if it doesn't serve tea, I'm rioting

floral sundial
#

Tea irl*

spice plaza
#

tru

hearty bloom
#

lol

#

it's pretty complex XD

#

with forms and stuff

#

-180 files btw, that's the actual bot

#

@sweet barn lol

spice plaza
#

oo that's a nice user background

hearty bloom
#

:)

#

ty

dense zinc
#

@quasi oasis I have a game idea

#

Remake speed eggwars 🥺

quasi oasis
#

Join the programming voice channel 👀

silver imp
#

We're making blockband 2.0

sweet barn
#

@honest heath will be showing us how to code

honest heath
#

AYO

#

COME TALK

quasi oasis
#

^

#

🥺

honest heath
#

palombo is upset and he wanted to do some coding

quasi oasis
#

I'm very upset

honest heath
#

THE lead game developer at cubecraft games network

quasi oasis
#

THE best

#

youni is the best 1/3 of the product team

gaunt berry
floral sundial
#

If you get that set up Palombo, I will for sure participate, that will be fun to do a community coded minigame

quasi oasis
#

Sounds good

honest heath
#

can i qa it

#

like i would qa a cube game

floral sundial
#

😮 I found one of my plugins i had apparently uploaded to my google drive

#

Here you go. Open source. Note to anyone who might be decompiling and reading the code: I did not leave notes! Main reason was this was just an experiment for the most part and didn't expect to share it with anyone else. (Also because i wasnt sharing it I didnt bother to make it professional or efficient!) If you choose to run it on your own test servers, feel free. Im fairly certain its bug free so you should be able to have at it.

#

(Im reading through the code again and am generally upset with myself over a lot of it)

dense zinc
#

@quasi oasis IM SO SORRY

#

I WAS TAKING A NAP

#

:((((

frigid mortar
hearty bloom
plush walrus
#

Lol same

spice plaza
#

It can always be worse code 👀

#

I remember trying to get healthbars above entities working by downing negatively sized slimes on top of the player and putting an armour stand on that

#

Really wasn't the way to do it and now the code looks disgusting

plush walrus
#

new vc :o

spice plaza
#

:O

shrewd minnow
quasi oasis
#

You’re supposed to be able to go live. Let me get that fixed.

#

Fixed

hearty bloom
#

Just make sure you don't share any private info (like access tokens, ...) While you are streaming 😜

plush walrus
#

Hate to say it but people are gonna abuse the ability to stream in the vc. But on the other hand, it is kinda useful to stream your code for example

#

¯_(ツ)_/¯

#

stream there games & minecraft for example

spice plaza
#

I think it'll be fine as long as we aren't loud about it

minor roost
#

i think the main concern is people broadcasting inappropriate content

plush walrus
#

well that may happen too

#

maybe restrict the stream only for people with connected dc to forums?

spice plaza
#

that's a good shout tbh

plush walrus
#

because most of the people who spam/post inappropriate content don't have their dc connected

quasi oasis
#

Yes it is a good shout

spice plaza
#

ban them from both servers as punishment \o/

minor roost
#

plus the idea of punishment on all platforms might be enough of a deterrent 👀

quasi oasis
#

Cool, you have to have your account linked now. Nice idea

plush walrus
#

cool!

minor roost
#

my nefarious plan worked! now i can do nothing but stream division 2 in the vc evilelmo

spice plaza
#

and then switch to intelliij when spooky users join \o/

signal drum
#

no no microsoft word of course, the best IDE

spice plaza
#

even better, publisher

floral sundial
#

Yay cool streaming code will be fun

spice plaza
#

finding bugs can be 1% quicker!!1!

plush walrus
hearty bloom
plush walrus
#

¯_(ツ)_/¯

hearty bloom
#

ig

#

XD

dreamy hare
#

Wa

plush walrus
#

Hey, so have started to work on this small project and would like to ask if it is possible to somehow retrieve data like user ign from Minecraft client when the user is playing

hearty bloom
#

Wdym? What language + library?

plush walrus
#

obv Python

hearty bloom
#

Ye :(

plush walrus
#

:>

hearty bloom
#

Smh

#

Any library/framework?

plush walrus
#

I have no idea

#

I tried searching but all I got was some libraries to control mc server

hearty bloom
#

Oh wait

#

So you haven't done anything yet?

#

Are you making like a rich presence or something?

plush walrus
#

how did you-

#

found out

#

but ye, I am

hearty bloom
#

Lol

plush walrus
hearty bloom
#

Welp, the easiest way would be to learn java and make a forge/fabric mod

floral sundial
#

oooo

hearty bloom
#

No idea how you want to link python with Minecraft

plush walrus
#

I dunno

#

maybe network traffic?

hearty bloom
#

You can try mitgobla once he comes online

plush walrus
#

tru

hearty bloom
#

@floral sundial maybe if you have any ideas? But I would just tell him to learn java 😂

plush walrus
#

BUT NO

#

Me no likey likey Java

floral sundial
#

bruh

hearty bloom
#

:)

plush walrus
#

Me no likey likey Java

hearty bloom
#

If you wanna do anything with Minecraft (or anything more complex and keep it organised) learn Java

plush walrus
#

well but it would have to be a mod anyways

hearty bloom
#

It's not that hard

plush walrus
#

which I don't want

hearty bloom
#

Ah

floral sundial
#

you need to connect to MC somehow

hearty bloom
#

^

floral sundial
#

ive never used python to connect to MC and frankly idk if its possible

hearty bloom
#

Maybe you can somehow try to read files in Minecraft folder

#

Not sure if something is there

plush walrus
#

hmm

#

I will try the mc folders

#

:o so launched_profiles.json has the data like accessToken and also displayName

floral sundial
#

there you go, experiment with that and see what you can do

plush walrus
spice plaza
#

just use the raspberry pi edition's python api

plush walrus
#

okay so I managed to get it working but I am really new to working with json and since all the IDs in the file change based on user account, I do not know how to access the dissplaName

hearty bloom
#

You need to find a python library for JSON

#

Stackoverflow: how to read a JSON file in python

plush walrus
#

ye

#

I did that ofc

#

best I could do was
auth_database = launcher_data['authenticationDatabase']['some_id']['profiles']["some_ther_id"]["displayName"]
but ther IDs change for every client and launcher

hearty bloom
#

Just get the first key /shrug

#

Lemme try something

plush walrus
#

ye but when I do
auth_database = launcher_data['authenticationDatabase'][0]['profiles'][0]["displayName"]

I get an error:
auth_database = launcher_data['authenticationDatabase'][0]['profiles'][0]["displayName"] KeyError: 0

#

From that, I assume that authenticationDatabase is not a list

hearty bloom
#

Yea

#

But there is not anything like dictionary#keys ?

plush walrus
#

dunno what that is

hearty bloom
#

Do

plush walrus
#

👀

hearty bloom
#
database = launcher_data['authenticationDatabase']
profiles = database[list(database.keys())[0]]['profiles']
profile = profiles[list(profiles.keys())[0]]

name = profile["displayName"]
#

@plush walrus

plush walrus
#

profiles = database[database.keys()[0]]['profiles'] TypeError: 'dict_keys' object is not subscriptable

hearty bloom
#

Aaa, it's an object

#

Maybe keys().get(0)

plush walrus
#

lemme try

hearty bloom
#

Nvm

#

Wrap it in a lisz

#

*list

#

Ahh

#

Not like that

#

Edit again lol

#

On phone sry

plush walrus
#

IT

hearty bloom
#

Haven't worked in python in ages lol

plush walrus
#

WORKED

hearty bloom
#

Ofc :)

plush walrus
#

Majksa is the love of my life

#

😳

hearty bloom
floral sundial
#

Lol

hearty bloom
#

Python sucks lol

#

In Java you can just do map.get(map.keySet().get(0))

#

Or turn it into treemap and take first

#

Or just Map#values#get(0)

#

That's better

#

:>

plush walrus
hearty bloom
hearty bloom
#

XD

#

I did not use brain ok lol

#

(I used the way how python works)

#

I believe there is no way in python to turn values of dictionary into a list

spring tiger
#

yes there is

#

its easier than java too

#

list(my_dict.values())

#

Thats it

hearty bloom
# spring tiger list(my_dict.values())

Oop, well @plush walrus this would work better:

database = launcher_data['authenticationDatabase']
profiles = list(database.values())[0]['profiles']
profile = list(profiles.values())[0]

name = profile["displayName"] 
spring tiger
#

Both Python and Java are great sadcat both have massive advantages over one another sure but are great in their own applications

hearty bloom
#

Thanks, python is nice, but I always forget how to do stuff in it lol

hearty bloom
#

I still prefer Java's syntax for complex projects more tho

#

Makes it more organized imo

plush walrus
#

I'll do it tmrw since I already went to bed, thanks for help y'all 😊 and expect more questions in the future :)

hearty bloom
#

:)

hearty bloom
plush walrus
#

Ye well this is nothing massive ofc

spice plaza
#

Java is nice for large projects but python has so many shortcuts <3_<3

hearty bloom
#

Yes :)

minor roost
#

Does someone know how they used deadmau5’s model with the bunny texture?

signal drum
#

they probably used his UUID for the boss and changed his texture using a base64 string value with the bunny texture (I'm not certain if this would work, but it's my best guess)

spice plaza
#

sounds about right

#

also explains why the bunny had an optifine cape

lusty pagoda
#

This channel is still alive

hearty bloom
#

👀

floral sundial
plush walrus
#

NEVER!

plush walrus
#

looks cool ngl

spice plaza
#

do you just apply a random velocity to every block?

#

cause it looks cool but it might make a bit more sense if they were pushed away from the skeleton

plush walrus
#

So here I go with another question :)

I know how to pack python file into and .exe but there are 2 issues:

  1. Does the user need python installed to run it
  2. if the file requires some additional pip packages, do they need to be installed too?
hearty bloom
#

I don't think so

#

It should be bundled into a "primary" executable that doesn't require anything

#

But mit will be more helpful

dense zinc
#

Wow that’s really cool! I should really learn how to do effects

spring tiger
#
  1. no
  2. you need to make a setup script that includes the names of the modules that are from pip, so the compiler grabs them
hearty bloom
#

^

plush walrus
#

well how can it install pip when there is no python bigbrain

hearty bloom
#

Try sololearn python course packaging

spring tiger
#

though, you might want to use pyinstaller its even easier, and can do all that script stuff for you

spring tiger
plush walrus
#

ohhh

hearty bloom
#

It's like jar

#

Bur for python

#

*but

#

(right)?

spring tiger
#

yeah pretty much

plush walrus
#

okay, I will try it :)

floral sundial
#

ok guys - i need a challenge. Give me one of the most difficult but really cool things you can think of for me to program. It will be open source so ill post the git here when im done. Can be anything!

hearty bloom
#

Oooo

#

Spigot I guess

floral sundial
#

yeah java spigot

gaunt berry
#

make a cube knockoff banter

hearty bloom
#

I always wanted to be able to play football in Minecraft. Will ball bounces, slide tackles, ...

#

Is that hard enough?

floral sundial
floral sundial
hearty bloom
#

European - soccer

floral sundial
#

i had a feeling XD

hearty bloom
#

XD

#

The only one ;)

floral sundial
#

of course 😉

plush walrus
#

:peepoSus:

floral sundial
#

will accept other suggestions too

sweet barn
hearty bloom
#

Also how hard is it to add physics? (Bounces, when you throw something it slows down and falls, ...)

floral sundial
sweet barn
#

Such as making a particle plugin largely using trigonometric functions and whatnot

sweet barn
#

Lol

floral sundial
hearty bloom
#

Lol

sweet barn
#

Hmm let’s see, was thinking of utilizing some particle stuff, but what about doing something similar to WorldEdit but with complex shapes like 2D and 3D helixes and such

plush walrus
#

make Minecraft 2 😎

hearty bloom
#

LOL

plush walrus
#

I'l be waiting :>

signal drum
#

make minecraft in minecraft

hearty bloom
#

@floral sundial make computer in Minecraft

floral sundial
floral sundial
#

as in its been overdone

sweet barn
#

True

#

Create a protocol translator :D

#

Between Minecraft and terraria

#

runs

hearty bloom
#

LOL

hearty bloom
floral sundial
hearty bloom
#

Ooo

floral sundial
#

So far i have futball, a worldedit+, and a convoluted minecraft/terraria combo

#

anything else?

plush walrus
#

I dunno, don't really have any ideas

signal drum
#

^^ maybe you can take a look at some mods for inspiration?

thick matrix
#

anyone having some experience in making plugins yourself?

floral sundial
#

I do @thick matrix

#

Need help with anything?

thick matrix
#

can we slide in private chat? 😄

#

yeah please

floral sundial
#

DM me

plush walrus
#

btw I uploaded my first bigger project I am planning to work on now to GitHub, feel free to check it out and I would appreciate some feedback too :)

hearty bloom
#

send the link ;)

plush walrus
#

well my GutHub is linked

#

but sure

floral sundial
#

nvm worldedit already has math equation to creation -.-

gaunt berry
#

@plush walrus cuebcraft

plush walrus
#

oh gosh

signal drum
#

lol

plush walrus
#

well this is awkward

floral sundial
#

One project i made was one that let you modify block data - so for stairs for example changing them to a specific direction - all with a command. It was nice because I spent so long getting the command auto-complete finished (it changed for every block that could be modified)

gaunt berry
#

/give @s debug_stick

floral sundial
gaunt berry
#

haha

floral sundial
#

Hey @sweet barn are your DMs open? I have something to discuss if you have a minute

dense zinc
#

@floral sundial I have an idea, make a custom boss that is made completely with armor stands

hearty bloom
floral sundial
gaunt berry
sweet barn
floral sundial
#

I know you guys don't have an API but there's a fair number of people who want it. Is it mainly you guys just don't have the time to do it because of other projects going on?

gaunt berry
#

yes pls make cube api public

dense zinc
plush walrus
#

aw

#

:(

hard roost
spice plaza
#

where's the modding aaapppiiii 🎵

floral sundial
#

I ask because I want to offer something but I might need to talk to Palom about it when they get a minute

sweet barn
floral sundial
hearty bloom
dense zinc
hearty bloom
#

Mac doesn't run anything

#

Unless you do magic in settings to allow

dense zinc
#

It just doesn’t let you run software without a certified developer

#

You need to approve it in settings

silver yoke
#

cool

#

and I have a question?

#

to cube craft games

#

HOW DO YOU MAKE THESE GAMES!

floral sundial
#

Magic

hearty bloom
#

Well

#

You see

silver yoke
#

I tried

#

and it went dead in a month

silver yoke
#

lol

#

xD

plush walrus
hearty bloom
#

There was this cool video

#

Lemme find

plush walrus
#

I saw that one lol