Cuberite Forum
Core: Any way to choose which items that can be given? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Core: Any way to choose which items that can be given? (/thread-1614.html)



Core: Any way to choose which items that can be given? - Mathias - 10-06-2014

Hi!
In the Core-plugin, there are two handy commands, /item and /give, which you can use to spawn in items. However, is there a way to choose which items that can be given with those commands, or make an item id return an "Unknown item id" message? When I tried to give myself some technical blocks in 1.7 (for example the Bed Block, ID 26), my client crashed, as you can't have technical blocks in your inventory anymore since 1.7.

The reason why I'm asking this is because I allow players on my server to give themselves items. Some of these players may try to get these technical blocks, without knowing that their client will crash.


RE: Core: Any way to choose which items that can be given? - tonibm19 - 10-06-2014

You'd have to modify the core code.


RE: Core: Any way to choose which items that can be given? - xoft - 10-06-2014

I recommend opening an issue in the GitHub tracker for the Core with a feature request for this.