Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Updating block metadata
Post: RE: Updating block metadata

Nevertheless, I still think that the behaviour should be fixed. The function should just assign said meta and if the given meta for the block does not exist, Cuberite should just assign the highest / ...
nixi Plugin Discussion 17 15,171 01-22-2016, 01:53 AM
    Thread: Updating block metadata
Post: RE: Updating block metadata

NiLSPACE Wrote: (01-21-2016, 10:32 PM) -- Yeah, something like this: [shcode=lua] -- The list g_MaxMetas = { [E_BLOCK_STAINED_GLASS] = 15, [E_BLOCK_WOOL] = 15, [E_BLOCK_BIG_FLOWER] = 5...
nixi Plugin Discussion 17 15,171 01-21-2016, 10:38 PM
    Thread: Updating block metadata
Post: RE: Updating block metadata

NiLSPACE Wrote: (01-21-2016, 10:02 PM) -- You'll have to manually save the max meta value depending on the block. An easy place to find the metas is here: https://github.com/cuberite/cuberite/blob/ma...
nixi Plugin Discussion 17 15,171 01-21-2016, 10:22 PM
    Thread: Updating block metadata
Post: RE: Updating block metadata

NiLSPACE Wrote: (01-21-2016, 09:11 PM) -- Add the check for the right click hook. Also, I believe you should check if the meta is 15 instead of 16. The meta starts from 0 until 15. For the same reas...
nixi Plugin Discussion 17 15,171 01-21-2016, 09:59 PM
    Thread: Updating block metadata
Post: RE: Updating block metadata

NiLSPACE Wrote: (01-21-2016, 08:51 PM) -- Add this check in front of the hook: [shcode=lua] if (BlockFace == BLOCK_FACE_NONE) then return false end [/shcode] -- Where exactly? NiLSPACE Wrote: (...
nixi Plugin Discussion 17 15,171 01-21-2016, 09:06 PM
    Thread: Updating block metadata
Post: RE: Updating block metadata

NiLSPACE Wrote: (01-21-2016, 05:37 PM) -- Strange, the left click should be called normally in creative. I'm afraid I can't test this at the moment though, so I'll get back to this later. -- Intere...
nixi Plugin Discussion 17 15,171 01-21-2016, 08:19 PM
    Thread: Updating block metadata
Post: RE: Updating block metadata

NiLSPACE Wrote: (01-21-2016, 06:44 AM) -- Could you show us our code? -- The mcBlockRespawn function gets called by a HOOK_PLAYER_BREAKING_BLOCK (so i can prevent block breaking in creative), otherw...
nixi Plugin Discussion 17 15,171 01-21-2016, 06:49 AM
    Thread: Updating block metadata
Post: RE: Updating block metadata

Another problem: When I do: [shcode=lua] local meta = Player:GetWorld():GetBlockMeta(BlockX, BlockY, BlockZ) [/shcode] and then send myself a message: [shcode=lua] Player:SendMessage(meta) [/s...
nixi Plugin Discussion 17 15,171 01-21-2016, 06:30 AM
    Thread: Updating block metadata
Post: Updating block metadata

Is it possible to update block metadata? I have been searching for an alternative to MonsterBlocks: http://dev.bukkit.org/bukkit-plugins/monster-blocks/ I, of course, was not able to find anything...
nixi Plugin Discussion 17 15,171 01-21-2016, 03:55 AM
  Wink Thread: SetSignLines does not work
Post: RE: SetSignLines does not work

xoft Wrote: (01-16-2016, 06:54 AM) -- Ahele, se stim smiř? :) -- Hus, jeď do Kosntice jim to vysvjetlit :P
nixi Plugin Discussion 10 10,525 01-21-2016, 03:52 AM
    Thread: PointsOfInterest
Post: PointsOfInterest

This is my very first plugin, so it might save some quirks. I have, in fact, started learning lua yesterday :blush:. http://i.imgur.com/q574Wb8.png Points Of Interest allows you to create "waypo...
nixi Plugin Releases 3 6,756 01-16-2016, 06:24 AM
    Thread: SetSignLines does not work
Post: RE: SetSignLines does not work

ThuGie Wrote: (01-16-2016, 03:21 AM) -- Is it not 0-3 ? instead 1-4 ? -- As far as I know, lua starts counting from 1. It does not work even when I change it to 3. [hr] NiLSPACE Wrote: (01-16-2016,...
nixi Plugin Discussion 10 10,525 01-16-2016, 04:08 AM
    Thread: SetSignLines does not work
Post: RE: SetSignLines does not work

Yes, that works. Thank You. What if I wanted to GetSignLines and assign Line4 into a variable? I tried this: [shcode=lua] lines = Player:GetWorld():GetSignLines(BlockX, BlockY, BlockZ) Player:SendMes...
nixi Plugin Discussion 10 10,525 01-16-2016, 02:21 AM
    Thread: SetSignLines does not work
Post: SetSignLines does not work

Hi, I have started using lua yesterday and I just can not get past this problem. I need to update all lines of a specific sign. "World:SetSignLines()" Either does nothing (if called in a function star...
nixi Plugin Discussion 10 10,525 01-16-2016, 12:37 AM