Minecraft python BGE

I recently started making some minecraft game in python and i have no idea how can i avoid using this piece of code:
clone = scene.objectsInactive[‘Cube’]

I started to think about not adding the cube from hidden layer, but cloning it…
I have to notice I’m new in BGE python.
I just want to create an object, that after click on it creates another object, that after click on it creates another one, and another one, and another ect.
Any ideas? :frowning:

clone = scene.objectsInactive[‘Cube’]

that is needed so you cant get rid of it or you need to use the edit object brick.

you just need some bricks on that cube,
a mouse over
a mouse click
a edit object.

if 1 and 2 are positive:
add clone

What is it about that line of code that makes you want to avoid it?
What do you seek to gain by cloning an object instead of adding it?

Thanks, lads!