#Script API General

1 messages · Page 131 of 1

granite cape
#

Simple

granite cape
dusky flicker
# granite cape Simple

seriously, i dont get why every 'database' on minecraft are simple wrappers over objects and basic dynamic properties

hushed ravine
#

Does Bedrock support source maps?

frosty yoke
dusky flicker
granite cape
dusky flicker
#

using dynamic properties aint the problem, the thing is that its literally just a wrapper over the builtins functions

granite cape
#

wrappers are made to make things easier but only for certain things

remote oyster
#

Mine is rather complex lol.

cinder shadow
#

Anyone else have the onPlayerInteract custom component just not work if trying to interact on the top face of the block?

#

It just completely fails

#

custom Component*

#

Mk, it fails while holding an item in your hand

#

Yet another system where I am somehow the only person to stumble into a bug I guess

#

Interesting. the actual world after event for playerInteractWithBlock has the same bug

#

Even though the startup custom component stuff should technically be a "before" event

#

The before event does correctly detect interaction on the top of the block

#

oh no 💀

#

why the hell do I have this in my script

lyric kestrel
cinder shadow
#

Yes, I don't know what the reason I added that line is, it would have been from at least 1 year ago

lyric kestrel
#

Ah lol

granite cape
#

bored time

warm mason
#

I mean, why?

cinder shadow
#

Is that basically a double negative?

lyric kestrel
cinder shadow
#

It's already returning a boolean value

lyric kestrel
#

I mean like this

lyric kestrel
#

v is a vector3 type return.
And he's checking if the entity is moving at all, which using the !! turns it into a boolean return istead of an integer return

cinder shadow
#

It's pretty much pointless imo

lyric kestrel
silver agate
#

Is there one way to get the player hunger value via scripts?

const hunger = player.getComponent('minecraft:hunger')?.currentValue;```
like that ^?
silver agate
last latch
#

no idea why they added "player."

silver agate
#

Maybe to avoid people confusing it?

cinder shadow
#

Exhaustion is referenced the same way

last latch
wary edge
granite cape
last latch
#

i guess that was wayy too much c++ learning in one week

#

i need to get back to the real and better language

pale terrace
#

what cause Loaded do in entitySpawn afterEvent

#

maybe the same as entityLoad afterEvent?

wary edge
#

#879773489601585244 message

mystic harness
#

how to completely stop/revoke mayfly even if a player is flying?

cinder shadow
#

Anyone know what actually triggers the soulCampfire cause?

#

because the soul campfire doesn't 😭

subtle cove
#

presumably, fireTick...

cinder shadow
#

well that would just be whenever the player is on fire

unique apex
#

this is a hopeless shot in the dark, but in january of 2022 I was in a server that allowed players to transform into various mobs, using their animations when appropriate, and seemingly all their components as well, AND the camera was based on the height of your mob, which I thought it was impossible to change the height of your camera. and as far as I know, the owner of this server did each mob with just a handful of command blocks does anyone have any knowledge or insight on this, or does someone know if this is tech that was only possible in an older version?

round bone
glacial widget
#

Any tools that can help find memory leaks?

unreal saddle
#

Does anyone know if it's possible to detect the dyed color of my custom entity?

last latch
pallid stag
#

How do I create a damage hitbox in the shape of a wall, like 9 high, 9 long, and 1 wide?

lyric kestrel
hybrid island
#

guys i made a custom command its a /tpa command bassicly /tpa Playername its done using the custom commands registry but when a de-opped player uses it it gives this error
<insufficient permissions for selector expansion> how do i fix it

worthy comet
open urchin
hybrid island
#

Oh

green bison
#

How do people sniff packets on realms? Do they use a bot to listen?

lyric kestrel
sterile epoch
#

does anyone know when they're gonna fix the insufficient permission for selector expansion bs?

true isle
#

Idk where to ask this but do blocks placed with a scatter feature tick?

weary merlin
#

I was wondering if there was a way to detect if beta api is enabled with scripts

distant tulip
weary merlin
#

ok thank you

true isle
#

is their anyway to place trees that simulated a feature using a script the same way you would a normal tree feature? idk how else to ask the question. most people just use either a feature or structure, but im trying with a script

hybrid island
#

guys how to kick a player with no name

cinder shadow
#

Can anyone tell why this is somehow adding the previous items lore to this new item?

return inventory.addItem(new ItemStack('minecraft:glass_bottle', 1));
warm mason
cinder shadow
#

is that locked to the container slot?

warm mason
#

Idk, it's just a guess

cinder shadow
#

oh wait, wrong crafting system

#

nope, it's item.setLore

#

Alright, figured out the bug

#

If the consumable item that is being removed has a new item placed in the exact same slot, that new item will inherit the consumed items lore

#

now how to fix this without making it look weird

#

Seems easiest fix is to just do a runTimeout and add it on the next tick

remote oyster
# hybrid island # guys how to kick a player with no name

If it's a realm, there isn't much you can do. If it's a server, you will need to utilize the server-net API and server-admin API to rate limit the packets your server receives. You basically need to monitor the packets coming in, and decide what to do about it.

worldly pier
#

hello, i have a question rq, whats that of "discovered package with uuid...," when i load an addon with scripts , i want to get rid of that, is it possible

knotty plaza
worldly pier
#

thanks

runic quartz
#

How can I cancel the item drop action? Similar to how it is done on The Hive (the animation plays only when ctrl+q is pressed, not the usual q). I tried lock_in_slot and lock_in_inventory, everything would be fine, I can close the item information with showTags=false, but I can't cancel popUp in any way.

warm mason
runic quartz
warm mason
runic quartz
# warm mason then u need to set itemLockMode of all items in player's inventory to "Inventory...

I'm not quite satisfied with this, as there's a popup when I try to drop an item. If it’s possible to remove it, that would be great, but no matter how hard I tried, I haven't been able to completely get rid of this notorious notification.

I'm looking for something lightweight, just like on The Hive or CubeCraft, where you can attempt to drop an item, but it immediately returns to your inventory, effectively canceling the action.

I experimented with world.afterEvents.playerInventoryItemChange, but the item’s return was visible to other players; it wasn't instantaneous.

worldly pier
#

you could try something with world.afterEvents.entityspawn

pale terrace
#

Hey! if I set a dynamicProperty to an entity and then the entity is removed, the dynamicProperty automatically removes or I have to remove it manually?

wary edge
#

Correct.

pale terrace
pale terrace
warm mason
pale terrace
warm mason
pale terrace
#

I knew that dynamicProperties are stored in some kind of cache in the world, that's why I was asking

cold grove
#

They are stored in the world data, "cache" means temporary data

warm mason
#

probably...

cold grove
#

Idk, i always cache in my side dps just in case

#

Now i'm curious

warm mason
cold grove
pale terrace
worldly pier
#

i would say that its better to use the world.setDynamicProperty() instead. But i think that has also problems

haughty kernel
#

What do you think is the best method for me to retrieve information about one item in a specific inventory slot for a player?

worldly pier
#

wouldn't it be? "'InventoryContainer.getItem(slotIndex)"'

cold grove
#

There is just one way

thorn flicker
marble sigil
#

How can I check when a mob spawned? Or its "age" (time since spawn)

thorn flicker
marble sigil
#

ik that, but I'm looking for some kind of direct way, like just entity.age, as that requires tracking stuff.
Ig it's the only way

subtle cove
wary edge
subtle cove
#

Was expecting it to include items from equippable, but only triggered on items from 'inventory' component

wary edge
#

Ive been using it to cancel certain loot drops.

distant tulip
#

Does it trigger from other drops

#

Dispenser and droper

remote oyster
# distant tulip Dispenser and droper

I've had to listen to breaks, then check for items in that location, and remove them. Not positive if there is a more effective way of doing it other than filling the block with a container as air, but that's a question of whether or not someone desires to do it that way.

wary edge
remote oyster
#

I remember there being something in the API a while back that allowed a block to be broken and not drop items but I'm not sure if I'm tripping on this memory and I'm wrong or if it was later removed lol.

#

My memory is rough 😔

magic summit
#

its impressive that you don't forget to talk to minors on here

distant tulip
magic summit
#

got your priorities straight I see

distant tulip
#

Here we go again with this shit

wary edge
#

@magic summit buddy, please stop.

magic summit
#

hes a big time creep

wary edge
magic summit
wary edge
magic summit
#

do not even try to compare me to you 😭😭

sly valve
sly valve
remote oyster
sly valve
remote oyster
#

One of which I'm not concerned about.

sly valve
remote oyster
#

He isn't. You missed the drama the other day. He wasn't taken well by the community here lol

sly valve
#

Interesting, maybe just some kind of rage bait tho

#

Oh did he got banned?

remote oyster
#

The only reason he approached me was because he got word that I was active on my project again and so I suppose he felt the need to come at me. Otherwise, there was no other reason. It was purely for malicious gain.

remote oyster
sly valve
remote oyster
#

I suppose so. It was handled appropriately.

last latch
sly valve
#

Yeah

last latch
#

like a couple of days if im not mistaken

sly valve
#

By the way, its funny to see how many people in social media cry about that github's UX is hard to use

last latch
#

Well, I myself find it sometimes hard to navigate through it lol

sly valve
#

Well of course it depends on what you do

#

But they conplain about the download of stuff

last latch
sly valve
#

Someone wanted an .exe for linux 💀

last latch
#

hell yeah 😭✌️

remote oyster
#

😂

sly valve
remote oyster
#

Yea, but don't forget about releases too 😜

distant tulip
#

tbh, the release tab is hard to spot or navigate, and including the source there might make it worse for some

zinc breach
#

can you change an itemstacks texture through script api

wary edge
#

No.

remote oyster
# distant tulip tbh, the release tab is hard to spot or navigate, and including the source there...

Yup, so I typically do a release and link the release to keep it simple. Add instructions to the release so they can identify which link in the release is relevant and which isn't. Not necessary but if you know you have people with less experience on the website coming through then it can help navigate them. Otherwise, you just standby for them making reports about a bad download and fix it then haha.

runic quartz
subtle cove
#

Do note that
entitySpawn triggers before entityItemDrop

tidal wasp
#

Can you set the permutation to place of a block (that is an item in your hand or on the ground) by editing the itemStack or dynamic properties

tidal wasp
#

No not that like you are using SetDynamicProperty or something or some editing ItemStack Property to change the permutation placed or would you still have to playerPlaceBeforeEvent

wary edge
stray spoke
#

It looks like class

#

Btw does someone know a docs about how to use reg exp

remote oyster
# stray spoke Btw does someone know a docs about how to use reg exp
fickle dagger
#

how do I get a block state's available or minmax value?

#

I'm trying to make a list for a block's options using ModalFormData

subtle cove
#

the stateId should be from the keys of block.permutation.getAllStates()

fickle dagger
#

I see, haven't noticef there was a valid value detection
will test this later, thank you M9 🙏

wary edge
zinc breach
#

how come this gives me undefined?

warm mason
# zinc breach how come this gives me undefined?

when u do !something it convert something to boolean type and changes the value to the opposite, so when u do !attacker.typeId in turns into false. U need to do !(attacker.typeId === "minecraft:player") or just attacker.typeId !== "minecraft:player"

zinc breach
#

I'm talking about the dynamic property

#

its giving me undefined in the console warning even though I set it here to true

warm mason
zinc breach
#

yeah I did dw

#

what about the dynamic property thing though

#

do they not work for items the same way

#

I think its very weird I can do getTags and hasTag for an itemstack but not add one too

warm mason
zinc breach
warm mason
#

hmmm

zinc breach
#

works properly with everything else

#

I'll try checking the dp after the command runs aswell

#

yeah it gives me undefined also

warm mason
zinc breach
#

I fixed it but it kinda makes no sense

#

I had to set the dynamic property after spawning it

#

shouldn't the item stack I set the dynamic property to still have that after I spawn it

remote oyster
latent gust
last latch
#

bro wha

#

😭

distant tulip
#

and his first message as well

#

i have a good idea where this is heading

last latch
#

yeah his join time is also same

#

december same as the first guys

stray spoke
#

Do we can use @minecraft/math ingame

#

I mean is there a module /math in Minecraft

#

Do we put it on manifest or different

remote oyster
# distant tulip i have a good idea where this is heading

It comes with the territory when dealing with potential hackers, whether they’re legit or fake. I’ve been dealing with them for years now, lol. Though it’s been a while, so I’m not sure why there’s a sudden rise. I’m assuming that account is here with malicious intentions. Guaranteed, I’m just going to ignore it.

cold grove
#

LOL

lyric kestrel
zinc breach
#

is there a way to make tnt explosions less laggy

#

would replacing them with dimension.createExplosion do that or

#

I'm trying to optimize this as much as possible

knotty plaza
zinc breach
knotty plaza
#

But also less laggy

zinc breach
#

so normal stuff like cobblestone, diorite, andesite, dirt, etc.

#

that sort of thing

knotty plaza
#

That would only reduce the lag after the explosion, but I think what takes most of the resources during large explosions is actually destroying the blocks

zinc breach
knotty plaza
#

Just edit the json file

zinc breach
#

you can do that??

knotty plaza
#

Yes

#

Just get the vanilla file and put it in your addon

worldly pier
#

quick question, is there a way to set the enchanted texture to any item using scripts?

zinc breach
wary edge
#

If dynamically? No. Funny enough we had this convo in #1019692489596215388

worldly pier
#

it is a solution, but is there another way that doesn't involve to create a new texture for every item i want to look like that?

wary edge
worldly pier
#

you mean, in the json? because for what im doing, a custom item util, i neet to add that component to any item

#

but with scripts

wary edge
worldly pier
#

crap

worldly pier
marble spruce
#

hey guys,Which component can I use to make an item run a command constantly while the player uses a item?

granite cape
#

struct

sly valve
marble spruce
distant gulch
#

Is it possible to setup a proxy for a realm?

violet bloom
#

In case some people don't know how to make a NPC name always show here's the code for it and yes I coded it myself and I am guving it away for free to help new people or anyone

{
  "format_version": "1.19.30",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:npc",
      "is_spawnable": true,
      "is_summonable": true
    },
    "components": {
      "minecraft:damage_sensor": { "triggers": { "cause": "all", "deals_damage": false } },
      "minecraft:type_family": { "family": ["npc", "mob"] },
      "minecraft:fire_immune": true,
      "minecraft:persistent": {},
      "minecraft:npc": {},
      "minecraft:nameable": {
        "always_show": true,
        "allow_name_tag_renaming": true
      },
      "minecraft:physics": { "has_gravity": false, "has_collision": false },
      "minecraft:collision_box": { "width": 0, "height": 0 }
    }
  }
}
#

Let me know if there errors in my dms

#

In dm

distant gulch
#

@violet bloom

violet bloom
#

What

distant gulch
#

This is not the place

distant gulch
last latch
#

A MITM (machine in the middle) one?

#

Or an advanced one with packet deserialization, and manipulation?

last latch
sullen ocean
#

First we should step back a bit... why do you actually want to do this?
What is your end goal you are trying to accomplish?

#

Some people who set up a MITM server do so for giving them access to Creative fly or other things to do malicious actions on the server.

distant gulch
#

Basically blocking vpns and such.

sullen ocean
#

Wait... do you want to create a proxy to block it, or to do it?

distant gulch
#

Haha nice one, we are trying to block it.

sullen ocean
#

Making a proxy to block it will still require more raw code manipulation of the BDS itself (because debugging symbols are not offered by Mojang anymore to most people)

sullen ocean
distant gulch
#

But is this against Minecraft tos?

#

I have no idea

sullen ocean
#

Against Minecraft's TOS?
If it is made for bypassing authentication / etc., yes.
If it is made for stealing logins to whoever connects to it, yes.

However, if it isn't made for that, but someone makes it do so, then it is the actor who made it do so and not the project.

distant gulch
#

Kay? So it is possible to block crashing attacks? Our server is currently getting nuked. (From the past 2 days)

cyan basin
#

Why are people so lonely that they feel so inclined to crash servers? 💀

sullen ocean
# cyan basin Why are people so lonely that they feel so inclined to crash servers? 💀

Some people get a laugh out of making others suffer... I don't get why, but apparently YouTube videos of people intentionally crashing servers / etc. does not help out either.

(One person whose channel I know of does try to cause problems to servers, but only because they violate the EULA guidelines... and that they have some form of gambling mechanic)

distant gulch
sullen ocean
#

Speaking of that, I'm a moderator in a server for an Android app... one that is commonly mistaken as a skript kiddie hacking tool thanks to the numerous YouTube videos.

#

If you see "Termux" with the use of hacking Instagram, Facebook, etc. ... don't comment on it. Report the video as malicious and don't continue watching it. Most of the time they want you to download and run their malware on your own device.

distant gulch
#

So

sullen ocean
#

Some kids want to be the "cool kid" in their class...

distant gulch
#

Do we have any idea on

#

If I’m able to make a proxy

sullen ocean
#

Networking programming is not something I'm good at.
Also note that most hackers are just using exploits to plop down command blocks, command block minecarts, or even signs (unless the exploit for signs was already patched out)

distant gulch
#

All nbt stuff like that is gone

#

The worst ppl can do is crash servers or use reach hacks

#

They fixed all movements aswell

sullen ocean
distant gulch
#

But I mean like multiplayer servers, realms

sullen ocean
#

I don't know if it requires operator, creative, or none of the above, for it to work.

#

The partnered servers run on custom software, which isn't the plain old BDS that ordinary people get.

distant gulch
#

K

remote oyster
distant gulch
weary umbra
#

Its empty

weary umbra
sullen ocean
weary umbra
#

Nvm fixed it I just put --force at the end

azure sentinel
#

For npm, it will still remember what is installed into a project (or globally) if you don't edit the metadata file(s) to say otherwise.

granite badger
#

How many of you use AI to make Minecraft scripts for anything like basic proof of concept examples just to see if it works or not?

round bone
warm mason
distant tulip
#

same as Serty

  • some in line auto completion
buoyant canopy
#

can we get the mobs that are leaded by another entity?

snow jungle
#

Is it possible yet to modify/read trim data from armors

fiery solar
worldly pier
#

do you guys recommend using claude instead of chatgpt?

slow walrus
#

I recommend using your brain

tidal wasp
#

Wtf is this

#

Am I like the first person to run into this problem

tidal wasp
#

So i tried it in stable and it works fine

tidal wasp
sly valve
last latch
marble sigil
buoyant canopy
# wary edge Yes.

to be more specific, i want to get the trader llamas that are attached to the wandering trader, this component gives me the wandering trader that is leading the trader llamas,not what i want

#

i want to spawn a wandering trader without its llamas

const trader = dimension.spawnEntity("wandering_trader", location)
const llamas = getLeashedMobs(trader)
llamas.forEach(llama => llama.remove())
wary edge
#

Additionally, just listen to trader_llama being spawned and remove it. No need to check if leashed to.

marble spruce
#

how can i make a particle trail the near player location?

wary edge
marble spruce
#

thanks bro!

warm jungle
#

Question how to use the .prototype for classes?

zinc breach
#

would this work with wolf armor?

open urchin
#

no, the equippable component is disabled for non-player entities

zinc breach
open urchin
#

you'll have to use the replaceitem command

zinc breach
#

replaceitem entity @s slot.armor.body 0 wolf_armor worked, ty

zinc breach
#

does the tameable component work for all entities or does it only apply to entities that can be tamed

#

for example could I tame a vindicator to a player

#

would that make it not hostile to that player

remote oyster
#

For other entities without that component, you would need to modify the behavior pack to include that component, and adjust their behavior under the condition they are tamed.

midnight crane
#
world.afterEvents.playerInteractWithEntity.subscribe((data) => {

    const player = data.player
    const mob = data.target
    const item = data.itemStack
    const beforeItem = data.beforeItemStack

    if (mob.typeId == "minecraft:zombie") {
        player.runCommand('give @s diamond')
        return;
    }
})

Why does this not work?

stray spoke
#

You can also add aliases for it like

const {itemStack: item} = data;

item.typeId
#

You can also do this directly at the callback parameter

#
...subscribe(({itemStack: item, player})=>{
  }
)
remote oyster
#

Yea, but it doesn't solve their problem. Which to be fair, I don't explicitly see anything wrong with their code at face value, so I'm not sure why it's "not working".

stray spoke
#

Maybe its actually not running

#

lol

remote oyster
#

My guess too

#

Lol

lyric kestrel
#

Whenever I've used AI outside of VSC, it's been horrible at coding, even if provided with the complete "minecraft/server" package

#

So it has its downsides, but it has its upsides

subtle cove
#

Thats why its for public use, which is why the accurate ones has costs

lyric kestrel
#

Yeah

#

Like I'm making a few sets for making multiple files for my add-on, and autocomplete starting when I start to type in a block is great

#

Like that is actually really helpful

#

It may not get it right all the time, but it is going off of what I've already written

midnight crane
dapper copper
#

does anyone know how you would use rotation property in the teleport options interface with teleport method

#

im trying to do

player.teleport(location, { rotation: { x: 90, y: 0 } })
remote oyster
#

Need more context.

dapper copper
#

i just thought because of getViewDirection it would be from 0 - 1

onyx locust
#

are custom slash commands can be ran through runCommand?

zinc breach
#

like would I have to remake the entire entity or would it just be the json in the BP

#

also where would I get the vanilla json

remote oyster
#

Just the JSON in the BP.

#

Look at one which has the component as an example.

#

Can learn from that. As well as the others and how they behave under that component.

zinc breach
remote oyster
# zinc breach would this work https://github.com/Mojang/bedrock-samples/tree/preview/behavior_...

You just need the JSON file pertaining to the entity in question and add it to your behavior pack under the same path as seen in that link to mimic it's location so the game can read it, and apply it correctly.

The only catch is that if you modify a JSON file like this, your pack must remain at the top of the behavior pack load order. Packs higher in the list override packs below them, so keeping your pack at the top ensures it isn’t overridden by another pack that might also modify the same entity.

zinc breach
#

oh so it works the same way as player.json

#

I understand now

remote oyster
lyric kestrel
#

Damn, I only just found out about the "minecraft:replaceable" component 🥹

#

I can use that with scripting to make a good custom slab

warm mason
lyric kestrel
#

I don't, but I want to try test it out. It seems like it'd be good for making it more vanilla like

#

I already have a pretty good slab imo with just beforeOnPlayerPlace, but I want to make it better

#

Nvm

#

Oh, nvm again, it makes it better

#

Which makes it more vanilla-like

lyric kestrel
#

Hmm, apparently there's no way to disable the replaceable component at all once it's applied

#

Not even omitting it from a permutation disables it

#

And can't send it to false

warm mason
lyric kestrel
#

Ah

warm mason
#

even vanilla slabs don't work like that

distant tulip
#

weird way of using replaceable

lyric kestrel
distant tulip
#

actually, you may need the interaction event

lyric kestrel
#

Hmm

#

I'll try both out

#

But I think interaction is the right one

distant tulip
#

yeah, gtg to the mosque but ii will try it out when i am back
if you didn't

lyric kestrel
#

Ah, got it

#

Finally

lyric kestrel
#

Might have a Slab dev resource in a bit

#

The only problem I have now is that when I hold it for even a little longer then necessary to run the event, it places another block immediately

lyric kestrel
#

I am

cold grove
#

Then it should not place a block, i mean, thats how interactWithBlock before event works

lyric kestrel
#

Yes, but it's placing a block but not through interactWithBlock

#

It's placing it just by pressing the place button

lyric kestrel
#

Yep

#

if (!isFirstEvent) return;

distant tulip
#

Yeah, that should fix it

lyric kestrel
#

Yeah, it's there already

#
world.beforeEvents.playerInteractWithBlock.subscribe((event) => {
    const { block, isFirstEvent, blockFace, itemStack, player} = event

    
    let blockToPlace = undefined
    
    if (!isFirstEvent) return;
    if (!block.permutation.getState("dma:is_double"));

    if (blockFace == "North" && block.north(1).typeId == itemStack?.typeId)
    {
        blockToPlace = block.north(1)
    };

    if (blockFace == "South" && block.south(1).typeId == itemStack.typeId)
    {
        blockToPlace = block.south(1)
    };

    if (blockFace == "East" && block.east(1).typeId == itemStack.typeId)
    {
        blockToPlace = block.east(1);
    };

    if (blockFace == "West" && block.west(1).typeId == itemStack.typeId)
    {
        blockToPlace = block.west(1);
    };

    if (blockToPlace == null) return;
    event.cancel = true
    system.run(() => {
        blockToPlace.setPermutation(blockToPlace.permutation.withState("dma:is_double", true));
        consumeItem(player, itemStack);
    });
});```
#

Here's the event

#

Dw about the if statements, I just did it like that for now, but that will change to a loop soon

cold grove
#

event.cancel = true?

lyric kestrel
#

And there wasn't

lyric kestrel
#

I think it's because it's targeting a new block basically

distant tulip
#

yeah, maybe

lyric kestrel
#

I mean, it's annoying but it's not too bad ig

distant tulip
#
world.beforeEvents.playerInteractWithBlock.subscribe((event) => {
    const { block, isFirstEvent, blockFace, itemStack, player } = event;

    if (!isFirstEvent) return;
    if (!block.permutation.getState("dma:is_double")) return;

    const dir = blockFace.toLowerCase();
    const targetBlock = block[dir].(1);

    if (!targetBlock) return;
    if (targetBlock.typeId !== itemStack?.typeId) return;

    system.run(() => {
        targetBlock.setPermutation(
            targetBlock.permutation.withState("dma:is_double", true)
        );
        consumeItem(player, itemStack);
    });
});

this should work

lyric kestrel
#

Oh

#

Thank you!

lyric kestrel
#

It doesn't do that when it's being placed from underneath or above

#

Kinda a bummer, but nothing I can do about it

distant tulip
lyric kestrel
#

Oh

solar dagger
worldly pier
#

i didn't know you could use decimals in the interval

warm condor
#

removing them doesnt help, so apparently you can

#

maybe

remote oyster
#
import { world, system } from "@minecraft/server";

// Handler function for headcrabs
function handleHeadcrab(entity) {
    if (entity.typeId !== "valve:headcrab") return;

    const dim = entity.dimension;
    const headcrabs = dim.getEntities({ type: "valve:headcrab" });

    for (const headcrab of headcrabs) {
        if (headcrab.getProperty('valve:target_detection') === true) {
            const target = headcrab; // capture reference
            system.runTimeout(() => {
                if (!target.isValid()) return;
                target.setProperty('valve:target_detection', false);
            }, 20); // 20 ticks = 1 second
        }
    }
}

// Subscribe once to each event explicitly
world.afterEvents.entityLoad.subscribe(({ entity }) => handleHeadcrab(entity));
world.afterEvents.entitySpawn.subscribe(({ entity }) => handleHeadcrab(entity));

See if this resolved it.

warm condor
#

mb shouldve clarified

stark kestrel
#

hi everyone, i just cmae back to script api, file locations have changed i noticed, now when im updating my manifest, it isnt updating in my world, but in files, when i check, its updated

#

i even tried changing versions from like 1.0.0 to 1.1.0

#

inb manifest

summer cloud
#

is it possible to detect when someone stomps on a crop?

buoyant canopy
subtle cove
ocean escarp
#

Is there a way to disable the nether with scripts?

worldly pier
cold grove
#

You can break close portals and tp people back to overworld but not disable it

worldly pier
worldly pier
#

xd

cold grove
#

Im not great

#

You are

worldly pier
#

its just a meme

worldly pier
summer cloud
worldly pier
#

if its in a server, just use a plugin

worldly pier
cold grove
cold grove
#

Autojump.. hmm i dont think checking every thing is that heavy

worldly pier
#

and if you are using cache, everything will be fine

ocean escarp
#

@cold grove
@worldly pier

ocean escarp
deep quiver
#

yeah

ocean escarp
#

that seems like a big time waste, I'm just trying to lock the nether behind certain world / player events

ocean escarp
deep quiver
ocean escarp
#

RiP

worldly pier
#

what if you prevent them from lighting the portal

#

dispensers will not be detected tho

warm condor
#

you could make the portal light, but whenever a player is within less than 3 blocks of a portal block it temporarily replaces the portal block with air and puts the portal block back whenever the player walks away

#

you could also make ender pearls despawn whenever they get close to a nether portal since they can teleport you between dimensions if im not mistaken

worldly pier
#

to detect if someone is in range of a block

warm condor
#

i dunno

#

im not super experienced with scripting, that's just an idea that popped up in my head

ocean escarp
#

I think the idea of it breaking if somebody is nearby is enough symbolism

warm condor
#

that works too

worldly pier
#

but technically, how could that be implemented?

ocean escarp
#

Would definitely need to pearl check too

ocean escarp
worldly pier
#

wouldn't that be laggy? check 9 blocks every tick? for every player?

ocean escarp
#

You got a better idea??

worldly pier
#

udunno but it seems inefficient

warm condor
#

maybe just lower the rate to 5 ticks

#

it might still lag a smidge depending on the player count tho

ocean escarp
#

Tbh I don't even know why I'm trying to make this conceptually when the addon I have planned won't even make it to beta

#

Not being good at graphic design sucks lol

worldly pier
ocean escarp
#

and AI

distant tulip
#

there is a lot of good java mods with shitty models and art

ocean escarp
#

yeah but this is a lot different, since I want to have this feel unique and fresh from vanilla

remote oyster
cold grove
#

In survival you need to wait before the portal teleports you

#

Or just teleport players again to overworld

distant tulip
#

if this doesn't return just blocks bellow

worldly pier
# cold grove Check just one block

yep but like said before, it doesn't work when you get at the border of the portal. it can still teleport you. Because you are touching the block, but you aren't quite in the coordinates of the portal block so nothing is triggered

#

i think the best solution is to check a 3x1 area without the corners for any portal block

worldly pier
ocean escarp
#

Wym?

worldly pier
#

i did a solution for your problem

#

im sending it wait

fiery solar
# ocean escarp scan a 3x3 area around the player for portal blocks and if found run a fill comm...

You wouldn't want to scan each block individually and you shouldn't use commands for anything unless the API doesn't support it.

You would use dimension.getBlocks with a block filter to detect just the nether portal blocks around the player, then either teleport the player away from the portal or set the block to Air and wait until the player moves away to set it back

https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/dimension?view=minecraft-bedrock-stable#getblocks

Contents of the @minecraft/server.Dimension class.

worldly pier
#
import { system, world } from "@minecraft/server";

//this method only works for survival. In creative, teleportation happends before this event is triggered
//TODO: do this in efficenly
system.runInterval(() => {
    for (const player of world.getAllPlayers()) {
        //iterates for every player
        const aboveBlocks = player.getAllBlocksStandingOn().map((v) => v.above()); // gets all the blocks the player is on
        for (const block of aboveBlocks) {
            if (block?.typeId != "minecraft:portal") continue; //filters only portal blocks
            block.setType("air"); // removes it
            player.sendMessage("nether is disabled");
        }
    }
}, 1);
//this tps every player who enters the nether in creative
world.afterEvents.playerDimensionChange.subscribe((d) => {
    if (d.toDimension.id != "minecraft:nether") return;
    d.player.teleport(d.fromLocation, { dimension: world.getDimension("overworld") });
    d.player.sendMessage("nether is disabled");
});
#

i didnt know they make a function to get all the blocks a player is standing on, so it made things a lot easier for me

worldly pier
#

hope it helps

ocean escarp
#

its for a progression addon that I wanted to develop 1 day

worldly pier
#

ha

ocean escarp
#

It won't be happening any time this decade most likely

worldly pier
#

at least you have an idea how it will work

ocean escarp
#

because as much as I try. I cannot model or animate to save my life lol

worldly pier
#

did yoy try using blockbench?

fiery solar
worldly pier
#

ahh let me try it

worldly pier
#

it only gets whole blocks

ocean escarp
#

I just lack artistic talent

tidal wasp
#

Does ?, work in a resolve method like setPermuatation(BlockPermutation.resolve(block.typeId, {
[Hi:hi]: true ?,
[Bye, Bye): false}))

#

So thag it will only apply the 2nd state if it can be applied

worldly pier
# ocean escarp I just lack artistic talent

it was more difficult than I thought it would be, heres an updated version, this time, optimized. It should work for any case.

system.runInterval(() => {
    for (const player of world.getAllPlayers()) {
        const pblock = player.dimension.getBlock(player.location);

        if (!pblock) continue;
        // efficient way of getting all the player adjacent blocks
        // portals teleport you in a 0.3 range in any direction
        const candidateBlocks: Block[] = [pblock];
        try {
            if (player.location.x > Math.trunc(player.location.x) + 0.7) candidateBlocks.push(pblock.east()!);
            if (player.location.x < Math.trunc(player.location.x) + 0.3) candidateBlocks.push(pblock.west()!);
            if (player.location.z > Math.trunc(player.location.z) + 0.7) candidateBlocks.push(pblock.south()!);
            if (player.location.z < Math.trunc(player.location.z) + 0.3) candidateBlocks.push(pblock.north()!);
        } catch {}
        //if (player.getAllBlocksStandingOn().some((v) => v.typeId == "minecraft:portal")) console.warn("works");
        for (const block of candidateBlocks) {
            console.warn(candidateBlocks.length);
            if (block?.typeId != "minecraft:portal") continue; //filters only portal blocks
            block.setType("air"); // removes it
            player.sendMessage("nether is disabled");
        }
    }
}, 20); 
stark kestrel
worldly pier
#

i didnt do anything

#

no neet to thanks me

runic quartz
#

guys how can i hide the itemlock property drop popup?
/gamerule showTags false only hides triangle, description and grey background for item.

marble spruce
#

ain't no way Acode have scripting support

last latch
#

by acode you mean vsc but for ndroid

marble spruce
last latch
#

ye

#

why not

marble spruce
#

there's a pluggin for that tho

last latch
#

so there is your answer

distant tulip
#

Yeah, it was shared here
Can't find the post tho

frosty yoke
#

is there any sort of bug in custom commands parameters in stable 2.5.0? I have these two parameters that show in-game but when I print the args object in the console theres only the first parameter (the npc) and the friendship param doesnt show at all and I also can't access to it by destructuring the args array or accessing directly to the [1] index

worldly pier
#

the entity selector is buggy

frosty yoke
frosty yoke
# subtle cove mind sharing the code
import { CommandPermissionLevel, CustomCommandOrigin, CustomCommandParamType, CustomCommandSource, Entity, Player } from "@minecraft/server";
import { Npc } from "../../plugin/Npc/npc";

export default {
    command: {
        name: 'test:setfriendship',
        description: 'Set the friendship of an NPC',
        mandatoryParameters: [
            {
                name: 'friendship',
                type: CustomCommandParamType.Integer
            },
            {
                name: 'npc',
                type: CustomCommandParamType.EntitySelector
            }
        ],
        cheatsRequired: true,
        permissionLevel: CommandPermissionLevel.Admin
    },
    callback: (origin: CustomCommandOrigin, args: [friendship: number, npc: Entity]) => {
        const friendship = args[0]
        const npc = args[1]
    },
}
#

I can't access npc in this case

worldly pier
#

that error is something completely different of what you are saying

frosty yoke
#

It is not

subtle cove
#
(origin: CustomCommandOrigin, ...args: [friendship: number, npc: Entity[]])
frosty yoke
#

So i dont think thats the problem tho

frosty yoke
#

already did before

#

that was my first try

subtle cove
#

every cmd param is a function parameter

#

entityselector is array of entities, same with player selector

#

it's all from getPlayers/getEntities

frosty yoke
#

Ok thanks.

subtle cove
#
callback: (origin: CustomCommandOrigin, friendship: number, npcs: Entity[]) => {
    const npc = npcs[1]
},
near siren
#

Could someone give me an example of the Record object? (ItemStack.setDynamicProperties) Cant tell how its laid out

zinc breach
#

how would you debug the player leave before event? its not showing anything in the console when I try testing it

#

would I have to use like simulated players instead of testing on myself

near siren
zinc breach
zinc breach
#

alr ty

near siren
#

You're welcome

tidal wasp
#

How do you use setPermuatation to change only one state on a block without resetting the other ones to default in the process

#

Because I've always had that happen to me

drowsy scaffold
#

does using tickingAreaManager cause like extreme memory leaks or something?

drowsy scaffold
#

does using /reload cause memory leaks?

#

i'm asking because i have some memory leak in my server, and using script diagnostics isn't showing me that I have events that're leaking or anything like that so I'm hoping to find out what I have wrong

subtle cove
#
const record = {
    skills: "dash,blink,hop",
    hasHome: udefined, 
    hp: 57,
    home: {x:-1774, x:60, z:5249} 
}
world.setDynamicProperties(record)
zinc breach
zinc breach
#

I have the function for it it just doesnt work because the player is invalid

#

and when I get rid of system.run it just gives me you cannot use ... in restricted execution

subtle cove
#

would storing the properties in world be fine?

#

using the player.id as key

#

for the effects, just reset em on join

#

nameTag's not much of an issue, i think...

warm mason
cold grove
#

I mean

#

playerSpawn and checking initialSpawn will do the same thing

grim raft
#
world.beforeEvents.entityHurt.subscribe((event) => {
  const m1Score = world.scoreboard.getObjective('m1timer')
  const target = event.hurtEntity
  if (m1Score.getScore(target) > 0) {
    target.dimension.playSound('blazinguniverse', target.location)
    target.dimension.spawnParticle('sl:sword_clash1', (x, y + 1, z))
    event.cancel = true
  }
})```
it cant run the sound and particle events cuz its a beforeEvent so is there a way to make them work
wary edge
#

Wrap it in system.run

grim raft
#

is there no other way without using it

wary edge
#

Correct. Is there a reason you can't or won't use it?

grim raft
#

wait nvm i read it as runInterval cuz im trying to not use it too much

#

mb

#

thanks for the help

nova flame
#

where do i ask questions to do with the mcbe debugger

remote oyster
nova flame
#

anyone know why my script tick spikes so high when i connect the debugger on server start?

#

my script barely does anything

#

is this like a thing it does?

remote oyster
#

Brief loading? Could be related to the pressure of the tasks being performed within said tick(s) until it normalizes. Just a hunch without looking at the code(s) in question.

stray spoke
#

What addons are yall making rn

#

Or what project

remote oyster
# stray spoke What addons are yall making rn

I mostly write code to listen and catch unusual behaviors in the game that typically isn't normal and could potentially be cheating. I find the challenge in some areas to be fun and entertaining.

nova flame
#

id like to start developing an "anti cheat"

#

for a server

remote oyster
lyric kestrel
distant tulip
# stray spoke What addons are yall making rn

Most of the stuff i am currently working on are under NDA, but my current personal project is an add-on with the name "behind the scene".
in short, it is a cinematic add-on, but you get to place stuff in the scene and make entities move around, for example, each element in the scene have a timeframe, for example:
you make a new scene with the length of 5 minutes, you can add a camera and edit it properties in that timeframe, or add a mob and make it path find from x to y, or get damaged at the time 2 min, and so on

distant tulip
#

just got the weirdest error/bug ever
wasn't able to copy the error cause my game froze and was not responsive (not an overflow)
it was something like interrupted at "events/guide_book.js line 72" and the game either freeze or get unresponsive

supple perch
supple perch
#

btw sorry to ask but what is the .mcattributes file?

distant tulip
frosty yoke
distant tulip
#

there is no promises there tho

supple perch
frosty yoke
distant tulip
supple perch
supple perch
#

mb i am not too familiar with most tools

frosty yoke
# distant tulip yeah

Were you changing slots too quickly when that happened? Could be a script overload using getDynamicProperty API too quickly

supple perch
distant tulip
#

no. it was in a second device joining my world
that happen before the world load for him

supple perch
#

could be just that his player is not fully loaded

#

or like the methods aren't binded or something

frosty yoke
#

Then it’s probably because the event fired before the selected slot is loaded

frosty yoke
supple perch
#

i think it's guaranteed to be readable

distant tulip
#

i think i found the reason

#

also, setting the slot seem to cause a memory leak

supple perch
distant tulip
#

no, it doesn't

supple perch
#

that seems pretty interesting

distant tulip
#

yeah, the event only fire when the player change the slot

supple perch
#

ah

#

that seems wrong tho

#

if one pack changes the slot and the event doesn't fire for it, and say another works on the fact that the slot is the old one for caching or something idk, that could cause some issues

#

idk if this is a bug or intended behavior so yeah

#

if i were you i'd open a bug report ig

distant tulip
#

it is kinda hard to explain it
i don't fully know what is happening either
let me double check some stuff

distant tulip
supple perch
#

otherwise do logic

#

if it doesn't trigger then i assume it's a bug

distant tulip
#

no the code i have have a fix for the infinite loop

#

this is what i get without it

frosty yoke
frosty yoke
#

so it doesn't fire when u change it in script

#

thats weird

distant tulip
#

i can't replicate the interrupt error

frosty yoke
#

then it does

frosty yoke
#

shouldnt happen again

supple perch
#

either that or something that happens one off

#

in anycase u should guard the event to stop the infinite loop and guard it to stop invalid (or not yet loaded) players

distant tulip
#

again, the infinite loop is not the problem
when that happen the server turn off

when i get the interrupt error the game freeze and i get a memory leak

wary edge
#

Tbf, it is kind of confusing at first what your issue is when you have nothing that shows an infintie loop in the first screenshot and then you say "I believe it's relayed to infinite loops" which is a different issue.

supple perch
#

can you show us the new code?

#

if anything changed

distant tulip
supple perch
supple perch
supple perch
distant tulip
supple perch
#

alr no worries, take ur time

distant tulip
supple perch
wary edge
distant tulip
supple perch
#

that's a bug in the API then

#

unless it was intentional for them to make it not fire on modifications to the slot by ScriptAPI

distant tulip
#

eh, wait
i am stupid, it wouldn't cause a hang

supple perch
#

so maybe it has an untentional limit on how many of this event can be fired per player in a certain set time.. and it just kills/hangs the game after that limit is reached?

#

idk regardless that is no standard error

#

you should report it to mojang

supple perch
#

i doubt we could properly debug it

#

waiiiiiit

supple perch
#

maybe it can only fire this event once per player in a single tick

#

and so when u set it twice that triggered it because maybe it's not batched/the api fires the event the first chance it gets??

#

anyway enough of my yapping

distant tulip
#

that might be true to some extend
just need to find out why it does that when someone join my world

it doesn't do it for me until i intentionally trigger it

supple perch
#

hence the first script tick always has you valid or something idk man

distant tulip
#

as i said it does happen when i intentionally trigger it

supple perch
#

fair enough

#

try testing on a realm or bds then ig

ocean escarp
#

Have we had any news about whether or not the max health of an entity will be exposed to scripts?

ocean escarp
snow knoll
#

Well not always, but it is there

snow knoll
ocean escarp
#

Last I tried max health wasn't changeable

snow knoll
#

Did you not just say you did not want to edit it

ocean escarp
#

Quite the opposite

snow knoll
ocean escarp
#

I want the ability to edit it without having to make 50+ events in player.json

ocean escarp
#

Which is annoying

snow knoll
ocean escarp
#

Well that is only multiples of 2 and can't go below 10 hearts?

snow knoll
#

Well, then I'm afraid there's nothing you can do on that department besides a runInterval that spams setCurrentValue

ocean escarp
#

That's why I was asking if there was any news on Max health being edittable properly via scripts

snow knoll
#

Unless you want to downgrade to a really old version where editing is possible

supple perch
#

late reply ik

#

but your only choice is modifying the player.json

ocean escarp
#

I hope someone asks about it in the next QnA

#

I dont get pinged for em

stray spoke
#

How do y'all unsubscribe event

#

I tried to store the callback function on a variable, it works on subscribe but on unsubscribe it didn't

warm mason
#

@distant tulip :/

#

how then?

last latch
warm mason
last latch
warm mason
distant tulip
# warm mason <@704346785811923016> :/

it is the weirdest thing ever
you need to use the callback

example


world.afterEvents.playerPlaceBlock.subscribe(doSomething);


function doSomething() {
    console.log("placed a block");
    world.afterEvents.playerPlaceBlock.unsubscribe(doSomething);
}

this will unsub after the player place the block

distant tulip
last latch
#

dayum

#

so i was right?

distant tulip
#

yeah, tbf, i thought it worked like clearRun before some days ago

last latch
#

one question tho

#

for what cases would anyone unsubscribe?

#

For optimization?

stray spoke
#

For me, yeah

#

Performance boost and avoid lag

distant tulip
# last latch For optimization?

yeah,it is for cases where you want to subscribe to an event just for a bit before unsubscribing
or subscribe if a condition is met and unsub when not

last latch
#

But does it actually make your worlds run faster?

#

you would need so much events right?

#

Like an absurd amount of them

stray spoke
#

Even allocations and loops need to be limited to avoid gc, like avoiding forEach, map, recursions, and others, must be tick-loop safe also

last latch
distant tulip
warm mason
#

it returns the function

warm mason
distant tulip
stray spoke
#

If executed, it returns void. If not, it's a stores function

warm mason
#

it always returns the function

distant tulip
stray spoke
#
const test = ()=> true

console.log(test) // returns f() or function

console.log(test()) // returns true
warm mason
distant tulip
#

i just sent you the docs

stray spoke
warm mason
#
function test() {
  return 1;
}

const test2 = world.afterEvents.subscribe(test);
console.log(test == test2) // true
warm mason
distant tulip
#

what does that prove

warm mason
warm mason
#

._.

distant tulip
stray spoke
#

Yeah, 1 is not equal to void

warm mason
#

Excuse me, but do you even understand the documentation?

last latch
#

there are way too many threads circulating in the same conv

stray spoke
#

...

last latch
#

Serties code should be wrong. But minatos explanation is correct

warm mason
#
function test() {
  return 1;
}

const test2 = world.afterEvents.entityDie.subscribe(test);
system.run(() => {
    world.sendMessage((test2 == test) + ' ' + (typeof test) + ' ' + (typeof test2));
});

@distant tulip @last latch @stray spoke

stray spoke
warm mason
#

it returns function that returns void

distant tulip
#

serty is right bao_ext_toldyouso

warm mason
#

but not just void

distant tulip
#

lol

stray spoke
stray spoke
#

Yeah nvm, I think there's misundersting

#

Not that you're wrong

#

It's just I don't get what you're pointing

distant tulip
#

i was mis leaded

stray spoke
#

I'll try that also

#

Thanks for helps

cyan basin
#

Why would someone actually use unsubscribe? I don't think I've ever used those events..

remote oyster
sharp elbow
#

Or if you are scoping an event response to the lifetime of an entity, and you would like to clean up that signal when the entity is removed.

marble spruce
#

is this well structured?(I haven't tested yet)

#

nvm

#

it works

supple perch
#

if u wanna ask if something is well structured u should share the full code

#

not a screenshot of a subsection of a file

stray spoke
#

In mobile

#

Almost like VSCode

supple perch
#

it's the best mobile IDE out there but it is NO where near VSC

#

bud i tried to contribute to their codebase

#

it is geninuely so messy

#

and has many bugs

#

i get they're not paid to do this

#

but still

stray spoke
marble spruce
stray spoke
marble spruce
supple perch
stray spoke
#

Yeah

#

There're some good free plugins

supple perch
#

ngl i wouldn't recommend development on android to anyone

#

i was gonna make my own IDE for Android but i quickly realized how much of a steep learning curve bringing VSC features into Android

stray spoke
#

I just don't have a laptop/desktop so I'm limited to what the best ide that android can offer

supple perch
#

so i don't blame them for the messiness of the codebase but seriously their mentality is just "add new features", there's no fixing, no rewriting, no cleaning up

stray spoke
supple perch
#

not a code editor

#

IDE

#

basically simplified VSC

stray spoke
#

Yeah part of it is code editor

marble spruce
#

also how can i track if the player is on shift or not ?

supple perch
marble spruce
#

Thanks man

supple perch
supple perch
stray spoke
supple perch
#

also don't generalize

#

just cuz a few devs did guess it wrong doesn't mean everyone did

remote oyster
marble spruce
supple perch
#

it's the best u can get on acode

marble spruce
#

Noice

supple perch
#

ever heard of termux?

#

i guess not

#

it's a terminal emulator

#

i seriously recommend it

#

without it, Acode alone is probably not good enough

stray spoke
#

Fun fact

supple perch
#

?

stray spoke
#

Acode terminal already upgraded and can use Node JS and other commands like termux or linux does

#

So you don't need termux anymore

#

Except termux is faster

supple perch
#

last time i checked this was only done when u had termux open

#

regardless it's probably a new feature

#

anyway termux is still far better imo

stray spoke
#

Yeah agree, I still use it

supple perch
#

so performance is awesome and it just feels like a real linux terminal

stray spoke
#

I can't host bds on termux tho

supple perch
stray spoke
#

There's some limitations

#

Yeah

supple perch
#

the bds software is made for ubuntu devices only

stray spoke
#

Yeah that made me sad

supple perch
#

termux can only emulate so much

#

if you still wanna host bds i recommend a secondary OS

#

basically sideloading

#

but it's probably gonna require a PC and shit, so rooting is better

#

rooting is still destructive tho and removes any security ur device may have so i don't recommend it

#

just get a free MC server or something idk

stray spoke
#

I just need a PC, and yeah rooting is not recommended and can cause data loss and limits other feature

supple perch
stray spoke
#

I don't like setting up so much and risky just for bds lol

supple perch
#

it's actually the most reliable thing possible

stray spoke
supple perch
#

i am not talking about websockets bruh

#

i am talking about the files

#

just get a free mc server host with sftp, ssh or anything like that

stray spoke
stray spoke
supple perch
supple perch
stray spoke
#

Thanks again, I gtg

supple perch
#

alr have a fantastic night :D

remote oyster
supple perch
remote oyster
#

When software says ‘Ubuntu only’, it usually just means it’s tested and documented for Ubuntu. In most cases it can still run on other Linux distributions if the required libraries are available.

supple perch
#

well still regardless, android is not like normal linux OSs

#

it uses bionic not libc (idk if the names are correct)

supple perch
#

i get that (Linux) part

#

but that just is like implying it may or may not work

#

and i get that's exactly what it means

remote oyster
# supple perch well still regardless, android is not like normal linux OSs

Correct, Android isn’t a normal Linux distro even though it uses the Linux kernel.

Typical Linux systems like Ubuntu use GNU libraries (like glibc), while Android uses its own libc called Bionic, a different filesystem layout, and a different runtime. Because of that, many standard Linux programs like Bedrock Dedicated Server for Minecraft Bedrock Edition don’t run on Android without extra compatibility layers.

supple perch
#

yup

#

i couldn't have said it better ngl

remote oyster
# supple perch but that just is like implying it may or may not work

Yeah, that usually just means it’s tested and documented on Ubuntu. If you use another Linux distro they can’t guarantee everything will match the documentation, since package managers, library versions, or commands might differ slightly. But it’s still Linux, so in most cases it can still run. You might just need to adjust some steps or dependencies.

supple perch
#

yea i understand

#

hey i gtg

remote oyster
#

For example, I personally favor Debian. BDS runs just fine.

supple perch
#

have a fantastic night :D

round talon
#

Is there a EntityDamageCause that bypasses i-frames without ignoring the armor?

zinc breach
#

what makes this error show up when putting addons on realms?

#

not sure if this is the channel to ask but don't know where else to put it

last latch
#

Average Realms moment:

stray spoke
#

Hello, I don't get why v2.6.0 is not available on my Minecraft even tho my Minecraft is already updated on the playstore. It shows recommendations like 2.6.0-beta but on microsoft 2.6.0 is stable

#

Oh nvm, my levi launcher is just not updated I think

#

-# I use levi launcher to do scripting without having to look for android/data which android cannot access

lyric kestrel
#

But there isn't a 2.6.0 npm?

#

There's only 2.6.0-beta

wary edge
#

Preview exists

lyric kestrel
#

Dam, what on earth happened last 7 days??

lyric kestrel
fair quarry
#

Might be related with #1482466924431409254, idk.

cold grove
#

No?

drowsy scaffold
#

is there a way that I can forcably set a fishing hook to be hooked on a player?

sly valve
#

pnpm > npm

supple perch
#

uh from what i assume you are asking if it's possible in stable?

#

if you're asking if it's possible in beta, then yes it is.

#

but in stable, nope.

supple perch
#

i doubt it would skyrocket the installations from ~2.4k to ~40k

supple perch
# sly valve pnpm > npm

sure but it depends, for example some systems/environments aren't equipped to handle symlinks

#

and also pnpm uses npm's registry so uh... yeah

stray spoke
#

Chat send event becomes stable vs GTA 6 releases

warm condor
#

turns out i was missing a part of the script

#

lmao

warm condor
#

no way we're almost at 100k messages in here

#

mine

#

RAHHHHHHHHHHH 100k messages