Basically the item that i created spawns an entity once by using an if statment to see if the variable number_of_Clicks is less then one and another if stament tests if it is more than one to print out a message saying you can only spawn one at a time. but the problem is whenever it is called it prints it out twice.
Code Here: http://pastebin.com/xa0iG9r7
You sir a a god damn hero. I had no idea that method existed looked high and lowq for something like that too. And could you explain the par3World.isRemote == false a little bit more. Sorry i'm brand new to modding.
I manage to spawn the mob in by placing the block but when i do it spawn 2 entities and one of them has no AI and doesn't move.
Here is the Code : http://pastebin.com/vCZYnAst
Basically what i'm going to do is create a block so that whenever it is placed it spawns a mob on the blocks location and i need to know how to get that blocks coordinates.
2 replies
Important Information
By using this site, you agree to our Terms of Use.