#items components is not working anymore?

1 messages Β· Page 1 of 1 (latest)

inland comet
#

My entity have all these 3 components minecraft:behavior.equip_item minecraft:shareables minecraft:behavior.pickup_items but it just don't collect any item i drop on the ground

tall chasm
#

I guess these components are bugged or smth like that

junior bolt
#

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. ^^

tall chasm
lone crescent
# inland comet My entity have all these 3 components ```minecraft:behavior.equip_item``` ```min...

"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.

tall chasm
lone crescent
#

yes.

tall chasm
#

(i have inventory component)

tall chasm
#

because my entity doesnt works

#

#1276968269919551498

lone crescent
#

"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
}

tall chasm
#

for some reason

lone crescent
#

is your entity format atleast 1.19.20?

tall chasm
lone crescent
#

try lowering it, see what happens.

tall chasm
#

format version?

lone crescent
#

yeah, anything like 1.19.20, 1.20.30

tall chasm
#

allay using 1.21.0 but works normal

lone crescent
#

you could probably even use 1.18 tbh, lol.

#

but idk if it'll go that far back

tall chasm
lone crescent
tall chasm
#

wait.

lone crescent
#

yeah try that!

tall chasm
#

do i have navigation walk?

lone crescent
#

do you? xD

tall chasm
#

yea.

#

i have it

#

so this is not problem

lone crescent
#

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

tall chasm
#

Not giving or etc

#

just picking

tall chasm
lone crescent
#

idk i just copied that from microsoft haha

#

it should be 2

#

so they can reach

lone crescent
tall chasm
#

im waiting

lone crescent
#

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)

tall chasm
#

this is why i did not used default thingnfrom microsoft

lone crescent
#

"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
}

tall chasm
#

format version 1.19.20

#

and this thing

#

time to check thos

#

this*

lone crescent
#

noice, fingers crossed

tall chasm
#

sob

tall chasm
#

maybe i dont have some requested component?

#

btw no console errors

#

ewwww

lone crescent
#

still doesn't want to goafter the diamond?

tall chasm
lone crescent
#

πŸ˜‚

tall chasm
#

(yea, he doesnt grabs items)

lone crescent
#

send code i'll take a look

tall chasm
lone crescent
#

think you can copy paste it in here

tall chasm
#

Because some ppl say they cant

tall chasm
lone crescent
#

unless it's too long well then maybe not haha

tall chasm
#

Discord doesnt allows me

#

lmao

lone crescent
#

ripp

tall chasm
#

-525 symbols

tall chasm
lone crescent
#

dm me it, i just wanna see if there's an error or something

tall chasm
#

here you go

lone crescent
#

ah nice okay one second

tall chasm
#

Pastebin is really useful site

#

Why i didnt knew about it ewww

#

e

lone crescent
#

{
"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": {}
}
}
}

lone crescent
#

so i tweacked a few things,

#

tweaked*

tall chasm
lone crescent
#

and then made it so he wont pickup dropped weapons a bit more

#

iron diamond neth sword

tall chasm
#

β€’_β€’

lone crescent
#

one second i gotta make an accoutn for pastebin lol

tall chasm
#

You can past things without account on pastebin

tall chasm
#

but you can post

lone crescent
#

how do i share it now

#

._.

tall chasm
#

link

lone crescent
#

i figured it out lol

#

there, so now it has shareables i think thats what was missing

tall chasm
#

or i did it

#

nvm

lone crescent
#

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

tall chasm
lone crescent
#

he wil pickup wheat and make bread now too

tall chasm
#

how useless

lone crescent
#

πŸ˜‚ wait wait wait

#

WAITTTT

tall chasm
#

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

lone crescent
#

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 ._.

tall chasm
#

it will not help me brueh

lone crescent
tall chasm
#

it will pick up only diamond and wheat, right?

lone crescent
#

yes.

tall chasm
lone crescent
#

but with "pickup any item" he will try to pick_up every item so it overwrites it.

tall chasm
#

My last brain cell

lone crescent
#

now try him after you change the 3 in diamodn part to 64

tall chasm
lone crescent
#

food and money collector

tall chasm
lone crescent
#

now it's just the matter of gettting him to do it

tall chasm
lone crescent
#

🀣

tall chasm
lone crescent
#

he looks like he would be a good slave to carry around to pickup extra items

tall chasm
#

okay adding shareables component

tall chasm
#

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

tall chasm
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?

lone crescent
#

you want it to still pickup all things right?

lone crescent
#

and be tamed?

tall chasm
#

be tamed*?

#

tameable

lone crescent
#

so same thing got it.

tall chasm
#

its not tamed right after you spawn it

lone crescent
#

gimmie a few

tall chasm
#

πŸ™‚πŸ‘

#

i wonder for what im waiting

#

πŸ€”

#

maybe i should make everything for myself

#

and yea ping me if need

lone crescent
# tall chasm 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

https://pastebin.com/cPgd82kE

#

so i made "WILD" and "TAMED"

#

when its spawned, it must take the "wild" component group.

lone crescent
#

when it's tamed, it must remove the "wild" component group and attach "tamed" component group

lone crescent
tall chasm
#

πŸ™‚

lone crescent
#

lmk if this fixes him

#

apply the patebin

tall chasm
#

sadly

lone crescent
#

it must have that.

#

its part of the neccesary coding.

tall chasm
lone crescent
#

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

delicate forge
lone crescent
#

ello

tall chasm
lone crescent
#

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

tall chasm
lone crescent
#

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

tall chasm
#

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?

lone crescent
#

maybe play with "priority" too,

tall chasm
lone crescent
#

i think the higher means it fires sooner, No?

#

0 means nothing

#

9 would mean firing all the time

tall chasm
lone crescent
#

no?

tall chasm
#

less number = faster

lone crescent
#

the higher the priority the sooner the event is called.

tall chasm
#

i was confused with this thing too

lone crescent
#

no it doesn't.

#

the higher the priority the faster is fires.

tall chasm
#

okay hold on

tall chasm
#

"0 is the highest priority"

  • Microsoft docs
delicate forge
tall chasm
delicate forge
#

sorry selfbot

lone crescent
tall chasm
#

Microsoft documentation moment

#

let me check bot FAQ

#

didnt found anything

delicate forge
lone crescent
#

items are not behaviours. the priority is handling the behavior.

lone crescent
#

the higher the priority the sooner the event gets run

lone crescent
delicate forge
tall chasm
#

Now i just need check what happens first: 0 or 1

lone crescent
tall chasm
#

Or not

#

ew

lone crescent
lone crescent
#

im almost certain im right 🀣

#

idk they both say priority

#

but one says behavior another items

tall chasm
#

Okay let me just check this

delicate forge
tall chasm
#

I have entity that will kill targets

lone crescent
tall chasm
#

so block him and dont care

delicate forge
lone crescent
#

i fed you now be gone.

delicate forge
#

is my selfbot lmaoπŸ‘»

tall chasm
#

yay now i dont see his messages

delicate forge
lone crescent
#

yeah smple fix

#

xd

tall chasm
#

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

lone crescent
#

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.

lone crescent
#

ADHD uncertainty moment 😭 Ye_Im_Totally_Fine

#

but i dont think 0 works it has to be 1

#

0 means 0

#

-1 means infinity

#

1+ just means 1+ lol

tall chasm
#

Okay i used 1 for pick up items

lone crescent
#

yeah you are right my bad

tall chasm
#

because i asked this question to him

#

or it was Ash

#

i dont remember

#

Nah i give up

#

Stupid entity

#

doing fckn nothing

#

Maybe someone can even find a solution

lone crescent
#

i will

#

ill fix it for you when my brain has some zz's my friend

#

maybe you can help come up with the next album.

ill get your helper entity functioning 🫑

lone crescent
lone crescent
#

@tall chasm dont forget about this ^

tall chasm
#

oh wait

#

you sent it at 15:58

#

why i didnt saw it

tall chasm
#

πŸ™

lone crescent
tall chasm
lone crescent
#

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

tall chasm
#

its immortal item collector

lone crescent
#

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

tall chasm
#

right?

lone crescent
#

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

tall chasm
#

ok

tall chasm
#

or i can remove it

lone crescent
#

you can remeove it πŸ˜›

tall chasm
lone crescent
#

sorry i tweaked it so much, i just had to go by my like memory almsot lol

tall chasm
#

how you fixed this thing

#

I got like a brain explosion

#

and if it can pickup everything i will be really happy

lone crescent
#

i threw stairs cobble wood a bunch of randoms

#

he picked it all up

tall chasm
#

h o w y o u d i d i t .

lone crescent
tall chasm
#

I suffered like a 3 days

#

and you just fixed this thing

lone crescent
#

lol you'll learn you got everything else right

tall chasm
#

i really dont understand

lone crescent
#

i added spawn event and tame event

tall chasm
lone crescent
#

i also added "minecraft:annotation.open_door": {
},

#

you wer missing that for navigation

tall chasm
#

BRUUUUUUUH

lone crescent
#

xD

tall chasm
#

Bro i just feeling like a shit

lone crescent
#

he was looking at the diamonds going "ow do i walk again?"

#

xD

lone crescent
#

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

#

🫑

tall chasm
#

and had same thing

#

frog cant pick up items

#

so model and texture just got into the void

lone crescent
#

now* u can make it

#

now you cannnn

tall chasm
#

now i have RGbot

#

a.k.a. Cub buddy minecraft edition

lone crescent
#

πŸ˜‚

tall chasm
#

time to make sols rng Minecraft edition

#

Joining this server was the best decision in my life

inland comet
lone crescent
#

too much has happened lol

#

i've helped about 80 peoples since this chat

#

remind me please.

inland comet