#Items General

1 messages ยท Page 9 of 1

ebon wren
#

Yea

tropic dew
#

okay okay, thank you I will try that

ebon wren
#
{
      "rolls": {
        "min": 0,
        "max": 1
      },
      "entries": [
        {
          "type": "item",
          "name": "minecraft:goat_horn",
          "functions": [
            {
              "function": "set_data",
              "data": {
                "min": 0,
                "max": 3
              }
            }
          ]
        }
      ]
#

From pillager outpost loot table

tropic dew
#

ahhh I seeee

#

thank you I was literally just figuring it out too lol

#

I guess I just gotta find the number that corresponds to the variant I want

ebon wren
tropic dew
#

I found it

#
                        {
                            "function": "set_data",
                            "data": 6
                        }
                    ]```
#

Was looking for "Call"

#

thank you so much for your help bro

celest acorn
#

How do I give an item armor toughness?

#

and knockback resistance too?

dark junco
celest acorn
#

thats sad thank you

#

Do you know how to make dyeable armor?

celest acorn
#

thanks

#

How do I make some parts not colored?

wraith violet
celest acorn
wary elk
#

how can i make a weapon 2 handed?

frosty oak
#

Can items have enchants by default

tranquil wind
frosty oak
#

Rip. It was going to be a workaround until the scripting thing I need comes to stable

sleek ginkgo
#

Is it possible to change the texture of an item based on data?
i cant find anything about it

#

and if possible name or description, kinda like enchanted books

tranquil wind
#

which can be applied by using the lore function in loot tables, or you can set it with scripts.

#

custom items cant have default lore

crystal grove
#

Does anyone know how to make an item play a sound when you interact with it while holding it in your hand?

dark junco
spark swift
#

e.g.

{
          "type": "item",
          "name": "minecraft:diamond_sword",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 20,
                "max": 39
              }
            }
          ]
        },
frosty oak
spark swift
#

also WHEN IS MINECRAFT GOING TO ADD ARMOR TOUGHNESS ON CUSTOM ARMOR

frosty oak
spark swift
frosty oak
spark swift
#

what enchant are you trying to give it?

#

feather falling?

#

alternatively you can use damage sensors in the player JSON

#

but if you want to try avoid editing player json i understand

frosty oak
spark swift
#

I'm almost certain you can just make it disable fall damage

frosty oak
#

No that I know of

frosty oak
#

reduced not disabled

spark swift
#

I was looking at the item components earlier. Its there still

#

Well yeah not sure then

cerulean grove
split pumice
#

Is it possible to use the default item model in an attachable?

Ex: just rendering the item but allowing me to add animations to it

Also are custom spears possible? Looks like the vanilla spears are data driven but want to know if it's a dead end before pursuing

wraith violet
#
  • No, you need your own model
  • Yes
dry pilot
#

Can I remove armor equip sound?

low quest
#

Are you able to add vanilla items to custom item tags?

wraith violet
low quest
#

probably last question for a bit, is there a way to use the dyeable item component so that I can color a texture, but prevent the player from actually dyeing the item themselves

low quest
# wraith violet Not that I know.

do you know if it's possible to use the same system that bedrock uses for coloring the firework charge texture? the bedrock samples has a white version but the behavior pack files are missing for firework charge so im not sure if that means its hardcoded or just not provided

ebon wren
vague canopy
#

This is a armor I wanted to add for my addon where itโ€™s a boot slot but goes onto your torso when equipped but I donโ€™t know how to make it a armor does anyone know how I can achieve this

spark swift
#

I've been told borion item hacks work...

karmic pivot
#

How does one apply hides_player_location to armor directly? In their code

wraith violet
karmic pivot
#

Yeah I tried it. Yet it doesn't seem to work.

#

Then I realizes I try to update the helmet to the newest format. And it just breaks the helmet

wraith violet
#

Works for me on latest format version.

karmic pivot
#

What format do you use?

wraith violet
#

1.26.0

karmic pivot
#

Mind if I send you a example of my helmet?

wraith violet
#

Open a post.

karmic pivot
#

Open a post?

#

I opened a post

desert ice
#

How to remove the 'No Effects' display from the Water Bottle?

neon zodiac
#

Does anyone have a sample for a fishing rod?

spiral lotus
#

how can i make an equip animation for an attachable

#

i can only ever get it to play once

robust needle
#
{
    "format_version": "1.17.41",
    "minecraft:recipe_shaped": {
        "description": {
            "identifier": "skyblock:enchanted_wheat"
        },
        "tags": ["crafting_table"],
        "pattern": [
            "WWW",
            "WWW",
            "WWW"
        ],
        "key": {
            "W": {
                "item": "minecraft:wheat",
                "count": 16
            }
        },
        "unlock": [
            {
                "item": "minecraft:wheat"
            }
        ],
        "result": {
            "item": "skyblock:enchanted_wheat",
            "count": 1
        }
    }
}

Why does my count for the recipe not work?

ebon wren
supple spade
#

Anyone knows how I can make a drink that can give you effects? Trying to make alchohol in minecraft

ebon wren
supple spade
#

Thanks I used a custom component

#

Now I can finally get drunk with my friends in minecraft

tranquil wind
#

lol

dark junco
still meteor
#

Helloooo, is it possible to add a particle for attachment models and for the emitter to function under a certain animation?

dark junco
still meteor
short garden
#

any idea what does this mean

dark junco
# still meteor dang huhu is it possible to do it another way tho?

There is a way to do this but you would require using the player.entity.json file to add a locator in the player geometry, then you can add that locator to the attachable geometry, or just work in the player.entity.json file
But it's not possible to do with just the attachable

still meteor
#

dang, sad

#

thank u tho

dark junco
# still meteor thank u tho

Its a bug, and not an intended feature, so I'm hoping they fix it soon
Though there's no clue as to when they fix it

vague canopy
#

Iโ€™ve been stuck on this for awhile I made all custom animations for the player but I donโ€™t know how to make them work through a animation controller nothing plays does anyone know a template I can use for the queries or something

chilly fern
#

Did I do good for my first addon?

#

Just a simple sword

chilly fern
#

how do i make a item have a sword skill

tranquil beacon
#

Is there a way to decrement the durability of an item during recipes?

tranquil beacon
#

rip

dark junco
chilly fern
#

yes

dark junco
#

You can use custom components or the itemUse event to make the item usable on right click

river anchor
#

Anyone know how to play an animation of an item from a script?

dark junco
river anchor
#

on pokemon addons

#

open and close animation

dark junco
river anchor
neon arch
#

Not sure if here or #1067869022273667152 is the best place, but is the drink animation hardcoded? I need it so I can modify it for an attachable.

dark junco
neon arch
dark junco
#

No problem, I hope it goes well!

pearl ruin
#

hi would someone mind helping me: why is my custom component not working

import { world, system } from "@minecraft/server"

console.warn("Script loaded")

const onUseWand = {
    onUse(event) {
        console.warn("wand used")
        event.source.runCommandAsync("setblock ~ ~ ~ stone")
    },
}

system.beforeEvents.startup.subscribe(({ itemComponentRegistry }) => {
    itemComponentRegistry.registerCustomComponent("raycast:useWand", onUseWand)
})
#

script is loading but command not running nor is 'wand used'

spark swift
#

Moreover, that is not how you define functions

#

Here is an example

#

So in your case, change it to this:

const onUseWand = {
    onUse: (event) => {
        console.warn("wand used")
        event.source.runCommandAsync("setblock ~ ~ ~ stone")
    },
}
tranquil wind
spark swift
#

Is it really? I guess I don't know JS ๐Ÿ’€

tranquil wind
#

yes, you can define a function like that too.

pearl ruin
#

thanks anyway guys, got it working eventually. just rusty

neat helm
#

does anyone know how to connect particles to a item or player, for example= i want to as if i where to use a particle and try and bind it to my hand it would move with the hand like if it was a item it self

#

like i were to play a animation it would move with the hand

sharp dragon
#

is it possible to adapt trims to a custom armor model?

spark flare
#

how i can fix this?

chilly fern
#

addon maker

chilly fern
#

so it wont cover your pov

spark flare
#

instead of i using mt manager

chilly fern
#

idk how to explain it

spark flare
chilly fern
#

bruh i meant addons not modding

#

got too addicted on java

spark flare
wraith tiger
#

( Here's a complicated solution )

  • Use Attachable
  • Attachable's Model Binding to the head bone with molang condition c.is_first_person ? 'head' : 'rightItem' so it doesn't swing with the hand
  • Make a custom swing animation and play it when c.owning_entity -> v.attack_time > 0 or smt.
tranquil wind
wraith tiger
tranquil wind
#

lol

gaunt scaffold
#

why dosent my recipe show up in the recipe book?

{
"format_version": "1.21.90",
"minecraft:recipe_shaped": {
"description": {
"identifier": "ma:common_tome"
},
"unlock": {
"context": "AlwaysUnlocked"
},
"tags": [
"crafting_table"
],
"pattern": [
" L ",
"PAP",
" P "
],
"key": {
"P": {
"item": "minecraft:paper"
},
"L": {
"item": "minecraft:leather"
},
"A": {
"item": "minecraft:amethyst_shard"
}
},
"result": {
"item": "ma:common_tome",
"count": 1
}
}
}

ebon wren
gaunt scaffold
minor gust
#

How can I play the place item animation when I use my item?

fervent maple
#

You can't since there's no way to make the player swing using scripts

minor gust
#

๐Ÿ˜”

#

and with custom animations or something?

fervent maple
#

the first person item renderer is hardcoded so you can't apply animations to it without making an attachable which would create its own problems

minor gust
#

well, then I will just do it without animation, thanks

worn badge
#

How to restart a looping animation in an attachable?

#

I tried to create a pull animation using attachable, but I encountered a problem where it started in the middle.

tranquil wind
#

requires the projectile component aswell

#

to make it not throw the projectile, you'll need to cancel the item use with scripts.

fervent maple
#

it will play the shoot sound too

tranquil wind
#

hm

ebon wren
tranquil wind
#

its needs to be when you use it in general, not use it on a block

worn badge
hushed blazeBOT
#
caliiengalleta

Is there a way to use costum elytras? I'm just confirming, since I understand that not

wraith tiger
# hushed blaze

Personally, I think creating custom elytra is possible. But for casual dev, it would be a nightmare because you need to manually calculate all the angular momentum (Mostly via ScriptAPI).

Most Custom Elytra you see are just reskinned Elytra with different textures.

rose root
#

hey folks, is there a way to cancel the book UI from opening and instead open my own UI??

tranquil wind
ebon wren
tranquil wind
#

maybe they want like a sneak interaction thing for the vanilla book for some reason

rose root
# ebon wren If it's just for the server UI, wouldn't you just create a custom item?

I'm desperatly trying to create a "fake" book, that looks like a vanilla book but loads a custom UI, i have the custom item, but its 3 times the size of a vanilla book even though i used the vanilla texture 16x16 and i just cant get the attachable i have to add to scale it to sit right in the players hand, so....... plan B was to give the player a standard book, git it some lore and detect on itemUse and getLore to load the custom UI, but it just loads the vanilla book UI

wraith violet
rose root
wraith violet
rose root
#

In 1st person, it looks the right size, in 3rd Person its about 3 times a big and the wrong angle in the players hand

wraith violet
#

I have 0 clue how that could possibly happen.

rose root
#

i know right!! and the only way i know to solve it is to create an attachable and animation and correct the scale/rotation using that OR intecept the itemUse with a normal book and direct it to a custom UI

rose root
ebon wren
rose root
#
    "format_version": "1.21.0",
    "minecraft:item": {
      "description": {
        "identifier": "mbb:sabotage_book",
        "menu_category": {
                  "category": "equipment"                  
              }
        
      },
      "components": {
        "minecraft:display_name": {
          "value": "ยง6ยงlSabotage Book"
        },
        "minecraft:icon": "sabotage_book",
        "minecraft:max_stack_size": 1,
        "minecraft:glint": true,
        "minecraft:hand_equipped": true,
        "minecraft:allow_off_hand": false
      }
    }
  }```
ebon wren
#

You are using the "minecraft:hand_equipped" component.

rose root
#

Gad Dang it!! i didn't even think to look at the item components!! it does pay to read the documentation. many thanks

wraith violet
#

Ugh, the mc wiki.

ebon wren
ebon wren
rose root
#

i should update the wiki with example images!! That was a waste of several hours trying to fix a problem i didnt know i caused!! ah Bedrock Development, what a heartless bitch you are!!

ebon wren
ebon wren
rose root
#

very true, but not knowing that "rendering like a tool" is different to rendering like everything else in the game, does make both wiki's moot

ebon wren
rose root
#

well i certainly do now yeboi

cosmic narwhal
#

Anyone know how I can sort spawn eggs in the inventory?

Trying to use crafting item catalog, but I am getting the content log about category originally being set to items now being changed to nature... Just trying to order the default spawn eggs for my custom entities but I guess I can make a custom item to spawn them

tawny bone
#

does anybody know how to lengthen a sword's texture?
like how to make it very long

livid salmon
#

cant use locators in attachable models. Hence cant effectively use particle animations as well.

dark junco
#

I haven't tried it, however

livid salmon
spice vault
#

guys what are dynamic properties and what does it do ๐Ÿ˜ญ

#

@ me if anyone does have info

#

pls

dark junco
dark junco
livid salmon
spice vault
#

As in like when a dynamic property is this, the ability is lets say ab1 and when we change dynamjc property the ability is ab2

dark junco
#

Yes, you can

#

When you right click, you can set the dynamic property to a value, and every right click you can check the value of the dynamic property, to change the property perform the other ability

harsh viper
#

Where is this part located in the Bedrock sample UI file? I've tried searching through the HUD screen and found nothing related. I currently want to customize the tooltips of the items a bit, so I really need this information. Does anyone know?

livid salmon
wraith tiger
celest acorn
#
"minecraft:display_name": {
    "value": "item.bucketCustomFish.name entity.blaze.name"
}

Why does this not work?

#

It should show Bucket of Blaze forexample

celest acorn
wraith violet
celest acorn
#

Ohh

wraith violet
#

%blah1 %blah2

celest acorn
wraith violet
celest acorn
#

Okay thanks

#

works thanks

#

wait do I need to put a space between the keys?

#

so like

%... %...

or can I do

%...%...
#

bc the one without space doesnt work

#

so its like double space

#

in the name

wraith violet
#

Remove the space then?

celest acorn
#

I did but now its works

"%item.bucketCustomFish.name%entity.blaze.name"
wraith violet
#

I meant in your lang key.

celest acorn
#

its the default minecraft one

#

here its in the lang files

item.bucketCustomFish.name=Bucket of 

it has a space in it

wraith violet
#

Use a custom one.

celest acorn
#

If I do that I have to do it for every language thats why I used the mc one

#

Oh I found a bug

#

in the hotbar its fine but in the inv its buged

celest acorn
celest acorn
#

Is it possible to make when only certain experimental is on it register the item?

#

like Education Edition items

ebon wren
celest acorn
#

I dont set it via script

ebon wren
celest acorn
#

I also found another renamed item bug

#

zombie pigman called zombified piglin

#

but when you want to spawn one it called zombie_pigman

wraith violet
celest acorn
#

oh ok

ebon wren
celest acorn
wise vector
#

Hey Iโ€™m looking for someone to make me a custom weapons mod

daring garnetBOT
#
What are you doing here?

You found this place to make add-ons and resource packs or ask for them? Consider making simple packs yourself!

slow cape
#

yall what are some good ideas for a trident recipe, i am adding custom items and recipes so anything goes,

wondering cuz im a mod for superflat and i dont want to just change the loot table for drowned cuz I'm lazy that way and think crafting is cool

wraith tiger
glossy geyser
#

Can I replace properties of vanilla items such as a dragon egg?

glossy geyser
slow cape
rare lava
#

Yo! Is there a vscode extension that have auto completions for any json files like items, blocks, ect.

spiral lotus
#

any good videos or guides on how to animate attachables with hands in blockbench?

native musk
#

A question: would it be possible to create an item or script that makes a crafted item already come with enchantments? Without needing the player to hold the item and use /enchant on it?

still imp
#

Smash bros in literal

elfin niche
#

I tried to make a throwable fireball item and it just shows the item with 64 stack without icon

elfin niche
# elfin niche I tried to make a throwable fireball item and it just shows the item with 64 sta...

{
"format_version": "1.21.120",
"minecraft:item": {
"description": {
"identifier": "tomoko_cult:throwable_fireball",
"menu_category": {
"category": "equipments"
}
},
"components": {
"minecraft:projectile": {
"projectile_entity": "minecraft:fireball"
},
"minecraft:throwable": {
"do_swing_animation": true,
"launch_power_scale": 1.0,
"max_draw_duration": 0.0,
"max_launch_power": 1.0,
"min_draw_duration": 0.0,
"scale_power_by_draw_duration": false
},
"minecraft:glint": true,
"minecraft:max_stack_size": 16,
"minecraft:icon": "minecraft:fireball"
}
}
}

elfin niche
ebon wren
elfin niche
#

Yup just figured it out, i used the wrong format version

elfin niche
#

What does LevelSoundEvent mean?

wraith violet
#

๐Ÿ˜ In 26.30 however, we can use custom sounds.

elfin niche
#

How do u do that?

wraith violet
#

Just define it in sound definitions and then use it. ๐Ÿ˜

elfin niche
#

So the record component is usable now?

wraith violet
#

In 26.30 yeah

ebon wren
wraith violet
#

Ok ๐Ÿ‘

elfin niche
wraith violet
ebon wren
elfin niche
#

Can someone show me how to make item component that triggers when hitting entity

#

I tried using the wiki item event tutorial, and it didn't work

#

So i messed around and got here:

#

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

/** @type {import("@minecraft/server").ItemCustomComponent} */
const effectHitComponent = {
world.afterEvents.entityHitEntity.subscribe((event) {
event.hitEntity.runcommand("function tomko/weapon_hitted_punish")
event.damagingEntity.runcommand("function tomko/weapon_hit_buff")
}
};

system.beforeEvents.startup.subscribe(({ itemComponentRegistry }) => {
itemComponentRegistry.registerCustomComponent("tomoko_cult:reward_punish", effectHitComponent);
});

#

Content log said it was missing a }

near pelican
#

dang i wish shapeless recipes can give multiple results

hollow zealot
#

is there a bug report for this?? items colored with dyeable not having color in offhand

silver zinc
#

Can using scripts like addTag make custom item tags or no?

wraith violet
silver zinc
#

If not that's fine

wraith violet
#

Unstackable items with dynamic properties.