Started by Atten007 on Fri, 03/24/2023 - 19:22
Topic category: Help with modding (Java Edition)
I have my own Pokemon mod here and I want, that the player can catch Pokemon. Unfortunately, I don't know how to do this, so I wanted to ask for help here. If someone can help me, it may be very nice!
So i would suggest you make it an action combat pokemon mod where you morph the player into the pokemon. I'll give you a rough guideline for this if you are interested:
Next make an HP ATK DEF SP. ATK SP DEF and SPEED lifetime number variable.
The next step is to make the HP_X ATK_X DEF_X etc etc permanent variables for each pokemon in your inventory.
Okay now we are done with the variables for the combat and the current players team. Next Step is to make the moves vfx and in game effects and tables for pokemon stats and scaling. I suggest you give each pokemon a kit of 4-6 moves and different roles (striker, wall, special wall, sweeper etc) and design based on this. Evolutions should work with items or by making another nbt variable for each pokemon called friendship and make them evolve after feeding them and reaching a specific point of happines. Moves should scale with Player's Trainer Level btw. This section and modeling is most of the work. If you make the models and textures and i like them i will help you out with the coding.
Okay lets make the pokeballs now:
Each pokeball should have an item nbt (string is easier to use) saving the pokemon spicies and stats to it as well as each time it spawns your pokemon it should give it a id like "Sylveon_A023" so it can only apply to that pokemon. I would strongly suggest you make the trainer take control over the pokemon completly.
How would morphing work?
If a pokeball is rightclick use a procedure checking for the pokemon's species inside the item nbt string, then using the create text block you create the command /morph "Pokemon's Species from the variable"
You also must copy all variables saved within it.