#Behavior Packs General

1 messages · Page 3 of 1

lyric fractal
#

oh ok XD

proud mural
#

XD

lyric fractal
#

ok, also use bridge for making mods (if you're on PC)

proud mural
#

nah, im on andriod, which makes it a bit harder

dusty verge
#

You can do it on mobile too, but it's more difficult. It's probably better to use an app to edit JSON files.

proud mural
#

i usually just get some info from bedrock.wiki

lyric fractal
proud mural
#

it's like VSC but has less features

lyric fractal
#

I use a pc to make mods, and then put them to mobile (specifically the development thingamajig folder) to test for bugs

proud mural
#

i would be better if had a PC

lyric fractal
#

btw gtg develop my mods

proud mural
#

yeah, same

#

thanks btw

proud mural
#

um, so uh, the mod doesnt have any errors anymore but, it still crashes my game when i try to load it in my world

lyric fractal
#

idk about that

#

ill check the scripts

proud mural
#

i dont know bro

lyric fractal
#

i don't see any errors on your javascript code

proud mural
#

it just doesnt load the world, it just crashes

proud mural
#

there's no error anywhere

lyric fractal
proud mural
#

i think not

lyric fractal
#

scripts can lag minecraft a butt ton if not used correctly

proud mural
#

because yesterday, i removed all the block content, only the item content and the JS code are left, when i plug it in thw game, it ran smoothly

#

like it didnt crash the game

proud mural
#

the script work fine

lyric fractal
#

could it be this:

#

oh wait no

lyric fractal
proud mural
#

so, i should use opaque for opaque blocks?

lyric fractal
proud mural
#

but, for the honey blocks, i will use blend?

lyric fractal
proud mural
#

oh, okay

proud mural
#

it still crashed

torpid burrow
#

How to automatically close actionforms?

full ridge
#

[FeatureRegistry][error]-Bleach | No definition found for feature 'minecraft:legacy:roofed_forest_foliage_feature'

help me?

elder pike
#

Does anyone have a free gui template I can use?

eager cobalt
#

what does delay filter do in spawn_rules do you need the weight filter or the delay filter is enough

olive wind
#

If I were to make a multi-gigabyte mcaddon, would it even work (assuming limited textures toggle I'd off)

ashen portal
#

How on earth would you make a multi gigabyte addon us a much better question

olive wind
#

Aka with terrible python code™️

olive wind
#

this is .3% of the addon

olive wind
#

oh lord help us all (the number keeps going up, its been like 5 minutes)

ashen portal
olive wind
#

That's all I'm saying

distant escarp
#

is it possabile for a RP and BP to only crash pc players

#
[Molang][error]-MolangScriptArg::get<>() called on incompatible type 

[Molang][error]-MolangScriptArg::get<>() called on incompat
merry vale
vital ginkgo
#

[Solved] i have no idea why this isn't working, anybody have an idea?

this is the file currently execute at @e run tp @a ~ ~0.5 ~

i was just using this as a test execute at @a as @s run execute as @e[type=item,r=24] at @s run tp @s ^ ^ ^0.3 facing @a[**a filter I will will add later**]

dusty verge
errant talon
#

there is a way to force the player when generate the world to spawn in a specific biome?

errant talon
# cold turtle No.

not even by searching the biome when the player spawn and teleport it?

cold turtle
tired nacelle
#

Not quite sure which category this falls under, whether commands or behavior packs, but basically…

I’m in a bedrock hockey league. We hit a prefectures Endermite into a net, and once it crosses the line (we have specific blocks to detect when the endermite is in the net) the entity gets teleported and triggers the goal animation (flashy lights, /title commands, etc). Is there a not-incredibly-complicated way to detect which player scored? So essentially detecting which player hit the “puck” into the net. If you google “Blockey Hockey”, you’ll see that they figured this out for Java pretty easily. But I’d like to do the same if not similar for bedrock edition

thorny tiger
#

It would be pretty easy with a script. Use an entityHitEntity event to store the name of the player who last hit the puck on it as a dynamic property

full ridge
#

My entity has a high collision height and yet it spawns in small spaces where it can receive suffocation damage, how do I define the space for it to spawn?

dusty verge
sterile hemlock
elder badger
#

Is it possible to make my block not drop when breaking the support and drop when breaking with shears?

urban rover
#

Anyone know how I can make my model become a pack and be exported into minecraft

thorny tiger
#

Id recommend starting with the beginners guide, it explains how to make addons

deft schoonerBOT
distant escarp
eager cobalt
#

what is the entities being used in the game in minecraft cause in the vanilla packs there is a zombie v1, zombie and zombie v2 is it the zombie v2?

delicate wolf
#

Where can I change the fishing loot from water?

thorny tiger
#

Copy the loot table over from the vanilla packs into your addon, then modify it. Make sure the path matches exactlh

hoary heath
#

why is this now working?

#

is player.json

eager cobalt
hoary heath
eager cobalt
hoary heath
eager cobalt
hoary heath
#

But it doesn't works regardless of what I add or remove

eager cobalt
#

"minecraft:damage_sensor": {
"triggers": [
{
"cause": "all",
"deals_damage": "no"
}
]
}

opal steeple
#

But when you put a new file in the resource behavior package but it does not appear what is the solution

tacit sonnet
#

uhhhh what is this

cold turtle
#

Nothing.

tacit sonnet
#

and how to use it

stoic lotus
#

How to remove players footstep particles and noise if they have a tag?

hoary heath
#

hey so, for some reason damage_sensor doesnt works on modern format versions, any idea why?

hoary heath
#

Do you know why mine could not be working then?

hoary heath
#

I also tried using "false" instead, nothing happens

finite ivy
#

Is there any way I can put a FOV on the entity, so that it can only shoot if it is in front of it?

eager cobalt
#

what is the basis of an entity must see in the behaviour is is base on scale? the bigger the entity means the bigger the ray cast?

stoic lotus
#

How to fix Incorrect permission for command reload on bds im using pebblehosting

eager cobalt
#

how do i make an entity follow a target the entity is range attack like those skeletons cause my entity stops following them if they are not in reach?

stark heart
#

Is it possible to modify crop growth?

dusty verge
acoustic sparrow
#

does tick.json override other tick.json files?

dusty verge
acoustic sparrow
polar gazelle
#

Have anyone encountered this bug where when using behavior.delayed_attack the attack bugs out and hits the enemy without cool down even if you specified a cooldown on it also is the on_attack fixed?

stray falcon
#

If I remove mob or monster from the family of an entity does it no longer take up space in the mob caps?

tacit imp
#

are custom biomes still broken?

#

like the partial biome replacements

acoustic sparrow
#

how are they broken

tacit imp
#

Many have said they've been broken since 1.18, but with 1.21.80 mojang released an update allowing for partial biome replacements

#

im trying to use them but my biome isn't generating

cold turtle
#

I can assure you they work.

tacit imp
#

Yep I read through some previous posts and figured out it was because I didn't name the file _.biome.json

#

It works now

hardy forge
#

is there a way to clone all of an entites properties (like a structureblock can), but if the entity gets hit? So it clones the entity when it gets hit.

tacit sonnet
#

does .lang file work in behavior pack

proud kestrel
#

How do I enable a behavior pack in a server's development_behavior_packs folder ?

elder pike
#

can someone help me fix my pack if so dm me

deft schoonerBOT
#
How To Ask Good Questions

Be specific and include relevant details about the question upfront.

  • What are you trying to accomplish?
  • If you have code, which part is not working? Any content logs?
  • What have you already tried?
  • Have you searched the Bedrock Wiki?

https://xyproblem.info/

#
DMs Are Not Ideal

When you ask a question via DM, you are restricting the total number of people who can help you from all potential server members to just one. Asking in the public channels is the best way to get a good, community-sourced answer to your question, allowing other observers to give their input.

While you are certainly welcome to DM with each other, please be aware it is against our rules to send unsolicited DMs requesting help.

oblique cargo
#

Whats the right syntax for enum properties

eager cobalt
#

how do you add cooldown in delayed_attack?

eager cobalt
spare pulsar
eager cobalt
eager cobalt
spare pulsar
#

wut

eager cobalt
#

how do i detect when an entity is being soffucated?

eager cobalt
gusty current
#

how do i set the hp of an entity to be a "Entity Properties"?
mine looks like this:

      "minecraft:health": {
        "value": "query.property('tta:test')",
        "max": "query.property('tta:test')"
      }```
opaque bough
gusty current
hidden imp
#

Does anyone know how to disable or decrease the spawn radius in rlcraft?

warm sierra
#

Why distribution not valid

#

nvm

whole raptor
slow crystal
spare pulsar
#

Is there a new entity component that allows the happy ghast to have collision and can it be put on other enitties

#

entities*

earnest terrace
#

does anyone know how people are making there addons achievement friendly. I didn't know where to ask this question I thought this might be the right place

flint crypt
#

test

ionic vault
mystic pewter
#

Is it possible to make a behavior pack that makes doors not water log able like in Java when doors are placed in water

ocean ruin
#

im looking for something or a pack to just make toggling graphics easier and quicker

acoustic sparrow
# ashen portal

I think they are just trying to find a pack, not hire someone to make it.

ashen portal
#

True, but the second one still stands tho
I realised that later on but felt like it would be wrong to delete the @ and cover up my mistake, so it stands as a just in case now

acoustic sparrow
#

im just talking about the first attachment

#

yes, this place is for developing not necessarily finding addons.

mystic pewter
#

What would I have to change to make this use a tag to grant permission for a custom slash command const obeConfigCmd = { name: "elevators:obeconfig", description: "Allows you to access the addon's settings menu.", permissionLevel: CommandPermissionLevel.Admin, cheatsRequired: false };

#

Like the tag admin

cold turtle
#

Do a check in the actual command logic.

mystic pewter
#

How?

#

I want to change it to use a tag because on my server this doesn’t know that I’m admin for some reason

#

It just says that I don’t have the permission level

cold turtle
#
function helloCustomCommand(origin: CustomCommandOrigin, celebrationSize?: number): CustomCommandResult {
  if(!origin.sourceEntity.hasTag()) return {
    status: CustomCommandStatus.Failure,
  };
  world.sendMessage("Hello Custom Command!");

  if (celebrationSize) {
    system.run(() => {
      for (const player of world.getPlayers()) {
        player.dimension.createExplosion(player.location, celebrationSize);
      }
    });
  }

  return {
    status: CustomCommandStatus.Success,
  };
}

as an example.

mystic pewter
#

I just set the command permission to GameDirectors and it works

mystic pewter
#

Is there a way to make the overworld generate as void but not the Nether or the end

modest marsh
mystic pewter
#

Yeah I realized that but I was trying to use a map that had a massive ship and void around it but make the whole world void because after traveling about 1000 blocks out it generated terrain

modest marsh
mystic pewter
modest marsh
mystic pewter
modest marsh
# mystic pewter Oh I use mobile I don’t have a pc yet

You can export and import structures just using the structure block. I suggested Amulet since you mentioned it was a massive ship and structure blocks have max size limits. Amulet can save mcstructure files that are larger than max limit which would make it easier.

You just need to look into how to import and export structures on your device.

mystic pewter
#

I can’t on IPhone

#

Also it’s several hundred blocks long I think 700+ blocks long and maybe 200+ blocks wide and from y=0 to maybe around y=250?

#

I’m not sure if it’s possible to save such a massive structure

modest marsh
mystic pewter
#

Dang

#

Is there a way the stop world generation by editing the .dat file

#

Like tell it that it’s a void world in the overworld?

modest marsh
#

Just make backups of the worlds before you go editing them in case you need to redo things or mess up.

mystic pewter
#

I can edit it on my server

ancient gull
#

I've seen some packs with settings icons in the BP list when setting up a world. I switched my version to 3 and added settings but now the pack is hitting an error. The docs say it's experimental and could change, but I've seen it in the normal version of Bedrock, not preview. What am I doing wrong? https://github.com/microsoft/minecraft-samples/blob/main/configurable_packs/behavior_packs/configurable_pack/manifest.json

GitHub

Contains custom add-on samples for Minecraft Bedrock Edition. - microsoft/minecraft-samples

cold turtle
#

V3 is something different.

ancient gull
#
  "settings": [
    {
      "type": "label",
      "text": "Lucky Forest chaos mode may be unstable and is not recommended for your first time playing."
    },
    {
      "type": "toggle",
      "text": "Chaos Mode",
      "name": "cm:chaos_mode",
      "default": false
    }
  ],

I assume that it's just an array like that

cold turtle
#

Settings only work for v3, like I said.

#

The settings you see are subpacks.

ancient gull
# cold turtle Settings only work for v3, like I said.

OH, sorry, I misunderstood. So I'd have to make files that overwrite the current ones via subpacks, I think. I'm guessing that would make it impossible to have settings which disable different features/feature rules at the moment?

cold turtle
#

And even then not sure.

#

Because so far, only scripting can access the settings.

ancient gull
cold turtle
ancient gull
#

We can hope. It's a little annoying that features can stay in preview for a while but maybe it'll release next drop.

mossy inlet
#

is there a list of which elements of a bp should be namespaced by folder? (best practices and stuff)

modest marsh
zenith condor
#

Is there an easy way to check if a specific type of block (Eg: Grass_Block) has been random ticked and run a command at that block's position?

#

Or alternately check a random block during random tick to see if it is a grass_block and has an air block above it.

faint tree
#

I wanted to know if it's possible to translate the lore of the items I created using JS. Similar to what happens with JSON, only based on the .lang files.

Piece of my lore.js:

const GUNS_LORE = [
    new GunLore(['fiori:ak12'], ['§7Type: §cAssault Rifle', '§7Damage: §c8', '§7Cartridge: §c5.45mm', '§7Fire Rate: §cFULL-AUTO', '§7Rate of Fire: §c0.0024ms']),
    

warm sierra
#

You cannot

#

But you can use json map based

faint tree
warm sierra
oblique cargo
#

Any query that randomize things?

ashen portal
oblique cargo
#

Can you give an example synatx of that math function

ashen portal
#

Sure

#

The two are math.random_integer and math.random
random will give you any float or integer value between and including 2 defined maximum and minimum values
random_integer will give you the same but only the integers, as the name suggests
You'll want to use math.random_integer (the latter won't work for this and feel free to ask why)

#

Here's an example of the portrayal

#

math.random_integer( 0, 2 )

#

Where 0 is the minimum and 2 is the maximum

#

Here's the application you will have it in

#

math.random_integer( 0, 2 ) == 0 && query.is_using_item

#

This would give you a 1 in 3 chance of having it work

ashen portal
#

No problem
Happy to help 👍

split trout
#
import { world, system } from "@minecraft/server";

world.afterEvents.entityDie.subscribe(event => {
  const victim = event.deadEntity;
  if (victim?.id === "minecraft:player") {
    const playerName = victim.name;

    system.run(() => {
      world.getPlayers().forEach(player => {
        player.runCommand(`say ${playerName} has died!`);
      });
    });
  }
});
#

can anyone help me w/ this

#

this doesnt work

ashen portal
#

id is a special string individual to every separate entity whereas typeId is the identifier of an entity from the summon command

mossy inlet
#

is there any good documentation or json schema for cameras?

whole raptor
#

Good question, how can I add different inventory guis for different people like this?

faint tree
#

I have questions:

  1. My addon have some models with the "duplicate" bones for permutate differents textures in the block (because the bones can be visible or no). My question is: Models with some bones (but oculted with "bones_visible") can cause lag?

  2. My addon add some blocks in the world. Exemple: My addon have one plank that "what an exchange" the oak_planks (for script). Exemple: The player put minecraft:oak_plank but the script swap for myaddon:my_plank.

My question is: Can i create a script for unistall the addon, switching all myaddon:my_plank for minecraft:oak_plank in the world?

glossy karma
#

kan some one make iu for me for minecraf tbedrock eith a buton with texttp to spawn en than it gives a tag to you named s and another but on the same but the text is tp to hub and then it gives you a tag named h and above evrything it sayd menu and a item to open that menu

wild prawn
#

Why do I get melon blocks when I mine the block with my hand?json { "pools": [ { "rolls": 1, "entries": [ { "type": "item", "name": "minecraft:melon", "conditions": [ { "condition": "minecraft:match_tool", "enchantments": [ { "enchantment": "minecraft:silk_touch", "levels": { "range_min": 1 } } ] } ] } ] }, { "rolls": 1, "entries": [ { "type": "item", "name": "minecraft:melon_slice", "functions": [ { "function": "set_count", "count": { "min": 3, "max": 7 } } ] } ] } ] }

exotic willow
#

how to fix this because its not dropping anything i killed it over 200 times

{
"pools": [
{
"conditions": [
{
"condition": "random_chance",
"chance": 5.0
},
{
"condition": "killed_by_player_or_pets"
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "op_asa:akumanomi_sorusoru",
"weight": 1
}
]
},
{
"conditions": [
{
"condition": "random_chance",
"chance": 25.0
},
{
"condition": "killed_by_player_or_pets"
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "op_asa:nikakubou",
"weight": 1
}
]
}
]
}

topaz depot
#

Help me man

#

How to make an animation controller like "if you hold and hold the screen item "shot" will run "animation.shoot" in the behavior pack, and if you don't hold the screen, then the animation stops, and if you keep holding the screen it will continue to another "query"

#

Help me to set what "query" I should use

sterile acorn
#

Can someone please give me some knockbacks like Zeqa?

warm pine
#

Hello, quick question: How do we import addons since the last update? I'm just back into minecraft, and I know that storage folders have changes and know how to find my addons My question is how to import new ones? Usually I just needed to click on the mcpack files, but now it does nothing Did they changed the way to import addons or it is a bug ?

acoustic sparrow
warm pine
#

Thx, it worked

lavish sable
#

guys anything happened to can_climb in these later versions? for some reason when riding mobs won't auto jump 1 block

ancient gull
#

I'm guessing we can't have custom effects yet as I can't see them in the docs, but best to ask just in case. My alternative is spawning custom effect potion particles around the player, but that doesn't help with the effect duration and UI

ancient gull
bronze badge
#

Did the folder for behavior packs change? I updated minecraft and they used to be in %localappdata%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\development_behavior_packs but they don't show up anymore. Or do i just need to update all their manifest.json somehow?

bronze badge
ebon ruin
#

you can develop on android with root right?

#

I tried with shizuku and it won't budge

#

fuckin android

marble breach
#

Anyone have any idea about an non player json way to set smth using script which you can than check for in an attachable using an query

bronze scroll
#

How do I add drag on an entity?

#

drag is similar to gravity, but it's for decreasing XZ velocity

marble breach
ashen portal
#

Why didn't you say you wanted to set the durability then

exotic willow
#

how to attach a model to a player like if i have a fishman tag it'll make my player model the fishman model

thick elm
#

when will data-driven jigsaw will stable?

cold turtle
thick elm
#

wait

#

my bad, i thought it wasn't patched

whole raptor
#

Is there a way for someone to see something (entities) but others can’t?

ashen portal
#

Use the players option in playAnimation to detect the players that have an animation (where the animation sets the scale of 0) play on their screen

whole raptor
ashen portal
#

The constant player used for the players syntax is the list of players that are able to see that animation that has been played

whole raptor
#

Ohhhh

#

There

#

Tyvm

ashen portal
whole raptor
#

For a murder mystery project

#

A player skin falls down and stays still while the player can spectate elsewhere

whole raptor
ashen portal
#

What you want to do is, unfortunately, impossible then

#

The player cannot be in 2 areas at the same time

#

You could control their camera perspective with the camera command and some extremely intuitive detection systems for movement, but the player's skin can't be placed in one area while the player is in another

#

Or you could make a dummy entity with a Steve skin be the dead body and use the animation method to hide the visibility of all the "dead players" from living players but let the dead ones see each other

ancient gull
oblique cargo
#

Uhh i need help

#

My rideable entity wont climb/jump 1 block up

#

I alr added can_climb and jump.static
Is there any component that makes my mob climb 1 block

oblique cargo
#

@tacit whale sorry for ping
You wont mind helping me here

tacit whale
#

hm

tacit whale
oblique cargo
tacit whale
#

give me its behavior file

#

if possible

deft schoonerBOT
oblique cargo
tacit whale
#

Yeah

oblique cargo
oblique cargo
# tacit whale Yeah

I alr added the input ground controlled and ride tamable but yeah it wont climb 1 block

tacit whale
#

one minute

#

its been three months since ive touched mc lol

oblique cargo
tacit whale
#

oof

oblique cargo
tacit whale
#

well because I havent done this in so long im cooked myself

#

id start by removing hte climbable stuff unless you need it like a spider because the horse doesnt use those

#

and go from there

#

it might need the horses jump component? for when you're riding it

oblique cargo
tacit whale
#

yeah but like

#

for it to go up a block when you're riding it, it might need that component

#

I cant even look at one of my other mods to test

#

my acers hard drive is totaled

oblique cargo
oblique cargo
tacit whale
#

minecraft:horse.jump_strength

#

then remove the two climbing ones those are unessecary

#

and kinda confused why you have jump_power inside the jump.static component when the power you set is already the default value

tacit whale
#

😭

#

valid

cyan wigeon
#

pls help

#

its supposed to have a cooldown

ashen portal
muted magnet
#

What is maximum slots for Entity Inventory ?

cyan wigeon
#
{
    "format_version": "1.20.20",
    "sound_definitions": {
        "cosmos.asteroid": {
            "category": "neutral",
            "sounds": ["sounds/asteroid.wav"]
        }
    }
}
``` why is my sounds just not playing? what am i doing wrong
#
player.playSound("cosmos.asteroid", { location: player.location });```
thick elm
#

is it possible to make the duration to -1?

#

i just find someone code and it's interesting

#

it's entity.json

severe pollen
proud mural
#

how do you guys make a scatter feature work underground and in the nether? they dont seem to work as i would expect

sturdy otter
#

How to create a loot table chest

proud mural
dense helm
#

guys why cant I load my structures? It say structure not found

#

nvm I figure it out. structures/<namespace>/<files_here>

stiff lava
#

@compact kraken

fringe skiff
#

Does anyone know how to change the icon of an item using date? Like the bed item

ornate basalt
#

Yo is It possible to add custom buttons in your Ui along with the other button(like jump, and the dpad)

ornate basalt
#

Thanks:D

severe pollen
ornate basalt
#

Awesome, thanks again brother

mystic pewter
#

How would I make a custom /fly command that toggles the ability mayfly so players can toggle the fly ability from the education edition

mystic pewter
#

This is what I have so far and nothing shows up.

  system,
  CustomCommandPermissionLevel,
  CustomCommandParamType,
} from "@minecraft/server";

const TAG = "can_fly";

system.beforeEvents.startup.subscribe((init) => {
  const reg = init.customCommandRegistry;
  reg.registerEnum("fly_mode", ["toggle", "on", "off"]);

  reg.registerCommand(
    {
      name: "fly",
      description: "Toggle flight (mayfly) for yourself. Usage: /fly [toggle|on|off]",
      permissionLevel: CustomCommandPermissionLevel.Any,
      optionalParameters: [
        { type: CustomCommandParamType.Enum, name: "fly_mode" },
      ],
    },
    flyCommand
  );
});

function flyCommand(origin, mode) {
  const player = origin.player;
  if (!player) return;

  system.run(() => {
    const current = player.hasTag(TAG);
    let next = current;

    if (mode === "on") next = true;
    else if (mode === "off") next = false;
    else next = !current;

    if (next) {
      player.addTag(TAG);
      player.runCommandAsync("ability @s mayfly true");
      player.sendMessage("§aFlight enabled.");
    } else {
      player.removeTag(TAG);
      player.runCommandAsync("ability @s mayfly false");
      player.sendMessage("§cFlight disabled.");
    }
  });
}```
ashen portal
velvet tulip
#

how do you prevent/disable dispensers on bonemealing wheat?

ornate basalt
#

how do you make those unmovable items in your inventory?

#

the one that looks like this

#

with a red corner

#

i have seen those before

acoustic sparrow
#
give @s diamond 1 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}} 
ornate basalt
#

ey lezgo, thank you

velvet tulip
#

in a behavior pack

teal forum
ornate basalt
teal forum
#

Oof

ornate basalt
#

just an advanced question

#

so i would know its possible

teal forum
#

I been looking for a hud button for like 2 weeks now because i can't use wind bursts in d-pad mode

ornate basalt
#

well you can look at what finest sent

teal forum
#

I am right now

#

This file is massive and i have no idea what i'm looking at

thick elm
#

any recommended guide for worldgen?

thick elm
#

Understandable

ornate basalt
#

i just found this out

i was wondering if this could be a delayed attack

#

there's no delay hit pct

wanton basalt
#

Help code

whole raptor
#

How to give a my custom chest a custom gui?

slender raptor
#

how do i run a function if a item is eaten

ashen portal
slender raptor
#

how do i add that im very new with this

ashen portal
#

I have a set of links I tend to send people who are new to making scripts

#

Try this

#
#

Here's stuff on custom components

deft schoonerBOT
#
HCF Removal and Custom Components

The Holiday Creator Features experimental toggle has been removed. Along with it includes JSON block and item events. This functionality has been replaced with custom components.

Please take a look at the following links to learn more about custom components:

Bedrock Wiki

MS Docs

whole raptor
#

How do I make the same maps Galaxite uses for Chronos Battle Royale

dense helm
#

Is there any documention for minecraft:dimension?

#
{
    "format_version": "1.19.0",
    "minecraft:dimension": {
        "description": {
            "identifier": "minecraft:nether"
        },
        "components": {
            "minecraft:generation": {
                "generator_type": "void"
            }
        }
    }
}
``` Bc I have this but I dont know if there is other components or not
acoustic sparrow
dense helm
#

so you cant let it be void and load structure at the same time?

dense helm
#
{
    "format_version": "1.21.130",
    "minecraft:recipe_smithing_transform": {
        "description": {
            "identifier": "ct:netherite_hammer"
        },
        "tags": ["smithing_table"],
        "base": {
            "item": "ct:diamond_hammer"
        },
        "template": {
            "item": "minecraft:netherite_upgrade_smithing_template"
        },
        "addition": {
            "item": "minecraft:netherite_ingot"
        },
        "result": {
            "item": "ct:netherite_hammer"
        }
    }
}
#

why does this not working?

cold turtle
dense helm
#

netherite_tier?

cold turtle
#

The transformable tag.

#

No. Check the wiki.

dense helm
#

cant find anything with transformable

#

minecraft:transformable_items

#

this one?

dense helm
dense helm
cold turtle
dense helm
#

Bruh Im so dumb I added it to the netherite tool xD

#

It works thanks. Does it also work for blocks or only items?

cold turtle
dense helm
#

xD

sick dawn
#

Hi hi who knows how to

When a player join a function
/function assign tag
Will be randomly assign from 1 of the 10 tag
And after getting assign to that tag you will get a [you are (tag)] message

And after getting that specific tag you will get a specific effect that corresponding the that specific tag
Let's say
I got a tag name runner
It give me speed infinite 1
And weakness infinite 1

And if you die the effect will come back

slender raptor
#

effect @a[tag=runner] speed 1 5 true

#

And a mcfunction

#

You can make one in bridge

#

Tick.json
[{“values” : “runner”,”(insert more here)”}]

#

runner.mcfunction
effect @a[tag=runner] speed 1 5 true
effect @a[tag=runner] weakness 1 5 true

#

Behavior Pack/functions/tick.json

#

Behavior Pack/functions/runner.mcfunction

#

To show a message you could use:

Your Commands Here

tellraw @a[tag=!joined,tag=runner] {“rawtext”:[{“text”:You Are A Runner}]}
tellraw @a[tag=!joined,tag=(new tag)] {“rawtext”:[{“text”:You Are A (new class)}]}

Mark as Joined

tag @a[tag=!joined] add joined

#

For random_tag.mcfunction
scoreboard objectives add rand dummy
scoreboard players random @a rand 1 3
tag @a[scores={rand=1}] add runner
tag @a[scores={rand=2}] add (other classes)

west pelican
#

How do I add specific enchantment books to a loot table??

#

I use "specific_enchants"

#

and it works,

#

but I'm trying to add ONLY level 3 blast_protection books

thick elm
#

you can check loot_tables/chests/ancient_city

vital ginkgo
#

is mob maze large blocks or tiny player or cmbination of both

rancid umbra
#

So I'm trying to have multiple texture layers to make the appearance for a custom entity, as it has villager components and behaviours the minecraft:skin_id and minecraft:variant and mark_variant queries are already being used for the base skin color and biome clothing, so i tried using an integer randomizer that i found on this server for the other parts of the entity (math.random_integer(0, 4)) but what it does is cycle through the textures while on game and appears as flickering (later on i figured that it cycled through the textures every tick), what i need is a function that gives a single integer once or a way to randomize what texture from the array is taken

my next idea is create another random variable on the entity creation like the minecraft:skin_id, is that possible?, any help would be appreciated and thanks for taking the time to read my issue.

proud mural
#

Does anyone know how to export structures on mobile? i guess they removed it in the newest versions

ashen portal
proud mural
#

i was able to do it last time before the update

ashen portal
proud mural
#

or probably use the Windows version of MCBE

ashen portal
#

True, but assumedly you don't have the means to switch devices

slender raptor
proud mural
slender raptor
#

Weird

cunning shard
#

anyone know how to iuse aimassist?

golden osprey
#

yes

full pawn
#

Hey guys can someone give me a hand??

{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.shift": {
      "states": {
        "default": {
          "transitions": [
            {
              "shift": "query.is_sneaking"
            }
          ],
          "on_entry": [
            "/tag @s remove shift"
            "/tag @s add no_shift"
          ],
          "on_exit": [
            "/tag @s add shift"
            "/tag @s remove no_shift"
          ]
        },
        "shift": {
          "transitions": [
            {
              "default": "!query.is_sneaking"
            }
          ]
        }
      }
    }
  }
}

animation_controllers/shift.json | parse error:

  • Line 14, Column 13
    Missing ',' or ']' in array declaration
  • Line 12, Column 11
    Missing '}' or object member name
  • Line 6, Column 9
    Missing '}' or object member name
  • Line 5, Column 7
    Missing '}' or object member name
  • Line 4, Column 5
    Missing '}' or object member name
  • Line 3, Column 3
    Missing '}' or object member name
rapid pike
#

Does anyone know why I can't get this to work?

    "format_version": "1.21.0",
    "minecraft:recipe_shaped": {
        "description": {
            "identifier": "vl:furnace"
        },
        "tags": [
            "crafting_table"
        ],
        "priority": -1,
        "pattern": [
            "###",
            "# #",
            "###"
        ],
        "key": {
            "#": {
                "tag": "minecraft:stone_crafting_materials"
            }
        },
        "unlock": [
            {
                "item": "minecraft:cobblestone"
            }
        ],
        "result": {
            "item": "minecraft:furnace",
         "count": 1
        }
    }
}```
#

I just want to make the furnace craftable with all stones, like the stonecutter.

neat flame
vital ginkgo
#

ok thats good to know'

dawn ice
#

With the new 26.0 update, do addon manifest version numbers need to change to reflect this in order to work? IE: if in the manifest it still says 1.21.30 or whatever, will it work?

thorny tiger
dawn ice
bold fjord
#

any idea what on god name is going on here
the hitbox is

      "minecraft:collision_box": {
        "height": 20,
        "width": 2.5
      },

from 6 block up the hit only register in creative mode

charred trout
#

Hi there... I'm looking for someone to help me to create a behavior pack... from 0 ... I mean : mine has a problem... so I think I have to do it again..

minor dock
meager kelp
#

Can someone help? I added the minecraft:particle_emitter component to one of my entities but Im getting an error in game that says that it is present in the input, but not the Schema. What does this mean? The entity I made is basically an armor stand, it uses the same render controller and everything

nimble pollen
#

Hello, is it possible to get XP from blocks in add-on by the behavior pack or how ?

#

also if it is possible how to make the redstone turn into lit and back to normal ,

{
"format_version": "1.21.0",
"minecraft:block": {
"description": {
"identifier": "pro:ore_redstone",
"menu_category": {
"category": "construction"
},
"states": {
"pro:lit": [false, true]
}
},

"components": {
  "minecraft:loot": "loot_tables/blocks/ores/redstone.json",

  "minecraft:destructible_by_mining": {
    "seconds_to_destroy": 3
  },

  "minecraft:light_emission": 0,

  "minecraft:material_instances": {
    "*": {
      "texture": "ore_redstone",
      "render_method": "alpha_test"
    }
  },

  "minecraft:geometry": "geometry.ore_redstone_block"
},

"permutations": [
  {
    "condition": "query.block_state('pro:lit') == true",
    "components": {
      "minecraft:light_emission": 9,
      "minecraft:material_instances": {
        "*": {
          "texture": "lit_ore_redstone",
          "render_method": "alpha_test"
        }
      }
    }
  }
]

}
}

full pawn
#

i can't understand the error, can someone help???

AI][error]-My World | actor_definitions | /storage/emulated/0/Android/data/com.mojang.minecraftpe/files/games/com.mojang/minecraftWorlds/WKAqaA==/behavior_packs/testy2 | entities/player.json | parse error:
*Column 2
Missing '}' or object member name

{
  "format_version": "1.21.130",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:player",
      "spawn_category": "creature",
      "is_spawnable": false,
      "is_summonable": false,
ashen portal
full pawn
#

i already fixed it also

#

in player.json in

        "minecraft:variant": {
          "value": 0
        },```
do i can use any number for the value?
dawn ice
#

Does this mean the mob is immortal?

ashen portal
dawn ice
ashen portal
dawn ice
#

Rn, the mob doesn’t take damage, and it belongs to creaking family. So im trying to figure out if this is intentional or not

granite comet
#

about stacking multiple addons , when u stack 2 addons with player.json wasnt it supposed to take the highest one in order ? or is there any other rules?

#

i have 2 addons and whatever order i put it keeps giving one of them more priority

full pawn
#

How can i make a projectile shooter with items in mc 1.21?

blazing river
#

Can I ask a question about Bridge v2 here?

#

When adding properties to entity.json, if they are of type float, an error occurs because 0.0 is automatically converted to 0 during compilation.

cold turtle
blazing river
#

Thank you for your question.

meager kelp
#

Anyone know where i can find the fishing rod item json? Ive searched everywhere and couldn't find it

rapid pike
#

Hi, how do I make my addon keep achievements enabled?

ashen portal
rapid pike
#

Although I didn't understand how to implement what I need

storm fox
#

what is this line supposed to say with the new version?
"format_version": "26.0.0",

raven spear
#

I'm trying to make a randomly generating dungeon using jigsaw blocks, I have a successful datapack for java, but it has the issue of being... not random, when doing /place in the same position or loaded in the same place, so I'm trying to port it to bedrock because it has a seed i can modify, i believe mostly everything in the json files should work, but I don't understand the formatting of the files,folders, or directories in order to get it to load correctly in bedrock

which of the channels/forums are best to ask about this stuff

edgy token
#

Does anyone know how I can move an item that an entity has, as happens with the fox entity that holds the item in its mouth?

stark heart
#

Is it possible to add a custom entity within a raid?

merry gulch
#

I see a lot of components and events to control behavior in raids, but my guess is that the mobs spawned in raids are not adjustable, however you might be able to hijack whatever spawns the raid and manually spawn in your own mob

nimble pollen
#

Hello, I’m working on an addon called '3D Ores', and I’ve almost finished it. However, I ran into an issue: my current script replaces vanilla ores with custom 3D blocks, which may cause performance issues or lag. I’m looking for a more efficient and professional alternative approach

storm fox
#

Hey, can anybody help please, i've been using ai to try help me fix this but like I have my mod, and it works at a mcpack, and it works if i import it manually, but it just doesn't wanna work in the developmental behaviour pack file

thorny tiger
#

You dont still have it in the normal behavior packs folder when its in development behavior packs, right?

merry gulch
#

No, it can just be in development

storm fox
graceful crane
#

Hi, I’m building a custom Bedrock entity ("brineflash:player") using Script API 2.6.0 beta on MCPE 1.26.
My "minecraft:equippable" component is defined with 6 slots, but "getComponent("minecraft:equippable")" still returns undefined in script.

Is there any known limitation for custom entities using equippable in beta API / mobile?

shy raptor
#

Hey, is there any way to detect when a player smelts something in a vanilla furnace or crafts an item in Bedrock Script API? I can’t find any event for this, am I missing something?​​​​​​​​​​​​​​​​

ashen portal
full pawn
#

is the @s[!scores= a thing?(lazy to open mc because im setting a system)

dusty verge
# ashen portal Use the `=!` operator

My understanding is that this only works with certain selectors like m=!0 or tag=!example, but it doesn't apply to score, hasitem, or has_property.

#

Although perhaps I haven't used it correctly, are you referring to something like @s[score=!{score=1}] or @s[score={score=!1}]

ashen portal
dusty verge
#

I've tried the second option, but I've never tried the first one, so I wasn't sure. But for these cases, I always use "execute if score" or "execute unless score".

raven spear
#

alr yall I'm making some QOL changes for standard superflat which will extend to skyblock and oneblock, etc

and I'm tryna make a recipe for charcoal that isn't too hard to make, but also doesn't just make charcoal completely free

once you get charcoal, you can continue to get more charcoal by crafting fireplaces and breaking them (1 charcoal turns into 2 at the cost of 3 logs and 3 sticks), this is the recipe I came up with

#

I couldn't think of anything else that would even remotely make sense to craft charcoal? even this is a stretch but basically it's cuz bonemeal contains phosphorus and calcium which are both somewhat flammable (steves strength would just ignite it immediately lol)

#

but if anyone has any other superflat accessible ideas, I'll hear them for sure

#

but my main question is, I'm also allowing the player to craft a furnace with bone blocks, which, once done, would kiiinda invalidate both the fireplace method and this recipe completely

#

so I'm wondering like... do I add this recipe or just leave it

#

I could also just do 3 bonemeal instead of boneblocks? but again that feels too ez and would honestly invalidate burning wood to make charcoal because the main source of everything in superflat and oneblock kinda stems from bonemeal and boneblocks

#

once you have a good enough farm there'd be literally no reason to burn wood for charcoal and I don't want that to be the case

#

anyone ideas or opinions about this dilemma welcome

edit:for now I decided to do it with a bone instead of a bone block, cuz it requires you to go kill a skelly or two along with still using a logs worth of stiks

full pawn
#

How can i state if the player is not holding a specific item in a animation controll

#

do i use like,!query.holding_item_id or

ashen portal
# full pawn do i use like,!query.holding_item_id or

You can use
query.is_item_name_any('slot.weapon.mainhand', 0, 'item:name')
Or
q.equipped_item_any_tag('slot.weapon.mainhand','unique_tag')
If you want to detect a specific item, then you can use the second one but it would need to be the only item that has that tag
Its generally simpler to go with the first

final mulch
#

Is it possible to make a custom compass, I know I can imitate the functionality but do I have to or is there a different way.

ashen portal
final mulch
#

ya that's what I thought

final mulch
#

Why does the PlayerSelector parameter just not work for non-opped player , no matter if it's a vanilla command or a custom command ;-;

winged fractal
#

How to make a crafting recipe for my custom items?

storm fox
#

anybody able to help me with this?

system.run(() => {
world.beforeEvents.playerSendMessage.subscribe(data => {
const player = data.sender;

    const rankTag   = player.getTags().find(tag => tag.startsWith("rank:"))?.substring(5) || baserank;
    const presTag   = player.getTags().find(tag => tag.startsWith("pres:"))?.substring(5) || presMin;
    const classTag  = player.getTags().find(tag => tag.startsWith("class"))?.substring(5) || classStart;
    const nickTag   = player.getTags().find(tag => tag.startsWith("nick:"))?.substring(5) || player.name;
    const color     = player.getTags().find(tag => tag.startsWith("ccolor:"))?.substring(7) || basecolor;
    const namecolor = player.getTags().find(tag => tag.startsWith("ncolor:"))?.substring(7) || "";

    const message = `§8[§r${rankTag}§8] §8[§r${classTag}§8] §8[§r${presTag}§8] §7>> ${namecolor}${nickTag}§r: ${color}${data.message}`;

    data.cancel = true; 

    world.sendMessage(message);
});

});

i keep getting the error in the image i attached, I was asking ai and looking to see what its been updated to but it js aint working

storm fox
#

i figured it out anyways i just had to swap from 2.6.0 to 2.7.0 -beta

modest marsh
dusty verge
leaden cargo
#

i am trying to apply more damage through custom enchants but i'm getting an error here, victim.applyDamage(bonusDamage, {
cause: event.damageSource.cause,
damagingEntity: attacker
}); spesifically applyDamage

cold turtle
leaden cargo
#

okay

woeful hill
#

Does anyone have a simple data pack that adds cocoa beans to the wandering trader table? Either that or something I can copy & paste into the .json file

steel seal
#

How do I fix this?

#

i changed the texture of the entity's textures using the original as a template. others entities are able to use this geometry, but for some reason this doesnt

steel seal
#

nvrm I fixed it

pulsar token
#

Do behavior packs not work in realms? I made one and it works fine on local worlds, but nothing happens in the realm I share with my friends. I’m not using any experimental features

modest marsh
pulsar token
modest marsh
pulsar token
modest marsh
#

You could also check the level.dat file with an nbt editor to see if there are any flags on
hasLockedBehaviorPack or any others that look like it may be preventing it from applying.

stable nexus
#

how do i prevent this from generating every timr i compile

violet frost
#

Guys can someone report this bug that i found to mojang #1497136870566658140 ? QwQ

minor grove
#

Is there a way to play swing animation from PlayerInteractWithBlock?

wheat light
#

Is there a way to get a complete new item that is exactly the same as the mace and behaves the same also with enchants that I can use as template

raven spear
#

probably just copy da mace item but change all the stuff related to it's name

woeful hill
#

Is there a way to either make a large addon file more light weight or make Minecraft handle large files better?

#

It could just be hardware limitations but I don’t wanna deal with that possibility lol

sterile fern
#

How would I make it so you could find a custom item in for example a nether fortress chest like is there a tutorial that could help me with this?

dusk anvil
#

Hey, I need some help setting up my manifest. I get this error

[Packs][error]- -> header -> version: expected an object
[Packs][error]- -> header -> version: invalid string

Here's my manifest

{
  "format_version": 3,
  "header": {
    "name": "Entity Dismounter",
    "description": "Because the entities KEEP getting in your boat/minecart",
    "uuid": "2d12bd1f-0be4-4cec-ab8a-4a9517d524ca",
    "version": [ 1, 0, 0 ],
    "min_engine_version": "1.26.10"
  },
  "modules": [
    {
      "description": "Entity Dismounter script",
      "language": "javascript",
      "type": "script",
      "uuid": "bce218cd-a59c-47c3-9f30-509b107d2e67",
      "version": [ 1, 0, 0 ],
      "entry": "scripts/main.js"
    }
  ],
  "metadata": {
    "authors": [
      "shizotoaster"
    ],
    "license": "MIT",
    "url": "https://github.com/shizotoaster/entity_dismounter"
  },
  "settings": [
    {
      "type": "label",
      "text": "Allow players to be dismounted by other players"
    },
    {
      "type": "toggle",
      "text": "Allow Player Dismounting",
      "name": "entity_dismounter:allow_player_dismounting",
      "default": false
    }
  ],
  "dependencies": [
    {
      "module_name": "@minecraft/server",
      "version": "2.6.0"
    }
  ]
}
#

Setting it to v2 works just fine. But I need v3 to use pack settings

mossy star
#

Hello guys , how can i optimize my add-on BP, can someone list all of the valide optz

merry vale
#

What kind of Optimization?

If you want file size optimization, you can try reducing JSON or Scripts lines (though the size is niglible).

If you want performance, JSON often run more efficiently, while ScriptAPI is a matter of how your code work. Generally, you can try caching or reduce API calls like avoiding heavy logic inside system.runInterval, and relying more on event-driven listeners.

slow crystal
raven spear
#

anybody got an idea why dying to a mob tends to crash minecraft?

#

in my modded world?

#

like i haven't touched code for zombies at all but somehow it just now like

#

dying to a zombie crashes da game

#

and i dont mean just the world

#

i have to manually close minecraft cuz it stops responding

stable nexus
slow crystal
#

mh so you dont want it to compile at all?

#

what are you using? regolith? or with what are you compiling it?

stable nexus
slow crystal
#

ahhhhh

stable nexus
#

i got confused since in the guide, it didnt contain those lines when main.ts is compiled

slow crystal
slow crystal
#

hopefully causes no issues

stable nexus
#

using the output file ingame causes content log erros, ill screenshot it holdon

slow crystal
#

mh did you create the tsconfig.json?

stable nexus
#

yes

#

this is my tsconfig as of rn

{
    "compilerOptions": {
        "module": "node16",
        "target": "ES2020",
        "moduleResolution": "node16",
        "allowSyntheticDefaultImports": true,
        "esModuleInterop": true,
        "rootDir": "./src",
        "outDir": "./scripts"
    },
    "exclude": ["node_modules"],
    "include": ["src"]
}```
slow crystal
#

I guess you're importing something from there?

stable nexus
#

sure

slow crystal
#

ah

slow crystal
stable nexus
#

it now says

slow crystal
stable nexus
#

ill fiddle with the config to see what works otherwise ill just manually edit the compiled file everytime xd, thanks anyways!

slow crystal
raven spear
#

i have no idea why this would happen

#

it's not specific to these mobs, and I died like 7 times before this

merry vale
#

Try reinstalling the game?

raven spear
# merry vale Try reinstalling the game?

i think it has to do with the fact that minecraft is windowed in this clip (not full screen) cuz i went hours and hours last night not crashing while i was in full screen, and when i am in windowed mode it usually happens within 10 minutes this may not be related to the mod at all

oblique cargo
#

are there any molang that detects tags from /tag ?

oblique cargo
final mulch
#

ok if you pop a totem at full health , are you supossed to stay a full health or are you supposed to be at oe heart

final mulch
#

Alright thanks!

woeful hill
#

Dumb question possibly but I’m new to Addon making; if you’re making a custom block for an Addon does the texture absolutely HAVE to be 16x16?

shy hazel
#

does anyone know to fix this?

zealous kindle
#

is there any way to fix this?
this is what im using

#

i dont want to replace grass blocks, stone or dirt with air

mellow owl
#

🤨

#

Btw that's fixable on model bones

zealous kindle
shy hazel
#

geometry*

mellow owl
#

in models folder

woeful hill
#

Am I doing something wrong? Or is it a problem with the add-on maker I’m using?

merry vale
#

add-on maker? 🤨

woeful hill
#

A mobile app I have to use with airplane mode on otherwise I get harassed with ads— (I can’t make add-ons from my computer because my computer sucks so my iPad is the only option)

ashen portal
#

That sounds a lot like MAM (minecraft addon maker)

woeful hill
#

It’s got a lot more options than other add-on maker apps I’ve tried, only downside is I have to go into the json file myself if I wanna make the recipe a stonecutter one

clear swallow
#

So it must be a player

#

I guess you'll need to edit the existing player's model

ashen portal
#

Please do mention if the problem persists

woeful hill
#

Also; any recommendations for a good add-on making app or something I could use, doing it on mobile is my only option because my laptop just, kinda sucks

ashen portal
woeful hill
ashen portal
#

Bridge is a web app that you can use to make addons, skin packs and world templates although I've never seen anyone use anything it to make a world template before
You download it through the Internet, like blockbench