hi i was playing resident evil3 again
wanna resemble some features from there
i made a BlockEntity using as base the Pedestal from kaupenjoe so it can hold an item and Model it using the ZombieVillager Model from CER
...get stuck on the code
i want this block Entity to spawn back the same type of zombie it resembles if:
the player steps on the blockEntity
or the players take the item the BlockEntity is holding
how do i spawn a Zombie from code and give him a job ???
if(!world.isClient()){
ZombieVillagerEntity zve = new ZombieVillagerEntity(Entities. .world, pos );
}
i wanna make a custome tag list for villager job type
way sheperd block entity only spawns whith shepperd things
and bookkepper BE has only book related items
not a loot json file but kinda same funtionality
how to ?? get an ramdom item from a taglist or
iterate the taglist contains
or dump a collection from the taglist
ArrayList<Items> items = ItemTags.AXES.get(??)
this two things are the thing i get stuck
can you helpme ??