08-02-2018, 05:40 AM
(This post was last modified: 08-02-2018, 05:42 AM by MGlolenstine.)
(08-02-2018, 05:27 AM)NiLSPACE Wrote: Did you actually use <world>:DoWithEntityByID? Because simply defining a function doesn't immediately call it.
I did...
Code:
Player:GetWorld():DoWithEntityByID(Player:GetWorld():SpawnMob(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ(), mtVillager, false), ChangeVillager)
I do know how to code, but I'm new to LUA and Cuberite.