Started by
Cheese Dealer
on
Topic category: Help with MCreator software
Title pretty much explains it but i want to know if its possible at all to make a mob similar to the creaking / a weeping angel in MCreator
Topic category: Help with MCreator software
Title pretty much explains it but i want to know if its possible at all to make a mob similar to the creaking / a weeping angel in MCreator
am i gonna be doing this forever cause this is like a main thing i need for my mod
From what I can remember, you can just raytrace, but not sure for entities..
so impossible? yeah right ive seen other mcreator mods do that
I think this can help https://imgur.com/CykZ340
in your entity's ai tasks tab, find the tasks that you want to stop when the player is looking and start again when the player is not looking (for example, if you want the mob to start attacking when the player is looking away, find the "melee attack" task). find the "conditions: ∞" dropdown on that task block and click on it. there should be two procedures: additional start condition, and additional continue condition. click on the + button to create a new condition procedure.
in the procedure editor window that opens, add an if block (in "control flow"). inside the if block, add a logic return block (in "control flow") (use the blue one that says logic). then attach a "True" block (in "logic"). outside of the if block at the end, do the same thing but with return false.
now in the condition of the if block, you have a few options. you can use any of these three ways:
the basic idea is to make a condition procedure that returns true when the player is looking in the direction of the mob and false otherwise, which will make the mob attack or run or do whatever only if the player is looking at it. here are the tools, figure out the rest of the logic on your own bc i have to go do homework
this probably require some understanding of math including distance formula, trigonometry, maybe vectors, etc., complex procedures like this are really fun to make but require your own thinking to get working
anyway you can probably ask google ai mode how to do this
bleh