Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Mobs dont move
Post: RE: Mobs dont move
xoft Wrote: (05-26-2017, 02:16 AM)
--
This is a known issue, a fix is already under way: https://github.com/cuberite/cuberite/pull/3720
--
Nice, thanks! |
|
moiko89 |
Discussion
|
2 |
3,825 |
05-26-2017, 08:38 PM |
|
|
Thread: Mobs dont move
Post: Mobs dont move
Hi there,
i have downloaded the last build (#751) from jenkins. (Linux 64bit)
Now i have a issue. All Mobs dont move, they are only turn around on there block whos spawend.
Whats wrong? |
|
moiko89 |
Discussion
|
2 |
3,825 |
05-26-2017, 01:54 AM |
|
|
Thread: Player:SetPosition() with SpawnHook in other World
Post: RE: Player:SetPosition() with SpawnHook in other W...
Seadragon91 Wrote: (05-24-2017, 02:45 AM)
--
Code:
--
function MyOnKilled(Victim, TDI, DeathMessage)
if Victim:IsPlayer() then
LOG(Victim:GetName() .. " has been killed, printed by hook.")
en... |
|
moiko89 |
Plugin Discussion
|
8 |
8,466 |
05-24-2017, 03:35 PM |
|
|
Thread: Player:SetPosition() with SpawnHook in other World
Post: RE: Player:SetPosition() with SpawnHook in other W...
Now i will try it to implement the KILLED Hook, but how i become the Player Object from "Victim" / cEntity? |
|
moiko89 |
Plugin Discussion
|
8 |
8,466 |
05-24-2017, 02:31 AM |
|
|
Thread: Player:SetPosition() with SpawnHook in other World
Post: RE: Player:SetPosition() with SpawnHook in other W...
Hm. The Event OnKilling is before OnPlayerSpawned. Therefore, OnPlayerSpawned is triggered after my code and undoes everything. |
|
moiko89 |
Plugin Discussion
|
8 |
8,466 |
05-23-2017, 09:12 PM |
|
|
Thread: Player:SetPosition() with SpawnHook in other World
Post: RE: Player:SetPosition() with SpawnHook in other W...
|
moiko89 |
Plugin Discussion
|
8 |
8,466 |
05-23-2017, 03:53 PM |
|
|
Thread: Player:SetPosition() with SpawnHook in other World
Post: RE: Player:SetPosition() with SpawnHook in other W...
Hi i checked the problem.
HOOK_PLAYER_SPAWED is after spawn and if exist an active bed in other world, then player was teleport to this world.
When i set the players position, i set it on the other ... |
|
moiko89 |
Plugin Discussion
|
8 |
8,466 |
05-21-2017, 05:24 PM |
|
|
Thread: Player:SetPosition() with SpawnHook in other World
Post: Player:SetPosition() with SpawnHook in other World
Hi,
i used Player:SetPosition() with HOOK_PLAYER_SPAWED Event.
But if the player died in WorldX and i used with spawn the Player:SetPosition() command then
spawn the player in DefaultWorld and no... |
|
moiko89 |
Plugin Discussion
|
8 |
8,466 |
05-21-2017, 04:03 AM |
|
|
Thread: Differentiating between join and respawn
Post: RE: How different between join and spawn
Seadragon91 Wrote: (05-20-2017, 05:03 AM)
--
Hm good question.
My idea that I have now would be to add the player in HOOK_PLAYER_JOINED to a global list and if the player spawns in HOOK_PLAYER_SPA... |
|
moiko89 |
Plugin Discussion
|
3 |
4,814 |
05-20-2017, 11:49 PM |
|
|
Thread: Differentiating between join and respawn
Post: Differentiating between join and respawn
Hi,
how i can different between the PlayerJoin and PlayerSpawned.
I want port the player to a position after death but not after joining the server
and the Hook HOOK_PLAYER_SPAWNED is active afte... |
|
moiko89 |
Plugin Discussion
|
3 |
4,814 |
05-20-2017, 04:33 AM |
|
|
Thread: How add a function to existing class
Post: RE: How add a function to existing class
xoft Wrote: (05-20-2017, 12:54 AM)
--
You need to implement the function in C++ code, and in the .h file, mark it with an "// tolua_export" comment right after the declaration. Then you need to docum... |
|
moiko89 |
Plugin Discussion
|
5 |
6,274 |
05-20-2017, 12:58 AM |
|
|
Thread: How add a function to existing class
Post: How add a function to existing class
hi there,
how i can add a function/parameter to a existing class like cPlayer?
Example:
cPlayer:getBedPos(World) |
|
moiko89 |
Plugin Discussion
|
5 |
6,274 |
05-20-2017, 12:51 AM |
|
|
Thread: Player:GetLastBedPos() for any world
Post: RE: Player:GetLastBedPos() for any world
xoft Wrote: (05-18-2017, 07:06 AM)
--
I believe there's only one LastBedPos per player, and it has a LastBedWorld tied to it somehow (not sure). I.e. if a player dies in any world, they are sent to t... |
|
moiko89 |
Plugin Discussion
|
4 |
5,433 |
05-18-2017, 07:17 PM |
|
|
Thread: Player:GetLastBedPos() for any world
Post: Player:GetLastBedPos() for any world
Hi,
can i get a LastBedPos for another world?
If the player has a bed in World1 and World2? |
|
moiko89 |
Plugin Discussion
|
4 |
5,433 |
05-18-2017, 04:21 AM |
|
|
Thread: Help to Player:ScheduleMoveToWorld
Post: RE: Help to Player:ScheduleMoveToWorld
xoft Wrote: (05-17-2017, 07:58 AM)
--
You shouldn't use ScheduleMoveToWorld() for same-world teleport, use SetPosition() instead.
--
It works, thanks! |
|
moiko89 |
Plugin Discussion
|
2 |
4,248 |
05-18-2017, 04:17 AM |
|
|
Thread: [idea phase] MyPlayerMenu
Post: RE: [idea phase] MyPlayerMenu
ard1998 Wrote: (01-24-2017, 07:33 PM)
--
@"xoft" i changed it, if some more explanation is needed, please notice me.
-- edit 25-1-2017 --
im just begon with making the plugin, put of my head the ... |
|
moiko89 |
Plugin Discussion
|
3 |
4,991 |
05-17-2017, 04:07 PM |
|
|
Thread: ReGen Chunk in selfmade World
Post: RE: ReGen Chunk in selfmade World
Hi,
[shcode=lua]
function MyOnPlayerRightClick(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ) -- See API docs for parameters of all hooks
local chunkx = math.floor(Block... |
|
moiko89 |
Plugin Discussion
|
8 |
7,480 |
05-17-2017, 05:04 AM |
|
|
Thread: Help to Player:ScheduleMoveToWorld
Post: Help to Player:ScheduleMoveToWorld
Hi,
if i use the follow code i spawn on Worldspawn or Bed,
but i want to spawn an the coords from vector3d. I called this function with HOOK_PLAYER_SPAWNED
PHP Code:
--
local SpawnX = 0
... |
|
moiko89 |
Plugin Discussion
|
2 |
4,248 |
05-17-2017, 04:26 AM |
|
|
Thread: ReGen Chunk in selfmade World
Post: RE: ReGen Chunk in selfmade World
xoft Wrote: (05-15-2017, 05:18 AM)
--
In the Hooks section of the API documentation, there's the list of hooks Cuberite supports. I think you want the HOOK_PLAYER_BROKEN_BLOCK and HOOK_PLAYER_PLACED_... |
|
moiko89 |
Plugin Discussion
|
8 |
7,480 |
05-16-2017, 04:16 AM |
|
|
Thread: ReGen Chunk in selfmade World
Post: RE: ReGen Chunk in selfmade World
xoft Wrote: (12-17-2016, 10:42 PM)
--
- keep a copy of the world and copy from there
The second is a perfect example of using multiworld as an advantage - make Cuberite load both worlds, but don't... |
|
moiko89 |
Plugin Discussion
|
8 |
7,480 |
05-14-2017, 10:01 PM |