Cuberite Forum
MCServer Lua implementation - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: MCServer Lua implementation (/thread-42.html)

Pages: 1 2 3


RE: MCServer Lua implementation - Megamanx266 - 05-27-2011

Sorry for slightly changing the subject but I was wondering, is it humanly possible to create a Plugin that allows the use of items that are otherwise not available? Like say beds for example? (Which currently I can't seem to create a bed, I even tried adding it to items.ini and the recipe in recipes.ini).


RE: MCServer Lua implementation - FakeTruth - 05-27-2011

No that is not possible at the moment. MCServer has hardcoded protection against invalid item and block ID's which is updated every time new objects are added. According to this check beds are still invalid items and so you cannot have them in your inventory. I should come up with a more flexible solution for this, because right now you always have to wait for MCServer to update before you can script in the behaviour of new items.

That said, when item ID's are valid according to MCServer you can script their behaviour, like for example beds


RE: MCServer Lua implementation - Megamanx266 - 05-28-2011

(05-27-2011, 11:39 PM)FakeTruth Wrote: No that is not possible at the moment. MCServer has hardcoded protection against invalid item and block ID's which is updated every time new objects are added. According to this check beds are still invalid items and so you cannot have them in your inventory. I should come up with a more flexible solution for this, because right now you always have to wait for MCServer to update before you can script in the behaviour of new items.

That said, when item ID's are valid according to MCServer you can script their behaviour, like for example beds

Awww, guess I'll have to wait then... Looking forward to learning Lua to do Plugins. Just need to come up with something to make XD

On a slight note, I changed your Axe recipes to be more in line with what Minecraft actually uses (I had people complaining that they couldn't make axes the "official" way). Posted the changed ones in case you wanted to add them for the next release.

Code:
3x3,1:1:5:1,2:1:5:1,1:2:5:1,2:2:280:1,2:3:280:1@271:1    #-> Wooden (L)
3x3,3:1:5:1,2:1:5:1,3:2:5:1,2:2:280:1,2:3:280:1@271:1    #-> Wooden (R)
3x3,1:1:4:1,2:1:4:1,1:2:4:1,2:2:280:1,2:3:280:1@275:1    #-> Stone (L)
3x3,3:1:4:1,2:1:4:1,3:2:4:1,2:2:280:1,2:3:280:1@275:1    #-> Stone (R)
3x3,1:1:256:1,2:1:256:1,1:2:256:1,2:2:280:1,2:3:280:1@258:1  #-> Iron (L)
3x3,3:1:256:1,2:1:256:1,3:2:256:1,2:2:280:1,2:3:280:1@258:1  #-> Iron (R)
3x3,1:1:264:1,2:1:264:1,1:2:264:1,2:2:280:1,2:3:280:1@279:1  #-> Diamond (L)
3x3,3:1:264:1,2:1:264:1,3:2:264:1,2:2:280:1,2:3:280:1@279:1  #-> Diamond (R)



RE: MCServer Lua implementation - FakeTruth - 05-28-2011

What's the difference? Isn't it the exact same thing, just written differently (more clear xD ) ?


RE: MCServer Lua implementation - Megamanx266 - 05-28-2011

(05-28-2011, 07:20 AM)FakeTruth Wrote: What's the difference? Isn't it the exact same thing, just written differently (more clear xD ) ?

The difference is that with the old one the axe would immediately disappear before you could grab it.


RE: MCServer Lua implementation - FakeTruth - 05-28-2011

The current version works fine for me O.o
[Image: 1EWKU.png]

I still haven't updated to 1.6 though, so maybe something broke there?


RE: MCServer Lua implementation - FakeTruth - 05-29-2011

You can use all new items now in the last release of MCServer ( 179 )