Started by
Snyperscopz
on
Topic category: Help with MCreator software
I'm completely new to coding and cant figure out how to make a spawn egg summon my custom boss.
Topic category: Help with MCreator software
I'm completely new to coding and cant figure out how to make a spawn egg summon my custom boss.
When you create a mob it automatically creates a spawn egg
just check if the make this mob a boss with a bossbar is checked
I want to make the spawn egg craftable. When I go to make a recipe the spawn egg doesn't show in the custom elements so I cant make it carftable.
This is simply done by code editing: I'll walk you thru it step by step.
1st: Create a living entity and make sure the spawning egg is checked
2nd: Create a recipe using the recipe design you want. For the output, just pick any other spawn egg (like turtle)
Now for the complicated part:
3rd:Edit the recipe code directily, this is done by selecting the left icon below the green + sign, look for "Edit code for selected mod element"
4th: Once you done it, it will open a new tab on mcreator with a .json file, now this is where you replace the turtle egg with your custom mob egg. There are 2 things to replace, first is the mod group, 2nd is the egg:
It should look like this:
the "group" and "item from key" is automatically set by mcreator to the ones you set on step 2, the thing you just need to edit is on this is the result - items.
By default, a turtle egg will have it like this: minecraft:turtle_spawn_egg
just replace the word minecraft with your groupname and the turtle_spawn_egg with your custom mob egg. Dont delete the : (colon) between them
To get your spawn egg code btw, just edit your living entity mob (Similar to step 3 but instead click the .java and not the renderer)
5th: save it and lock the code. Locking is needed or else mcreator wont save your changes, run the game and try it out ingame.
I Followed your steps and now it says Errors in currently selected datapacks prevented world from loading every time I try create a world im not sure what I did wrong so here is my code.
Replace Misc by your mod group name. On your workspace, click the blue icon on the top right, it should be called "Workspace Settings", On it copy the Mod ID Namespace, paste it there instead of Misc.
So Is the Mod Id already there and I just copy it and put it in the code
because if so it still dosnt work
My code now looks like this now
Mate... I told you, ONLY EDIT THE LINE FROM ITEM,.....
Look at what I've said at first, see?
the "group" and "item from key" is automatically set by mcreator to the ones you set on step 2, the thing you just need to edit is on this is the result - items.
The MISC on group tag is the one from the creative tab, if you didnt add a creative tab, of course it will not work.....
The reason WHY i've said "group": "YOURMODGROUPNAMEHERE", is because I thought you already have a creative tab of your own. but instead you use Misc minecraft creative tab....
JUST EDIT THE RESULT. DONT DO ANYTHINS STUPID ON THE GROUP TOP TAG.
"result": { "item": "manacraft:Abominable_snowman_spawn_egg", "count": 1 }
This is already correct if your mod id nameplate is manacraft and your spawn egg name is Abominable snowman.
hey uh how do you change the last line to something custom mine stays as "minecraft:pig_spawn_egg" and i cant change it
please help me
my code looks like this and I CANT change it:
oh wait nvm