Started by
WortoxCZ
on
Topic category: Help with Minecraft modding (Java Edition)
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.
Probably .jar file or serious code editing.
Or possibly have the item execute /summon thaumcraft:fluxrift ~ ~ ~
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.
You can use EntityList.createEntityByName() for getting the entity by its name and then spawn it in the world using World#spawnEntity()
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
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!