#1.20.40.21 - Preview

1 messages Β· Page 2 of 1

quaint knot
#

It's so beautiful 😭

#

Haven't had shaders in so long, I truly miss them

pallid lion
#

he’s offline

#

also i found out who he is

woeful warren
pallid lion
#

@tall spindle hello! :)

shadow stream
#

We said who it was a little over a week ago

pallid lion
#

wait what

shadow stream
#

you even confirmed preview lol

pallid lion
#

i’m late apparently

pallid lion
calm violet
#

How did I not notice that conversation.

tall spindle
jolly mason
#

does this look good

scarlet sable
jolly mason
#

there is some thing wrong with this wall

arctic forge
#

Does this rectangle move with the camera?

jolly mason
#

it's a painting bug in deferred

arctic forge
#

Oh ok

jolly mason
#

where the paintings are invisible

pallid lion
quaint knot
#

Will Mojang ever fix the /fill command with portals?

#

It used to work just fine but after I think was the 1.19 or 1.20 update the portals now break everytime you try to fill them in.

#

Just thought it was weird that this used to be a working feature and is now broken.

jolly mason
#

so cute

delicate nymph
#

No biome fix, no stable armors for marketplace maps

#

😭

jolly mason
#

What does plausible mean in this situation

gentle lantern
#

I would think it means it's been looked over by a mod/helper but they haven't been able to reproduce it yet

mental dune
#

really cool stuff! is it playable? or does it just "spoof" the existence of a realm?

pallid lion
#

also that one that’s in the worlds tab connects me to the hive

mental dune
#

meaning you can make it connect to your own server, hosted without the restrictions of realms

mental dune
#

that is awesome

#

but you mentioned something about modifying the hosts file, meaning it's not so user friendly is it?

pallid lion
#

it’s not lol

mental dune
#

oh well Β―_(ツ)_/Β―

#

i don't know why i was hoping for it to work by default πŸ˜…

pallid lion
#

it’s alright

prime hatch
jolly mason
prime hatch
#

damn

jolly mason
#

official fix is coming soon

pallid lion
jolly mason
#

But it will be coming in 40.XX versions

arctic forge
quaint knot
fervent zodiac
#

honestly, why PowerVR

#

I mean like, that's one was for low-end devices. can't be guaranteed if it'll run on deferred

glad saffron
#

how will you start an item event if they remove the on_use? like shoot projectile?

green quartz
#

Scripting

glad saffron
#

ye but trying it on script is not triggering the event
const item = event.itemStack;
item.triggerEvent('awp:throw_item');

green quartz
#

That doesn't look like the right syntax πŸ€”

glad saffron
#

but this is the same way I do to execute entities events, unless for items is different, anyway I opened a thread on API just in case

#

looks like item.triggerEvent is broken at least that was the answer from Remember M9 on the thread, so I guess before the preview will come out to beta the triggerEvent will be fixed, right? otherwise it will just broke a lot of custom items that uses on_use + events

faint vector
calm violet
#

Their goal is to completely remove item events from the Json. Instead, you should be using scripts.

glad saffron
#

I m also curious to see how will it look like in API, projectile events carry the owner of the projectile information, if you simple spawn the projectile using API I guess it wont carry the owner, or at least, on my tests I was not able to track the source that fired the projectile, so if you want to do something more complex I have no idea how to do it without the events from the item itself

hard bay
tribal pike
#

I was finally considering to learn to make custom items, but after reading everything in this thread so far, it's sounds like I'll have to learn an entirely new language just to do basic things. I don't even know where to go to learn to script.

cyan raven
#

is run_command in entity json going to be depracate?

tawny topaz
cyan raven
#

well shoot.

#

why is that happening and what is the alternative for people who use json only and dont wanna go to script

#

animation controller maybe?

terse geode
#

PE_PandaFire Suffer

terse geode
#

Jokes aside, BP AC is the other alternative that people have been using for a while

nova olive
#

BP AC my beloved

cyan raven
#

ok, i'll try to learn that

cyan raven
#

but I dont like this trend of killing off features and forcing other alternatives

terse geode
cyan raven
#

makes bedrock development volatile

faint vector
shadow stream
#

It is what it is

terse geode
tawny topaz
terse geode
#

-_-

faint vector
terse geode
#

-_- what?

tawny topaz
#

But your development experience will be the most volatile if you use experimental features, and much less volatile if you only use stable ones.

cyan raven
#

maybe so

faint vector
# terse geode -_- what?

if I use a custom entity with run_command it works with other custom entities with run_command from another addon

cyan raven
#

i need to see how to move my thing to animation controller from run_command event

terse geode
faint vector
cyan raven
#

thats what we are talking about yes

terse geode
cyan raven
#

for some reason its being remove, maybe I hear that its buggy on clients or something

tawny topaz
faint vector
cyan raven
#

Mojang say mojang do

faint vector
#

I have mobs with more than 5k code lines using run_command

cyan raven
#

idk my friend

faint vector
shadow stream
#

It is what it is

cyan raven
#

i know how u feel

terse geode
#

Just programatically remove them

faint vector
cyan raven
#

do it now early on before they are gone gone

alpine pebble
#

Why u have to delete run command

#

what just happened

cyan raven
#

they want everyone to use AC, its the new world order

#

lol

faint vector
#

._.

nova olive
#

tbf, ACs are pretty performant

cyan raven
#

true, but kinda complex for noobs

shadow stream
#

the next evolutionary step after AC's is scripting though

alpine pebble
#

they removed run command from entities?

faint vector
faint vector
cyan raven
#

i don't know how to trigger ac from event firing

tawny topaz
#

anyway - run_command is still behind experimental. we have no plans to bring it out of experimental, so at some point it will be deprecated. but I'll try to give ya'll a heads up before that happens.

alpine pebble
#

how much do we need to pay for that not to happen

faint vector
#

painful

cyan raven
#

i know lol

#

its like how they murdered the way items bigger than 16x16 are added to the game

terse geode
faint vector
terse geode
#

PE_PandaFire Use scripting

alpine pebble
#

ill prepare Kayla a cielito lindo every single day for a year if mojang dont get rid of run command

woeful warren
#

Experimentals will have to go at some point

#

You can't just leave it there

tawny topaz
terse geode
woeful warren
#

conditional_list πŸ‘€

shadow stream
#

What exactly is going to happen with /scriptEvent with run_command being deprecated from everything? Is it meant to just be used for troubleshooting?

cyan raven
#

its true, but if something has been in the game for so long, when is it not considered just a normal feature and not "experimental"

daring sinew
#

just wondering, is there a way that we can use entities to trigger a scriptevent command without run_command

woeful warren
#

It doesn't depend on run_command

shadow stream
#

you don't need run_command to use /scriptEvent?

alpine pebble
#

animation controllers

woeful warren
faint vector
tawny topaz
shadow stream
cyan raven
#

odd response

terse geode
tawny topaz
alpine pebble
woeful warren
#

I like run_command as much as everyone else here

jade drift
#

Toxic relationship with run_command

daring sinew
woeful warren
#

They should at least provide a better solution than animation controllers

alpine pebble
#

I am in great marriage with run_command

cyan raven
alpine pebble
#

never had an issue with it, all good experiences

terse geode
#

Not sure what the hatred of using scripting is

tawny topaz
#

but in seriousness... run_command is still a very contentious topic. and there's work we need to do to improve entity logic firing.

woeful warren
shadow stream
cyan raven
woeful warren
#

You don't have to deal with constant changes

shadow stream
#

"An entire script" though?

cyan raven
#

there is no way in hell i am dealing with that.

terse geode
alpine pebble
#

I just wish Minecraft Addon development dont turns into 10% json and 90% scripting because JSON is fun

woeful warren
#

Actually now that I mention it, there's an event to detect event triggers right?

cyan raven
shadow stream
# cyan raven there is no way in hell i am dealing with that.
import { Dimension, system, world } from "@minecraft/server";

const unpushableBlocksArray = [
    "runecraft:chaos_altar"
]

world.beforeEvents.pistonActivate.subscribe((eventData) => {
    let attachedBlocks = eventData.piston.getAttachedBlocks()
    for(let i = 0; i < attachedBlocks.length; i++) {
        if( eventData.dimension.getBlock(attachedBlocks[i]).typeId == "runecraft:chaos_altar") eventData.cancel = true;
    }
})``` here is my entire script..? took maybe 10 minutes
cyan raven
#

no thanks.

shadow stream
#

and it can account for all blocks

shadow stream
#

vs before having to go into every single block and changing components

woeful warren
cyan raven
#

"learn to code"

arctic forge
alpine pebble
#

no

woeful warren
faint vector
alpine pebble
#

real cool kids copy and paste "stick to JSON"

tawny topaz
terse geode
#

Speaking of docs, the server module page is taking a long time to load now

shadow stream
# terse geode 9 mins to find the docs

In reality, I have a random server scripting section bookmarked, I open it up, ctrl+f the keyword and boom! 70 results and then I give up and scroll for it

woeful warren
#

Guys. Something tells me they don't want to remove it and make us mad on purpose

alpine pebble
#

And why is run_command getting removed exactly?

#

Because scripting or is there any other reason

shadow stream
#

I think they want to make us mad!

cyan raven
faint vector
#

AC doesnt have that

woeful warren
#

I think it's ordering issues

cyan raven
arctic forge
shadow stream
#

You can target them with scripting

alpine pebble
#

I have trully never experienced a single issue with run_command and I have used it everywhere in my whole addon development journey from time to time

cyan raven
#

I need to have the player teleport when they punch/interact with an entity, target helped with that.

woeful warren
#

entityHit / entityInteract events: bonjour

cyan raven
#

Scripting shills again... smh.

faint vector
tawny topaz
cyan raven
#

I'm not going to learn an entire language just to run a command.

faint vector
#

mobs with more than 5k code lines xd

#

no issues

shadow stream
#

You can do so much more than just running a command though

terse geode
alpine pebble
cyan raven
#

the bar for entry for creating addons is being made higher and higher, not everyone wants, has the time, or cares to learn script api + javascript.

alpine pebble
#

I dont have much time, let me enjoy it

faint vector
terse geode
cyan raven
#

guess i'll use @p in an animation controller.

alpine pebble
#

im happy I just have 1 entity with run command

faint vector
woeful warren
alpine pebble
#

but im having serious mental issues with my blocks right now.

terse geode
cyan raven
woeful warren
cyan raven
#

Its like they don't read... they can joke and laugh because they don't depend on the features we use. Elitist scripting users, laughable even.

faint vector
woeful warren
terse geode
faint vector
#

Removing the run_command from the code is the least of the problems, replacing it is the biggest problem, developing very complex entities would now take twice as long.

woeful warren
#

If you don't know what you're doing

nova olive
#

run_command is probably one of the most used experimental features

shadow stream
#

Shouldn't it be a no-brainer to want to use whatever tools you have at your disposal to make the best add-on you can?

nova olive
#

Just the ability to communicate between the world & JSONs with ease makes it very powerful

woeful warren
#

I understand that, but what can be done? It's not becoming stable. That we know

cyan raven
# woeful warren I love run_command too, but move on

i'm going to move on eventually, but i'm sure everyone will be complaining when... they need to make a block bigger than the bounds, create an entity that can run a command, create an item bigger than 16x16... sure you can still do these things... but now its harder, for what? "they were experimental, suck it up and deal with it" no matter how long its been in the game and used for...

shadow stream
#

That's what experimental means

cyan raven
#

insanity lmao

jade drift
#

I don't really understand what the issue is with scripting? The mojang team is trying to make addons more powerful and remove the limitations of json. I mean, there's a reason java edition mods are written in java and not yaml. Of course there's a learning curve for someone not familiar with programming but so is any other modding tool for other games. I think it's definitely the right decision going forward.

terse geode
#

I will agree that kayla amd her team were very new and didnt know the long term effects of keeping something experimental for 3 years. But theyre learning and have learned from their past mistakes

tawny topaz
#

I seriously would love nothing more than to ship run_command tomorrow.

faint vector
alpine pebble
#

guys just learn javascript

Learn JavaScript from scratch by solving over a hundred different coding challenges. Go here for the interactive browser version: https://scrimba.com/learn/learnjavascript

⭐️ Code ⭐️
Two versions:
πŸ”— Interactive version: https://scrimba.com/learn/learnjavascript
πŸ”— GitHub repo: https://github.com/scrimba/learn-javascript

✏️ Created by Per Harald...

β–Ά Play video
woeful warren
cyan raven
#

"just learn javascript"

terse geode
shadow stream
#

Didn't you have to learn how to navigate your way through JSON? what's the difference

#

Animation controllers are another learning experience

cyan raven
#

JSON isn't a language lmao

alpine pebble
#

rude

shadow stream
#

It doesn't matter, you still have to learn things

woeful warren
#

It still takes knowledge to work with

tawny topaz
alpine pebble
#

its all your fault

cyan raven
#

javascript has nuance, performance, learning how to use the API and navigate the docs.

terse geode
nova olive
#

I mean, without run_command, how would communicating between entities & the world (even just scripts) be? Extremely long ACs? script events checking every tick for behaviour components? Those all are not great options, imo.
If someone has a good alternative, please, let me know

faint vector
woeful warren
#

You didn't just know about everything

cyan raven
tawny topaz
shadow stream
alpine pebble
#

animations can also be used, but..

terse geode
woeful warren
arctic forge
woeful warren
#

Ok, but I do use bridge

cyan raven
#

bridge has clear text JSON editing, outside of the odd JSON formatter thing.

shadow stream
#

oh, it was kinda a joke

#

bridge users don't need the docs

alpine pebble
#

ew

cyan raven
#

I like bridge because template plugins, and its similar to the blockception plugin in VScode

#

I move between the two frequently

tawny topaz
#

ok well, I gotta run. Glad I didn't start a controversial topic in here πŸ˜›

woeful warren
#

Thanks

nova olive
woeful warren
#

We'll continue "discussing" how to adapt to this

cyan raven
shadow stream
nova olive
#

I guess you could have entity events & use beforeEntityDataDrivenTrigger script event.. but scriptEventRecieve is a much cleaner alternative imo.

cyan raven
#

no, a new experimental feature we can use which will be deprecated in 3 years

tawny topaz
nova olive
#

Molang pt. 2

woeful warren
jade drift
#

Assembly when

cyan raven
#

indeed that was the mistake

shadow stream
woeful warren
#

Better late than never much later though

cyan raven
#

"this feature adversely effected 10% of our userbase, the feature should be removed."

tawny topaz
alpine pebble
#

I am scared about the removal of run_command, but sounds like fun

faint vector
cyan raven
woeful warren
#

Or still need to cook

cyan raven
#

They said they are working on coming up with alternatives, but its a long road.

tawny topaz
woeful warren
#

πŸ‘

#

We'll see what happens

cyan raven
#

well good luck

tawny topaz
#

So for now, hold tight. Keep using runcommand if you want.

woeful warren
#

last part of HCF: events

#

Then the toggle can finally be put down

terse geode
#

chad Upcoming Holiday Creator Features

jade drift
#

Mojang really changed the definition of upcoming

woeful warren
#

We still have upcoming creator features πŸ‘€

#

Will we finally get fog volumes?

cyan raven
#

every preview update is a holiday with mojang

#

i like the deferred renderer stuff thats cool

#

and we got mali support which is nice

woeful warren
#

long road ahead for deferred

alpine pebble
#

sean make me phyton script to update all my blocks to .30 thanks

woeful warren
#

There's a lot on my wish list

alpine pebble
#

I have not even finished updating them to .20 😭

terse geode
#

πŸ’ͺ Me using ADK to programatically make JSON files

cyan raven
#

true, but the road is paved with good intentions and hopefully good opportunities

#

I wanna see stuff similar to the core shaders in java

#

a man can dream

woeful warren
#

we got stuff that aren't even common in Java shaders

alpine pebble
cyan raven
terse geode
shadow stream
alpine pebble
#

not yet

cyan raven
#

a block property for this would be nice

#

or block tag

#

or idk

shadow stream
#

That being said. the script is broken lol

woeful warren
cyan raven
#

true!

#

I have seen some amazing shaders with fake shadows on java though

shadow stream
#

I don't know what I was doing when I made this script

cyan raven
#

they look nice, but clearly fake and screen space

shadow stream
# raven egret Thanks for the free script
import { world } from "@minecraft/server";

const unpushableBlocksArray = [
    "runecraft:chaos_altar"
]

world.beforeEvents.pistonActivate.subscribe((eventData) => {
    let attachedBlocks = eventData.piston.getAttachedBlocks()
    for(let i = 0; i < attachedBlocks.length; i++) {
        for(let x = 0; x < unpushableBlocksArray.length; x++) {
            if( eventData.dimension.getBlock(attachedBlocks[i]).typeId == unpushableBlocksArray[x]) eventData.cancel = true;
        }
    }
})``` πŸ˜”
raven egret
#

Was the previous one broken or something?

shadow stream
#

I wasn't even using the array LOL

raven egret
#

oh yahhh

#

I actually noticed that lol

#

I was confused why

shadow stream
#

I must have been half asleep

woeful warren
#

Can someone please make a custom piston

#

I know it's possible with current features

raven egret
shadow stream
#

sure

#

"free" πŸ™‚

woeful warren
#

it costs internet service

raven egret
#

Cool, make a script that checks custom blocks to see if there's air beneath them and to break the block if that happens

raven egret
#

Actually I think a tag would be better

woeful warren
raven egret
#

a custom tag

alpine pebble
#

create a GH for me and gravel with your free provided scripts

jade drift
#

Hmmm some sort of "air tag"

shadow stream
#

Idk, it's just my add-on

alpine pebble
#

you'll win two thanks with every script

shadow stream
#

only provided to contributors and people who say they will contribute but never contribute πŸ˜”

raven egret
#

I'll give you $1 per script

alpine pebble
#

lia

#

r

raven egret
#

$1 is cheap

alpine pebble
nova olive
alpine pebble
#

lol

shadow stream
#

Gravel new free script dropping incoming

raven egret
#

yay

nova olive
#

Free scripts? Yippee!

shadow stream
alpine pebble
#

can you give me a script that detects if there is power 1 or more of redstone in any faces of the custom block and if so, change states in it

jade drift
#

least obvious virus be like:

alpine pebble
#

that will get us iron trapdoor in wiki gravel

raven egret
alpine pebble
#

custom trapdoors for now only

#

because I have to update my custom doors

shadow stream
raven egret
#

No

alpine pebble
#

bip bup

raven egret
#

bip bop custom doors suck

alpine pebble
#

they don't!

#

no really, why you think tht

raven egret
#

is your hithox two blocks high?

nova olive
alpine pebble
raven egret
#

suckz

alpine pebble
#

just using two blocks

woeful warren
#

:(

shadow stream
#

this .includes thing is ridiculous!

woeful warren
#

Would you rather another for loop?

shadow stream
#

don't you dare tell me that embedding for loops inside of each other makes it look more confusing

nova olive
#

It do

#

I would use a forEach, but it runs regardless of returns, so a for loop for the top isn't actually that bad

alpine pebble
nova olive
#

on interact? There's an event for thatℒ️

#

(In preview)

raven egret
#

lol

shadow stream
#

done

raven egret
#

I think your missing the command part

shadow stream
#

done

raven egret
#

It's not running a command

#

HAHA

#

I knew it was gonna be say hi

#

Literally every Add-On creators go to test command

shadow stream
#

wdym

alpine pebble
#

like, if i put setblock ~~~

#

would that work

shadow stream
#

yeah

alpine pebble
#

lovely

#

is that stable?

shadow stream
#

no

#

the event is in the latest Preview

alpine pebble
#

yikes

raven egret
#
on interact? There's an event for that:tm:
(In preview)
shadow stream
#

brand new

alpine pebble
#

fair enough

#

now do the redstone one

#

ill instantly test it

alpine pebble
#

well kinda after my coffee done

#

i code with coffee in my desk, how fun

nova olive
#

Whats the redstone one?

#

Also we should move to #1067535382285135923

shadow stream
#

ye

nova olive
#

but Block.getRedstonePower(); ech

shadow stream
#

🀯

alpine pebble
#

I am concerned about one block crawling working with the use of a bug as a feature

cyan raven
#

I created a basic script that replaces the functionality of run_command if anyone would like to use it. I think it works pretty well for my usecase. It uses the latest beta for 1.20.30 (1.4.0-beta @minecraft-server)

#

Thank you @nova olive for helping me setup a script api environment with all the typings and stuff and sending me the docs

#

if you have a feature you would like me to add to it let me know πŸ™‚

faint vector
cyan raven
#

its basically copy paste for anyone who doesn't care to do anything else with it besides edit the config

#

all you need to touch is this part:

const entityConfig = {
    entitiesThatCanHit: [
        {
            entity: 'minecraft:player', // The entity that can hit others (leave blank to allow any entity)
            entitiesToHit: [
                { entityType: 'minecraft:pig', command: 'say I hit a pig!' },
                { entityType: 'minecraft:cow', command: 'say I hit a cow!' },
                // Add more entities and commands as needed
            ]
        },
        // You can define additional entities that can hit with their own targets and commands like below
        {
            entity: 'minecraft:herobrine', // The entity that can hit others (leave blank to allow any entity)
            entitiesToHit: [
                { entityType: 'minecraft:pig', command: 'say I hit a pig!' },
                { entityType: 'minecraft:cow', command: 'say I hit a cow!' },
                // Add more entities and commands as needed (like above)
            ]
        },
    ]
};```
#

it also means that all hit interactions between any entity can be handled in a single file

#

which is good in my opinion

#

i'll try and add a right click interaction too, but we don't have a great way of doing that right now... especially without the little mobile button that pops up

terse geode
#

Absolute win, all your events in one file

cyan raven
#

praise the sun

faint vector
#

what about events triggered by timers?

cyan raven
#

I can add that, you mean commands triggered by a timer?

#

in ticks

#

or a delay when a command is executed when an entity hits another entity

#

I can add both I think

faint vector
cyan raven
#

I see, I can add that to the file

shadow stream
#

another convert

cyan raven
#

I looked into script api more, and I thought it was like gametest where it always breaks every update, it can do that but it depends on what you use in the script.

#

most of the "breaking stuff" is renaming functions

final locust
terse geode
final locust
#

all my entities with various execution commands incompatible for future versions, the future looks very innovative bro

#

πŸ’€

#

πŸ™πŸ»

final locust
#

yeah, that's what's left when you know that there are incompetents working on the game in which you create content.

#

Very inclusive

terse geode
cyan raven
#

There was a real reason the feature was removed, I have no idea what that reason was, nor did I ever experience the bugs that said feature supposedly introduced, but we just have to trust that Mojang had a good reason to do it.

#

Doing anything else is futile, because nothing will change.

final locust
cyan raven
terse geode
final locust
cyan raven
#

Thats how I feel man, but we can't do anything about it

final locust
#

🍰

calm violet
shadow stream
#

my script is flawless 😠

terse geode
shadow stream
#

what's wrong with it

pallid lion
#

lol

#

time to rate the script ig

#

Zack, why

shadow stream
#

wdym

pallid lion
#

running .getBlock multiple times is not good

shadow stream
#

Whose gonna stop me

pallid lion
#

it will make the script slower

shadow stream
#

I concede that one

pallid lion
#

πŸ€” also I wonder why do people not use Vector.add

shadow stream
#

Vector's aren't real

pallid lion
#

fair

shadow stream
shadow stream
# pallid lion fair
//explosion item drop
world.beforeEvents.explosion.subscribe((eventData) => {
    const impactedBlocksArray = eventData.getImpactedBlocks();
    const dimension = eventData.dimension;
    for (let i = 0; i < impactedBlocksArray.length; i++) {
        for(let x = 0; x < mobHeadArray.length; x++) {
            const block = dimension.getBlock(impactedBlocksArray[i]);
            if(block.hasTag(mobHeadArray[x][2])) {
                const blockLocation = ({ x: block.location.x + 0.5, y: block.location.y + 0.4, z: block.location.z + 0.5 });
                system.run(() => {
                    dimension.spawnItem(new ItemStack(mobHeadArray[x][0], 1), blockLocation)
                })
                break;
            }
        }
    }
});``` happy?
nova olive
shadow stream
#

You're right

#

I can't 😦

nova olive
alpine pebble
pallid lion
alpine pebble
#

that's fine

pallid lion
#

oh okay

alpine pebble
#

I mainly want that to run commands from the block & change block states on interact. Also would be cool to be able to define item as condition

pallid lion
#

also we should move to #1067535382285135923

alpine pebble
#

lets do that

green quartz
#

That was a fun chat to catch up on

pallid lion
#

hii Thomas!

pallid lion
shadow stream
#

you just initialized everything in the subscribe instead of eventData?

pallid lion
#

look around, you can will be able to see what got changed

nocturne carbon
#

And then how can they make projectiles? (without scripting)