how to create a pokeball

Started by xX_oma_Xx on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to create a pokeball

can someone help my create a pokeball mod to capture mobs 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have done something…
Mon, 06/01/2020 - 00:42

I have done something similar before (with code, not with MCreator). Before I share code I will tell you the process and if you think you can do it I will be happy to help you.

Step 1: Create a Projectile Entity

Step 2: Create an Item

Step 1 and 2 are interchangeable

Step 3: Use RenderRegistry along with Sprite Renderer for your projectile

Step 4: Shoot the projectile (I will provide code for this)

Now you should be able to shoot the projectile from the item.

Step 5: In the onImpact method you will want to add a check if the RayTrace result is of an Entity. Now you can add a variable to the player equal to the entities registry name. Or remove the entity and spawn an ItemEntity will a String NBT value equal to the Entities registry name.

There is more from there. I.e the actual spawning of the entity, I just wanted to give you an idea in case you are up for this endeavor.