Summoning mod entities

Started by WortoxCZ on

Topic category: Help with modding (Java Edition)

Last seen on 18:23, 24. Jan 2019
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Summoning mod entities

Hey guys, so I'd like to make a simple mod that adds a tool - lets call it Rift opener, which would simply spawn a flux rift mob from thaumcraft 6 when right clicked. Now, I'm aware that TC is not a part of Mcreator and thus I suppose that my only options are code editing or MCedit schematics. However, all of my attemts so far have failed miserably. The id of the entity I'm trying to spawn here is thaumcraft:fluxrift.

 

Thanks in advance, have a wonderful day.

Last seen on 16:24, 9. Jul 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Probably .jar file or…
Mon, 08/27/2018 - 06:34

Probably .jar file or serious code editing.

Last seen on 16:24, 9. Jul 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or possibly have the item…
Mon, 08/27/2018 - 06:35

Or possibly have the item execute /summon thaumcraft:fluxrift ~ ~ ~

Last seen on 18:23, 24. Jan 2019
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
May I ask how to edit the …
Mon, 08/27/2018 - 13:33

May I ask how to edit the .jar file properly then?

The summon command works, I tried that already, however that would require the player to have admin rights to use the item, right? I want to use the item on a modded server with my friends.

Thanks for your answer, I really appreciate your help.

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use EntityList…
Mon, 08/27/2018 - 13:48

You can use EntityList.createEntityByName() for getting the entity by its name and then spawn it in the world using World#spawnEntity()

Last seen on 18:23, 24. Jan 2019
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry, I seem to be a…
Mon, 08/27/2018 - 14:18

I'm sorry, I seem to be a complete noob with this... Shall I add those lines into the code perhaps? I can't find anything such as EntityList or ceate entity in the "coding blocks" list

Last seen on 16:24, 9. Jul 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try this: Create a procedure…
Fri, 08/31/2018 - 04:14

Try this: Create a procedure that just summons a mob. (for example a blaze)

Then, go into the code tab, double click on the procedure you made.

Find the line that says "Entity entityToSpawn = new EntityBlaze(world);" and the line that says "import net.minecraft.entity.monster.EntityBlaze;"

Change each instance of Blaze to Fluxrift

I hope that would work!