#💻︱programming

1 messages · Page 6 of 1

brisk badge
#

it doesnt help to laugh at him like that

minor roost
#

His question was already answered

#

and theres nothing wrong in a little funny comment

#

Cube is way to child friendly istg

brisk badge
minor roost
#

if u mean 💙 ᴊ̅ᴏᴄ̅ᴋʏ̅ ᴊ̅ᴀᴢᴢ̅ 🖤 we are way too polite to him

#

he shouldnt be allowed in this chanel to start with

brisk badge
#

if he is annoying you in any way, best to just ignore him.

minor roost
minor roost
slow knoll
#

dang bru

hard roost
#

that dude's about me is breaking more rules than our conversations

brisk badge
#

Then you can still ignore him?

minor roost
#

thats it

dire garnet
#

If your bothered, block him then you don’t see his messages

faint knoll
#

ba dum tss

real pelican
#

who know cloud compute?

agile parcel
finite sluice
#

Ik I'm late to this but I'm genuinely curious how it was possible for the global skin system to basically crap itself. It wasn't just a cube craft issue like to me it seems as though Mojang changed the models or something and just didn't warn anyone

merry dune
#

سلام عليكم مين يبيع حسابه بس المطلوب إني اشتري الحساب يكون فيه جميع رانك ميزات كيوب من عام 2012 لعام 2023 ميزات

‏للتواصل معاي ضغط هنا 𝐂𝐇𝐑𝐈𝐒𝐓𝐈𝐍𝐄@


‏salam ealaykum myn yabie hisabah bas almatlub 'iiniy aishtari alhisab yakun fih jamie rank kyub min eam 2012 lieam 2023 mizat

‏liltawasul maeay daght huna @merry dune

faint knoll
#

Hey guys I got a part of json coding of discord

#

It won't fit in the message here omg

quiet arrow
#

It should convert it to a .txt file if it goes over the char limit

faint knoll
#

It didn't, so I converted it

#

On mobile 🔥

real pelican
#

guys

#

anyone know how to powerup a desktop without power supply unit_

spring tiger
#

You need a PSU to make a computer turn on @real pelican

real pelican
#

and i choose wat is the right psu for my desktop_

#

?

#

my desktop brand is zotac

spring tiger
#

Depends on what all the components are in it

real pelican
#

and

#

i7

#

and nividia gtx 640

#

gpu

#

if i send a screenshot of my pc can u tell wat psu is best for my pc</?

hard roost
#

i think you dont have 128gb of ram with a gtx 640

quiet arrow
#

128mb

minor roost
#

Prob 1-2 max

minor roost
minor roost
#

What's the diffrence between interrfaces and abstract classes in java?

#

What's the point in having interfaces if u already have abstract classes?

faint knoll
#

Interfaces means you can define as many method prototypes as you want, but it's not necessary to use them all in a class using that interface.

For an abstract class, you must use each and every method in the abstract class, in the another class which uses the abstract class

minor roost
#

Then why use interfaces at all if they dont hold any implemnation?

minor roost
minor roost
# minor roost What's the diffrence between interrfaces and abstract classes in java?

an interface is basically a fully abstract “class” and it can only have abstract methods or default methods
it cannot have instance fields
interfaces also support multi inheritance, meaning that a class can implement more than 1 interface and an interface can extend more than 1 interface
an interface can also have be refrenced with lambda expressions () -> if it only has 1 abstract method

an abstract class is like a normal class but it can have abstract methods just like interfaces
any non sub abstract class that extends it must override all of its abstract methods
and abstract classes cannot be instanciated just like interfaces

minor roost
minor roost
#

Also I still don't get how having a blueprint(interface) can be usefull

#

It has no implementation

#

The only thing it has are method blueprints

brisk badge
# minor roost Also I still don't get how having a blueprint(interface) can be usefull

Let's say you have a family classes called "Vehicle". This means that all of the classes in the family inherit (directly or indirectly) the superclass Vehicle. Vehicle can hold instance variables like topSpeed, motorPower etc. You can also give it functions, like steerLeft. You make Vehicle abstract if you dont want it to be instantiatable (prob not correct spelling).
What if you want to be able to group subclasses in more categories? Lets say we want to make a category called Paintable that groups every vehicle that can be painted. We want to make sure that every class that is paintable has the method paint(Color color). In that case you wouldmake it an interface.

Since java does not allow a class to have multiple superclasses, interfaces are very useful. You cannot inherit from the class Vehicle and Paintable at the same time. With interfaces you can group classes on behaviour. You could for instance keep a list containing every paintable vehicle interface, and paint them red all at once.

#

(a class can implement multiple interfaces)

minor roost
#

but interfaces dont require all methods to be overriden right?

brisk badge
#

they do!

#

it will throw a compile error if not

quiet arrow
#

@bold fable what are you making? And why are you using pycharm above vs code (actual question)

bold fable
quiet arrow
#

Ah ew

#

Pycharm never does what I want it to do

real pelican
minor roost
#

Still weird

#

But thanks yall for explaining

spring tiger
#

abstract - you can also instantiate variables
interface - you cannot

For example:
An interface for something like Container. This interface has a put and take method. You can imagine that there are many different containers that have many different ways of being filled, of any size, etc.

Now I have a PaintBucket, which will be an abstract because there will be different colours and mixes. The abstract PaintBucket implements the Container interface because it is a form of a container - we want to put in paint and take out paint. This abstract PaintBucket also instantiates a variable called "fillLevel". Not all containers will have a fillLevel, some might have an itemLevel, gasLevel, etc. I will also make an abstract method called "getColour". Each concrete paint bucket must implement this as well.

Lastly, my concrete class RedPaintBucket, I implement getColour and make it return the hex value for red.
@minor roost hope this example helps

minor roost
spring tiger
#

What if you have more than just paintbuckets 😛
what about a box of nails, etc

minor roost
#

Then u also make those methods in them

#

U would have to make overiden methods with interfaces eitherway

#

The only gain i see is that if u use interfaces it explicitly tells you that you have to implement certain methods

#

And if u modify interface it's easier to modify all classes using it

spring tiger
#

Not really, what if we then want to implement some sort of warehouse, that can store containers. Then we could use the interface

minor roost
#

Hmmm

#

Don't understand

spring tiger
#

Well, lets say I have a list of containers. The list would be List[Container] rather than List[PaintBucket,NailBox]

It makes the code far more maintanable, and readable

#

It also means we know anything that is a container can have put and get methods, and further makes the code more abstract than having numerous abstract classes that do "similar" things

minor roost
#

Hmmm

#

So if u have an interface Container

#

And classes NailBox PainBucket each implementing that interface

#

U can assign
Container container;
NailBox nailBox = new NailBox()
Container = NailBox

#

?

spring tiger
#

NailBox would be a Container type, yes.

minor roost
#

So it wouldn't throw any sytanx error

#

So weird

#

Ofc that wont work the other way around right?

spring tiger
#

Yeah, a Container alone wouldn't be any type other than Container

minor roost
#

Alright kinda makes sense thanks

#

I read in my lovely book about default implementation in interfaces

#

But since an interface cannot be instantiated and classes implementing interfaces must override all methods

#

When will it be even called?

spring tiger
#

its not called, you're simply saying that your class implements the methods defined in the interface

so really its instantiated when the non-interface is instantiated

candid jay
#

So use interfaces for more abstraction, to make code more readable, and for multiple inheritance

minor roost
plush walrus
#
if 1:
  if not 2:
    return True
  else:
    return False
else:
  return False

#----

if not 1:
  return False

if 2:
  return False

return True
#

what is considered better approach to these nested if statements?

lost shuttle
#

this chat for 🤓

#

jk

agile parcel
faint knoll
faint knoll
#

You mean, both abstract classes and interfaces require that all its methods are overriden?

brisk badge
# faint knoll Wait but-

Interfaces require all its methods to be implemented, and abstract classes require all its abstract methods to be implemented

faint knoll
#

Hm that was kinda different for when I was working with them. Ok I'll check back once. thx

brisk badge
#

It has been like this for a very long time 😁

faint knoll
#

Ok 😄

minor roost
#

Kinnda get it but then those default methods are just like extending a class

#

Tho ig u can have many interfaces but only one superclass

faint knoll
#

Oh one more thing I remember from above post. I think, only one abstract classes can be used (using extends) by a class

#

But many interfaces can be used (using implements) by a class

minor roost
#
static {
       
        try {
            provider = (IBaritoneProvider) Class.forName("baritone.BaritoneProvider").newInstance();
        } catch (ReflectiveOperationException ex) {
            throw new RuntimeException(ex);
        }
    }```
on the topic of interfaces
#

what one earth happens here?

#

IBaritoneProvider is an interface btw

plush walrus
minor roost
#

yes

#

but why so weirdly?

plush walrus
#

wdym weirdly

minor roost
#

normaly u do Foo foo = new Foo()

#

or am i missing sth?

plush walrus
#

well you can call a private constructor

#

and it is more flexible I think

minor roost
minor roost
#

and wdym by more flexible?

plush walrus
# minor roost BaritoneProvider has no constructor and the class is public so i think the defau...

Using Class.newInstance() allows for dynamic instantiation of classes at runtime, which can be useful for scenarios where the exact class to be instantiated is not known until runtime or when there are many classes to choose from, making it more flexible and adaptable than using the "new" keyword. Additionally, it also allows for calling of private constructors, which may be necessary in certain situations.

brisk badge
#

I have never seen that before tbh

minor roost
#

maybe they did it cuz there was no way to import BaritoneProvider

spring tiger
# minor roost ```java static { try { provider = (IBaritoneProvider...

"Reflection is a feature in the Java programming language. It allows an executing Java program to examine or "introspect" upon itself, and manipulate internal properties of the program. For example, it's possible for a Java class to obtain the names of all its members and display them."

faint knoll
#

And yes these are in the reflections

minor roost
#

sounds weird but ty

#

Also, does anyone know why

public interface Helper {
    /**
     * Instance of {@link Helper}. Used for static-context reference.
     */
    Helper HELPER = new Helper() {};
    /**
     * Instance of the game
     */
    Minecraft mc = Minecraft.getInstance();

     default void logDebug(String message) {
        if (!BaritoneAPI.getSettings().chatDebug.value) {
            return;
        }
        logDirect(message, false);
    }

    *other not important methods*
}

Why in some places instead of doing

logDebug("Path ends within loaded chunks");```
**they use**
```java
Helper.HELPER.logDebug("Path ends within loaded chunks");```
?
#

like for example here

package baritone.api.command.exception;

import baritone.api.command.ICommand;
import baritone.api.command.argument.ICommandArgument;
import java.util.List;
import net.minecraft.ChatFormatting;

import static baritone.api.utils.Helper.HELPER;

public class CommandUnhandledException extends RuntimeException implements ICommandException {

    @Override
    public void handle(ICommand command, List<ICommandArgument> args) {
        HELPER.logDirect("An unhandled exception occurred. " +
                        "The error is in your game's log, please report this at https://github.com/cabaletta/baritone/issues",
                ChatFormatting.RED);

        this.printStackTrace();
    }
}
#

instead of implementing Helper interface they import static reference to Helper and use it instead

hard roost
#

Bro crossposts the questions to the baritone discord and here just wait for an answer there 😭

minor roost
hard roost
#

Skill issue + ratio + dont send questions if they don't answer

minor roost
#

why would i not. I want an answer so i can learn new things
they rarly answer questions there so im asking here

quiet arrow
#

@minor roost My first thought would be that they use the latter when they don't have access to an instance of the Helper class

minor roost
#

Helper is an interface

quiet arrow
#

Poteto potato

#

Same story, I'd guess. Some reason why they can't acces the other one in that method/...

minor roost
#

they can imo

#

but cant on runtime

spring tiger
#

As the method says in its docstring, it's used for throwing debug messages in static context.

"attempting to access a non-static variable from a static context (a static method or block) without a class instance creates ambiguity—every instantiated object has its own variable, so the compiler is unable to tell which value is being referenced."

minor roost
#

and u can just instead implement Helper interface and use logDebug() directly

wanton ferry
round blade
#

create a login page programm

thick summit
hoary trellis
#

Sorry

faint knoll
thick summit
#

done that for a few companies

faint knoll
#

Ok

subtle roost
#

Sup guys me and a friend created a "rank system" for sky wars with a google sheets and i was wondering if more people were interested in helping developing it or participating in the ranking system

minor roost
minor roost
#

be aware of spam bots

faint knoll
#

Making spam bot is against discord TOS ig

hard roost
#

Ig there is no reason to write ig ig + it a joke no one is gonna run that lol

thick summit
#

yeah, if you want a spam bot, use a loop (don't go against tos, you don't want to deal with it)

faint knoll
thick summit
#

and achieve what exactly?

#

lagging your network?

#

and bot api?

minor roost
#

Hive on top cc rules suck

indigo nacelle
rugged tundra
#

c

#

p

faint knoll
#

Extermination of multiverse

minor roost
#

whats the point of all these java script frameworks 😭

#

they make my head hurt

faint knoll
thick summit
#

it's "easier"

eternal bronze
#

Yeah

#

Its acually easier

#

You dont need to write that bolierplate again

#

But it is used in more complexed sites

thick summit
#

yeah, but a large decrease in performance and increase in load time

#

two big factors for bounce back rate

minor roost
eternal bronze
#

💀

minor roost
#

💀

violet jewel
#

I wonder what's the easiest language to learn

brisk badge
thick summit
#

python for data analytics

sharp crystal
#

I think it's the easiest to learn either JS (with nodejs) or Python

brisk badge
lusty hare
#

how to do this part?

#

wanted to make a discord bot that responds to a message with specific lines

hard roost
#

open powershell / cmd, type npm i change some stuff in config.json, then type npm start or node src/bot.js in powershell / cmd

lusty hare
hard roost
#

open powershell / cmd, type npm i

spring tiger
#

They might not have node installed

hard roost
#

that was next step if they responded with "is not recognized as"

haughty forge
#

idk ¯_(ツ)_/¯

plucky blaze
#

hiya

neat ravine
#

.

grave gulch
#

hello

spring tiger
sudden fog
#

Amm

#

Solution a el error

DESCONEXION DEL SERVIDOR??

minor roost
#

Hola

#

Este banearon gingerex injustamente

#

El que lo baneo Biliries

#

Injustamente

#

Enserio es un problema

#

Lo baneo ados jugadores

young sonnet
#

Hi... do you know what is the latest version of Minecraft bedrock that supports cubecraft?

quiet arrow
#

The latest non alpha versie, I believe this would be 1.19.71

uncut comet
#

Interesting, i bet i could fix some of the issues .

#

I am a plugin creator from amulet

#

Im a very fast learner most of the time

#

My favorite language is Assembly

#

My favorite high level language is C plus plus

#

But I have more experience in Java And in C ++

#

As a beginner I think I'm doing pretty good in python, Made quite a few plugins for the amulet editor

spring tiger
#

@uncut comet This isn't a server to sell your services 🙂

uncut comet
#

I wish

#

I would be extremely excited it help

#

I do have skills in programming and engineering

#

I just can't find very many places i would enjoy working

#

And i really hate these data entry jobs

#

I can read any computer language without comments, thats probably my best skill

#

I know Bash, Powershell, Python,... Java, C++, C , asm, basic, visual basic, visual C ++, C# , Javascript, HTML5, HTML ...

#

PHP

#

Im sure im missing some

#

I won't admit to knowing a few

#

I don't like them at all

#

Some are Obsolete

#

Or just extremely freaking annoying

#

I have college degrees

#

Never helped

somber plume
#

you could try Fiverr thats what i use.

I dont get many gigs but it's still a great freelance platform

haughty rain
quiet hollow
#

the dude said he had college degrees and you are recommending fiverr to him?😭

hard roost
#

On a another note what is a grown butt (family friendly server) advertising his expertise on a Minecraft discord server

#

Create a linkedin account or smth

peak folio
#

&^&^76775^&(((UU(JIU*YTT^&%^&T&YU()I)

#

lol

solar igloo
#

Devs that worked on the update great job ❤️🙏🏽

safe tapir
#

👍

sonic galleon
brisk badge
#

Where?

#

@quiet arrow known?

quiet arrow
#

Yes

#

It was reported, just isn't fixed yet. We're currently still in open beta. That's why. I'd like to remind you that for every bug you find, I probably already reported a 100 during internal testing 😄

#

It was already reported before release 😄

minor roost
#

You think developers don't listen to reports?

#

Well, it's general question, but I meant Feestja this time, as she said that she reported it 100 times already

#

(If I understood it correctly)

quiet arrow
#

Oh, that's not what I meant :)

#

For each bug you find as a player atm, I've already reported a 100 bugs during our internal testing

minor roost
quiet arrow
#

Almost all I believe

minor roost
minor roost
#

Xd

indigo nacelle
#

What is bro up to???

hard roost
#

Hello world

formal arch
#

Hello planet

heady oyster
thick summit
#

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>+++++++++++++++++++.---------------.+++++++.<<++.>>++++++.--.--------------.++++++++++++++.<<.>----.>-.-----------------.++++++++.+++++.--------.+++++++++++++++.------------------.++++++++.

tired tendon
#

guys

#

can any1 like help me in how to insert multiple photos into 1 html file (using embedding method)

#

pls tag me when u send it

minor roost
# thick summit ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>+++++++++++++++++++.--------------...

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++.>+.<<+++.-.>------------.>+++++++.+++++++.----.<<++++++++++++.------------.>>-----------.+++++++++++.<<.>>++++++++++.----------.++++++.<<.>>.--.--------------.<<.>>-.+.--.++++++++++++.-----------.+.+++++++++++++.<<.>>---.+++.<<.>>---------------.--.+++++++++++++.<<.>>-------------.++.+++++++++++++++++.+.--------------------.+++++++++++..+++++++++++++.<<.>>-------.-------------.----.+++.<<.>>++++++++++++++++.------------.+.++++++++++.<--.

thick summit
minor roost
#

Anyways nice to see someone who knows brainf*ck tooharold

thick summit
#

lol

haughty forge
somber plume
tired tendon
#

ok thx

somber plume
#

If you ever become any type of Front/Backend developer StackOverflow will become your best friend 😂
I often spend more time there reading than actually working

candid jay
#

Reading there IS working

violet sun
#

Hi

thick summit
quartz agate
#
public class CubeCraftDiscordServer {
    public static void main(String[] args) {
        System.out.println("hiii");
    }
}
quiet hollow
#

W boilerplate

somber plume
plush walrus
#

boilerplate-driven language

quartz agate
safe igloo
#

banger website you made btw

#

well done 👍

quartz agate
indigo nacelle
#

Don’t forget to read the license, people

safe igloo
#

Ah oop i skipped past that one

#

Thanks for notifying me brother :D

plush walrus
hard roost
somber plume
grim sundial
#

What Programming Languages do y'all know ?

fast mango
#

bash, mysql, html, css (these are not actually languages, it was a joke, I actually know a bit of C and a lot of java)

grim sundial
#

I know html too and a bit of css as well

#

Trynna learn css completely and then learn Java Script

fast mango
#

how are you learning?

grim sundial
fast mango
#

I find it best to create projects, and only when you're stuck you watch a tutorial, that way you get to try things out for yourself

slender wing
#

Can someone help me with something

plush walrus
#

with what?

slender wing
#

I need someone to help make a discord server

quiet hollow
#

bro can't press 2 buttons😭

minor roost
slender wing
minor roost
#

Yw ;D

indigo nacelle
naive tangle
#

🤔

haughty forge
#

Sorry I was busy programming

naive tangle
#

Oh

haughty forge
#

Yeh

quiet arrow
brisk badge
quiet arrow
#

Coping mechanism

brisk badge
#

The guy must be a great actor then

#

As he seems to seriously enjoy it

haughty forge
sly dagger
#

i just made a bot that will get u banned from cc immidietly

haughty forge
#

Luckily I made a bot which reversed that ^

hard roost
#

Luckily i made a bot which does both

haughty forge
brisk badge
safe igloo
#
        int THECHOSENONE = random.nextInt(0, players.length);
#

god i am so good at naming things

#

this is for setting an owner for a pet if anybody is wondering

grim sundial
#

I am currently learning Java

#

Its not that easy

somber plume
#

No programming language is really "easy" you basically memorize things at one point. some stuff still gives me headaches and frustration, thats why when you code StackOverflow will become your best friend. xD

haughty forge
#

(╯°□°)╯︵ ┻━┻

indigo nacelle
safe igloo
safe igloo
somber plume
somber plume
#

and still not even remotely done 😢

quiet arrow
#

L build failed

#

My builds never fail kappa

dry ermine
#

Fun moments

formal arch
#

so funny im dead

hard roost
#

i can count those pixels

robust basin
#

hello

dry ermine
#

🫡I love the colours and everything

brisk badge
dry ermine
#

🫡ion know mahn

#

I'll just download a formatter later

brisk badge
#

Please do ;)

dry ermine
#

Me creating a shop

brisk badge
#

It's generally good practise to use normal Arrays instead of ArrayLists if you know how many elements it will contain beforehand (for the shop)

dry ermine
#

It's not Flexible

#

ARRAYLIST is

hard roost
dry ermine
#

Just found out I could change it brujjj

hard roost
#

White on pure black? Ew

dry ermine
#

Lol

brisk badge
brisk badge
hard roost
dry ermine
#

How does it feel

brisk badge
hard roost
#

Yeah when I switched to gruvbox I felt the same but after using it you get used to it

hard roost
#

Also you know screenshots exist

dry ermine
#

I don't use discord on my pc

#

Just for coding

#

😭

somber plume
#

i just looove this theme (its called Shades of purple) and of course GitLens and the Material Icon Theme (For nicer looking icons like folders etc.) is a must for me! :p

dry ermine
#

Damn

#

Is that java script

somber plume
dry ermine
#

Been a while I used it

#

Seems easy

somber plume
#

still struggeling with it tough :p, im more capable in Java, lua and CSharp (not counting stuff like HTML since thats basically the basics that i learned when i started)

dry ermine
#

Woww

#

🫡u should coach me

#

Can I ask questions from time to time

somber plume
#

shush. XD

#

renaming is one of the later things i do. :p
(This is also not a repo im actively working in its basically dead, i just cant show the others due to them being confidential for a certain time period atleast)

somber plume
dry ermine
#

No problems

somber plume
#

Sadly i cant remember any gamemode called Mineware on CC but it looks fun atleast :p

#

Theres even someone that seemed to have "leaked" cc's resourcepack from 2 years ago lmao. idk why people call themselves "Leakers" the resourcepack literally gets downloaded to your system when you join CC. all you'd need to do is put a .zip behind it and it would work.
People really try to get fame/reputation for everything nowdays lol

dry ermine
#

😅😅😅

spring tiger
#

@somber plume Minerware is still on Bedrock

somber plume
indigo nacelle
#

I prefer client_javascript.javascript

dry ermine
#

Yoooo guys

#

Help

somber plume
#

Writing what you need instead of saying help usually is more useful. 😂

dry ermine
#

Lolll

#

True

somber plume
#

Soo? XD

dry ermine
#

Well I want the user to be able to load his or her items from the fixed shelf to his or her cart

Also some functionality
Like he can see what's in his cart
He can delete an item from his cart

#

There

somber plume
#

And what do you have already?

dry ermine
#

Well it's not complete

#

And my pc just died

thick summit
#

ah that's simple

dry ermine
thick summit
#

arrays (his cart) and a database (the fixed shelf - can also be not fixed with a dashboard)

dry ermine
thick summit
#

firebase is a free database system you can use

dry ermine
#

Just arrays

thick summit
#

simple javascript api

#

using es6 modules i think

dry ermine
#

Ohh

#

I want it java

thick summit
#

they actually have a java sdk

spring tiger
#

If you're just trying to tinker around in java, you could always use JDBC with Sqlite to store things in a file database

dry ermine
#

😑I'll learn it

#

Bruhhh

#

I probably don't know much

spring tiger
#
dry ermine
#

Still nooob

dry ermine
open needle
#

Is learning C# worth it?

thick summit
#

depends on what you want to do

indigo nacelle
hard roost
rocky forge
somber plume
# open needle Is learning C# worth it?

Like people before me said, it depends on what you're planning to do with it.

Do you need it for a project? Then you will need to learn it to fulfill your ideas.
Does it just take a very very tiny part of your project and the rest is in another language? then it might even be a timesaver to just outsource it or look for a boilerplate. But in the end that's entirely up to you!

If you are overall new to programming i can recommend Harvard University's CS50 Online seminar (completly free of course!) I'm not sure if the filter allows harvard.edu links but you just need to google it. should be the first search!

Other than that you can look on stackoverflow for issues/solutions and sometimes tipps! Or check out some github repositories that use C#, thats how i tought myself.

And obviously for C# the best place is the official documentation from microsoft! https://learn.microsoft.com/en-us/dotnet/csharp/

somber plume
umbral heart
#

please fix the glitsh block in egg wars sky wars

somber plume
#

When working on my Bedrock Network every now and then I'm always surprised how god damn fast that thing boots up in comparison to our Java stuff. It makes testing things just so much easier.

dry ermine
#

What's the simplest way to make a linear search alogrithm in Minecraft bedrock

dry ermine
#

Well for example let's say I have an array of items but I want to know the position of the item

#

In my array of items💀

#

Can u build it in Minecraft

brisk badge
#

Do you have an idea on how to make that array of items?

#

Things like this are very hard - if not impossible in Bedrock Edition with commands

dry ermine
#

No 😂it is actually possible

#

Remember we need to sort the item

That's where an item sorter comes in

#

👌

#

It's an array of items but sorted.

brisk badge
#

So you are using redstone instead of commands?

dry ermine
#

Yep

#

🫡

brisk badge
#

Oh, it is an array of chests

dry ermine
#

U finally understood

brisk badge
#

Yeah, you should phrase your question a bit more clear next time

dry ermine
#

Yes sir

#

Well I already did it

#

Not that hard

spring tiger
#

I mean nowhere in "What's the simplest way to make a linear search alogrithm in Minecraft bedrock" did you say chests 😛

somber plume
#

Would anyone know of a 100%ish safe way to convert a Java world to bedrock? We want to use our lobby for both Java and bedrock, and we worked for around a year on it and rebuilding isn’t an option because then we won’t meet the deadline 🙈
I’ve looked online but most if not all I saw was people complaining about corrupted worlds or outdated stuff

I wish there was an Official Worldedit plugin for Bedrock, then we could use schematics 😢

hard roost
somber plume
#

Oh! this didnt came up in my search, i looked again nothing like this is shown in the results, ill check it out tough, thanks!

All i see now is a tutorial from nodecraft which i didnt click becasue i was expecting it to be something they do for you incase you host there

Many thanks! 💙

somber plume
#

~~If i may ask something towards CubeCrafts developers. Are you guys using actual Bedrock server software, or Java software that only lets bedrock players connect based uppon gyser? or just behavior packs mayabe? ~~🤔

Found all my answers here incase anyone else is interested, its pretty interesting! : https://www.cubecraft.net/threads/behind-the-cube-1-feelin-lucky.264600/

open needle
plain pasture
#

Hello

dry ermine
#

Yo

naive tangle
#

Hi

dry ermine
#

Is it possible to build a bubble sorting alogrithm in bedrock

spring tiger
#

... with chests?

dry ermine
#

Whyyyyy

#

Anything

#

Except commands

#

👀❤️‍🩹

spring tiger
#

I mean, if people are able to make computers in Minecraft, then I'm sure theres a redstone way to make a bubble sorting algorithm

dry ermine
#

Ohhh ok

brisk badge
# dry ermine Ohhh ok

I still don't get what you are trying to sort. Items in chests? Elements need to have some sort of numerical value in order to sort them

dry ermine
#

Numerical
Hmmmmmmmm

#

I need time

#

Let me think 🤔 and see if I can

somber plume
#

werent you just a couple of days ago trying to sort items on a webshop? 😂 is your webshop in mc now? :p

dry ermine
#

Na I have upp

#

Lol

#

I have up

#

What

#

I gave up

#

Cuz of my test

spice whale
#

@minor roost do some programming

somber plume
#

Got another question aimed towards the person that made the Discord Bot @mellow basalt !

How was it achieved that the bot joins threads/forum-threads automatically? 🤔

I've been looking trough Discord's documentation but didn't really find anything useful regarding that topic.

And since its a very useful feature i want to adopt it into my bot!

I'm not asking for the entire code-part here so dont understand that wrong! im perfectly able to code myself and more than willing to do it. All i'm asking for is a hint or maybe a link to a documentation that explains the crucial parts of it 🙂

Thank you for your answers in advance!

quiet arrow
#

I didn't make the bot btw*

somber plume
safe igloo
#

Hey yo quick question
i tried to make the shield have have the whole axe cooldown when hit above a certain damage value
this all works, but the cooldown itself is a bit iffy
it does disable the shield for a bit BUT it does not display that its on cooldown
so you can still shield like normal, but you will take damage as if you wern't holding the shield
i tried looking into some function to make the shield have a visual cooldown but coudn't find anything
anybody know something about this?

quiet arrow
#

We'll need some more context I think, for which version of the game are you making this? With what are you making this? Bukkit/... (I think this is a server plugin?)

safe igloo
#

Ah right im a baboon Xd
1.19
Paper
Server plugin

#

I looked for something like shieldmeta or something but coudnt really find a way on how to make it visible

dry ermine
#

😭😂💔

safe igloo
#

Xd hi bro

dry ermine
#

Hey

safe igloo
#

OOOH THANK YOU!!!

somber plume
#

So i noticed the Minecraft Chat reporting feature is disabled on CubeCraft, but how did you guys get rid of that anoying banner on the top right that says that messages cant be verified?

Is there a method via making a plugin? havent looked into that and documentation too much as of yet so i wouldnt know where to start regarding the chat stuff. (i know java and work with it alot.)

spring tiger
somber plume
#

oh i knew about these, tested a couple but they never got rid of the banner, so we took an opensource one, forked it and tried to work with that. will look into the one youve sent. thanks.

vague coral
#

Who know KubeJS? ||How to add attributes to items???||

dry ermine
#

Umm

dry ermine
#

Are there any redstone computing discord

thick summit
#

yes, I just don't know the link

somber plume
dry ermine
#

Ohh

hidden lily
#

lol

shut dust
#

Can someone program a patch to void glitch?

dry ermine
#

Lol

dry ermine
#

Can someone give me something in java to do ,💀simple and easy

#

Thx

dry ermine
#

What's that

plush walrus
#

print numbers in range 1-n
if number is divisible by 3, print "Fizz"
if divisible by 5, "Buzz"
if divisible by both 3 && 5, "FizzBuzz"

dry ermine
#

Ohhh ok 💀

#

This is confusing

#

But I'll try

barren trellis
dry ermine
#

I have done it I'll submit

plush walrus
#

cool

dry ermine
#

Weeee

#

Another one

#

😔

plush walrus
#

write bubblesort

#

google what it is probably

dry ermine
#

Okk okkk

quiet arrow
#

And after that make a visualisation of Bubble sort :v

#

It’s very cute

dry ermine
#

Ahhhhhhhh

brisk badge
quiet arrow
#

It’s not hard!!!

brisk badge
#

Graphical interfaces require some research

quiet arrow
#

That’s the point :v

dry ermine
dry ermine
#

Anyone here pls gimmme another thing to program and java

spring tiger
#

Search for the Programming Challenges wheel on Google, it's a randomizer that gives you a different challenge to try

dry ermine
#

Ohhh

plush walrus
#

but gotta use java 💀💀

quiet arrow
#

Ahw

#

It’s fun tho

#

Simple visualisation like that are Python material imo

plush walrus
#

well my teacher made a library for a light matrix which I decided to use

#

but it kind of sucks

quiet arrow
plush walrus
#

it's based on swing

#

but you can't access many of the native jframe methods

spare hamlet
#

hello, does anyone here know something about bedrock programming? Ive been coding for java plugins but i understand nothing of bedrock scripting. My first question is do all servers use behavior packs or is there some other api out there to make actual plugins? And then the second is how do i start with it. I found this tutorial from 4 years ago that uses nodejs with some packages but i believe thats outdated and is not the actual way of making behavior packs. I also found this wiki page that works with json files. Could someone provide me a link or so for what i actually need to learn cuz im a bit confused. Thanks in advance

#

if there are multiple ways to start with it then im also interested in knowing that. I know that for discord bots for example there are people that created apis to be able to code bots in different languages im not sure how this is with bedrock scripting

clever forum
#

hi

spare hamlet
#

👋

clever forum
#

does any one know what this error code on arduno is

#

could not find "#include "arduboy.h""

spring tiger
spare hamlet
#

How do i create plugins then?

#

I dont want behaviour packs then i want the good stuff xd

spring tiger
#

You might want to look at Geyser: https://geysermc.org/

spare hamlet
#

cubecraft uses that?

#

wait so

spring tiger
#

No, CubeCraft uses a custom implementation as I mentioned, that runs on Java

spare hamlet
#

okay

#

wait so ur saying if i want to create plugins for bedrock i need to allow bedrock players on a java server?

#

is that why i would need geysermc?

spring tiger
spare hamlet
#

alr tnx ill take a look

#

and what do other bedrock servers use?

spring tiger
#

Most likely some form of their own implementation 🙂

spare hamlet
#

this is some heavy stuff

#

and so will plugins work fine when using geyser or could there be some issues?

#

@spring tiger i downloaded it but on bedrock i cant join

spring tiger
#

I can't really help you there, I don't have any experience with it. I'd follow the Wiki guide that is on the site

spare hamlet
#

oh alr will do, thanks for helping me out!

north spruce
#

@minor roost

minor roost
native lynx
#

Everyone add cristi 2#9927

hearty fiber
#

hey guys i have a question

#

what is the language we should use to program a minecraft bedrock server?

dry ermine
#

Umm

#

C++🤔

tawdry radish
minor roost
indigo nacelle
hallow magnet
#

i think Intellij Idea is better

dry ermine
#

I like visual

#

Am already used to it

#

🙌😟

quiet hollow
indigo nacelle
#

Too late guys

quiet arrow
dry ermine
indigo nacelle
plush walrus
#

Is it possible to access inner html of a cross origin iframe element?

#

I need read-only but I do not think it is possible because of xss

#

but I mean I can literally see it on the screen, is there really no way to access it?

tawdry radish
thick summit
oblique cape
hasty cradle
#

Hello, does anyone else have the error that the skin that they put does not load and they put a random skin on it?

bronze shard
#

yh its always been like that for me...I thought it was meant to be like that

haughty slate
#

for java you need to use : NukkitX software , spigot software

#

for php : pocketmine software

oblique cape
#

Ok

minor roost
willow remnant
#

@dense wraith
listen sanne I'm asking you please download my ban please I'm sorry and I really want to play on the server please

#

Plssd

sharp pilot
#

Hello I just wanted to see if anyone here can get me unbanned quicker I believe I was wrongly banned my acc is Snipe5gg and I’ve never used cheats furthermore I’m on ps4 so I can’t use cheats I play this server all the time and have very well built up stats in bridges

fallow canyon
# hearty fiber what is the language we should use to program a minecraft bedrock server?

For plugins, most large servers that aren't using something custom are gonna use Geyser and then use the Bukkit API and the Java programming language to make plugins for their Bedrock server. You can read about Geyser at their website: https://geysermc.org/

minor roost
#

None

sharp pike
fallen pagoda
#

Y'all seem smart lol

thick summit
#

idk why people think programmers are smart

#

we're just good at a thing

#

they are good at other things

brisk badge
#

Because it seems very hard

thick summit
#

it's just logical operations

#

programming is only "hard" because giant logical circuits, but when you break it down, it's usually quite simple

brisk badge
#

It is easy as long as you wrote it yourself :p

thick summit
#

true, and not Frankensteining stackoverflow with github and chatgpt and whatever people are using now

#

I remember Frankensteining a 20-30 line code just to randomly choose 8 items from array, and stop if array isn't big enough, then actually thought about it and optimized it to just 1 line

harsh crest
hard roost
#
img.save(f"dust_cropped/"+ filename +"_cropped.png")
``` clever usage of f-strings lol
#
from matplotlib import pyplot as plt
import matplotlib.pyplot as plt
``` goofy
harsh crest
#

lmao

#

will fix it thanks

hard roost
#
clahe = cv2.createCLAHE(clipLimit=1.0, tileGridSize=(8,8))
img = clahe.apply(img)

To

img = cv2.createCLAHE(blah, blah).apply(img)

There are somethings that could just be onelinered, unreadable long line on 29 and unused variable on 36 (?)

#

Also i dont like doing

list1 = []
list2 = []
for i in list1:
    # blah blah same piece of code
for i in list2:
    # blah blah same piece of code
``` there has to better way for this i just now can't think of any
spring tiger
#

nothing wrong with definite iteration that way

#

oh
i see your comment now

#

yes the way to simplify that is to just methodize the same piece of code

def my_list_method(item):
    # the code you need to run twice
    print(item)

for i in list1:
    my_list_method(i)

for i in list2:
    my_list_method(i)
hard roost
#

Yeah ig, would zip work though?

spring tiger
#

sure, but you're fighting with readable code and making it shorter for no other reason than making it shorter

spring tiger
#

you could simplify mine further

def my_list_iteratior(input_list: list):
    for item in input_list:
        ...

my_list_iteratior(list1)
my_list_iteratior(list2)
hard roost
#

Actually you could just do

sizes1 = [np.sqrt(2 * (2 * np.sqrt(cv2.contourArea(i) * propr ** 2 / np.pi)) ** 2) for i in filtered_contours1]``` right?
#

Little cursed since a long expression but whatever

#

Actually that expression should be turned a method since it appears a few times

brisk badge
#

I don't think the 'improvements' makes the code any better at this point 🥲

harsh crest
#

@hard roost I mean we didn’t have a goal to make the code as short as possible

brisk badge
#

One line programs go crazy

hard roost
brisk badge
#

exec()?

hard roost
# brisk badge exec()?
GitHub

Shamelessly convert any Python 2 script into a terrible single line of code - GitHub - csvoss/onelinerizer: Shamelessly convert any Python 2 script into a terrible single line of code

GitHub

Convert python3 programs into one line of python code! - GitHub - hhc97/flatliner-src: Convert python3 programs into one line of python code!

harsh crest
#

@hard roost you can create pull requests if you want and get an achievement on GitHub

#

😏

fallen pagoda
#

So what do yal program?

quiet arrow
#

Bugs HoloSad

dry ermine
#

🤣🤣

fallow canyon
quiet arrow
#

MHHMHMHMHMH

brisk badge
lean plank
#

Hmm does anyone here know anything about playing audio files in C# (using visual studio)
I've been trying to embed the file so that it's part of the exe but for some reason it gives no option to do such

atomic peak
#

Guys, I have an idea : Is it possible to create a texture pack that has a button that changes the old controls to new controls in pe and vice-versa with just a click

dry ermine
#

😭I would be very happy if it is possible

quiet arrow
# lean plank Hmm does anyone here know anything about playing audio files in C# (using visual...

Is for text files but should be the same for audio files I presume

https://stackoverflow.com/questions/433171/how-to-embed-a-text-file-in-a-net-assembly

lean plank
indigo nacelle
#

I’m getting a seg fault can someone pls help

quiet arrow
#

Woa which team I that

#

I want it

#

Theme

#

Lol

dire smelt
#

Maybe programm java inventory bro i hate it to click it with mouse all time or maybe an Inventory Saving so if u buy or loot stuff it gets in that hotbar u did it

quiet arrow
#

But confused 🙃

hard roost
#

Program java inventory

dire smelt
#

Not confused anymore hahaha but i think from this they don’t understand

left kestrel
#

we need old egg wars on java

fallow canyon
urban depot
celest cradle
#

who here knows about requests

quiet arrow
#

Always worth just asking the question, and if someone knows the answer they’ll respond

brisk badge
brisk badge
quiet arrow
#

No thanks

buoyant nest
#

people will rush in the give the correct one

summer trail
#

It won’t let me download the packs

#

I can’t play cube craft

minor roost
summer trail
#

PS4

hard raptor
#

could I be of assistance to some code if needed?

brisk badge
hard raptor
brisk badge
#

Oh, I misread 🙈

hard raptor
#

If you need help with like, creating maps, building arenas, etc. I can help

#

Or if you need some debugging, I can be of assistance/I'll try

vernal iron
#

python💀

cold totem
#

python 💀

quiet arrow
brisk badge
true mantle
manic epoch
#

I want a player to get one tnt when killing another player

brisk badge
manic epoch
brisk badge
manic epoch
#

exactly

ruby thorn
#

@lapis haven can you help me with my hackclient?

brisk badge
# manic epoch exactly

There is not an easy way to detect kills with commands, unfortunately. You can detect deaths by checking for players at the spawnpoint, and tping them away immediately from the spawnpoint (to prevend the death getting detected twice). However, it is hard to check who killed that player.
Depending on your command skills, you could setup some system that keeps track of the closest player for every player, but that is a bit complicated.

manic epoch
brisk badge
manic epoch
#

how?

brisk badge
#

give every player a unique ID score, and make another scoreboard that holds the ID of the closest player for each player.

#

Update that constantly

#

and check which player was closest to the dead player

manic epoch
#

why is it so easy in java and yet in bedrock its complicated

manic epoch
brisk badge
#

There is a build-in stat scoreboard for player kills

indigo nacelle
tawdry radish
manic epoch
tawdry radish
coarse anvil
#

is there anyway of using scripting api for java servers that run fabric?

quiet arrow
#

To make a mod? You can almost do anything with the Java client pretty sure
Or what are you trying to do?

dusky fern
#

Hello
Just for clarification purpuses and cause i forgot where i read it, but is cubecraft bedrock running on custom written core using c++? Or have I dreamed this info somehow :D

brisk badge
# dusky fern Hello Just for clarification purpuses and cause i forgot where i read it, but is...
dusky fern
#

🤩

vernal iron
#

that ran on the java side💀

spring tiger
#

it's not "cross play" as such

vernal iron
#

correct?

inland badger
#

no, it’s two separate servers

azure crow
#

Hello

minor roost
#

Helo

quiet arrow
#

Heya!

modest scroll
#

hello

hard roost
#

hello

hard raptor
#

hello

chilly briar
#

4÷2²

formal arch
haughty forge
fallow canyon
dusky fern
#

Oki 👍
Thank you for the info

fallow canyon
# dusky fern Oki 👍 Thank you for the info

Np, you can get a similar (not exact) system going with Geyser if you are interested in that approach. You will find it must easier to maintain and update going that route since there are way more Spigot plugins than anything in other Bedrock server softwares.

vernal iron
#

if the server is only going to habitate bedrock players then surely using a geyser server instead of BDS is a performance hit.

minor roost
#

can you put an image as a background in html?

fallow canyon
fallow canyon
# fallow canyon Yes

Im assuming you mean without an external stylesheet so here:

<!DOCTYPE html>
<html>
<head>
    <title>Background Image</title>
    <style>
        body {
            background-image: url("your-image-url.jpg");
            background-repeat: no-repeat;
            background-size: cover;
        }
    </style>
</head>
<body>
    <!-- your page content here -->
</body>
</html>
minor roost
#

tnx

frail nest
#

print(“no”)

fallow canyon
twin meteor
fallow canyon
#

This is the programming channel, try one of the game channels

haughty forge
#

Great

quiet marlin
#

Hi

zinc steppe
dusky fern
undone sable
#

Nice👍

quiet marlin
plush walrus
#

yea no readme I should fix that but to run you just run the main class from console that shoukd work

swift robin
#

/>
Bros, I'm talking about Mojang, they will change the shape of the fast hit to the slow one, like the Minecraft Java engine, and this gives my preference to fighting in mobile in Bedrock

haughty forge
#

Huh….

fallow canyon
hoary herald
#

fr

plush walrus
fallow canyon
#

Java will not forgive you for your harsh words

quiet marlin
#

Hi

#

it would be cool another behind the cube (but programming)

quiet arrow
#

@fallow canyon when ffa migration behind the cube

fallow canyon
#

I haven’t looked at a behind the cube in a long time, may be cool to do for BlockWars migration.. but ultimately i dont make decisions 😂

quiet marlin
#

It would be cool

wheat relic
#

@sweet barn you sai dwhere is a good place for hiring a dev?

minor roost
#

my dms 🐡

wheat relic
#

!!!

light spruce
tawdry radish
#

guys i figured it out
i can make an cc lb api

#

anyone still interested in using it?

wheat relic
wheat relic
#

@sweet barn Do you know a place for a dev? lkike how did cubecraft even find you

minor roost
#

my dms is a place

sweet barn
wheat relic
#

how did cubecraft find you

#

like Idk where to look all these guys that I find can add like a custom mod to bedrock addons

#

and I'm like that's not what I need 😭

sweet barn
#

from this little project you may have heard of called geyser 😄

wheat relic
#

you know a good place to look? I remember seeing a page on spigot but idk where it went

true mantle
#

I love it

#

only downside is that its spamming my IP in the console atm 😂

wheat relic
#

I thought everyone knew redned

fallow canyon
wheat relic
tawdry radish
#

it doesn't exist 💀

#

show me

spring tiger
tawdry radish
#

smh only if i had found lib sooner 😭

plush walrus
#

how do they get the data?

hard roost
#

No api, just scraping data

plush walrus
#

how long is it cached for?

#

is that there?

quiet arrow
#

They probably just save it in a database

plush walrus
#

yea probably

#

but like how often do they refresh

quiet arrow
#

I have an API for the Java ones dabbing

plush walrus
#

oh do you?

#

public?

quiet arrow
#

yeah

#

It's my own

plush walrus
#

how does that work

#

same principle?

quiet arrow
#

Laby Addon

plush walrus
#

oh

#

so you refresh the data yourself?

quiet arrow
#

Or someone else using it, yeah

plush walrus
#

oh yea that's smart yeah

#

is it safe?

#

like

quiet arrow
#

wdym

plush walrus
#

if I got the addon I could theoretically just send invalid results right?

quiet arrow
#

No

plush walrus
#

okay cool

quiet arrow
#

Well, I don't think so but hey lets hope

plush walrus
#

well how do you send data from the client to the server?

#

rest or?

quiet arrow
#

yeah

#

There are some safe guards, so should be relatively fine. You could just send wrong scores if you really want to take the time for it, but I'll just ban the submission if I ever notice ig

plush walrus
#

yea no I dont wanna do it was just curious how it works haha

quiet arrow
#

All on my GitHub HoloCool

plush walrus
#

ooh, I'll take a look then

quiet marlin
plush walrus
#

it is?

quiet arrow
#

In a discord bot, and I think they were going to make a website

true mantle
#

someone familiar with DNS records and linking a domain to a crossplay minecraft server (java already works)

#

nevermind got it

slender lynx
#

I mean does cubecraft expose a way for players to lookup each other's stats?

#

If so, theoretically you can use that an API but from what I've heard, you can only get leaderboards

#

so that doesn't really help to get any player

#

otherwise I was considering that option

#

cc team said they want to make an API but other priorities are in the way

#

so idk when we'll get an api

true mantle
slender lynx
#

I don't play cc but idk what's available in game

true mantle
#

there will probably be a way to get player stats by using bots but would be way harder then leaderboard

#

altough u could try it

slender lynx
#

can u even get player stats in game?

#

if so I can easily make an API off that

#

bc I need an API for my bot

true mantle
#

From what I know no one has discovered how to get player stats game stats etc. just leaderboards but you can be the first one :)

slender lynx
#

well I can't be the first one if cc players don't know it themselves

#

I don't even play mc bedrock edition

#

if u can view my stats in game then getting the data is relatively simple

#

yes using a bot is stupid for the purpose but we must do what we have to do if I have to host an API, so be it bc I need data myself 😂

true mantle
#

nope

#

everything gets stored on the database

#

theyre working on an API tho

#

thats what told me atleast

slender lynx
#

there's no API tho

#

there's a private ish API and yes I saw it but that's not public and needs some auth. I never got around to making it work

#

exactly

#

it's not hard to make an API pull stuff off the db

#

it's kinda odd seeing staff promote a forum that uses bots to do that but we're in 2023, it's just not fun lol

#

I've made some amazing stats stuff for other things

#

cc doesn't even have an API but it would be nice to create stuff for this server

#

it's a large server and I'm sure many would appreciate looking at stats on discord

#

idm using a bot to make an API but eh

#

it's obvious that if the stats works on UI's, you cannot do much

#

simplest solution would be an API, putting effort into a bot for leaderboards only is not worth it atm

north siren
slender lynx
#

💀

quiet marlin
#

Good morning beautiful people of the programming channel

hard raptor
#

u too lol

dry ermine
slender lynx
quiet marlin
quiet marlin
#

gn

thick summit
#

general motors

brisk badge
minor roost
#

Print("hello world") now give me developper quickk

hard roost
#

NameError: name 'Print' is not defined.

plush walrus
#

Print = print
Print("hello world")

indigo nacelle
vital summit
#

fun main() {
val hw = "Hello World"
print(hw)
}

thick summit
#

function Print(value) {
console.log(value)
}
Print("Hello World")

rapid grotto
#
public class MyClass {
    public static void main(String[] args) {
        System.out.println("Hello world");
    }
}
vernal iron
brisk badge
#

tellraw @s [{"text":"Hello World!"}]

#

tellraw @s {"rawtext":[{"text":"Hello World!"}]}

ornate jackal
#

<p>hello word</p>bigbrain

rapid grotto
fathom torrent
#

if(mc.player.onGround)
mc.player.jump();
else
strafe(1);

minor roost
thick summit
#

why not elif

rapid grotto
#

because why not math

fringe trench
#

Culd do that way easier

indigo nacelle
fringe trench
thick summit
#

more lines = better

#

opinion from twitter

fringe trench
brisk badge
rapid grotto
# minor roost
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class Useless {
    public static void main(String[] args) {
        try (PrintWriter pw = new PrintWriter(new File("useless.txt"))) {
            StringBuilder line = new StringBuilder();
            for (int i = 0; i < 100; i++) {
                for (int j = 0; j < 100; j++) {
                    line.append("if num1 == ");
                    line.append(i);
                    line.append(" and sign == '+' and num2 == ");
                    line.append(j);
                    line.append(":\n    print(\"");
                    line.append(i);
                    line.append("+");
                    line.append(j);
                    line.append(" = ");
                    line.append(i + j);
                    line.append("\")");
                    pw.println(line);
                    line.setLength(0);
                }
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}```
formal arch
#

Interesting

brittle shard
#

na

haughty forge
torpid granite
#

C

#

c

#

/cridit

#

/credit

quiet marlin
minor roost
#

Does anyone know how to make php on pocketmine

#

I am command block engineer but I want to improve

vernal iron
#

"command block engineer" is wild😭

minor roost
#

I can make shop UI with command blocks

vernal iron
#

you can edit an NPC??

#

what!!

minor roost
#

XD

#

I can edit chests as well

vernal iron
#

you clearly deserve the engineer title, this is revolutionary technology you are developing.

minor roost
#

XD

#

But what I need is php knowledge for pocketmine

#

😦

brisk badge
vernal iron
#

it really isn't

minor roost
vernal iron
#

yuh

brisk badge
# vernal iron it really isn't

not as high as real world coding languages, but there is a lot of theory (especially on JE!) you need to optimise your datapacks

#

there is more than /kill, /tp etc

vernal iron
#

or maybe scoreboards.

brisk badge
#

predicates, loot tables, tree functions, nbt manipulation, string concatenation

vernal iron
#

that ain't command blocks

brisk badge
#

you dont seem to be very experienced in the field

brisk badge
#

but they are definitely commands

vernal iron
#

you literally described Minecraft modding.

brisk badge
#

???

vernal iron
#

and nbt manipulation

#

or whatever fancy words you are trying to use💀

brisk badge
vernal iron
#

I do, has got nothing to do with commands

#

its literally the way Minecraft stores entity, block, etc.. data.

brisk badge
#

and you can manipulate that.... with commands!! :D

vernal iron
#

most you can do is enchants and renaming

brisk badge
#

okay no you dont seem to know enough of the topic to question its depth

vernal iron
#

I used to love nbts

#

and it's true that you can make really complex creations with nbts, not by commands tho💀

hard roost
#

How do you make those creations? If you know so much about nbt then you should know that it's not limited to enchants and renaming

#

Cope

vernal iron
#

and I know it ain't restricted to renaming and enchants but thats all you can do with cmds.

brisk badge
#

nope nope