Jump to content

Items spawnen


doadoan
 Share

Recommended Posts

Meinte eigendlich programmiertechnisch, habs aber schon selber gefunden ^^


	 public void updateTick(World world, int par1, int par2, int par3, Random par4){

		    super.updateTick(world, par1, par2, par3, par4);


		    ItemStack itemstack = new ItemStack(Items.apple);

		    EntityItem entity = new EntityItem(world, par1, par2, par3, new ItemStack(itemstack.getItem(), 1));

		    world.spawnEntityInWorld(entity);

	 }
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...
B
B