Cuberite Forum
Working on Trady, related questions - 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: Working on Trady, related questions (/thread-562.html)

Pages: 1 2


RE: Working on Trady, related questions - FakeTruth - 09-24-2012

Well this thread discusses inter-plugin communication https://forum.cuberite.org/showthread.php?tid=467&page=2
(it's not possible natively right now)


RE: Working on Trady, related questions - Taugeshtu - 09-24-2012

Well, if you think it's a good idea (money variable in source code) - go ahead Smile I got the point about complexicity, so I'm not against one var.


RE: Working on Trady, related questions - ThuGie - 09-24-2012

Uhmz, i guess i was then thinking about a mc-classic server i once was playing with.
Sorry for the confusion :/.


RE: Working on Trady, related questions - Taugeshtu - 11-08-2012

Hi there.
I'm curious on how MCS handle player's inventory slot numeration? Is it similar to vanilla slot numbers:
http://media-mcw.cursecdn.com/b/b2/Items_slot_number.png
or is it different? MCS source shows that it's different (0 to 44), but I can't came up with clear understanding on that. Help?


RE: Working on Trady, related questions - xoft - 11-08-2012

The slots should be numbered the same as in the inventory window that is used by the server protocol:
0 - crafting result
1 .. 4 - crafting grid
5 .. 8 - armor
9 .. 35 - inner inventory
36 .. 44 - hotbar
http://wiki.vg/Inventory#Inventory

Naturally, setting slots 0 through 4 in the inventory doesn't do anything, they're there for historical reasons only - the early code copied the inventory 1:1 into the window packet.