#items components is not working anymore?
1 messages Β· Page 1 of 1 (latest)
I guess these components are bugged or smth like that
I think you need to add the types of items to be "dropped / shared" to the list of shareables. Including the priorities an all that. You can check in the piglin example file what that looks like. ^^ Just make sure you use the right format for compatibility. ^^
Check allay code, there no shareables or smth like that
"minecraft:behavior.pickup_items": {
"priority": 9,
"max_dist": 3,
"goal_radius": 2,
"speed_multiplier": 0.5,
"can_pickup_to_hand_or_equipment": false
},
"minecraft:shareables": {
"items": [
{
"item": "minecraft:bread",
"want_amount": 3,
"surplus_amount": 6,
"stored_in_inventory": true
},
{
"item": "minecraft:carrot",
"want_amount": 60,
"surplus_amount": 24,
"stored_in_inventory": true
},
{
"item": "minecraft:potato",
"want_amount": 60,
"surplus_amount": 24,
"stored_in_inventory": true
},
{
"item": "minecraft:beetroot",
"want_amount": 60,
"surplus_amount": 24,
"stored_in_inventory": true
},
{
"item": "minecraft:wheat_seeds",
"want_amount": 64,
"surplus_amount": 64,
"stored_in_inventory": true,
"pickup_only": true
},
{
"item": "minecraft:beetroot_seeds",
"want_amount": 64,
"surplus_amount": 64,
"stored_in_inventory": true,
"pickup_only": true
},
{
"item": "minecraft:wheat",
"want_amount": 45,
"surplus_amount": 18,
"craft_into": "minecraft:bread",
"stored_in_inventory": true
}
]
}
},
"minecraft:inventory": {
"inventory_size": 8,
"private": true
},
you need an inventory.

Can i make entity pick up every item?
yes.
(i have inventory component)
Can i know how?
because my entity doesnt works
#1276968269919551498
"minecraft:behavior.pickup_items":{
"priority": 2,
"can_pickup_any_item":true,
"can_pickup_to_hand_or_equipment": true,
"excluded_items":["iron_sword"],
"goal_radius": 0.5,
"max_dist": 0.0,
"speed_multiplayer": 1.0,
"track_target": true
}
that not works
for some reason
is your entity format atleast 1.19.20?
1.20.80
try lowering it, see what happens.
yeah, anything like 1.19.20, 1.20.30
allay using 1.21.0 but works normal
i dont think format version changes smth
yes it does.
yeah try that!
do i have navigation walk?
do you? xD
let me check this rq
yea.
i have it
so this is not problem
yeah try to see what happens when he has 1.19.20 for the version
also make sure it's under "components", and or inside the specific component group
the uh.... picking up items part and whatnot
everything entity doing is picking up items
Not giving or etc
just picking
i wonder why max distance is 0.0
wait no
im waiting
it should be way more, that actually determines their range they can find items
so make it like 10-15
and then uhm... (one sec)
i did this alr
this is why i did not used default thingnfrom microsoft
"minecraft:behavior.pickup_items":{
"priority": 2,
"cooldown_after_being_attacked": 20.0,
"pickup_based_on_chance": false,
"can_pickup_any_item": true,
"can_pickup_to_hand_or_equipment": true,
"excluded_items":["iron_sword"],
"goal_radius": 2.0, //so they can reach
"max_dist": 15.0, //search for item
"speed_multiplayer": 1.0,
"track_target": true
}
done
format version 1.19.20
and this thing
time to check thos
this*
"Nah who needs these stoopid diamonds"
maybe i dont have some requested component?
btw no console errors
ewwww
still doesn't want to goafter the diamond?
He thinks they are useless fr
π
(yea, he doesnt grabs items)
send code i'll take a look
Can you open .json file?
think you can copy paste it in here
Because some ppl say they cant
ok
unless it's too long well then maybe not haha
ripp
-525 symbols
pastebin time
dm me it, i just wanna see if there's an error or something
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
here you go
ah nice okay one second
{
"format_version": "1.19.20",
"minecraft:entity": {
"description": {
"identifier": "rguy:helper",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {},
"components": {
"minecraft:nameable": {
"allow_name_tag_renaming": true,
"always_show": true
},
"minecraft:type_family": {
"family": [
"helper"
]
},
"minecraft:collision_box": {
"width": 0.3,
"height": 0.9
},
"minecraft:movement.basic": {},
"minecraft:navigation.walk": {
"is_amphibious": true,
"can_pass_doors": true,
"can_walk": true,
"can_break_doors": false
},
"minecraft:jump.static": {},
"minecraft:can_climb": {},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0,
"breathes_air": true,
"breathes_water": true
},
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 7
},
"minecraft:physics": {},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:annotation.open_door": {},
"minecraft:follow_range": {
"value": 100
},
"minecraft:scale": {
"value": 0.6
},
"minecraft:tameable": {
"probability": 1,
"tame_items": "minecraft:diamond",
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
},
"minecraft:movement": {
"value": 0.3
},
"minecraft:behavior.follow_owner": {
"priority": 3,
"can_teleport": true,
"start_distance": 7.77,
"stop_distance": 4.06
},
"minecraft:inventory": {
"inventory_size": 27,
"restrict_to_owner": true,
"private": false,
"can_be_siphoned_from": false,
"container_type": "container"
},
"minecraft:behavior.pickup_items": {
"priority": 2,
"can_pickup_any_item": true,
"can_pickup_to_hand_or_equipment": false,
"excluded_items": ["iron_sword", "diamond_sword", "netherite_sword"],
"goal_radius": 1.92,
"max_dist": 13,
"speed_multiplayer": 1,
"track_target": true
}
},
"events": {
"minecraft:on_tame": {}
}
}
}
what things
and then made it so he wont pickup dropped weapons a bit more
iron diamond neth sword
how it will help?
β’_β’
one second i gotta make an accoutn for pastebin lol
you don't need
You can past things without account on pastebin
you will be not able to delete or edit
but you can post
link
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
i figured it out lol
there, so now it has shareables i think thats what was missing
i just changed follow distance/tp distance (it was 4 and 3 before, which isn't balanced xD)
and then the excluded items, and goal/max raidus thas all
and added shareable
well... it will not pick up every item?
he wil pickup wheat and make bread now too
Walking bread maker lol
i need entity that can pick up everything from the ground
like a, its all function entity should have
nothing more
where it says
"item": "minecraft:diamond",
"want_amount": 3,
"surplus_amount": 6,
"stored_in_inventory": true
change it to 64
i accidently left it at 3 ._.
it will not help me brueh
he still does
it will pick up only diamond and wheat, right?
yes.
but with "pickup any item" he will try to pick_up every item so it overwrites it.
My last brain cell
my last brain cell restored
e
now try him after you change the 3 in diamodn part to 64
so entity will prioritize diamond and wheat, but will pick up everything?
correct
food and money collector

now it's just the matter of gettting him to do it
i got entire items collector idea from roblox bee swarm simulator lol
π€£
ooh cool
because im broke to afford cub buddy
he looks like he would be a good slave to carry around to pickup extra items
okay adding shareables component
not only extra
i will make this entity immortal
so it will be OP items storage
you can give him anything and get from him back
how not p2w
btw
should i add parameters like a
all items want amount
@lone crescent
ohey- i just noticed something too. sorry, it's 5:44am, i have not slept yet i've been helping a lot of people out today along with my addon updates. im missing a lot here because im tired, im not an expert coder but close to it my brains just drained π€£
so anyway- the taming part, and a few other things aren't right.
im gonna quickly just recode your entity is that okay?
sorry
you want it to still pickup all things right?
yea
and be tamed?
so same thing got it.
its not tamed right after you spawn it
ππ
i wonder for what im waiting
π€
maybe i should make everything for myself
and yea ping me if need
so, for taming you must have component groups. (FOR EXAMPLE .... COMPONENT GROUPS ARE ....... baby, adult, tamed & wild........ the specific "TYPE", so you dont have to make multiple entities and .jsons .. you can use the same file thats what thats for too π so if you wanted a buff version ... you'd make a component group with custom components(health speed etc)) THE NORMAL "COMPONENT" IS BASIC ONE OFF EFFECTS (THINGS UNDER COMPONENT EFFECT THE ENTIRE ENTITY, OPPOSED TO COMPONENT GROUPS)
if you're confused, just study the changes i made haha here you go sorry it took a bit
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
so i made "WILD" and "TAMED"
when its spawned, it must take the "wild" component group.
ik what component group is
when it's tamed, it must remove the "wild" component group and attach "tamed" component group
π
π
Btw your idea with shareables... didnt worked
sadly
why in the world there are melee attack
idk remove it, it's just what icopy pasted quickly from other sources
go learn the villagers shareables/inventory/and what they pickup.
i have a billion code files open.
i just open something random sometimes lol
hi
ello
AHHHHHHH LIGHT THEME
lol.
for an entity to work it needs to have key functions/components that make it a being
otherwise it may aswell just be a stick standing there
with no use

yea its me
you dont need the attack.
but something to do with the inventory, picking up, and shareables isn't wanting to work/line up right.
just let me know ifthose changes did in fact work tho xD
btw weirdest thing that my entity doesnt even picking up diamonds
i changed max amount and want amount to 999
but uh
he doesnt cares or something?
maybe play with "priority" too,
diamonds*******
Priority 0 time
i think the higher means it fires sooner, No?
0 means nothing
9 would mean firing all the time
0 - highest
no?
the higher the priority the sooner the event is called.
i was confused with this thing too
As i remember, cyber axe said less number is faster
okay hold on
"0 is the highest priority"
- Microsoft docs
hi
what
sorry selfbot
hi
items are not behaviours. the priority is handling the behavior.
the higher the priority the sooner the event gets run
hi
hi.
hi
Now i just need check what happens first: 0 or 1
"behaviour"
I guess i know how to do it
Or not
ew
pit it at 99 and watch him build his own nether portal
hi

im almost certain im right π€£
idk they both say priority
but one says behavior another items
Okay let me just check this
hi
I have entity that will kill targets
WHAT Do YOU WANTTT??
He just wants get us annoyed
so block him and dont care
hi
is my selfbot lmaoπ»
yay now i dont see his messages
hi
Thank you discord for blocking feature frfr
i checked vanilla zombie code
to understand priorities
and i still think that 0 priority is first
yep
creeper.json moment
"minecraft:behavior.melee_attack": {
"priority": 4,
"speed_multiplier": 1.25,
"track_target": false,
"reach_multiplier": 0.0 // this prevents creepers from ocasionally performing melee attacks while using this goal to chase
},
"minecraft:behavior.avoid_mob_type": {
"priority": 3,
"entity_types": [
{
"filters": {
"any_of": [
{ "test" : "is_family", "subject" : "other", "value" : "ocelot"},
{ "test" : "is_family", "subject" : "other", "value" : "cat"}
]
},
"max_dist": 6,
"walk_speed_multiplier": 1,
"sprint_speed_multiplier": 1.2
}
]
}
As we know, creeper eill run away from ocelots and will do it faster than attacking his target
So priority 3 is first and priority 4 is second
ez
i don't think thats how that's being displayed.
priority of 4 so it's always trying to attack until the radius of 6 inside priority 3 is detected and will then fire making priority 4 take a split second break.
idk now im hella confused
π€£
I SWEAR its the way im saying it is.
u are right.
ADHD uncertainty moment π 
but i dont think 0 works it has to be 1
0 means 0
-1 means infinity
1+ just means 1+ lol
Okay i used 1 for pick up items
Cyberaxe right
because i asked this question to him
or it was Ash
i dont remember
Nah i give up
Stupid entity
doing fckn nothing
everyone can donwload this addon and do whatever you want idc
Maybe someone can even find a solution
i will
ill fix it for you when my brain has some zz's my friend
check out my addon i just released last night tho
https://www.planetminecraft.com/mod/https-www-youtube-com-watch-v-yris1jx-ywe/
maybe you can help come up with the next album.
ill get your helper entity functioning π«‘
@tall chasm dont forget about this ^
why this didnt worked for me...
oh wait
you sent it at 15:58
why i didnt saw it
Can it pick up something but not diamonds?
π
Okay i guess
yup.
REAL?
it picks up everything
jsut paste the code over urs
you may have to change "restrict to owner" to false.
cuz rn he's not droppign all the stuff i just threw at him
xD
i killed him n dropped nothing- or you have to make a loottable in the first place
Thats the point
its immortal item collector
so he's just a garbage picker upper?
cuz you cant take the items from him right now
they disapear
he's nifty though running around LOL
oaky well there you go build off that

restrict to owner should be tru so owner can grab items from him
right?
i think so yeh
restrict_to_owner False Boolean If true, the entity's inventory can only be accessed by its owner or itself
yup set to true
private also false
private False Boolean If true, the entity will not drop its inventory on death
ok
btw why boss bar needed?
or i can remove it
you can remeove it π
gud
sorry i tweaked it so much, i just had to go by my like memory almsot lol
btw how you did it
how you fixed this thing
I got like a brain explosion
and if it can pickup everything i will be really happy
yeah i was in creative spamming q throwing stuff flying he was following me hahahaha
i threw stairs cobble wood a bunch of randoms
he picked it all up
h o w y o u d i d i t .
i been coding since 2019
lol you'll learn you got everything else right
Can you just explain me (dumb person) how you fixed this
i really dont understand
i added spawn event and tame event
ITS EVERYTHING NEEDED?
i also added "minecraft:annotation.open_door": {
},
you wer missing that for navigation
BRUUUUUUUH
xD
nowmake an animal one
like a frog that eats the items
you can use the same code copy paste/change name add more elements into it
if you repeat you'll memorize it easily
π«‘
i remember how I tried to make "frog worker" addon
and had same thing
frog cant pick up items
so model and texture just got into the void
I dont need it now heh
now i have RGbot
a.k.a. Cub buddy minecraft edition
π
time to make sols rng Minecraft edition
Joining this server was the best decision in my life
It already has one, 38 slots
π€ i forget what this chats about
too much has happened lol
i've helped about 80 peoples since this chat
remind me please.
Nah it's fine now, I don't need that code anymore




