Voxel Turf

Voxel Turf

View Stats:
Sighmir Sep 20, 2017 @ 11:10am
Item ID from Block Entity?
How would I go about getting item ID to use on the getInventory():give function ?
The block comes from:
local B = C:getBlockAt(chunkUpdateItem.x, chunkUpdateItem.y, chunkUpdateItem.z);

:getType() returns 3025 for Grass blocks for example, but I dont think that is it.

P:getInventory():give(Here goes the item id for the block I think, 1);

Thank you for your help.
Last edited by Sighmir; Sep 20, 2017 @ 11:12am
< >
Showing 1-4 of 4 comments
SnapperTheTwig  [developer] Sep 20, 2017 @ 8:29pm 
Item ids and block ids are different

There is an --echoItemIds launch option. Try that, it'll tell you the id of the item you have selected and the block that you're about to place
Sighmir Sep 21, 2017 @ 11:10am 
No way to get one from another ? I was trying to make a Pickup Block like the Remove Block but that actually lets you pick up certain kinds of block, I planned on it having a blacklist/whitelist feature to it for server owners too. I hope we can get some kind of documentation later for modding.. I am not sure if I am doing this right to be honest.
Last edited by Sighmir; Sep 21, 2017 @ 11:12am
Sighmir Sep 29, 2017 @ 2:17pm 
Well since patch 1.0.11 you added that functionality to the Remove block yourself.

Thank you very much! Keep up the great work! Feel free to close this topic if you feel like.:steamhappy:
Brobenada Feb 12, 2019 @ 1:16pm 
is there no id list ? or name list for items ?
< >
Showing 1-4 of 4 comments
Per page: 1530 50