Summoning mod entities

Started by WortoxCZ on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 years ago
Joined Aug 2018
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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.

Active 3 years ago
Joined Dec 2017
Points:
727

User statistics:

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

Probably .jar file or serious code editing.

Active 3 years ago
Joined Dec 2017
Points:
727

User statistics:

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

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

Active 6 years ago
Joined Aug 2018
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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.

Active 1 year ago
Joined Aug 2013
Points:
1160

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 730
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()

Active 6 years ago
Joined Aug 2018
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 3 years ago
Joined Dec 2017
Points:
727

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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!