Started by
Raoul1808
on
Topic category: Advanced modding
Hi, as the title says, I would a specific mob to appear when the player gets an item. I know it involves events and variables, but how do I create some kind of variable that communicates with the mob to says "You spawn in overworld when player gets this item"?
I'm using version 1.8.2 of MCreator.
To do this, you will need to use global event trigger on player tick update, check for the item in inventory and if it has it, spawn entity.
Uh... I think I got it but to tell it to "start spawning entity", I don't know how to do it... Maybe I have to disable entity spawning by default, but after that, how can I re-enable it?
I think I understand what you're saying and I don't think this is actually possible without using code.
If you mean to make the mob spawning to start when player beats a boss or have an item, You mean the mobs don't spawn before getting the item, and after having the item, they spawn like normal mobs
Wellll i think thats impossible
You will be able to do this in Mcreator 1.8.3.
Just make a boolean world variable, make your mob, then add this procedure to "on mob tick rate" trigger:
If (variable = false)
teleport entity at x, - 1, z
This way, when the mob spawns, it will automatically be teleported at y=-1,so it will fall in the void without leaving drops.
Of course, you should also add a procedure that turns the variable true
Raol, this is a nice idea, although kinda hacky :D
Yes XD
Anyway, I forgot that the procedure should also check if the entity's y coordinate is > than - 1. Otherwise the mobs will remain stuck to y=-1 and cause lag