But my problem now is, that I want to get the assembly machine content (an object called normal drilling, fast drilling or soft drilling) so I did this:
Code: Select all
if minerEntities[z].name=="underground-mining-drill-2" and math.random(5)<=glob.undergroundminer[i].richness and minerEntities[z].getitemcount("soft-drilling")>0 or minerEntities[z].getitemcount("fast-drilling")>0 or minerEntities[z].getitemcount("normal-drilling")>0 then
Code: Select all
game.getplayer().print(game.player.character.getselected().getitemcount("normal-drilling"))
even when there is one... Whats the problem?
I think that the problem is that assembly machines arent inventories, so you cant place stuff inside with the code :S