#Items General

1 messages · Page 4 of 1

late sentinel
#

Also, the minecraft:use_duration component, if that's set to anything between 0 and 1 it makes the item eat forever and 0 returns an error..

#

Changing the modifier to 0 didn't do anything to the item either

wraith violet
late sentinel
#
{
  "format_version": "1.20.73",

  "minecraft:item": {
    "description": {
      "identifier": "sprx:custom_item",
      "category": "items"
    },

    "components": {
      "minecraft:icon": {
        "texture": "custom_item"
      },

      "minecraft:food": {
        "can_always_eat": true
      },

      "minecraft:use_animation": "eat",

      "minecraft:use_modifiers": {
        "use_duration": 0,
        "movement_modifier": 1
      },

      "minecraft:cooldown": {
        "category": "items",
        "duration": 1
      },

      "minecraft:can_destroy_in_creative": false,
      "minecraft:hand_equipped": true,
      "minecraft:allow_off_hand": false,
      "minecraft:max_stack_size": 4
    }
  }
}```This is what I'm using now...
wraith violet
#

There is no more use_duration

late sentinel
#

The "minecraft:food" component requires "minecraft:use_duration > use_duration" to be set with a non-zero value.

wraith violet
#

Then do 0.1?

late sentinel
#

If I don't have use_duration it tells me to use that component and also anything below 1.0 makes it be eaten forever.. it never gets eaten just keeps trying to eat the item

wraith violet
late sentinel
#

Yeah, forgot to change that back since I had to make a few changes.. my bad

#

components -> minecraft:icon -> texture: this member was found in the input, but is not present in the Schema
description -> category: this member was found in the input, but is not present in the Schema

I'm getting this now about these things.. I'm currently making these changes on a BDSX server to make seeing errors easier but this is due to the items json file..
What changed with the icon and the category that would be giving me these errors?

#

The cooldown and use duration is working now though.. thank you! 🙂

wraith violet
#

As for the category, let me check my notes

late sentinel
#

Wdym by a string? You mean it got changed to just "minecraft:icon": "custom_item"?

wraith violet
#

Ah yes, category was renamed to menu_category which is an object

"menu_category":{
  "category": string,
  "group": string,
  "is_hidden_in_commands": boolean
}
wraith violet
late sentinel
#

It works perfectly now, I guess the effects I'll have to do via the scripting side since I have to use custom attributes from bdsx so thank you for the help 🥳

uneven spruce
#

Is there a way to key/value tag items? I've redone the shield mechanics, but I'm wanting each individual shield to have a tag/etc for how much damage reduction they provide.. for example

offhand.getTag("DamageReduction") => 4
uneven spruce
#

Mind if I DM you about that? I have a script mostly done, just trying to simplify it down so I don't need to repeat function calls/code for each shield type. I have each shield tagged with "BRPGShield" but I'm looking for a way to also tag "DamageReduction": 4 like a dictionary

wraith violet
uneven spruce
#

I suppose so. I mainly posted here because I assumed that there was a JSON way to tag items like that but maybe not. Thanks 🙂

stoic sparrow
#

how do i fix item not showing icon?

young sluice
#

hello

#

any idea or anyone that got vanilla diamond armor values..?

#

or basically default jsons for them.

wraith violet
wraith violet
young sluice
wraith violet
#

So what values do you need?

young sluice
#

they will be different textures ofcourse, just the same as diamond in terms of values etc..

wraith violet
#

If you need durability, check the wiki

young sluice
#

durability is easy to find on armor

#

basically things like protection, and those things.

wraith violet
# young sluice basically things like protection, and those things.

https://minecraft.wiki/w/Armor#Defense_points You can find how many chestplates each armour uses

Minecraft Wiki

Armor is a category of items that provide players and certain mobs with varying levels of protection from common damage types, and appear graphically on the wearer (excluding non-humanoid wearers). These items include several different tiers of helmets, chestplates, leggings, and boots, which can each be placed in designated armor slots of a pla...

young sluice
#

thanks

late sentinel
#

Any reason why my custom block icon is smaller than the vanilla blocks?

#

They're both the same texture size and the block itself is the same size also.. so it doesn't make much sense to me

wraith violet
late sentinel
wraith violet
#

Yeah it's been like that for 4 years 😅 The things you don't notice in this game is...interesting

late sentinel
#

But then people notice the torch texture being adjusted by 1 pixel the second an update drops lmao

spice sierra
#

any idea on how to make a chargable item that plays either the bow chargue animation or no animatio at all when charged intead of the food eating one'

#

?

wintry hare
#

Hello, there is a way to get an item based on the principle of feeding the mob some item and eventually, with some probability, get the item (so that it drops it)?

dry pilot
#

Also, this is #1067869136606220288 😅

#

You can tell the difference for sure. Only the pillar here is using a geo

late sentinel
spice sierra
#
{
    "format_version": "1.20.60",
    "minecraft:item": {
        "description": {
            "identifier": "mh:hakkero"
        },
        "components": {
            "minecraft:icon": {
                "texture": "hakkero"
            },
            "minecraft:display_name": {
                "value": "Mini Hakkero"
            },
            "minecraft:food": {
                "can_always_eat": true
            },
            "minecraft:max_stack_size": 1,
            "minecraft:use_modifiers": {
                "use_duration": 9999,
                "movement_modifier": 0.25
            },
            "minecraft:block_placer": {
                "block": "mh:hakkero_block"
            }
        }
    }
}```

I´m trying to put an icon to my item but it doesnt works, any idea why?
#
{
    "resource_pack_name": "bridgeRP",
    "texture_name": "atlas.items",
    "texture_data": {
        "hakkero": {
            "textures": [
                "textures/items/hakkero"
            ]
        }
    }
}```
wraith violet
stoic sparrow
#

can you make custom trim in bedrock?

wraith violet
stoic sparrow
#

oh :<

upper badge
#

how would i make a tool item (an item with hand_equipped enabled) not have a large texture? I know the solution with normal items but it overwrites the first person swing animation of hand_equipped

stoic sparrow
fair smelt
#

HIDDEN ITEMS INACCESSIBLE IN COMMANDS (MCPE-177866)

Currently, setting the category to "none" in a custom item (not block) prevents the item from being used in commands, overriding the "is_hidden_in_commands" option. This issue doesn't affect blocks.

Is this still not fixed?

torpid steppe
#

hi there, did someone use the custom components for items already? I m trying to add it but cannot load the item:
"minecraft:custom_components": ["content:turn_to_air"],
got the error ```
[2024-04-24 15:30:17:600 ERROR] [Item] Error Parsing Item 'awp:rune_fireball':

[2024-04-24 15:30:17:600 ERROR] [Item] Failed to parse field ': Invalid legacy components data'```

wraith violet
torpid steppe
#

yes, yes, I think no... so I need to disable holiday ? would it disable other stuff that I may be using?

wraith violet
torpid steppe
#

what is under holiday creators today? is there a place I can check?

wraith violet
#

The best way to check is to play your addon in a world withiut the toggle

torpid steppe
#

yes mostly block events is erroring... I was planning to migrate it too this week, I was just not aware that I needed to disable the HCF to make the custom components work =Z
thx!

upper badge
stoic sparrow
upper badge
nova juniper
#
            "bonked": {
                "action": {
                    "command": [
                        "playsound weapons.bonk @a ~~~ 4 1 1"
                    ]
                }
            }
        }```
#

how can i replace the run_command trigger

#

format version : 1.20.50

solid aurora
nova juniper
gray tiger
#

What you’re using events for? They aren’t a thing anymore in 1.20.50 format version for items

#

Tho the replacement for run command is queue_command

solid aurora
nova juniper
solid aurora
gray tiger
solid aurora
nova juniper
gray tiger
#

minecraft:weapon doesn’t exist anymore

solid aurora
gray tiger
#

Unless ur using HCF

nova juniper
gray tiger
#

Yeah, in that case you need to use scripts

#

Luckily the events you need are also stable

nova juniper
gray tiger
#

I mean, any component which had event in it is gone from new format version

#

Events as a whole is not a thing anymore for items

nova juniper
#

Oh

gray tiger
#

What ur trying to do?

nova juniper
#

I have to learn scripting then

nova juniper
gray tiger
nova juniper
#

Oh

#

Ok

#

Thank you

sharp anvil
#

is there a way to get an "unwearable" item usable in a smithing table?

sharp anvil
solid aurora
#

How do I make that whenever I right the item it swing. It will swing no Matter what happens.

solid aurora
sharp anvil
stoic sparrow
#

so it's possible to make a tool that plucks feathers from chickens like how you take armadillo scute?

sharp anvil
stoic sparrow
#

add interactable?

solid aurora
dry pilot
#

Yes, scripting.

young sluice
#

hey really quick question

#

for item components, do I have to include objects in them bc apparently it's an issue in the code but not ingame. Example:

/* without object */            "minecraft:allow_off_hand": true,

/* with object */            "minecraft:render_offsets": {"value": "tools"},
wraith violet
young sluice
nova juniper
#

is the effects component for minecraft:food removed or something?

#
    "format_version": "1.20.50",
    "minecraft:item": {
        "description": {
            "identifier": "rk:crystalized_blaze_powder",
            "menu_category": {
                "category": "equipment"
            }
        },
        "components": {
            "minecraft:max_stack_size": 64,
            "minecraft:icon": {
                "texture": "crystalized_blaze_powder"
            },
            "minecraft:glint": true,
            "minecraft:food": {
                "nutrition": 4,
                "saturation_modifier": 0.6,
                "can_always_eat": true,
                "effects": [
                  {
                    "name": "strength",
                    "duration": 300,
                    "amplifier": 1
                  },
                  {
                    "name": "nausea", 
                    "duration": 5,
                    "amplifier": 3
                  },
                  {
                    "name": "slowness",
                    "duration": 5,
                    "amplifier": 3
                  }
                ]
            },
            "minecraft:use_modifiers": {
                "movement_modifier": 0.32,
                "use_duration": 1.5
            },
            "minecraft:use_animation": "eat"
        }
    }
} ``` the item is not giving any effects
wraith violet
nova juniper
#

oh ok

zealous holly
#
  "format_version": "1.8.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "cloaks:cape0.attachable",
      "materials": {
        "default": "entity_alphatest",
        "enchanted": "armor_enchanted"
      },
      "textures": {
        "default": "textures/entity/cape0",
        "enchanted": "textures/misc/enchanted_item_glint"
      },
      "geometry": {
        "default": "geometry.cape.0"
      },
      "scripts": {
        "animate": [
          "movement"
        ]
      },
      "animations": {
        "movement": "animation.0.cape"
      },
      "render_controllers": [
        "controller.render.armor"
      ]
    }
  }
}```
#

@wraith violet

zealous holly
zealous holly
zealous holly
# solid aurora the animation don't work?
    "format_version": "1.8.0",
    "animations": {
        "animation.0.cape": {
            "loop": true,
            "bones": {
                "cape": {
                    "rotation": ["math.clamp(math.lerp(0, -110, query.cape_flap_amount) - (13 * query.modified_move_speed), -70, 0)", "query.modified_move_speed * math.pow(math.sin(query.body_y_rotation - query.head_y_rotation(0)), 3) * 55", 0],
                    "position": [0, 0, "query.get_root_locator_offset('armor_offset.default_neck', 1)"]
                },
                "part1": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * (math.cos(query.modified_distance_moved * 18) * 16)", 0, "0"]
                },
                "part2": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(22 - query.modified_distance_moved * 18) * 13", 0, 0],
                    "scale": 1
                },
                "part3": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(50 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part4": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(76 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part5": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(100 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part6": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(122 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part7": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(142 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part8": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(160 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part9": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(176 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part10": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(190 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part11": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(202 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part12": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(212 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part13": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(220 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part14": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(226 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part15": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(230 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "part16": {
                    "rotation": ["math.clamp(query.cape_flap_amount, 0, 0.5) * math.cos(232 - query.modified_distance_moved * 18) * 13", 0, 0]
                },
                "shoulders": {
                    "rotation": [0, "query.modified_move_speed * math.pow(math.sin(query.body_y_rotation - query.head_y_rotation(0)), 3) * 60", 0]
                }
            }
        }
    }
}```
solid aurora
#

wait attachable right?

zealous holly
#

Trying to make an attachable

solid aurora
zealous holly
solid aurora
zealous holly
solid aurora
zealous holly
#

I'm trying to turn it into an attachable so you can wear csped like armor.

zealous holly
harsh harbor
#

.

solid aurora
solid aurora
zealous holly
harsh harbor
solid aurora
zealous holly
sharp anvil
#

how do I put NBT data from a entity to a item and vise versa?

wraith violet
reef falcon
#

was "minecraft:is_sword" ever a thing?

reef falcon
#

weird, did it ever do anything?

#

updating all my tools from 1.16.100 to 1.20.80 and everything is about to be nuked

solid aurora
#

That's not how you put tags afaik

reef falcon
#

That was never put in as a tag

#

but Minecraft never said it was an error

#

which is why I was confused, did those tags ever drive anything for the items functionality?

sharp anvil
#

is there a way to make custom armor that works like wolf armor? (the entity doesn't take damage until the piece of armor is broken)

fiery cradle
#

You'd probably need to add a damage_sensor component to your entity that prevents damage if they're wearing the armor. Then, you'd need a script to decrease the durability of it if they're hit

gray tiger
#

Armors do actually take damage by default (if you have durability component in your item with damage chance, for some reason it doesn’t work without damage chance)

#

Assuming you are talking about player entity, that’s what I tested it on

wraith violet
gray tiger
wraith violet
gray tiger
#

before I had to do this:

"minecraft:durability": {
        "max_durability": 2000,
        "damage_chance": {
          "min": 60,
          "max": 100
        }
      }

for the component to actually work

#

Just this wouldn't work

"minecraft:durability": {
  "max_durability": 2000
}
dire spade
#

do attachables render when placed in the offhand when in first person? or is it just somewhere off screen? everything acts as it should in third person

solid aurora
#

guys

#

how do i put custom components on items

#

im on 1.20.80

solid aurora
#

guys anyone know why this shows the error?


[Item][error]- Error Parsing Item 'myname:custom_item':

[Item][error]- Failed to parse field ':  Invalid legacy components data'
this is my item.```

```{
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "myname:custom_item",
            "menu_category": {
                "category": "equipment"
            }
        },
        "components": {
            "minecraft:max_stack_size": 1,
            "minecraft:icon": {
                "textures": {
                    "default": "stick"
                }
            },
            "minecraft:custom_components": [
                "custom:item"
            ]
        }
    }
}```
wraith violet
sharp anvil
#

can I make an item that can open a UI that can be used to "trade" items?

plain elbow
#

For some reason in creative mode my axe can hit the mob at a greater distance but in survival the hit range is shorter, how do I make it have the same range in survival as in creative?

wraith violet
plain elbow
wraith violet
#

No

plain elbow
neon stratus
#

how do I make the hands render in first person? I'm making a gun add-on lol.

spiral solar
#

Guys

#

Can i make an item has different stats ?

spiral solar
#

I mean as visual durability

#

The after item reaches specified durability it changes its texture !!

spiral solar
#

Sad

#

So i must make new tools

gray tiger
#

you will have to check if the item has reached maximum durability and then replace it to any other item

spiral solar
#

Then write a script

spiral solar
#

So how can i edit vanilla items

wraith violet
#

You cannot

spiral solar
#

I hate mc bedrock

edgy creek
odd kiln
#

Is there any way I can make an item that has durability, but it doesn't wear out in any way?

wraith violet
torn marlin
odd kiln
#

thanks

plain elbow
#

¿how can in make that the reload system can detect the ammo in all 39 slots of the inventory?

plain elbow
solid aurora
plain elbow
solid aurora
plain elbow
#

like this?

solid aurora
#

Formatted like: t.val = 0; t.i = 0; loop(27, {t.val = q.is_item_name_any('slot.inventory', t.i, 'namespace:item_name'); t.val ? {return t.val;}; t.i = t.i+1;});

Replace namespace:item_name with any item you wish to check for. This simply loops through all 27 slots of the inventory and returns 1.0 if it has found any slot that has the specified item provided. Note that the hotbar is in a different slot from the main inventory slot so you will have to check that separately.```
solid aurora
plain elbow
#

it worked but how can i make that it works with the && query.mark_variant != 7

solid aurora
#

#announcements message

solid aurora
plain elbow
plain elbow
wraith violet
#

Still visible for me. Im on preview

dry pilot
#

Try reloading Minecraft, I have experienced that and doing this fixes it

dire spade
#

how could I play a fire animation for an attachable when I use the attack or use button?

worldly bough
#

Does anyone know if the recipe unlock component still works? I’ve only found info about it on the bedrock wiki and it isn’t working for me

wraith violet
oak hearth
gray tiger
#

or anything experimental

oak hearth
#

Im so lost trying to find a way because i first had my items with version 1.16.100 and they needed HCF then i put the version 1.20 and now the game was telling me most of the components i used needed of a earlier version

gray tiger
#

Same goes for 3D items too, though that never needed HCF in first place lol, it's just attachables

oak hearth
#

and how do i create armors if wearable component isnt in a version that doesnt need HCF

gray tiger
oak hearth
#

with format version 1.16.100 i can use wearable component

gray tiger
oak hearth
gray tiger
#

yes

oak hearth
#

so why is this asking me for HCF

#

hold on ill show

gray tiger
#

Can you show your item code?

oak hearth
#

He just didnt know what version to use to make it work lol

#

Tho theres still a problem

#

for some reason the item texture doesnt show anymore when it was being showed when he had the experiment on

#

is item_texture.json not valid in stable?

gray tiger
#
"minecraft:icon": {
  "textures": {
    "default": "your_texture"
  }
}
oak hearth
#
"minecraft:icon": {
      "texture": "hourglass_studios:diamondite_boots"
},
#

he has it like this

wraith violet
#

You can also jist do "minecraft:icon": "icon"

oak hearth
#

Alright! thank u so much guys @gray tiger @wraith violet

#

worked fine 😁

worldly bough
shadow cedar
#

??

gray tiger
shadow cedar
solid aurora
shadow cedar
#

whats the alternative now

solid aurora
shadow cedar
#

o nah thats a lotta work

#

why they do that

solid aurora
onyx elm
#

how to make a item shoot projectile constantly, while whenever holding the item? I used shooter component, but i have to release the item, everytime to shoot projectile

#

@gray tiger can u help

gray tiger
split pumice
#

Is it possible to include Toughness stat on custom armor?

Or apply armor to an entity without an item? On the wiki, Zombie has a base 2 points of armor, but it's nowhere in the zombie.json behavior file.

worldly bough
#

anyone know why I can’t make my format version higher than 1.19.50 for a recipe file? I’m trynna make it 1.20 or higher so I can use the unlock component but it keeps giving me an error saying that it’s not allowed

wraith violet
worldly bough
#

the editor

#

at first I tried ignoring it, but it doesn’t seem to be working in game either

wraith violet
# worldly bough the editor

You can usually ignore editor warnings since yiur extension might be outdated. I recommend looking at the vanilla files for an example

kindred pollen
#

How do I check if an item in is a certain slot? Like /effect @a[hasitem...

wraith violet
kindred pollen
#

I want to give a player an effect if they have an item in the boots slot

wraith violet
kindred pollen
#

Yep I'm trying to use tick.json

#

Just need to figure out how to structure the command

#

Maybe this will work effect @a[hasitem={item=pro:cloud_boots,location=slot.armor.boots}] slow_falling 1 5 true

gray tiger
balmy wave
#

how to make a food item not have a movement_modifier. for some reason the code I wrote wont change it.

plucky thicket
#

Hey... I'm trying to debug updates to a food item that has effects, since the update which deprecates them.

I have tried reverting the json format_version to 1.10 to match the vanilla behaviour packs, and using the effect component, which works for the effect, but now breaks the display_name and icon components.

I have outlined the code here https://discord.com/channels/523663022053392405/1241494900911116479

If anyone is able to help me understand the changes I need to make to my code to make the display name and icon work with 1.10, any help would be greatly appreciated

median jacinth
#

Is there a way to add a cooldown on an item?

#

Like, say If a sword can do sweeping edge, but I want it to have a cooldown before doing it again

#

What should I add? If possible

kindred gorge
#

Although im looking on how to have vanilla wolf armor on my modded wolf

sharp anvil
# kindred gorge Did u ever figure this out? I saw the people below you couldn't agree on the exa...

yes this is the working code "minecraft:damage_sensor": {
"triggers": [
{
"cause": "all",
"on_damage": {
"filters": [
{
"any_of": [
{ "test": "has_equipment", "subject": "self", "domain":"head", "operator": "==", "value": "pvz:traffic_cone" },
{ "test": "has_equipment", "subject": "self", "domain":"head", "operator": "==", "value": "pvz:bucket_helmet" }
]
}
],
"target": "self"
},
"damage_modifier": -100
}
]
},

kindred gorge
sharp anvil
kindred gorge
#

Thanks

dire spade
#

how do people play a firing animation for guns and stuff? im having a hard time figuring out how to activate an animation for an attachable when I use the attack or use button. or is there a roundabout way people do it?

dusk crest
#

Why does minecraft:armor not work in version 1.20.30 and above

gray tiger
#

protection is now merged with the wearable component, it’s a property in it

dusk crest
#

But why?

gray tiger
nocturne cargo
#

and you do this in the behavior pack

crude atlas
#

anyone know why I'm getting this error?

fervent maple
crude atlas
kindred gorge
sharp anvil
kindred gorge
sharp anvil
dusk crest
#

Why does "minecraft:on_use" not work in format version 1.20.30 above

wraith violet
plucky thicket
#

unfortunately, nobody's actually figured it out enough to release an example for us to follow

dusk crest
#

Yeah

plucky thicket
#

I tell a lie... I just found a potion mod on curseforge (of all places) that seems to work

tropic nimbus
#

how do i make item reload

wraith violet
wraith violet
#

It has a food effect custom components

plucky thicket
#

I'm sorry... I'm not much of a programmer. There's so much information there, that it's not a helpful resource at my level of scripting knowledge.

wraith violet
plucky thicket
#

so what do I include in my mod... just the scripts folder and the script module in the manifest?

wraith violet
plucky thicket
#

oh!

#

Am I right in noticing that the on_consume API is only applied in the 1.21 pre-release? so can't be used on 1.20.80?

#

the min ver on the manifest for that release is set to 1.21.0

plucky thicket
#

No worries. It’s not far off ( hopefully)

plucky thicket
#

I appreciate the extra effort helping me to understand the solution you were offering, thank you! 🙂

prime granite
#

How to add Lore to an item?

wraith violet
prime granite
#

@wraith violet thx

mint crane
#

Lore?

solid aurora
mint crane
#

I just wondered what he meant by lore

#

I'm very new to scripting and stuff, just figured out how to do left click and attack detection like yesterday

solid aurora
mint crane
#

Oh text description

#

Nice

tropic nimbus
#

How to scale 2d items in bedrock

wraith violet
daring garnetBOT
dusk monolith
#

Either by only loading the dropped item, or it being inside a container

solid aurora
#

Faster and easier.

#

And there's scripting Soo why bother lol

dusk monolith
#

Personally I just like to do NBT-edited items by using entity-only structures

#

How I do it for crafting is checking if the user has the crafted item, clearing the crafted item, and spawning the edited item structure on them

solid aurora
dusk monolith
#

Kinda less efficient but simple

wraith violet
#

I think what they wanted was immediately upin crafting. On the output slot if you hover over it you can see the lore

shadow cedar
#

Why isn't this item working?
It should shoot an arrow, but I want to do it without using Holiday Creator resources.

{
"format_version": "1.20.50",
"minecraft:item": {
"description": {
"identifier": "hams:staff_arrow",
"menu_category": {
"category": "items"
}
},
"components": {
"minecraft:use_modifiers": {
"use_duration": 60,
"movement_modifier": 0.75
},
"minecraft:shooter": {
"scale_power_by_draw_duration": true,
"max_draw_duration": 100
},
"minecraft:projectile": {
"minimum_critical_power": 80,
"projectile_entity": "minecraft:arrow"
},
"minecraft:use_animation": "bow",
"minecraft:max_stack_size": 1
},
"minecraft:icon": {
"texture": "bow"
}
}
}

wraith violet
shadow cedar
gray tiger
wraith violet
shadow cedar
wraith violet
shadow cedar
wraith violet
shadow cedar
wraith violet
shadow cedar
shadow cedar
# wraith violet So you need the `shooter` component only, get rid of the projectile component. Y...

"For some reason, it didn't work. The bow animation doesn't appear at all."
{
"format_version":"1.20.50",
"minecraft:item":{
"description":{
"identifier":"hams:spell_one",
"menu_category":{
"category":"items"
}
},
"components":{
"minecraft:enchantable": {
"value": 10,
"slot": "crossbow"
},
"minecraft:use_modifiers":{
"use_duration":24,
"movement_modifier":0.75
},
"minecraft:shooter":{
"ammunition":[
{
"item":"minecraft:arrow",
"use_offhand":true,
"search_inventory":true,
"use_in_creative":true
}
],
"max_draw_duration":20,
"scale_power_by_draw_duration":true,
"charge_on_draw":true
},
"minecraft:use_animation":"bow",
"minecraft:max_stack_size":1,
"minecraft:icon":{
"texture":"bow"
}
}
}
}

wraith violet
shadow cedar
wraith violet
#

Any content logs?

shadow cedar
wraith violet
shadow cedar
# wraith violet I would change the format version to 1.20.80

"After updating the item version, two errors appeared in the log."

[Item][warning]-hams:spell_one -> components -> minecraft:icon -> texture: this member was found in the input, but is not present in the Schema

[Item][warning]-The "minecraft:shooter" component requires "minecraft:use_duration > use_duration" to be set with a non-zero value.

wraith violet
shadow cedar
wraith violet
shadow cedar
# wraith violet https://wiki.bedrock.dev/items/item-components.html#use-modifiers it should be r...

I had a small breakthrough: before, the item didn't appear nor did the icon. Now, after some code changes, both errors have disappeared from the log. However, it still fails to fire the arrow. So, I believe one of these codes is causing this to happen.

{
"format_version":"1.20.30",
"minecraft:item":{
"description":{
"identifier":"hams:spell_one",
"menu_category":{
"category":"items"
}
},
"components":{
"minecraft:enchantable":{
"value":10,
"slot":"crossbow"
},
"minecraft:use_duration":24,
"minecraft:max_stack_size":1,
"minecraft:icon":{
"texture":"arrow"
},
"minecraft:shooter":{
"ammunition":[
{
"item":"minecraft:arrow",
"use_offhand":true,
"search_inventory":true,
"use_in_creative":true
}
],
"max_draw_duration":20,
"scale_power_by_draw_duration":true,
"charge_on_draw":true
}
}
}
}

wraith violet
shadow cedar
# wraith violet Oh I see now, your `max_draw_duration` is smaller than your `minecraft:use_durat...

" This doesn't interfere with the item's firing; however, I noticed a few things after setting 'true' in the 'charge_on_draw' configuration: the item stops firing arrows, and after setting it to 'false', the item resumes firing arrows. I also observed that the shot strength is quite weak compared to the official bow. So, I believe there might be some missing information on the website, such as 'launch_power_scale', or do you think 'minecraft:projectile' determines the speed?"

shadow cedar
# wraith violet

"The item is almost perfect. I managed to fix all the errors; however, the only issue is that the arrows are much weaker compared to the original bow, with a range of only about 20 blocks."

BETA ITEM
{
"format_version":"1.20.30",
"minecraft:item":{
"description":{
"identifier":"hams:spell_one",
"menu_category":{
"category":"items"
}
},
"components":{
"minecraft:enchantable":{
"value":10,
"slot":"crossbow"
},
"minecraft:use_duration":10,
"minecraft:max_stack_size":1,
"minecraft:icon":{
"texture":"arrow"
},
"minecraft:shooter":{
"ammunition":[
{
"item":"minecraft:arrow",
"use_offhand":true,
"search_inventory":true,
"use_in_creative":true
}
],
"max_draw_duration":10,
"scale_power_by_draw_duration":true,
"charge_on_draw":false
}
}
}
}

wraith violet
shadow cedar
shadow cedar
wraith violet
onyx elm
gray tiger
wraith violet
nova juniper
#
  "format_version": "1.8.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "minecraft:diamond_chestplate",
      "materials": {
        "default": "armor",
        "enchanted": "armor_enchanted"
      },
      "textures": {
        "default": "textures/models/armor/diamond_1",
        "enchanted": "textures/misc/enchanted_actor_glint",
        "ai": "textures/armor/ai"
      },
      "geometry": {
        "default": "geometry.humanoid.armor.chestplate"
      },
      "scripts": {
        "parent_setup": "variable.chest_layer_visible = 0.0;",
        "pre_animation": [
          "variable.ai = (q.is_item_name_any('slot.weapon.offhand', 0, 'minecraft:arrow'));"
        ]
      },
      "render_controllers": [
        { "controller.render.armor": "!variable.ai"  },
        {  "controller.render.ai": "variable.ai"   }
      ]
    }
  }
}
``` can someone tell me why this attachable file is not working
final forum
#

Is there a list of values for the "minecraft:use_animation" component?

wraith violet
heady bobcat
#

yo, how can i use "minecraft:use_animation" to play a swing animation?

heady bobcat
heady bobcat
#

i should use animation.json and make it works for FP and TP and make it playable using js

#

ig

#

hmmm

#

i better try

gray tiger
#

yea, If you want to have swing animation manually, ur only option is to just play an animation of that

heady bobcat
#

hmmm

#

i can make an attachable for my custom item

#

and make it has animation on FP and TP, hmmm lemme think about it

#

like this ig

{
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "exe:obsidian_hoe",
            "materials": {
                "default": "entity_emissive_alpha",
                "enchanted": "armor_leather_enchanted"
            },
            "textures": {
                "default": "textures/,,,",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "animations": {
                "wield_first_person": "animation.angel_sword.first_person"
            },
            "scripts": {
                "animate": [
                    {
                        "wield_first_person": "c.is_first_person"
                    }
                ]
            },
            "render_controllers": [
                "controller.render.item_default"
            ]
        }
    }
}
heady bobcat
#

dose "use_animation" in JSON will work with attackable?

#

uh

#

my brain is lagging fr

glad torrent
#

Is it possible to make animated items?

#

When you hold it in your hand the texture is animated

solid aurora
#

only in hand. you could use attachables

glad torrent
#

So how can I do that?

tepid acorn
#

do someone know how to add cooldowns to items used?

wraith violet
tepid acorn
tepid acorn
wraith violet
tepid acorn
#
{
    "format_version": "1.20.10",
    "minecraft:item": {
        "description": {
            "identifier": "btm:ball_wool"
        },
        "components": {
            "minecraft:creative_category": {
                "category": "nature"
            },
            "minecraft:display_name": {
                "value": "Ball of Wool"
            },
            "minecraft:hand_equipped": false,
            "minecraft:stacked_by_data": true,
            "minecraft:icon": {
                "texture": "btm_tangled_wool"
            },
            "minecraft:foil": false,
            
            "minecraft:max_stack_size": 1,
            "minecraft:durability": {
                "max_durability": 48
            },
            "minecraft:use_animation": "eat",
            "minecraft:use_duration": 2,
            "minecraft:food": {
                "can_always_eat": true
            }
        },
        "events": {
        }
    }
}
wraith violet
#

Use the latest format vereion

tepid acorn
#
{
    "format_version": "1.20.60",
    "minecraft:item": {
        "description": {
            "identifier": "btm:tangled_wool",
            "menu_category": {
                "category": "items"
            }
        },
        "components": {
            "minecraft:display_name": {
                "value": "Ball of Wool"
            },
            "minecraft:hand_equipped": false,
            "minecraft:stacked_by_data": true,
            "minecraft:icon": {
                "texture": "btm_tangled_wool"
            },
            "minecraft:foil": false,
            
            "minecraft:max_stack_size": 1,
            "minecraft:durability": {
                "max_durability": 48
            },
            "minecraft:use_animation": "eat",
            "minecraft:food": {
                "can_always_eat": true
            },
            "minecraft:cooldown": {
                "duration": 1
            }
        },
        "events": {
        }
    }
}
wraith violet
#

Latest format is 1.20.80. You need category for the cooldown component and use modifiers

tepid acorn
#
{
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "btm:tangled_wool",
            "menu_category": {
                "category": "items"
            }
        },
        "components": {
            "minecraft:display_name": {
                "value": "Ball of Wool"
            },
            "minecraft:hand_equipped": false,
            "minecraft:icon":"btm_tangled_wool",
            "minecraft:foil": false,
            
            "minecraft:max_stack_size": 1,
            "minecraft:durability": {
                "max_durability": 48
            },
            "minecraft:use_animation": "eat",
            "minecraft:use_modifiers": {
                "movement_modifier": 0.6,
                "use_duration": 1
            },
            "minecraft:cooldown": {
                "duration": 1,
                "category": "a"
            }
        },
        "events": {
        }
    }
}
#

is this right

gray tiger
#

events are removed btw

#

So "events": {} is pretty pointless

solid aurora
#
{
    "type": "item",
    "name": "minecraft:dirt",
    "weight": 10,
    "functions": [
        {
            "function": "set_name",
            "name": "Pile of dirt"
        },
        {
            "function": "set_lore",
            "lore": [
               "Pile of dirt"
            ]
        }
    ]
}
plucky thicket
#

Is there any way to create a "hidden" recipe that doesn't show up in the crafting table at all?

solid aurora
neon stratus
#

how to make a useable item fire a projectile?

plucky thicket
#

thanks, I'll give that a try

solid aurora
#

Man, I hate this bug

gray tiger
#

And from even commands (will invalidate every command mentioning ID of that item) if you’re using the new format version

fiery cradle
bright halo
#

is there a way to use a spritesheet like emojis for item icons?

gray tiger
#

There is, but it doesn’t seem to do anything at all, regardless of setting it to true or false (when category is none)

stable kite
#

does anyone know how to make it so if you right click on something with one item itll turn into another item

#

im adding fireflies in a jar and i want it so when you right click on the fireflies with an empty jar itll turn into fireflies in a jar

signal smelt
#
"minecraft:durability": {
        "max_durability": 2031
      },
      "minecraft:repairable": {
        "repair_items": [
          {
            "items": [ "minecraft:diamond" ],
            "repair_amount": "query.max_durability * 0.25"
          }
        ]
      }

So I've got this item and placing 2 diamonds in the anvil with it prevents me from being able to grab the repaired item, this is definitely a bug right, and not something I've done wrong?

#

Using 1 diamond works fine

heady bobcat
#

hey, eh

#

idk how can i use the new futures of durability damaging thing

#

it is available in the lastest beta & preview, but its not available yet anywhere

#

so if u guys know anything about them, just ping me

shadow cedar
#

bro how to i make custom sheilds

#

which get disabled as well

tropic nimbus
#

How to scale?

wraith violet
plucky schooner
#

@wraith violet how can i fix this ```json{
"format_version": "1.20.80",
"minecraft:item": {
"description": {
"identifier": "wiki:throwable_item"
},
"components": {
"minecraft:hand_equipped": true,
"minecraft:max_stack_size": 1,
"minecraft:use_modifiers": 0,
"minecraft:cooldown": {
"category": "ender_pearl",
"duration": 20
},
"minecraft:on_use": {
"on_use": {
"event": "throw"
}
},
"minecraft:icon": {
"icon": "apple"
}
},
"events": {
"throw": {
"shoot": {
"projectile": "wiki:throwable_item_entity",
"launch_power": 2,
"angle_offset": 1
},
"swing": {},
"decrement_stack": {},
"run_command": {
"command": [
"playsound fire.ignite",
"playsound mob.witch.throw"
]
}
}
}
}
}

wraith violet
#

🤷

solid aurora
plucky schooner
solid aurora
plucky schooner
#

that's suck

#

can i still use that by changing the format_version ?

solid aurora
solid aurora
plucky schooner
#

well thats bad

gray tiger
#

Swing is somewhat possible too, just very annoying since you need to create your own “swing” animation and play that

solid aurora
gray tiger
#

I don’t think they are stopping us from using attack animation lol, it’s that variable.attack_time variable which we can’t manually control

solid aurora
sudden coral
#

Anyone know how to make an item fireproof so it won't burn in lava when dropped?

spice sierra
#

how do you set a proectile to throw using minecraft:throwable?

#

there´s no space to specify the projectile entity

gray tiger
sudden coral
#

Anyone know how to make an item Fireproof?

plucky schooner
#
{
    "format_version": "1.20.50",
    "minecraft:item": {
        "description": {
            "identifier": "wiki:throwable_item"
        },
        "components": {
            "minecraft:hand_equipped": {
                "value": true
            },
            "minecraft:max_stack_size": 1,
            
            "minecraft:display_name":{
                "value": "Bow"
            },
            "minecraft:hover_text_color": "purple",
            "minecraft:use_modifiers": {
                "use_duration": 3,
                "movement_modifier": 0.35
            },
            "minecraft:projectile":{
                "projectile_entity": "wiki:throwable_item_entity"
            },
            "minecraft:shooter": {
                "ammunition": [
                    {
                        "item": "wiki:throwable_item_entity",
                        "use_offhand": true,
                        "search_inventory": true,
                        "use_in_creative": true
                    }
                ],
                "scale_power_by_draw_duration": false,
                "charge_on_draw": false
            },
            "minecraft:icon": {
                "texture": "bow"
            }
        },
        "events": {
            /*"throw": {
                "shoot": {
                    "projectile": "wiki:throwable_item_entity",
                    "launch_power": 2,
                    "angle_offset": 1
                },
                "run_command": {
                    "command": [
                        "playsound bow.hit"
                    ]
                }
            }*/
        }
    }
}
#

i trying to make cooldown by 2 but is not working

#

anyone know how to fix it

plucky thicket
#

Does anyone know if it's possible to get custom items (book items) to load into chiseled bookshelves?

plucky thicket
civic zinc
#

Anyone know if I can replicate that first pov effect from the totem of undying being activated?

distant root
#

Hey

#

How to make item like bow, but doesnt use the ammunition

#

I already made, but it need ammunition to use it

gray tiger
#

Like, shoot projectile on item use

distant root
gray tiger
distant root
distant root
plain elbow
#

i want to make a custom swap item animation for the guns in first person ¿any help?

plucky schooner
#

anyone know how to use cooldown component and summon projectile when use item?

fiery cradle
#

So, do you want it to act like a bow, a snowball, or always shoot whenever you use it? There are components for the first 2. The last one requires a script. Here's a link to an example script for that: #1247599136870498479 message

#

You will have to change some identifiers of course

plucky schooner
#

i want it to shoot whenever i use it but still have a cooldown on it like 2s

#
import { world, system } from '@minecraft/server';

world.afterEvents.itemUse.subscribe((data) => {
    const item = data.itemStack;
    const player = data.source;
    if(item.getComponent("minecraft:cooldown")){
        let cooldownTime = item.getComponent("minecraft:cooldown").getCooldownTicksRemaining(player);
        if (cooldownTime > 0) {
            player.sendMessage(`You need to wait ${cooldownTime} more ticks before using this item again.`);
        }
        else if(cooldownTime <= 0){ 
            player.sendMessage(`You have used a ${item.typeId}`);
            const shootDirection = player.dimension.spawnEntity('minecraft:arrow', player.getHeadLocation());
            const projectile = shootDirection.getComponent('projectile');
            projectile.owner = player;
            projectile.shoot(player.getViewDirection());
            const { x, y, z } = player.getViewDirection();
            const vM = 5;
            projectile.shoot({ x: x * vM, y: y * vM, z: z * vM });
        }
    }
    else{
        player.sendMessage(`${item.typeId} dont have cooldown component`);
    }
});
``` here is my script
#
{
    "format_version": "1.20.50",
    "minecraft:item": {
        "description": {
            "identifier": "wiki:throwable_item"
        },
        "components": {
            "minecraft:cooldown":{
                "category" : "attack",
                "duration" : 3
            },
            "minecraft:hand_equipped": {
                "value": true
            },
            "minecraft:max_stack_size": 1,
            
            "minecraft:display_name":{
                "value": "Bow"
            },
            "minecraft:food":{
                "can_always_eat": true
            },
            "minecraft:hover_text_color": "purple",
            "minecraft:icon": {
                "texture": "bow"
            },
            "minecraft:use_modifiers": {
                "use_duration": 0.01,
                "movement_modifier": 0.4
            }
        },
        "events": {
        }
    }
}

and here is my item

#

when i hold on to use it it still get the component cooldown and get a tick value

#

but it never shoot

fiery cradle
#

So you get the messages, it just doesn't spawn the entity?

#

Just trying to make sure I understand correctly

plucky schooner
#

no\

fiery cradle
#

Also, do you get any content log errors when you reload the script or use your item?

plucky schooner
#

the else if statment that cooldownTime <= 0

#

dont run

#

but the rest is run

#

no error

#

i think is because of the item json

fiery cradle
#

So it will just say you have 0 ticks remaining?

plucky schooner
#

no

#

1 is the minimum

fiery cradle
#

Huh, weird

plucky schooner
#

i just tried system runinterval

#

it return 1 is minimum

fiery cradle
#

I guess just switch from 0 to 1

plucky schooner
#

oh okay

#

i think is bcuz item json

#

i just deleted use modifier

#

and it run and display 0 tick

#

kinda strange

fiery cradle
#

Ah, weird

#

Might be a bug with the script api I guess

plucky schooner
#

yeh i thinks so

#

i change it to 1 but kinda buggy

#

is like

#

no number exist below 1

#

and kinda hard to use when it below 1

full hull
#

Hi, I'm new, could anyone explain to me how you can create gems with super powers (like the fire gem that gives the appearance of fire on all weapons)? I already searched the wiki but I didn't understand anything

lost orchid
#

Have item events been removed?

wraith violet
lost orchid
#

The custom components will replace them right?

wraith violet
#

Yes

lost orchid
#

Okay, tks

#

Are they in beta or stable?

wraith violet
karmic pulsar
#

does anyone have the json file for the netherite armor set

wraith violet
karmic pulsar
wraith violet
karmic pulsar
wraith violet
daring garnetBOT
#
What Vanilla Things Can We Modify?

Can

  • Entities
  • Certain Items(Any food items or those found in the windowsapp folder)
  • Entity loot tables
  • Features
  • Feature Rules
  • Biomes

Can't

  • Blocks
  • Block loot tables
  • Items not found in the windowsapp folder
  • Dimensions
solid aurora
#

@karmic pulsar

edgy birch
#

Hi

keen kite
#

is it possible to animate armor?

#

like moving it's cubes

mental mulch
#

there's an armor model

#

so should be possible

finite crest
#

why can i not remove the crafting recipe for some items ?? for example i cant seem to remove the crafting recipe for netherite ingots, shields and tnt minecarts, but it works just fine for stuff like end crystals, netherite blocks etc

this is an example of a recipe file that correctly removes the crafting recipe:

{
    "format_version": "1.16.100",
    "minecraft:recipe_shaped": {
        "description": {
            "identifier": "minecraft:tnt"
        },
        "tags": [
            "crafting_table"
        ],
        "pattern": [
            "AAA",
            "AOA",
            "AAA"
        ],
        "key": {
            "A": {
                "item": "minecraft:spawn_egg"
            },
            "O": {
                "item": "minecraft:spawn_egg"
            }
        },
        "result": [
            {
                "item": "minecraft:spawn_egg"
            }
        ]
    }
}

but on this one it doesn't work:

{
    "format_version": "1.16.100",
    "minecraft:recipe_shaped": {
        "description": {
            "identifier": "minecraft:shield"
        },
        "tags": [
            "crafting_table"
        ],
        "pattern": [
            "AAA",
            "AOA",
            "AAA"
        ],
        "key": {
            "A": {
                "item": "minecraft:spawn_egg"
            },
            "O": {
                "item": "minecraft:spawn_egg"
            }
        },
        "result": [
            {
                "item": "minecraft:spawn_egg"
            }
        ]
    }
}
sudden coral
#

That's sick, thanks

nova juniper
#

how can i use the ItemStack constructor for custom items

wraith violet
solid aurora
#

Ohh in desktop you could access it

#

But you need to have administrator bla bla

#

Wait

C:\Program Files\WindowsApps\....

#

You'll just see the folder with minecraft in it

#

Hmm, I just use Iobit Unlocker lol

#

You can't access them in that folder

#

You need to fully modify the software

heady bobcat
#

eh, how can i make custom armor using format version 1.21.10?

heady bobcat
wraith violet
#

Just use the wearable component

heady bobcat
#

alright mate thanks but,
did they have removed knockback resistance or what?

heady bobcat
sudden coral
#

No workaround for knockback resistance reimplementation?

copper island
#

afaik, none. idk why they removed it

zealous holly
#

Hey, so how do I make a wearable item not need HCF?

calm hare
#

Same you would previously. Only stuff that HCF removes are item and block events and events triggers, a long with some components. Everything else is stable such as wearable and so on. Idk if the wiki is updated though but you can check there ^^

zealous holly
# calm hare Same you would previously. Only stuff that HCF removes are item and block events...
    "format_version": "1.16.100",
    "minecraft:item": {
        "description": {
            "identifier": "cloaks:cape0",
            "category": "equipment"
        },
        "components": {
            "minecraft:max_stack_size": 1,
            "minecraft:icon": {
                "texture": "cape0"
            },
            "minecraft:wearable": {
      "dispensable" : true,
                "slot": "slot.armor.chest"
            },
            "minecraft:creative_category": {
                "parent": "itemGroup.name.chestplate"
            },
            "minecraft:display_name": {
                "value": "xAssassin's Cloak"
            }
        }
    }
}```
calm hare
#

That format version is quite.. yikes

#

Use 1.20.0 for that one

zealous holly
#

Gotcha

gray tiger
#

Creative category component is also gone

#

It’s now right inside the description as “menu_category”

safe echo
#

Does minecraft:icon format was changed in 1.21.0 format_version?

#

Ohh yes, it is.
Before:

"minecraft:icon": {
    "texture": "(texture path)"
}

Now:

"minecraft:icon": "(texture path)"
gray tiger
#
"minecraft:icon": {
  "textures": {
    "default": "texture"
  }
}

This as well

safe echo
#

Hmmm..., it has default so that's mean we can add multiple textures in item?

safe echo
#

Ahh I see

plucky thicket
#

Has anyone else noticed that Recipe Unlocking seems to be wonky in 1.21, since release? The recipe still unlocks, but it's still visible on the search, even if you haven't unlocked it yet? (even for Vanilla Recipes)

vernal lava
#

i just noticed alot of blocks are missing from the block tag section

#

like it doesnt acknowledge stonebrick

wraith violet
vernal lava
#

thats dumb

#

makes it so much harder to make custom pickaxes

safe echo
#

What's the latest format version of item, for stable Minecraft?

safe echo
#

Thanks

vernal lava
#

are the scripts for the durability still accurate or do they need to be updated on the wiki. Since some of us cant just read jscript documents and understand it.

torn quartz
#

case "item:ffa:item":
player.runCommandAsync('tag @s add kit_menu');
break;
}
not work

#

can help

daring garnetBOT
#
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/

heady bobcat
#

whats wrong?
also it's still dispensable even without that :/

#

for now I'll remove "dispensable" from all of my armour

#

bec it still works without it

gray tiger
wraith violet
zealous holly
#

Hey, I need some help figuring out the new minecraft:repairable component

heady bobcat
zealous holly
#

Nevermind I got it working.

heady bobcat
zealous holly
#

I used the old tag format

heady bobcat
zealous holly
zealous holly
#

Would you like to help with a combat system?

heady bobcat
#

like do an animation after hitting entity or use item?

zealous holly
zealous holly
heady bobcat
#

thats aren't hard to deal with, i believe u can do it
( bec i dont have enough time to do it with u, i had to finish my addon update )

zealous holly
heady bobcat
zealous holly
heady bobcat
#

nah all for free

zealous holly
storm warren
#

Is there a specific format version items should have in order to use custom components?

storm warren
# wraith violet 1.20.80

Everytime I set my items format version to 1.20.80 with custom components, the item breaks (the icon disappears).

wraith violet
#

Like the error log tells you?

storm warren
wraith violet
storm warren
wraith violet
storm warren
vernal lava
storm warren
#

Still can't believe we're in a world where we have to leave the HCF toggle OFF.

vernal lava
#

the wiki and blockbench suck

jaunty jay
#

HOW TO THE PLAYER SAW HIS HAND WHILE HOLDING A CUSTOM ITEM?

finite crest
#

i changed it to a random sequence of letters and the crafting recipe still appears in the crafting table

#
{
    "format_version": "1.20.10",
    "minecraft:recipe_shaped": {
      "description": {
        "identifier": "minecraft:shield"
      },
      "tags": [ " " ],
      "pattern": [
        "#I#",
        "###",
        " # "
      ],
      "key": {
        "#": {
          "tag": "minecraft:planks"
        },
        "I": {
          "item": "minecraft:iron_ingot"
        }
      },
      "unlock": [
        {
          "item": "minecraft:iron_ingot"
        }
      ],
      "result": {
        "item": "minecraft:shield"
      },
      "priority": -1
    } 
  }
  
#

doesnt work with just an empty string either

shadow cedar
#

Why Mojang still hasn't fixed custom item not using the right swing animation 😡

karmic pulsar
#

is they a way to get enchants like sharp 10 on a item

green knoll
#

:0

finite crest
#

there are NBT editors that let you edit the NBT tags of items in player containers

finite crest
#

how do i disable vanilla brewing recipes

finite crest
#

i'm trying to completely disable the crafting recipe

olive sun
#

How to display the name of the dropped object?

celest crow
safe echo
#

Item and block events are being removed, including triggering event components. And the replacement is custom components in script.

Read #announcements message

wraith violet
#

Once hcf is removed all hell will break loose

#

Per #announcements

#

🙂 or you could just update them

#

90% of the components are stable

#

Hard to maintain

#

Why keep an inferior system

#

They gave warnings months in advance + it was experimental so you should know the risk

#

Did you read the replacement?

#

There literally is info youre just refusing to learn @shadow cedar

#

#announcements message
#announcements message

#

Then read the docs? Use the wiki, ms docs etc

#

The wiki is up to date in regards to components. Not events though

#

every event has been removed

gray tiger
#

Script API, there are events for entity hitting entity and even blocks, both being currently stable

vernal lava
#

The whole removal of events within items and such was such a dumb decision. People who understand scripting don't really care or have bland responses because they get scripting. But for those who don't it's a major roadblock. And the simple oh here's a link and read doesn't work for everyone but people except it to.

#

They could have just added the scripting controls and left the other stuff alone

wraith violet
vernal lava
#

They chose not to which is why it pisses so many off

#

Like the fighting I had to go through to get a simple durability script for my custom pickaxes was ridiculous

#

Because I don't understand scripting

#

I tried learning but it hasn't stuck

gray tiger
#

HCF been experimental for what, 3-4 years?

vernal lava
#

ok and ur point. They could have easily made events stable

#

and just let them be

#

as is then added more options going the scripting route

gray tiger
#

“They could have easily made events stable”

dry pilot
#

Scripting is better for managing something like this.

gray tiger
#

there’s a reason why HCF been experimental forever

vernal lava
#

dont see how scripting is better for simple things like decreasing a pickaxes durability

#

or controlling durability overall for other tools

dry pilot
gray tiger
vernal lava
#

how about you tell me why having to type out an entire script is more efficent that 3 or 4 lines in an item event....

#

the script is not easier by any means

#

your doing more work to achieve the end goal

gray tiger
vernal lava
#

yeah cause copy and paste is so hard to do within the item files....

vernal lava
#

and again your on the assumption that everyone can just read a stupid article and grasp the concept of scripting api

gray tiger
#

Nah, that’s up to you to understand, I was telling you this method is more efficient lol

vernal lava
#

a simple 3 line event to me is far better than needing to make an entire script on a language i dont understand

#

how effecient do you need durability to be like tf

dry pilot
vernal lava
#

the point still remains the events worked

dry pilot
#

though, once you write 1 script to handle durability, it will just take one line to use it on all your items lol

vernal lava
#

they functioned

vernal lava
dry pilot
gray tiger
dry pilot
#

Yeah, that too. With scripting you can let your imagination flow

vernal lava
#

again this all falls back on understanding the language

#

and not everyone does

dry pilot
#

The programming industry changes very quickly, one must work in adapting.

vernal lava
#

its not that simple

dry pilot
#

User-made libraries are already a thing

vernal lava
#

agreed people slap articles and expect you to be able to just read and understand

wraith violet
#

If you read the announcement you would have seen the docs

vernal lava
#

not everyone can just read a document and understand all its functionality

#

some people learn by seeing it already in use and then experimenting from there

dry pilot
#

Give it a look... I've commented line by line, almost

vernal lava
#

basically frankenstiening it

dry pilot
#

You have two options:

  • Keep complaining about the removal of item and block events
  • Adapt to the change, learn the basics of JS and start cooking
#

That simple 🤷‍♂️

#

Yeah I know

#

Same

#

Literally check my repo

vernal lava
#

yeah i spent 2+ days trying to resolve a item render issue because they felt the need to remove the "render_offset" component

dry pilot
#

oh lol

#

Even so, you can download the .mcaddon lol

#

Or check the zip files for both, behavior pack and resource pack

wraith violet
#

Reading the docs is the best scenario for you right now

vernal lava
#

and i used the wiki

#

before you say anything

#

and it still didnt resolve it

dry pilot
#

Once you get them you never forget

gray tiger
#

I have only used attachables, by the time I realize I should use render offsets, they were gone

dry pilot
#

All links are here #usage message

#

Mainly the first 2

dry pilot
wraith violet
#

Read #announcements

dry pilot
#

There's lots of things already in stable

vernal lava
wraith violet
dry pilot
#

here here

#

I linked you to Microsoft docs and the bedrock wiki

#

There are sections for everything, just navigate through it

#

You are changing of topic on every message, so I am loss

#

You want to learn to make custom items? Go to the items section

#

Check any of those

wraith violet
#

jeb_shrug Or you could learn ScriptAPI and properly read the docs. If you have a good understanding the docs will help you

#

My library even has examples

#

👆 Docs

#

Read

#

My guy that is literally the docs

dry pilot
#

Did u clicked?

wraith violet
#

Oh my lord

dry pilot
#

If you are expecting to obtain the exact solution to all of your problems, that's not what you'll find. You'll find the tools to craft your solutions.

wraith violet
#

Those are tutorials, not docs

#

Hmmm no

#

You can learn without tutorials

#

Im not even gonna bother helping oyu anymore with this attitude

mental mulch
#

first build your main script

steady abyss
#

Anyone know how to fix this issue with the snow ball texture being oversized in mainhand?

plucky thicket
#

Is it possible at all to make custom items compostable?

modern jackal
#

Could someone make me a backpack model? Ofc paid

dry pilot
plucky thicket
dry pilot
#

I don't see why not

plucky schooner
#

{
  "format_version": "1.10.0",
  "animation_controllers": {
      "controller.animation.stone_sword": {
          "states": {
              "not_use": {
                "on_entry":["/say not using sword stone"],
                  "transitions": [
                      {
                          "use": "query.is_item_name_any('slot.weapon.mainhand', 'sword:stone') && (query.is_using_item)"
                      }
                  ]
              },
              "use": {
                "on_entry":["/say using sword stone"],
                  "transitions": [
                      {
                          "not_use": "(!query.is_using_item) && !query.is_item_name_any('slot.weapon.mainhand', 'sword:stone')"
                      }
                  ]
              }
          }
        }
      }
    }


anyone knows what's wrong with this?

steady abyss
wraith violet
dry pilot
steady abyss
# dry pilot That means you did it wrong.

{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
//Replace <identifier> with the full identifier of your item
"identifier": "<snowball>",
"materials": {
"default": "entity_alphatest",
"enchanted": "entity_alphatest_glint"
},
"textures": {
//Replace <path> with the filepath to your items texture. It should match up with the filepath given in item_texture.json
"default": "textures/items/snowball",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.snowball_item"
},
"animations": {
"hold": "animation.snowball_item.hold"
},
"scripts": {
"animate": [
"hold"
]
},
"render_controllers": [ "controller.render.snowball_item" ]
}
}
}

what do I change?

daring garnetBOT
#
Formatting Your JSON Or JS Code

Please format your code as code-blocks! This makes the text monospaced, and has support for syntax highlighting.

JSON
```json
{
"example": 123
}
```

JavaScript
```js
console.log("Hello World");
```

The character used here is the backtick. This symbol is usually at the top left of your keyboard, occupying the tilde key (~). On mobile, it will be on the second or third page of symbols.

steady abyss
#

nah bro just aired me

dry pilot
#

Is really hard to visualize your code if it is not formatted as code

dry pilot
#

The snowball that is bigger in your hand is the vanilla Minecraft snow?

steady abyss
#

32x32 from faithful

dry pilot
#

Vanilla minecraft snowball item file?

steady abyss
#

yup

dry pilot
#

I would say change the geo, it is probably made to work for 16x16 items only

#

You could search in this discord to see if someone has an attachable made public for 32x32 items

#

Or search in sites like MCPEDL for 32x32 content and see how they made it

#

I myself haven't done anything with 32x32 since 2021 so I don't remember how I handled this

steady abyss
#

hmmm

crisp venture
#

is there any way to add lore to an item? that only displays in tooltips not while holding the item?

keen kite
#

what are the tags for pickaxes?

#

that's possible to check in filters right?

gray tiger
keen kite
#

hmmmm that's sad

keen kite
#

what's the difference between
dispense_on
&
use_on
?

#

it got me confused

#

correct me if I'm wrong

dispense_on is where the item will be placed

use_on is where the items will be interacted/used

thick crane
thick crane
#

never mind, i found the wiki page

dry pilot
#

How do I access to any of these textures?

"helmet" : {
         "textures" : [
            "textures/items/leather_helmet",
            "textures/items/chainmail_helmet",
            "textures/items/iron_helmet",
            "textures/items/gold_helmet",
            "textures/items/diamond_helmet",
            "textures/items/netherite_helmet"
         ]
      }
#

This doesn't work, the texture is invisible

"minecraft:icon": {
                "textures": {
                    "default": "iron_helmet"
                }
            }
wraith violet
#

You need to define them individually

dry pilot
#

What fun

sudden coral
#

Does anyone know what happens if you give a block and item the same ID?

wraith violet
sudden coral
#

Well that's odd

#

Alright, thanks!

oak hearth
#

Does someone know how can i make an item useable on the floor

#

i mean

#

i cant interact with blocks with my item

#

so itemUseOn event doesnt fire in script api

wraith violet
#

That will trigger it

oak hearth
#

😭

#
{
    "format_version": "1.20.50",
    "minecraft:item": {
        "description": {
            "identifier": "source:item",
            "menu_category": {
                "category": "equipment",
                "group": "itemGroup.name.sword"
            }
        },
        "components": {
            "minecraft:max_stack_size": 1,
            "minecraft:icon": {
                "texture": "paper"
            },
            "minecraft:use_modifiers": {
                "use_duration": 1,
                "movement_modifier": 0
            }
        }
    }
}
#

is this correct?

wraith violet
oak hearth
#

because im using stable APIS

wraith violet
oak hearth
wraith violet
oak hearth
#

damn

oak hearth
#

in stable

wraith violet
#

Gotta wait for 1.21.20 then

oak hearth
#

so

#

there isnt any way to do custom hoes?

#

thats what im doing

#

but i cant get to make the item interact with the floor

wraith violet
oak hearth
#

😭

#

sad

wraith violet
#

Womp womp sound effects

gray tiger
#

It will include the hoe functionality

#

There’s one for axe too for stripping woods/copper blocks

oak hearth
gray tiger
#

minecraft:is_hoe

#

tag on your item

oak hearth
gray tiger
oak hearth
#

Alright thank u!

#

I will try that

oak hearth
# gray tiger yes

"components": {
"tag:minecraft:is_hoe": {},
"minecraft:max_stack_size": 1

#

it doesnt work either

gray tiger
#

That’s the old format, this is how you add tags on new format version:

"minecraft:tags": {
     "tags": [
        "minecraft:is_hoe"
     ]
}
karmic pulsar
finite crest
dry pilot
#

@oak hearth You need to use;

"minecraft:use_on": {
                "blocks": [
                    "grass",
                    "dirt",
                    "grass_path"
                ]
            }

and

"minecraft:tags": {
                "tags": [
                  "minecraft:is_hoe"
                ]
            }

I am not sure if the first one is exactly required but try it and see

finite crest
gray tiger
#

Add item.wiki:custom_item=Custom Item in language file (such as en_US.lang)

#

Or you can also use:

"minecraft:display_name": {
  "value": "Custom Item"
}
sand lava
#

can you make a attachable that only shows in 3rd person while in 1st person it shows the regular sprite/icon?

oak hearth
dry pilot
#

You're welcome!

distant pasture
#

Transparency alpha test won't work with items I don't think. You'll have to use attachables

shadow cedar
#

you can help me? Is there a way to make an animated item like (cobalt_boots) I just made the common item, as for the armor it didn't work the common method, is there another way?

wraith violet
shadow cedar
#

Yes, I was able to create animated items, but the armor was not

scarlet rampart
#

how can i make my item accept enchanted books

wraith violet
scarlet rampart
#

the id of the component

#

btw i found it

#

minecraft:enchantable

sharp anvil
#

It is possible to execute commands with an item still?

gray tiger
sharp anvil
#

how do I have items run commands?

bitter quail
#

Can someone tell me how to add a static animation to armor? Specifically a helmet.

jaunty jay
#

Can someone help me how to make skill for sword With animation and particles

scarlet rampart
#

@wraith violet

#

is this is how we add the enchantable component?

wraith violet
#

Read the docs

scarlet rampart
#

you mean this docs

scarlet rampart
#
{
    "pools": [
      {
        "rolls": 1,
        "entries": [
          {
            "type": "item",
            "name": "sh:mesh",
            "functions": [
              {
                "function": "set_lore",
                "lore": [
                  "§ofrom §aMob Carcher"           
                ]
              } 
            ]
          }
        ]
      }
    ]
  }```
@lunar flicker
#

nothing

lunar flicker
#

And you’re calling the loot table to give the item?

scarlet rampart
ebon wren
#

Why exactly are you having this problem?

wraith violet
ebon wren
ebon wren
# wraith violet Show your code?
{
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "mc:swamp_drowned_leggings",
            "menu_category": {
            "category": "equipment",
            "group": "itemGroup.name.leggings"
            }
        }, 
        "components": {
            "minecraft:display_name": {
                "value": "%item.swampleg.name\n%item.fboot.desc2\n\n%item.swamphel.desc"
            },

            "minecraft:icon": {
                "textures":{ "default": "mc_swamp_drowned_leggings" }
            },

            "minecraft:max_stack_size":{"value": 1},

            "minecraft:hand_equipped":{"value": true},

            "minecraft:repairable": {
                "repair_items": [
                    {
                        "items": [
                        "mc:swamp_drowned_scale"
                        ],
                        "repair_amount": "query.max_durability / 2"
                    },
                    {
                        "items": [
                        "mc:swamp_drowned_leggings"
                        ],
                        "repair_amount": "context.other->query.remaining_durability * 0.8"
                    }
                ]
            },

            "minecraft:wearable": {
                "protection": 5,
                "dispensable": true,
                "slot": "slot.armor.legs"
            },

            "minecraft:durability": {
                "max_durability": 290,
                "damage_chance": {
                    "min": 55,
                    "max": 75
                },
                "repair_items": [
                    "mc:swamp_drowned_scale"
                ]
            },

            "minecraft:enchantable": {
                "value": 10,
                "slot": "armor_legs"
            }
        }
    }
}
wraith violet
ebon wren
#

Is it impossible to add trident enchantments to custom items?

#

I looked in the docs but I didn't find the trident tag in the enchantment part

feral shoal
#

what exactly does this mean?
my item and bhv pack format versions are 1.21.0

wraith violet
feral shoal
#

will I be able to use custom components

wraith violet
#

Yes

feral shoal
#

k thanks

#

so we just can't go higher than 1.20.80?

ebon wren
ebon wren
scarlet rampart
wraith violet
#

Nobody hears or nobody wants to listen

#

🤷

#

Agree to disagree

#

Hey tell me, when you turn on the hcf toggle, or any experimental toggle, what does it tell you?

#

😱

#

Almost like its a warning

#

Idk about you, most people i talk to did 🙂

#

#1067870355814895687 message

#

Agree to disagree

#

I can have meaningful cinversation if its productive. This convo is not productive

#

Give me a topic that isnt the same rehashed one every month then 🙂

#

You havent seen me in many other conversation such as the feedback discord and the update channels. Give me something new to talk about then instead of the same boring old, "HCF is getting removed???" Topic

gray tiger
#

yea, so minecraft did warned you

#

I don't really think people actually care to read tho, even if they do they would assume nothing will happen

#

What does "Be careful as things might break" mean to you then?

#

I guess it just depends on the way you think, for me that means the feature itself could break

#

Tho, I never actually bothered reading it until today because "experimental" word itself should be obvious enough that it comes with risk of breaking

#

Well yeah true, I don't think the blame should be because you used the HCF toggle, but rather that you weren't aware of it's consequences, especially blaming Mojang for that lol

daring garnetBOT
#
Do not ping random people

Do not ping random people for help or otherwise.

Random pings are never good dont_ping_lich; No one is obligated to help you at random.

scarlet rampart
shadow cedar
#

@arctic orbit help

ebon wren
#

you can use the name of the item itself, skip lines and use, there is a way where you can put it in the lang file so it can be translated

torpid steppe
#

hi there, is it possible to have attachable for for the same item when it is wearable (like a helmet for instance) and it is equipped, but also controle the icon when it is on hand? because I wanted to reize the texture as it is really big when holding on hands

dry elbow
#

Is it possible to remove the lore of how much damage an item does?

dry pilot
#

I believe not

distant pasture
#

Through JSON UI yes

karmic pulsar
#

is there a way to make some armor stronger then others in the armors .json files?

fiery cradle
#

Try minecraft:oak_sapling

fiery cradle
split pumice
#

Do the custom components fix having to write 1000+ block id's to make a custom pickaxe that works like a pickaxe?

karmic pulsar
#

is there a way to make some armor stronger then others in the armors .json files?

vivid pier
#

Is there a tutorial for gun like items?

shadow cedar
#

Is attack damage still capped at 255 on newer format versions?

keen kite
#

what components do I use instead of on_use?

#

because on_use is deprecated

wraith violet
distant root
#

Is anyone know how to fix this? (32x32 texture)

wraith violet
distant root
wraith violet
nova juniper
#

Are custom chargeable item like crossbow, if so is there any component for that?

#

Or how can i make one

nova juniper
#

Oh thanks

past hill
#

How can I achieve this? I want this for every block you're holding.

Thank you

#

This is when you hold a block in your offhand with /replaceitem

fiery cradle
hard bay
#

Hey i recherche a custom Armor 3d

keen kite
distant pasture
buoyant horizon
#

I did it randomly since it was just to experiment.

buoyant horizon
fiery cradle
#

I'm assuming that's just the base item geometry

#

It's a bug that happens with high resolution items

buoyant horizon
buoyant horizon
#

Is there a way for objects to inherit from others? I need to have a new item that has the ability to mine the stone peak blocks.

distant root
#

How do I make custom bow with the charging animation? Because I tried to make it but the charging animation won't show

topaz sage
#

since recipe book tab can only show 1 way to craft an item, if you have multiple ways to craft it, thats a problem if its not showing the one i want, is there any way to disable a specific crafting recipe you made from showing up in the recipe book tab?

wraith violet
topaz sage
#

yeah found "priority": 0,, didnt seem to affect it, suggests its for furnace only perhaps

#

also just tried shapeless to get overridden by shaped, also failed

wraith violet
#

The key should exist in all types

topaz sage
#

ill give it another shot

#

also update my format version just incase

wraith violet
#

If not try changing it so the higher priortiy is first alphabetical order wise since thats the order it gets registered

topaz sage
#

yeah that one im trying right now xD

#

somehow that didnt work, trying a name that in theory should load first, nor inverting their names and identifiers stopped the other damn recipe from overriding it, ok onto priority again

topaz sage
#

this recipe override cannot be adjusted lol, nothing is working lol, and what https://wiki.bedrock.dev/loot/recipes.html#priority says "priority" only comes after some other considerations, for some reason the filename adjustments arent doing it

#

huh, changing the single ingredient to a different item did it, thats....... weird, maybe its an edge cause because the problematic recipe is actually just a recipe that does wayfinder_simple -> wayfinder_simple, to clean its lore data

#

yeah so far its pointing to that, suddenly after changing the recipe to be wayfinder_echo -> wayfinder_simple, suddenly its listening to filename and also the priority to resolve it

#

weird, also this edge case is unfortunately screwing me over, ill just add another item to the recipe, breaks it out of this edgecase too

#

even tried each recipes being shaped vs shapeless, and one being one and one being the other

lethal iris
#

I just discovered this experimental item component on format version 1.21.10 does anyone have any info on it there’s nothing on bedrock.dev or Minecraft Documentation.

#

I need to test it in game tho

barren prawn
dry pilot
#

Custom armors can have trims?

wraith violet
dry pilot
#

How?

#

Vanilla packs were updated by any chance?(about trims specifically)