Topic category: Help with Minecraft modding (Java Edition)
So what is my mod project about?
I add new types of villagers. Girls. Because they are intended as villagers, I use the offered base AI of villagers Mcreator have build in. My mobs are tagged as monsters and should be able to attack an attacking entity like Zombies. But I know everything about the vanilla villagers and I want to have my girl have the same properties like the vanilla have But with followed add ons: (Things on top of the list are more important now)
1 set the sound pitch to a constant value in this case 1. This is the only value to use for an entity. Also I wanna use for each entity separately.
2 I'd like to be able to certain a sleeping time, (working time and gathering time as well)
3 add Profession (-Sagittarius shooting on zombies at night and on any illagers on raids and -Defenders who neutralize this targets in close combat) Both groups are night active, other sleep and work time like the default.
4 add products. E.G. the farmer in vanilla villages gives food before the breeding. So each profession of the girls should result in a crafted item, if I add these items.
5 consume products. Especially food, and also potions for the defending people, who take damage in mobfights.
6 exchange resources while gathering. Also empty glass bottles plays a role, because they should refilled to new potions.
7 A remainder after the hero of the village effect had expired. Especially trade advantages, protection from the girls, if a skeleton shoots on the player or if the player got attacked by an enderman.
8 add the home shedule like minecraft bedrock has, butis not given in java minecraft.
These are all my struggles for now. What ever I can rule in procedure blocks, I run it there, what possible, but I'm ready to learn how to code, so I am open to both. But I need to know the way how its possible.
I see a way how I could reach the 7 goals on top. The Vanilla codes! Because they are already given in Vanilla and well developed by mojang and covers everything I like to implement in the mod.
For 1, I imported soundEngine.class There I tried with @Override
private static final float PITCH_MIN = 1.0F;
private static final float PITCH_MAX = 1.0F;
and something else, I don't know no more, but got errors. Especially "illegal start of…" and "cant find symbol." I undoned the codes, so I don't have them anymore. But what I am doing wrong?
For 2, I think I need to write an extention class, like abstract villager is. Do I? Right there I need to set up the sleeping and the working time.
For 3, Do I need a specified Block like the farmer has his composter where he's going to? If yes, I can organize strategies for the defense of the village. Also I need to get rid with the panic goal against Zombies and pillagers. At least in the mob fighter groups. I also consider to use parts of the vidicator.class including the armposes, but using a sword instead of an axe. But is there a way to combine both AIs each other or do I need to code something else?
For 4, If I trade with the girls and they improved themselfs, heres one example what I intend to happen the weapon smith: In the first trades she just can provide stone swords. But If she gets from novice to a better rank, she get provide iron or gold swords. The better she is, the better the weapons she can give the defender girls, for their combat. For the fletcher, I want to sell her a crossbow. After I did, she shall provide crossbows herself for the Sagittarius.
For 5, Food shall just be eaten, which can restore their health. So I need to get rid with the breeding after eating.
You know if I am finally able to deal this stuff here, I think I'm gonna write some tutorials as well. Because I had seen, I'm not the only one who wants to add this, I saw similar Topic, which have a similar goals, but there are no tutotrials, how to do this. Who ever helps me, he gets credited in a tutorial and gets credited in the mod. Because I wound forget a helpers name.
Unfortunately, both mob AI and code are not my strong points and I struggle myself with much simplier tasks than what you try to find out : / the only advanced tutorial I remember on similar stuff (trading) is here, but I dunno if it can help you in any way.
Although I wish you luck and let my comment be kind of "bump" for you, so maybe someone will have a clue. You can probably also visit some modded Discords and ask for this problem, so people can help you with actual code/bugs. For example you can visit Sajevius' Modding Lair or MCToolkit one (the first one is my friends' mod-related server, and the second one is dedicated to MCreator modding and it is much more active than this forum).
Thanks for the answer Toma. I appreciate it. Sajevius' Modding Lair there are no diamonds. The 3rd link, I joined the server and I look around there and I will see, where I can ask my request.
Easy
Oh, I see, it somehow merged links in Sajevius' Modding Lair, sorry. This is correct one: discord.gg/kBEr693YVn
Wishing you good luck with finding out how to solve the issues!
I am online there as well now. Thank you Toma.