#💻︱programming

1 messages · Page 26 of 1

silver yoke
#

cool

vestal barn
#

im looking to make a custom texture pack for bedrock edition probs not best place to ask but does anyone know the file location for blocks and entities?

floral sundial
vestal barn
#

kk thx

#

bruh tutorial says to use ms paint lol

floral sundial
#

🤷‍♂️

#

When you accidentally tell intellij to autocomplete a switch statement to include every material type... 4k lines of code casually created

gleaming zenith
#

You will still get a error

floral sundial
#

        String code = switch (key) {
            case "1A9JMB3"  -> "Blue";
            case "N8967LL"  -> "Red";
            case "443F2J5"  -> "Yellow";
            case "AG239NW"  -> "Orange";
            default -> "Error";
        };```  Also anyone doing java - if  you're using language level 14 I highly recommend the updated switch statements, much nicer and more compact to use, threw together a quick example to show you
vestal barn
#

im learning python basic level. that hurts my brain and its simple

floral sundial
#

Do you understand how it works or are you just like "this is crazy"

vestal barn
#

lemme try and understand

#

so the key = 443F2J5 at the start of the program right

#

then your identifying things like 1A9JMB3 to blue

#

and if none of it works

#

then it will print error

#

correct?

floral sundial
#

yeah so its a really basic non-working example lol. Basically if you have a value - like our key - you want to loop through a lot of other possible values - the cases - and return another string - the code - and if you dont match anything it returns "error"

vestal barn
#

k

#

gonna learn c++ tho because i prefer bedrock and can also make aaa games in future

floral sundial
#

goodluck to you 🙂

vestal barn
#

tbx

#

thx*

hard roost
#

There was a python file that macs can run

hearty bloom
plush walrus
untold grail
#

also - we have some internal projects going on that we would need to finish first before we can even consider going onto it, because of the nature of those projects

#

passport was a prerequisite because any API we'd have we'd want to be authenticated to prevent potential abuse - but it's one of many prerequisites at the moment 😅

floral sundial
untold grail
#

On a related note, if you're the kind of person to be reading this channel, we have opened some job applications again recently (for both development and infrastructure!) so if you meet the requirements and are an enthusiastic candidate then go for it - you can read more @ https://jobs.cubecraft.net/

hearty bloom
#

Coding API is fun :)

floral sundial
#

Unfortunately I was denied but thank you though :)

bold fjord
untold grail
bold fjord
#

Ah, thanks! I was intrigued by the library developer position, but can't make full-time unfortunately

spice plaza
#

mmm sadcat

floral sundial
# gaunt berry f

I see it as an opportunity to better my profile and cover letter writing skills haha. I am at a severe disadvantage having lost all my previous work, but I am already starting on work to rebuild new projects to show what I'm capable of. Next time I'll be more propared.

gaunt berry
#

honestly id love to see you in the dev team

#

you seem really friendly and nice

floral sundial
plush walrus
hearty bloom
#

Well, mainly you seem really skilled

gaunt berry
hearty bloom
spice plaza
#

why I thought that was a ceiling, I will never know

gaunt berry
hearty bloom
#

Oh lol

#

You very good. Skilled with toothbrush

plush walrus
#

lol

hearty bloom
#

^

floral sundial
#

Hey @hearty bloom still working on your minigame?

hearty bloom
#

And have few things I wanna code for the Translation Team

floral sundial
#

I see, hope things go well for that!

hearty bloom
#

Ty :)

hearty bloom
# floral sundial ``` String key = "443F2J5"; String code = switch (key) { ...

What is the latest java? Also what are the other pros compared to 8? I recall String#repeat but don't know much more... Also for 1.17 you need like 1.11 or 13, right?
I never really wanted to use higher java version because it was not needed and just disallowed user with most used java (8) to use it, but since I'm considering to upgrade because 1.8 is deprecated, I might also upgrade to latest.

floral sundial
#

I would stick a few updates back, probably to around level 14 is fine

#

I think the latest is 17 but I'm not at the computer to verify

dense zinc
#

@untold grail I’ll trade u 3 cubelets for dev rank

untold grail
spice plaza
#

but you could have a billion + 3

dense zinc
plush walrus
#

worth it

untold grail
spice plaza
#

capitalism is poggers

#

under certain terms and conditions

spice plaza
#

oh umwut

plush walrus
spice plaza
#

I don't know

dense zinc
#

¯_(ツ)_/¯

tranquil ice
#

Although people generally stick to LTS releases because of the support

floral sundial
#

This ^ I always try to stick behind a little bit, worth sacrificing the new shiny stuff for more support. But it's personal choice

spice plaza
#

I'll probably explore the newer java stuff once paper finally updates to 1.17

hearty bloom
#

I once did a game in java 13 (2-3 years ago I believe) and my father was not really happy that I used java 13 because he always uses 8 (when possible)

spice plaza
#

8 is ol' reliable tbh

wheat relic
#

Do you think there is a way to show only 1 entity without stacking them?

floral sundial
wheat relic
#

No

#

Items

#

Like

spice plaza
#

oh

wheat relic
#

5 items on the ground but it doesn’t stack them it only loads 1

#

And if a player picks only one up it will still show 1 iron in the ground but there is 3 more

spice plaza
#

like

wheat relic
#

It doesn’t stack tho

spice plaza
#

different types of items?

wheat relic
#

Like they are still individually on the ground but some are invisible

spice plaza
#

or the same but stacks of more than 64

wheat relic
#

No

#

No not stacking not entity stacking

#

It’s all 1 item

spice plaza
wheat relic
#

You know how if you drop 64 it has like 64 on the ground?

spice plaza
#

yeah

wheat relic
#

And you pick them up over time

#

Like that but it only shows 1 iron but you still have to pick up the 64 over time

floral sundial
#

You can do that, you'll need a way to tie that item to the amount that's really there

#

Pick it up, spawn another one with that value -1

wheat relic
#

nOT stAcking

floral sundial
#

You're not making sense

wheat relic
#

Like they are there but invisible

spice plaza
#

but that's what items do in vanilla o.o

wheat relic
spice plaza
#

ohhh this is for bedrock

wheat relic
#

Like in egwor they don’t stack

spice plaza
#

well I mean

wheat relic
#

And it makes frames on Xbox drop to 1fps

spice plaza
#

oh

#

so are you looking for a fix rather than a plugin?

wheat relic
#

anD nOByd Is VOTinG goR mY forums poST

wheat relic
spice plaza
#

I mean

#

java basically does stacking

floral sundial
#

🤣

spice plaza
#

but with an indicator of how many items there are-

#

And invisible entities are still gonna lag you a bit if they exist.

floral sundial
#

The game has to keep them tracked even when invisible

spice plaza
#

If it doesn't work in singleplayer, report it as a bug to mojang and they'll send you in the right direction

dense zinc
#

No they won’t

#

It’s Microsoft

wheat relic
#

^

dense zinc
#

They’re awful at bedrock support there’s so many bugs

spice plaza
#

I mean a bug is a bug

floral sundial
#

Microsoft: Buy a new Xbox

wheat relic
#

The frames on xbox have been like this for a year

spice plaza
#

worst case they just don't fix it

dense zinc
#

I don’t think they can

spice plaza
#

but if it's a singleplayer bug, there's nothing you can do :l

wheat relic
#

Microsoft can’t code a game to work on their own console fo you think they’ll fix it?

spice plaza
#

as the entities still exist

dense zinc
#

It’s technically CubeCraft’s fault for having 100’s of entities rendering

wheat relic
#

It runs better on the PS4 it’s sad

spice plaza
#

Cubecraft could implement stacking 👀

dense zinc
#

I would personally group them on generators to only render 1

floral sundial
#

An easy fix would be to (stack) them

spice plaza
#

yeah

#

so this sounds like a suggestion :)

wheat relic
dense zinc
#

What does that mean

spice plaza
#

wait like

wheat relic
#

But what I think cubecraft could do now is add stacking, but once an entity spawns it takes 5 seconds to stack

spice plaza
#

eggwars?

#

would it divide equally between players or something?

wheat relic
spice plaza
#

ah

spice plaza
#

that can be fixed if cubecraft add stacking

wheat relic
#

Nono

#

When they had stacking in java a few years ago

spice plaza
#

That was handled by the java edition though

wheat relic
#

Ye

#

But if cubecraft has a delay on stacking it could prevent that

spice plaza
#

if they added it themselves, they could do a check to see what the item entity was colliding with and distribute it equally

dense zinc
#

It could be smart

#

Yes

#

Like cg said

floral sundial
#

Picture this ok? You have one iron on the ground but its actually like 2 stacks. There's not really 2 stacks it just says it is. When you walk over it it can only pick up one stack at a time and and it drops another iron with a value of 1 stack

#

Idk there's multiple ways to do it

wheat relic
#

The reason I was asking if it could show 1 but really be 64 (without stacking) is because they said they tried stacking before but didn’t want to add it back because it wouldn’t split the gens

dense zinc
#

It could easily see where another entity is related to where the stack is and if there are 2 then split the stack evenly or something

floral sundial
#

Or even stacking to 5 and making a new stack, so you have 5x less entities

wheat relic
#

Yes

#

Or just max iron gens at 2

spice plaza
#

so I think it's worth making a suggestion on the forums that suggests the items should be stacked and that they should be properly distributed :)

wheat relic
#

Over 3 because that’s the biggest problem

#

people won’t even vote on adding an in game option to change chunk caching and entity loading distance

#

And one kid in #📺︱media trying to tell me my frames are bad because of my wifi????

#

Like wtf?

spice plaza
#

a suggestion is better than nothing

#

I mean

#

I have had situations where my wifi slowing down has also weirdly affected my frames

#

but that ain't the full picture, I agree

wheat relic
#

I’ve never had that happen to me and if it was true my phone on mobile data should be worse than my xbox or my PC

spice plaza
#

they might've fixed it tbh

#

but it was certainly a thing a year ago

wheat relic
#

I just find it ridiculous that if you want to play eggwars

#

You need to be running it on an ipad or a win10 PC

#

Or a new gen console

#

Like I installed astral even which win10 players say it boosts fps

#

I got nothing

wheat relic
#

Because resource packs don’t change loading times it’s just resource pack

spice plaza
#

yeah

tranquil ice
wheat relic
#

Make it chose how much it would cache

#

Like save it between worlds

#

Or just keep it on one world

tranquil ice
#

It's part of the client. We don't have control over the amount it caches

wheat relic
#

O

tranquil ice
#

It's always enabled apart from on nintendo switch which doesn't support it

wheat relic
#

That crashed the console right?

tranquil ice
#

Not that I know of but Redned worked on that.

wheat relic
#

Xbox has been cursed for the past year

sweet barn
#

Chunk caching if anything should improve performance

#

But as part of those changes it allowed us to speed up the chunk sending speed which was extremely slow prior to that update

wheat relic
#

Yea

vale barn
#

Yo tha smart guys

vestal barn
#

yes they are

#

i thought i was smart until i came here

vale barn
vestal barn
#

i mean i can kinda understand but not really

floral sundial
#

lol

plush walrus
#

I thought I was dumb, then I came here and it got confirmed

floral sundial
#

Think of it this way. Are you not smart for not knowing Japanese or Russian or any other language? No. Same goes from Java or C++ or anything really. It's a language and you just need to know how all the pieces fall together.

plush walrus
#

🤢

hearty bloom
#

shut up kristn

#

noone asked you smh

plush walrus
#

:>

plush walrus
hearty bloom
floral sundial
hearty bloom
plush walrus
#

Haha

hearty bloom
#

php is cool

sweet barn
floral sundial
#

ive worked with php, its interesting

hearty bloom
#

yo

#

red

#

bad

plush walrus
#

Good boi

hearty bloom
#

does java have this?

#

👀

#

no, because it has something better but shush

sweet barn
#

lmao

hearty bloom
#

I wish Overloading was in PHP :(

floral sundial
#

Hey @hearty bloom wanna be impressed?

hearty bloom
#

finally adding this lol

floral sundial
#

I taught myself how to develop in Java 👀

hearty bloom
#

but cool :)

floral sundial
hearty bloom
#

xd

#

I taught myself how to code

#

all languages I know

#

java, php, python, c#, js,

floral sundial
#

I thought to myself one day "Why would I listen to someone teach me when they dont have a clue what pace I work at" so i just started learning

hearty bloom
#

@AllArgsConstructor 👀

hearty bloom
#

I was like

#

yooo this website is cool

#

I wanna make a login system

#

so I learnt PHP

floral sundial
#

public float x,y,z = 0.0f;

hearty bloom
#

not even java has this 👀

hearty bloom
#

noone uses that xd

floral sundial
#

👀

hearty bloom
#

or do you?

floral sundial
#

i dont personally but ive seen it done

#

i dont usually have that many common variables to do that

hearty bloom
#

same

#

and it makes the code confusing imo

sweet barn
#

Kotlin has some nice things that eliminate boilerplate code

#

Lombok is essentially pointless with kotlin 😄

silver yoke
#

k

hearty bloom
sweet barn
#

Sometimes

#

It’s a nice language to work with

plush walrus
#

Never tried it tbh

spice plaza
#

I both hate and like writing boilerplate code

spice plaza
#

is there a way to get intellij to just reindex your whole project from scratch? nevermind, the handy invalidate caches button worked

#

other than recreating the project from the source

hearty bloom
#

what do you mean?

#

like you have a project from another IDE or no IDE and want to add it to intellij ?

#

oh that

#

yes

#

haha

spice plaza
#

nah, I moved a package and intellij forgot it existed

#

broken as usual spookydance

floral sundial
#

Try file > reload all from disk

hearty bloom
#

I got confused by the second message lol

floral sundial
#

see if that works

spice plaza
#

I mean, it's working now :)

hearty bloom
#

@floral sundial do you - by any chance - have experience with docker 👀

spice plaza
#

thanks for the help anyway ^^

hearty bloom
#

me neither :(

#

it's pain

plush walrus
#

Docker too hard

hearty bloom
#

I need help

gaunt berry
#

isnt docker something similar to screen

hearty bloom
#

SAVIOR more like

hearty bloom
#

well yes

#

but no

plush walrus
#

Well ye, it is kinda

#

But only kinda

hearty bloom
#

@gaunt berry

#

basically

#

docker is more like exe. or jar. imo

gaunt berry
#

just use vmsbanter

hearty bloom
#

but it's a whole computer archived inside

spice plaza
#

who needs wine when you could just put your whole steam library into docker

hearty bloom
#

lol

spice plaza
#

less frames = better clearly

gaunt berry
#

wine is for peasants, real gamers use orange juice

hearty bloom
#

wait

floral sundial
#

milk

hearty bloom
#

can you have docker

#

inside docker

#

inside docker?

gaunt berry
#

inside docker

#

inside docker

floral sundial
#

i think we see what will happen

#

XDDD

spice plaza
#

infinidocker

#

but where is it too much docker

floral sundial
#

Oh @hearty bloom wanted to ask - do you want your minigame project to be solo or would you like a partner? I could ahem totally help you out cough if you wanted.

hearty bloom
hearty bloom
#

like, I just want to learn spigot as fast as possible

floral sundial
#

zoom

hearty bloom
#

I have been reading some online tutorials, but they are so boring lol

floral sundial
#

psh who needs those

#

brute force it!

hearty bloom
#

I usually just want to get a project

#

and learn while doing it

#

+steal from stackoverflow

#

that's how I learnt discord bot (JDA) lol

#

in like 2 weeks

#

and can do anything with it atm

spice plaza
#

just chuck some vectors at it and pray for the best

hearty bloom
spice plaza
#

sounds are pog too

floral sundial
#

XD Well let me know when you're ready to do that - we will get git going (wow say that 3 times fast)

hearty bloom
#

we will get g-

#

wtf

#

😂

#

stupid

#

autocorrect

floral sundial
#

I was about to say

dense zinc
#

@hearty bloom spigot forums are so much better

floral sundial
#

dont throw flags at me!

hearty bloom
#

I started using canary lol

#

now all my recent emojis are gone

#

so I can't just do :jo and tab

hearty bloom
floral sundial
#

Im not japanese

#

Im learning though 😆

hearty bloom
#

lol

#

ooo

#

my friend decided to learn Japanese

floral sundial
#

oh

#

oh-

hearty bloom
#

XD

#

@floral sundial gitlab or github?

floral sundial
#

hub

hearty bloom
#

🙁

dense zinc
#

Lab expensive

hearty bloom
#

Lab free

dense zinc
#

Oh

#

Really

hearty bloom
#

yes xd

dense zinc
#

Thought it cost money

hearty bloom
#

that's why we use it

#

nono, bitbucket is paid

#

and github (if you need perms in project)

dense zinc
#

Wait

floral sundial
#

Why does the gitlab say free trial

dense zinc
#

I can only get a trial for 30d tho

hearty bloom
dense zinc
#

Where’s the free version then umwut

hearty bloom
dense zinc
gaunt berry
#

github > gitlab

ancient fractal
#

The trial is for gitlab ultimate not normal gitlab

dense zinc
#

ah

#

i see it now

spice plaza
#

github is pog

hearty bloom
#

github after CI/CD update is pog

#

I am just used to gitlab for private projects

spice plaza
#

I still need to properly figure out CI

#

living in caveman times over here

dense zinc
hearty bloom
#

and ben is ignoring my DMs :(

spice plaza
#

so wait, are we all of CI but cba actually setting it up- ?

vale barn
#

Yall are talkin chinese

hearty bloom
#

lol

dense zinc
spice plaza
#

F

hearty bloom
dense zinc
#

nice

spice plaza
#

--- still waiting ---

#

he's probably watching us talk right now triggered

hearty bloom
#

2 months later

#

still waiting

spice plaza
#

oOF

dense zinc
#

@Getter is the best invention

cobalt leaf
plush walrus
hearty bloom
brisk badge
#

@abstract scroll here i am

abstract scroll
#

omg egg

plush walrus
#

👀

untold grail
hearty bloom
lusty pagoda
#

@hearty bloom you're a good coder

#

Hack this game

#

Little Big City 2

hearty bloom
#

LOL

lusty pagoda
#

For a chance to win smthg

#

Cool

plush walrus
#

why would you-

spice plaza
#

why not hack garfield kart

floral sundial
#

Why-

languid flame
#

I am currently in the programming VC, and giving a speech on everything I know about it

#

Yes

#

I have said everything I know

#

Lmao

#

Thanks for coming to my Ted talk

tawny spade
#

best source to learn js?

hearty bloom
#

but are you sure you wanna learn js?

tawny spade
tawny spade
hearty bloom
#

well, java script is kinda weird with types and ...

#

but sure

#

you can try SoloLearn mobile app

tawny spade
hearty bloom
tawny spade
#

btw I'm learning php, do you suggest me to keep on it only or to learn js too?

hearty bloom
hearty bloom
#

you need to know JS for client sided changes

tawny spade
# hearty bloom php is fun

yeah but my main goal to learn them is to build something like admin panels
I see them so funny with different possibilities

tawny spade
hearty bloom
# tawny spade Can you explain more?

don't really have time for that rn, sorry :(
but shortly, you sometimes need to update the website without reloading it - the only way is javascript

hearty bloom
#

nw :)

thick sail
#

Hmm

hearty bloom
plush walrus
#

Although I am very nub when it comes to js, I heard that Next.JS is good 👀

elder void
plush walrus
#

lmao

ashen bramble
#

Hi I need help

#

how to return the sum of all the numbers in the range defined by its parameters python

#

I have this so far:

#

def Sum (UpTo, StartFrom):
while True:
FinalSum = 0
try:
for i in range(UpTo):
FinalSum += i
except:
print("error")
return FinalSum
break

hearty bloom
ashen bramble
#

from - to

hearty bloom
#

well

plush walrus
#

:o python

hearty bloom
#

it's just simple maths

ashen bramble
#

8th week of coding ;-; idk what im doing

plush walrus
#

nahh

#

ur doing good

hearty bloom
#

that's sounded mean, sorry haha

ashen bramble
#

no its fine xD

hearty bloom
#

it was more like, that it's a math question, not a coding one

ashen bramble
#

hmm

hearty bloom
#
def Sum (UpTo, StartFrom):
  return (UpTo - StartFrom + 1)*(UpTo + StartFrom)/2
#

this should do the trick

ashen bramble
#

Ohh ok let me try

plush walrus
ashen bramble
#

Aye thanks it did the trick. I see what I had to do thanks

hearty bloom
# ashen bramble Ohh ok let me try
def Sum (UpTo, StartFrom):
  if UpTo < StartFrom:
    # throw an exception here or return null
    return Null
  return (UpTo - StartFrom + 1)*(UpTo + StartFrom)/2
#

just to make sure, UpTo is not smaller than StartFrom

ashen bramble
#

Ok. Thanks for the help 😄

spring tiger
#

also its none in python, it doesnt have null 😛

plush walrus
#

just wanted to say that

#

pls more python in this channel 🥺

hearty bloom
#

also how do you do exceptions?

#

or errors?

#

idk what's in python

spring tiger
#

raise

#

i.e

raise NameError("Incorrect Name!")

classes passed to the raise keyword must derive from Exception class

hearty bloom
#

epic :) thanks

#

I just remember the basics of python

#

but it's enough for me haha

untold grail
#

so like

spring tiger
#

stop typing i know what you're gonna do

hearty bloom
#

omg

#

both bens here

untold grail
#
try:
  runGiveawayBot()
except DiscordCompletelyBreaks:
  raise BenBrokeIt("Discord down")
```?
hearty bloom
#

LOL

spring tiger
#

:(

untold grail
#

it okay ben

#

we all been there

hearty bloom
#

you forgot :

#

right?

untold grail
#

dunno what youre talking about

hearty bloom
#

LOL

plush walrus
#

LMAOO

#

dev exposed starenoot

untold grail
#

i have a green name

#

that means im never wrong

plush walrus
hearty bloom
#

cubecraft crashed

plush walrus
#

woa meanie

hearty bloom
#

fix it

#

:>

untold grail
#

cubecraft never crashes when im around

plush walrus
#

ben forgot to power the potato servers

hearty bloom
plush walrus
#

makes sense

hearty bloom
#

but when you fall asleep

#

it crashes

untold grail
#

the second i go to sleep

#

playercount 0

hearty bloom
#

yes

plush walrus
#

F

untold grail
#

shocking

plush walrus
#

well I think it is no coincidence

hearty bloom
#

BEN

#

I made GitHub actions work

plush walrus
untold grail
#

whats github

#

never heard of her

hearty bloom
#

I hope you get demoted noob

#

:>

floral sundial
gaunt berry
plush walrus
#

SAME

floral sundial
gaunt berry
#

owo

gaunt berry
plush walrus
#

😳

dense zinc
quasi oasis
minor roost
#

Anyone know a good pocketmine plug-in for making ui?

winged apex
#

Who changed my name

drowsy python
#

Please Someone Help me i need someone to make me a Minecraft Server on Java ive been Up all day and Night i can Pay if you need i beg

dense zinc
#

^

#

Many server hosts are cheap and have auto setups

plush walrus
#

Well ye, I would just find some hosting, it is the easiest and probably the cheapest for you.

hearty bloom
spice plaza
#

Plus if you really wanted to self-host, there's an alarming amount of tutorials to set up a server on youtube :)

plush walrus
#

plus you can just download the Mojang server.jar and just create a startup script that can be found online

plush walrus
#

ik, but it is an option

hearty bloom
#

download the PaperMC one

#

it's free and more efficient

native yarrow
#

Ok

signal drum
#

Purpur is cool too

spice plaza
#

/mps

untold grail
# spice plaza ~~/mps~~

I think you mean /pg, CubeCraft's revolutionary private game system created by their best infrastructure developer

spice plaza
#

you made it sound fancy

#

I'm sold

spring tiger
#

in reality every time you run that command ben has to swap some ethernet cables around so you join with friends

hearty bloom
#

lol

plush walrus
#

lmao

untold grail
#

Yeah it actually sends an alert to me via whatsapp so I have to go to the server and plug it in

plush walrus
#

makes sense

untold grail
#

That's why you have to wait like 30 seconds because that's how long it takes me to run to France

plush walrus
#

damn ye

hearty bloom
#

speed

plush walrus
#

fitness

dense zinc
#

Sorry for waking you up

minor roost
#

How you make npc's on ps4?

minor roost
plush walrus
#

@junior jasper Hello

junior jasper
#

.

grave talon
#

Computers

plush walrus
#

yes

grave talon
#

I appreciate your wisdom

torpid crypt
winged apex
#

Hm?

torpid crypt
hearty bloom
plush walrus
#

👀

abstract kraken
#

@minor roost

abstract scroll
#

👀

dense zinc
#

Hello developerbot

jolly briar
#

woop 😮

dense zinc
#

You’re my favorite bot

#

Don’t tell @mellow basalt

jolly briar
#

😉

hearty bloom
#

Sadge doesn't work from code
but works using a command :(
MVWorldManager#cloneWorld("game-lobby", "an-epic-game") doesn't work
but /mvclone game-lobby an-epic-game works

#

anyone knows what I am doing wrong?

spring tiger
#

typo? cloneWork -> cloneWorld ?

hearty bloom
#

oh lol, but that's just typo on discord

#

this is the only output I get from MV

#

this is the MV class

#

well, Multiverse doesn't know it

#

weird

#

Bukkit.getLogger().info(manager.getMVWorlds().stream().map(MultiverseWorld::getName).collect(Collectors.joining("\n")));

silk bramble
#

My brain too small to understand this

hearty bloom
#

😂

#

not even if I force load it...

#

and the clone command should work the same way

#

and when I tried importing it, MV already knows about it

hearty bloom
#

?

plush walrus
hearty bloom
#

well, this is channel for programming, please use another channel - probably #💌︱staff・help is the way to go

plush walrus
#

well not really

#

this is channel for programming help & discussion

hearty bloom
#

it's for coding

spring swift
#

@plush walrus why not use javascript?

plush walrus
#

cuz I don't know js

spring swift
#

its not that complicated...

hearty bloom
spring swift
#

yes

floral sundial
spring swift
#

well cant they just use the snowman survival thing and make it into slime survival?

dense zinc
#

Java best language

spring swift
#

very

hearty bloom
dense zinc
#

Aw you guys are cc’ing :(

steep crest
signal drum
#

don't forget Kotlin

dense zinc
dense zinc
signal drum
#

true

plush walrus
#

lol

plush walrus
#

make Minecraft 2 in php :>

sweet barn
dense zinc
hearty bloom
plush walrus
#

lol

sweet barn
#

It’s quite similar to java, just not as strictly typed as java is tho

#

But it can be used inside of Java projects which is nice :>

dense zinc
#

Yes that’s true

#

It’s just a little weird like wth why is there “fun” here

#

Like language isn’t fun thinksmirk

signal drum
#

it stands for function and yes kotlin is very fun

sweet barn
#

agree

dense zinc
signal drum
#

lmao hahaha

gaunt berry
floral sundial
#

when git just decides "Oh, you wanted those classes? NO, into the ether they go!"

silver yoke
#

I have a question cube craft members

#

HOW DO YOU MAKE THESE GAMES

plush walrus
#

Lol

#

Well you use plugins and command blocks :)

silver yoke
#

lol

dense zinc
floral sundial
#

yeah we got them fixed

hearty bloom
#

actually

#

you just need to rebase

gaunt berry
#

pff who needs rebasing

#

just append the changes to the files

hearty bloom
#

well, this looks nice :>

#

much better than an ugly tree

dense zinc
#

@arctic narwhal agrees

#

God sometimes it’s hard carrying a project

arctic narwhal
#

yeah

#

thanks for all your continous work

dense zinc
#

Are we gonna sell the final product?

#

My work is definitely premium

arctic narwhal
#

for sure.

indigo nacelle
#

I just started python, and I’m making a Rock Paper Scissors game. My issue is that after it asks if I want to play again, and if I type “y”, nothing will happen and no new text will be made. Can somebody help?

minor roost
#

Can anybody help me with my python code it's a discord bot but 1 error I am facing if anybody know pls tell me

#

ok wait

indigo nacelle
#

Tysm!

plush walrus
#

I would recommend creating an infinite loop so the game will play when the user wants to play again, just add this to the top of your code and remove the new_game stuff

While True:  # Creates the infinite loop
  # paste all your game code here

  newgame_input = input("Do you want to play again?") # Asks user if he wants to play again
  if newgame_input == "n": # If he says no
  print("game has ended") # prints that the game has ended
    break # It breaks the loop and ends the game
  else: # if he inputs something else that "y"
    pass  # continues the loop

I think this should work, lemme know if you have any issues with it

  • I do not think it is necessary to import libraries after if statement, you should just import everything you want at the very beginning
plush walrus
#

@ivory flume hello

ivory flume
#

hello :)

plush walrus
#

gud mod

minor roost
#

is it hard to make a plugin that spawns you randomly at one of 4 locations on join?

plush walrus
#

I don't think it will be that hard

#

but I never made a plugin so you gotta ask someone else :>

minor roost
#

me neither hahaha

plush walrus
#

I think you want to look for how to teleport a player first, then just make the location random from some list of locations

spice plaza
#

Depends on how you get the locations. Could just do a config for it

floral sundial
#

Important to remember if your center point is around 0,0, you will need to account for that. your minX and/or minZ will be a negative number

#

finally do some checks. if the location is unsafe - like in lava - redo the teleport

gaunt berry
#

/spreadplayers exists

floral sundial
#

thats the unfun way though D:

gaunt berry
#

ty gradle very cool

dense zinc
#

Maven better

elder void
hearty bloom
spice plaza
#

pom.xml files scare me

hearty bloom
#

^^

dense zinc
#

How

#

I learned them when I learned Java

#

It’s so easy

#

Just copy paste the dependency and if you need to shade it copy paste that too!

hearty bloom
#

@dense zinc gradle is much easier and nicer

#

but like I understand maven, just dont prefer it

hearty bloom
dense zinc
#

I do

#

Just like i was saying how simple it is

untold grail
elder void
#

I think they're an apprentice or something

hearty bloom
#

how can XML

#

be

#

considered SIMPLE?

plush walrus
gaunt berry
floral sundial
sweet barn
#

gradle better

#

runs

floral sundial
sweet barn
#

look

#

gradle allows for you to use kotlin in the build.gradle

#

maven doesn’t

floral sundial
#

If you use kotlin

sweet barn
#

Adding a dependency in gradle is 1 line, maven is like 5 or 6

#

Gradle is also much faster 😄

#

Initial setup may take a bit longer but the build times are extremely quick

floral sundial
#

I will probably give it a fair shot, just got so used to the niceness of maven lol

hearty bloom
stoic oak
#

So I have a problem... I am close to being one of the best controller players on bedrock but I got a new PC and idk how to connect my controller. I’ve plugged it in through USB, tried Bluetooth pairing but it didn’t show anything so I don’t think I have Bluetooth and DS4 doesn’t seem to work. Can anyone help me?

plush walrus
#

you use xbox controller I assume right?

stoic oak
#

PS4

#

That’s the problem

plush walrus
#

I am not sure that is possible

stoic oak
#

It is because related noobs does it

plush walrus
stoic oak
#

Ok so I should try USB and Steam u think???

#

And will it connect to Minecraft Windows 10

plush walrus
#

I would try the windows utility or bt

stoic oak
#

Bluetooth doesn’t work remember?

#

And what windows utility

#

Oh DS4 that didn’t work

plush walrus
#

ohh

#

lemme research more then :>

stoic oak
#

Thanks

#

I’ll try steam

plush walrus
#

and what do you mean with "DS4 did not work"

stoic oak
#

And USB at the same time

#

Uhh so I downloaded everything but I don’t get the correct file on my home page that is meant to show

plush walrus
#

do you know how to download from GitHub?

stoic oak
#

Yea that’s what I did

#

But the files didn’t show on my Home Screen

#

That’s why that didn’t work

plush walrus
#

it will be in your downloads folder

stoic oak
#

Yes but there should be one on ur homepage too

plush walrus
#

and download the .zip

stoic oak
#

Also when it did show up anywhere else nothing opened

plush walrus
#

might wanna share you screen so I can help?

stoic oak
#

I tried that one I believe

#

I can get on soon yea

#

But I can’t Rn

plush walrus
#

nw

stoic oak
#

But I will try USB and Steam that sounds like it would work

#

But would I have to buy minecraft windows through steam,

#

*?

plush walrus
#

you gotta use MS store

stoic oak
#

Ok good that’s how I got it

plush walrus
#

cool

stoic oak
#

So it should just connect after I put it through steam?

plush walrus
#

well the steam is gonna work only for steam games I think

#

gimme a sec, I am tryna run the DS4

stoic oak
#

Yea that’s what I would’ve thought

#

Ok cool

#

Did it work @plush walrus

plush walrus
#

have some issues installing .NET

stoic oak
#

Hmm

plush walrus
#

well what was the error for you

stoic oak
#

I’ll see if I can open minecraft windows through steam

#

So nothing responded when I pressed on any of the files

plush walrus
#

have you unziped it?

stoic oak
#

Nah idk how to lol

plush walrus
#

download winrar

stoic oak
#

Link??

plush walrus
#

just google winrar

stoic oak
#

Wait can we DM so no one disrupts the convo lol

plush walrus
#

mhm

stoic oak
#

Coz I can’t do it all RN but i will definitely soon

gaunt berry
#

.net is the greatest framework ever made

plush walrus
#

Then ask Microsoft why it does not work

#

🤔

gaunt berry
#

.net is preinstalled in windows i believe

#

unless youre using .net framework

covert beacon
#

Hello

plush walrus
#

I think it is an issue with the app that requires it anyways

covert beacon
#

are you programmeng

#

?,,,,?

gaunt berry
#

no i am pro gaming

covert beacon
#

Yo play mincraft ??

dense zinc
#

I'm not programming

#

I'm coding cOol

gaunt berry
#

no molly

#

stop

#

no cool

dense zinc
#

dont

#

dont do ti

minor roost
#

Hi pro gaming, I'm Molly
Hi not programming, I'm Molly
Hi coding, I'm Molly

dense zinc
minor roost
#

Yes

gaunt berry
#

yes pls ban

covert beacon
#

my to coding and securty

#

black hack

gaunt berry
#

baclk hackl sukurtiy

#

?

covert beacon
#

Yes

#

Im join anonymos rosia

#

its my arabic

#

yo ?,?

#

are you coding yes

#

??

gaunt berry
#

no im quartz

frigid mortar
dire spindle
#

👍

quasi oasis
#

I got bored and I'm trying to get better with annotations and reflection so I made this module & event system library. It's not Bukkit/Spigot specific but if I were to make a big plugin I'd probably use something like this. If anyone is intersted:
https://github.com/PalomboDev/palombo-commons

#

I'll post some example use cases later on if anyone wants to see a more realistic view on how you would use this.

#

I'm sure there are flaws in the way I'm doing stuff but I still think it's cool.

dense zinc
#

Wow cool

#

I came here to say that I get to write my speech for english about AI

#

It's all so cool

#

I really should look into making my own

quasi oasis
#

Good luck

dire spindle
#

fr, gl

unborn wigeon
#

I made a discord bot called Moo-sic which plays music

signal drum
#

Well that must've been very a-moo-sing to make

unborn wigeon
#

XD

hearty bloom
#

and it does not even have a README.md smh palombo

quasi oasis
#

The readme is the code

hearty bloom
#

but the code seems cool 👀

gaunt berry
#

imagine not learning reflections smh my head

quasi oasis
sweet barn
#

smh my head my head

gaunt berry
#

smh my head my head my head

sweet barn
quasi oasis
#

Like the one I use in the code I linked above?

sweet barn
#

Not necessarily

quasi oasis
#

Then I’m not entirely sure what you’re talking about

sweet barn
#

They're basically a way of running code at compile time

quasi oasis
#

Ohh like Lombok

sweet barn
#

yeah

#

Lombok is a tad hackier iirc, but yeah, very much like lombok

quasi oasis
#

I haven’t done any compile annotations yet but I have an idea of something that would be cool for generics

sweet barn
#

I think Sponge uses them for their listener system when it comes to validating their usage

#

Basically any time the @Listener annotation is spotted in a class, it detects whether the method it annotates over is valid in a sense, and if not it fails compilation

quasi oasis
#

That’s actually smart

#

Bukkit probably doesn’t do that

sweet barn
#

it doesnt 😛

#

but I do believe Spigot at one point created a way to make a plugin through annotations, and it uses annotation processors to create the plugin.yml

quasi oasis
#

I’m a fan of annotations I feel like they don’t get used enough for simple information

#

Maybe that’s just in the spigot world

sweet barn
#

To be fair, Bukkit as an API is over a decade old, and a handful of that stuff didn't exist when it was first created

quasi oasis
#

Valid point

#

Which then keeps other spigot developers from learning them

sweet barn
#

only issue is the other alternative is Sponge, but the barrier of entry to using that API compared to Bukkit is significantly higher

#

although Bukkit may be outdated in places, it is very easy as an API for people to pick up

hearty bloom
#

@sweet barn teach me processors please :>

dense zinc
sweet barn
#

correct

dense zinc
#

Spigot or some fork of spigot are the most popular nowadays

#

So sponge development wouldn’t get too many customers warz warz

sweet barn
#

yeah, sponge is nowhere near as popular in the community as it used to be

#

they're just about to have release builds out for 1.16... they're currently still stuck on 1.12 which has hurt them tremendously

dense zinc
#

I didn’t realize they didn’t have 1.16 😳 that’s unfortunate

sweet barn
#

They've got development builds but not quite release yet

dense zinc
#

I’ve seen some popular plugins support both so I always assumed it was more modern

sweet barn
#

they took the opportunity to redo their API in 1.13 but it ended up taking them far longer than they anticipated

#

not to mention the further internal refactors that occurred in 1.14+ too

#

I will give them that they've solved a decent bit of the shortcomings in their old 1.12 API, but eh, I doubt they'll be able to recover honestly

#

as much as I like Sponge, I doubt it'll ever be as big as Spigot/Paper

sweet barn
spice plaza
#

sponge's data api was something- thisisfine

#

but otherwise it was nice to work with

gaunt berry
#

tfw you make a commit but forget to push it

hearty bloom
#

0 activity...

plush walrus
#

damn

#

imagine not having any public repos

hearty bloom
#

xd

plush walrus
#

me with horrible repos

spice plaza
#

Me having at least 10 unfinished repos

mild condor
#

Hey, so there is this Pascal code block which is:
for i:=0 to 11 do begin if (i xor 3 <> 0) then write('a'); else write('x'); end;
So, i have 2 question:

  1. How many Times the code above Will be executed?
  2. What is the output?
grizzled pagoda
#

I have another question

#

Why do you use python?

mild condor
gaunt berry
dense zinc
#

New intellij updates looks so cool

minor roost
#

^^^^

unborn wigeon
#

github is so confusing

#

cant we just drag and drop or upload

spring tiger
#

You can upload files directly to a repository on the site sure, but then that's not really making much use of github, you might as well just put your files on cloud storage

#

¯\_(ツ)_/¯

unborn wigeon
#

hmm guess so

spice plaza
#

if you want to use it for version control, github desktop is a decent place to start

plush walrus
#

GitHub is kinda good once you learn how to use it

visual fulcrum
#

Imagine not using Python

plush walrus
#

ikr 😎

hearty bloom
plush walrus
#

irrelevent

floral sundial
#

i remember why i didnt like gradle

#

i honestly gave it a try - but it doesnt even generate my src folder

hearty bloom
#

lol

spice plaza
noble solar
#

which server software does cubecraft use?

plush walrus
#

software?

hearty bloom
noble solar
#

minecraft server software

hearty bloom
noble solar
#

yes

hearty bloom
# noble solar yes

I am not sure, but I highly doubt it's CraftBukkit. It's gonna be Spigot or Paper (with Bungeecord ofc). It doesn't really matter, but I would recommend using PaperMC because it's more efficient, it's that's the reason you are asking :)

noble solar
#

ok thx

hearty bloom
#

nw :)

sweet barn
noble solar
#

do you use a translation plugin for mcpe?

#

i mean the mcpe server xD

sweet barn
#

We have an in house system we use called Translator

noble solar
#

and why do you dont use nukkit?

sweet barn
spice plaza
noble solar
#

but how to use UI´s in spigot

sweet barn
#

I would recommend using Geyser with Floodgate 2.0 to achieve that

noble solar
#

ok

sweet barn
#

You’ll need some programming knowledge to utilize the forms but there is an api in Floodgate for that

noble solar
#

okay

#

i can java

hearty bloom
#

that was a bad joke

gentle patio
#

I laughed

dense zinc
#

I didn’t 😏

gentle patio
#

I didn't either

torpid crypt
#

Whoever came up with thay name deserves a raise

twin meteor
sweet barn
#

Purpur is pretty neat tbh, loads of customization options

silver yoke
#

????

gaunt berry
#

tell me more of your magik 👀

stoic oak
#

Is anyone willing to hop in a VC and help me install DS4 to my PC? (If so DM)

brisk badge
#

The mouseClicked MouseEvent ijn my java code gets activated multiple times, does anyone know how to fix that?

brisk badge
#

public void newButton() {
x = ThreadLocalRandom.current().nextInt(0, 1800);
y = ThreadLocalRandom.current().nextInt(0, 940);

    clickButton.setBounds(x, y, 120, 120);
    frame.add(clickButton);
    
    timesClicked++;
    timesClickedLabel.setText("" + timesClicked);
    if (timesClicked == 5) 
        endGame();
}
#

the method gets called by a MouseEvent

#

oh wait no, it gets called by a ActionEvent on a JButton

hearty bloom
#

@brisk badge are you sure MouseEvent is not Mouse has been moved event?

#

also what framework is that?

#

forge?

brisk badge
#

what do you mean with framework :p

#

public void mousePressed(MouseEvent e) {

#

so it is a mousePressed event

hearty bloom
#

like spigot, forge, fabrics, ...?

brisk badge
hearty bloom
#

ahh

#

@brisk badge

brisk badge
#

i have that, and the clicks are working, but are registered multiple times

hearty bloom
#

but you said you have MouseEvent not ActionEvent

#

also I believe you have to check the type

brisk badge
#

oh ye sorry, i was unclear. I showed the wrong event :p

#

public void actionPerformed(ActionEvent e) {
if (e.getSource() == startButton) {
frame.remove(startButton);
frame.remove(startText);
frame.remove(endLabelText);
frame.remove(endLabelScore);
frame.repaint();

        startGame();
        newButton();
    } 
    if (e.getSource() == clickButton) {
        newButton();
        
    }
}
#

so this gets executed more times than i want to

hearty bloom
#

I don't understand why you have this:
if (e.getSource() == clickButton) {
newButton();

    }
#

oh nvm

brisk badge
#

there are more buttons that can be clicked

hearty bloom
#

can you post the whole class please?

brisk badge
#

i am making a game where a button appears in your screen and you have to click as fast as possible on it

#

at the end you get a score in miliseconds

brisk badge
#

oh nvm i have found the problem